/* Search-only layout. Existing detail, area and purpose pages keep their styles. */
.spaces-page{background:#f8faf7}
.spaces-page .search-shell{padding-top:22px;padding-bottom:80px}
.spaces-page .search-offer{position:relative;isolation:isolate;overflow:hidden;min-height:200px;border-radius:20px;background:#183522;color:#fff;display:flex;align-items:center;padding:18px 30px}
.search-offer__photos{position:absolute;inset:0;z-index:-2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
.search-offer__photos img{width:100%;height:100%;min-height:0;object-fit:cover}
.search-offer:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,37,21,.95),rgba(8,37,21,.81) 32%,rgba(8,37,21,.18) 68%,rgba(8,37,21,.08))}
.search-offer__copy{max-width:620px}
.search-offer__label{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:800;letter-spacing:.06em}
.search-offer__label:before{content:"";width:22px;height:1px;background:#d4e5c6}
.search-offer__copy h1{margin:3px 0 0;font:500 22px/1.35 Georgia,"Yu Mincho",serif}
.search-offer__discount{display:flex;align-items:baseline;gap:8px;margin:0;line-height:1}
.search-offer__discount>span{font-size:13px;color:#e3eddf}
.search-offer__discount strong{font:500 64px/.98 Georgia,serif;letter-spacing:-.05em;color:#fff}
.search-offer__discount strong span{font-size:45px;letter-spacing:-.04em}
.search-offer__discount b{font:500 37px/1 Georgia,serif;letter-spacing:-.04em}
.search-offer__bottom{display:flex;gap:18px;align-items:center;margin-top:8px}
.search-offer__cta{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:40px;padding:8px 20px;border:1px solid rgba(255,255,255,.75);border-radius:999px;background:#fff;color:#204a2c;font-size:12px;font-weight:800;white-space:nowrap}
.search-offer__cta:hover{background:#edf6e8}
.search-offer__bottom p{margin:0;font-size:11px;color:#d9e7d8}
.spaces-page .search-controls{position:static;transform:none;max-height:none;overflow:visible;inset:auto;z-index:auto;margin:20px 0 24px;padding:14px 22px;border:1px solid #e0e7dd;border-radius:16px;background:#fff;box-shadow:0 5px 20px rgba(30,62,38,.035)}
.spaces-page .filters__header{margin:0 0 8px;gap:12px}
.spaces-page .filters__header h2{font:600 19px/1.4 Georgia,"Yu Mincho",serif}
.search-controls__heading{display:flex;align-items:baseline;gap:16px}
.search-condition-count{padding:3px 7px;border-radius:99px;background:#edf3e9;color:#41604a;font-size:10px;white-space:nowrap}
.search-controls__heading p{margin:0;font-size:11px;color:#68716a}
.spaces-page .filters__header button{min-height:32px;text-decoration:underline;text-underline-offset:4px;font-size:11px;white-space:nowrap}
.search-fields{display:grid;grid-template-columns:1.5fr repeat(4,minmax(0,1fr));gap:12px}
.spaces-page .search-fields .filter-group{min-width:0;margin:0}
.spaces-page .search-fields label{font-size:11px;margin-bottom:5px}
.spaces-page .search-fields select,.spaces-page .search-fields input[type=search]{height:43px;border-color:#d7e0d4;border-radius:8px;font-size:13px;padding:0 10px;background:#fcfdfb;color:#25392b}
.spaces-page .search-fields input[type=search]{padding-right:42px}
.spaces-page .search-input button{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:39px;height:39px;border:0;border-radius:7px;background:transparent;color:#42684b}
.search-extra{margin-top:8px}
.search-extra summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-size:11px;font-weight:700;color:#4b6452;min-height:28px;width:fit-content}
.search-extra summary::-webkit-details-marker{display:none}
.search-extra summary:after{content:"＋";font-size:15px}
.search-extra[open] summary:after{content:"−"}
.search-extra summary span[hidden]{display:none}
.search-extra__body{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:20px;margin-top:12px;padding-top:14px;border-top:1px solid #e5eae3}
.search-extra__body .filter-group{margin:0;min-width:0}
.search-extra__body .filter-checks{display:flex;flex-wrap:wrap;gap:0 18px;align-items:center;margin:0}
.search-extra__body .filter-checks label{margin:5px 0;min-height:30px;font-size:12px}
.search-extra__body .filter-checks input{width:16px;height:16px}
.spaces-page .search-extra select{height:42px;font-size:13px}
.spaces-page .results{min-width:0}
.spaces-page .results-toolbar{gap:16px;align-items:center;margin:0 0 18px}
.spaces-page .results-toolbar h2{font:600 25px/1.25 Georgia,"Yu Mincho",serif}
.spaces-page .results-toolbar h2 small{margin-left:10px;font:400 11px/1.3 sans-serif;color:#68756b}
.spaces-page .results-toolbar .result-note{margin-top:5px;font-size:11px;color:#6b776c}
.spaces-page .toolbar-actions select{height:40px;font-size:12px;margin-left:6px}
.spaces-page .active-filters{margin:0 0 16px}
.spaces-page .active-filters:empty{display:none}
.spaces-page .active-filter{padding:5px 6px 5px 10px}
.spaces-page .active-filter button{min-width:28px;min-height:28px;font-size:15px}
.spaces-page .search-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}
.spaces-page .space-card{min-width:0;display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 2px 8px rgba(20,45,25,.025)}
.spaces-page .space-card__image-link{aspect-ratio:3/2;flex:none}
.spaces-page .space-card__image{width:100%;height:100%;aspect-ratio:3/2;object-fit:cover}
.spaces-page .space-card__series{display:none}
.spaces-page .space-card__body{padding:16px;display:flex;flex:1;flex-direction:column}
.spaces-page .space-card__area{margin:0 0 6px;font-size:11px;line-height:1.6;color:#5c6d5f}
.spaces-page .space-card h3{font-size:19px;line-height:1.35;margin:0 0 9px;overflow-wrap:anywhere}
.spaces-page .space-card__meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px}
.spaces-page .tag-row{margin:12px 0 0}
.spaces-page .space-card__actions{margin-top:auto;padding-top:14px;gap:7px;grid-template-columns:1fr 1.35fr}
.spaces-page .space-card__actions a{min-height:40px;font-size:11px}
.spaces-page .space-card__actions .card-detail{margin-top:0}
.spaces-page .space-card__body:has(.tag-row) .space-card__actions{margin-top:14px}
.spaces-page .favorite-button{width:40px;height:40px;top:10px;right:10px}
.spaces-page .space-card__flag{font-size:10px;padding:5px 8px;left:10px;right:auto;top:auto;bottom:10px}
.spaces-page .load-more-wrap{margin-top:28px}
.spaces-page .empty-state{padding:42px 20px;background:#fff}
.spaces-page .empty-state h3{font-size:23px}
.spaces-page .search-fallback{padding:20px;border:1px solid #dce5d8;border-radius:12px;background:#fff}
.spaces-page .search-fallback a{text-decoration:underline}
.spaces-page [hidden]{display:none!important}
.spaces-page.has-search-offer-visible .line-booking-banner{visibility:hidden;pointer-events:none;opacity:0}
.spaces-page :is(button,a,input,select,summary):focus-visible{outline:3px solid #668a54;outline-offset:3px}
@media(max-width:1000px){
 .search-controls__heading p{display:none}
 .search-fields{gap:9px;grid-template-columns:1.2fr repeat(4,minmax(0,1fr))}
 .spaces-page .search-controls{padding:16px}
 .spaces-page .search-results-grid{gap:18px 14px}
 .spaces-page .space-card__body{padding:13px}
 .spaces-page .space-card h3{font-size:17px}
 .spaces-page .space-card__actions{grid-template-columns:1fr}
}
@media(max-width:760px){
 .spaces-page .search-shell{padding-top:14px;padding-bottom:60px}
 .spaces-page .search-offer{min-height:224px;padding:20px 22px;border-radius:14px}
 .search-offer__photos{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr 1fr}
 .search-offer:after{background:linear-gradient(90deg,rgba(7,33,18,.9),rgba(7,33,18,.60) 65%,rgba(7,33,18,.2))}
 .search-offer__copy h1{font-size:23px}
 .search-offer__discount strong{font-size:76px}
 .search-offer__discount strong span{font-size:40px}
 .search-offer__discount b{font-size:32px}
 .search-offer__bottom{margin-top:11px;display:block}
 .search-offer__bottom p{font-size:10px;margin-top:7px}
 .spaces-page .search-controls{margin:14px 0 20px;padding:14px;border-radius:12px}
 .spaces-page .filters__header{margin-bottom:9px}
 .spaces-page .filters__header h2{font-size:20px}
 .spaces-page .filters__header button{min-height:36px}
 .search-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px}
 .search-fields .filter-group:first-child{grid-column:1/-1}
 .search-fields .filter-group:first-child>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .spaces-page .search-fields select,.spaces-page .search-fields input[type=search]{font-size:16px;height:42px}
 .spaces-page .search-fields label{font-size:10px;margin-bottom:3px}
 .search-extra{margin-top:8px}
 .search-extra summary{min-height:30px}
 .search-extra__body{grid-template-columns:1fr 1fr;gap:14px}
 .search-extra__body .filter-checks{grid-column:1/-1}
 .spaces-page .results-toolbar{flex-direction:row;gap:8px;align-items:center;margin-bottom:13px}
 .spaces-page .results-toolbar h2{font-size:21px}
 .spaces-page .results-toolbar h2 small{display:block;margin:4px 0 0;font-size:10px}
 .spaces-page .results-toolbar .result-note{display:none}
 .spaces-page .toolbar-actions{width:auto;flex:none}
 .spaces-page .toolbar-actions label{font-size:0}
 .spaces-page .toolbar-actions select{font-size:11px;width:122px;max-width:none;padding:0 24px 0 9px;margin:0}
 .spaces-page .search-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
 .spaces-page .space-card{border-radius:10px}
 .spaces-page .space-card__body{padding:11px 10px 10px}
 .spaces-page .space-card__area{font-size:11px;min-height:26px;line-height:1.5;margin-bottom:4px}
 .spaces-page .space-card h3{font-size:14px;min-height:20px;margin-bottom:6px}
 .spaces-page .space-card__meta{gap:4px 8px;font-size:11px;margin:0}
 .spaces-page .space-card__meta span+span:before{margin-right:6px}
 .spaces-page .tag-row{gap:4px;margin-top:9px}
 .spaces-page .tag{font-size:10px;padding:3px 5px}
 .spaces-page .tag:nth-child(n+2){display:none}
 .spaces-page .space-card__actions{grid-template-columns:1fr;gap:4px;padding-top:9px}
 .spaces-page .space-card__body:has(.tag-row) .space-card__actions{margin-top:10px}
 .spaces-page .space-card__actions .card-book{min-height:40px;font-size:11px;order:0;border-radius:8px;white-space:nowrap;gap:3px}
 .spaces-page .space-card__actions .card-detail{min-height:22px;order:1;border:0;font-size:10px;text-decoration:underline;text-underline-offset:3px}
 .spaces-page .favorite-button{width:36px;height:36px;top:6px;right:6px}
 .spaces-page .space-card__flag{left:7px;bottom:7px;font-size:9px;padding:3px 6px}
 .spaces-page .line-booking-banner{max-width:224px;left:12px;bottom:12px}
}
@media(prefers-reduced-motion:reduce){.spaces-page *{scroll-behavior:auto!important}}

/* Keep the detailed controls as readable as the main search fields on small screens. */
@media(max-width:760px){
 .spaces-page .search-extra select{font-size:16px}
 .spaces-page .results-toolbar{flex-wrap:wrap}
 .spaces-page .toolbar-actions select{font-size:16px;width:168px;max-width:100%}
}
@media(max-width:480px){
 .spaces-page .search-extra__body>.filter-group:not(fieldset){grid-column:1/-1}
}
