/* Compact catalogue and a single, deliberate search surface. */
.market-home .stay-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.market-home .rental-card { padding:7px; border-radius:19px; }
.market-home .rental-card-name { font-size:15px; }
.market-home .rental-card-rate strong { font-size:17px; }
.market-home .rental-card-photo { aspect-ratio:1.55; }
.market-home .finder.search-card { position:relative; z-index:6; width:100%; max-width:1050px; margin:0 auto; padding:17px; border:1px solid #eaded0; border-radius:28px; background:#fffaf4; box-shadow:0 18px 45px #3131310b; }
.search-types { display:flex; gap:7px; overflow:auto; padding:0 2px 13px; scrollbar-width:thin; }
.search-types button { display:flex; align-items:center; justify-content:center; gap:8px; flex:1; min-width:max-content; padding:12px 17px; border:0; border-radius:99px; color:var(--ink); background:transparent; font-size:14px; font-weight:650; }
.search-types button[aria-pressed=true] { background:var(--ink); color:white; box-shadow:0 5px 14px #31313115; }
.market-home .search-card #search-form { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.market-home .search-card .search-destination,.market-home .search-card .search-dates,.market-home .search-card .search-guests { display:flex; align-items:center; gap:14px; min-width:0; padding:17px 18px; border:1px solid var(--line); border-radius:18px; background:white; color:var(--ink); text-align:left; }
.market-home .search-card .search-destination > span,.search-dates > span,.search-guests > span { flex:1; min-width:0; }
.market-home .search-card .search-destination b,.search-dates b,.search-guests b { display:block; margin-bottom:5px; color:var(--ink); font-size:16px; font-weight:700; }
.market-home .search-card .search-destination input { padding:0; font-size:14px; line-height:1.6; color:var(--muted); }
.search-dates small { display:block; font-size:14px; color:var(--muted); line-height:1.6; }
.search-dates em { padding:7px 9px; border-radius:10px; background:var(--orange-soft); color:var(--orange-ink); font-size:11px; font-weight:700; white-space:nowrap; }
.search-dates:hover,.search-guests:hover,.search-destination:focus-within { border-color:var(--orange); box-shadow:0 0 0 3px #ff95000b; }
.search-bottom { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.market-home .search-card .duration-tabs { border:0; padding:4px; margin:0; border-radius:13px; background:#f3ece1; }
.market-home .search-card .duration { font-size:13px; padding:9px 18px; min-height:39px; border-radius:10px; }
.market-home .search-card .duration.active { color:var(--ink); background:white; box-shadow:0 2px 5px #3131310b; }
.market-home .search-card .search-submit { min-height:49px; min-width:245px; padding:13px 28px; border:0; border-radius:15px; background:linear-gradient(110deg,#ff9500,#ff9500); color:var(--on-orange); font-size:16px; font-weight:700; }
.market-home .search-card #search-form { grid-template-columns:minmax(0,1fr); }
.market-home .search-card .search-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:white; }
.market-home .search-card .search-destination,.market-home .search-card .search-details { min-height:84px; }
.market-home .search-card .search-details .search-dates,.market-home .search-card .search-details .search-guests { min-height:72px; border:0; border-radius:0; background:transparent; }
.market-home .search-card .search-details .search-dates { border-right:1px solid var(--line); }
.market-home .search-card .search-details:hover,.market-home .search-card .search-details:focus-within { border-color:var(--orange); box-shadow:0 0 0 3px #ff95000b; }
.market-home .search-card .search-submit { grid-column:1/-1; width:100%; }
#stay-picker { width:min(570px,calc(100% - 28px)); max-height:calc(100dvh - 34px); padding:0; border:1px solid var(--line); border-radius:25px; color:var(--ink); background:white; box-shadow:0 28px 100px #29292933; }
#stay-picker[open] { display:flex; flex-direction:column; }
#stay-picker::backdrop { background:#21212166; backdrop-filter:blur(5px); }
.stay-picker-head { display:flex; align-items:start; gap:15px; justify-content:space-between; padding:23px 24px 17px; border-bottom:1px solid var(--line); }
.stay-picker-head h2 { font-size:23px; letter-spacing:-.035em; }
.stay-picker-head p { margin-top:7px; font-size:13px; color:var(--muted); }
.stay-picker-head > button { display:grid; place-items:center; min-width:34px; height:34px; border:0; border-radius:50%; background:var(--sand); }
.stay-picker-scroll { overflow:auto; padding:17px 24px; overscroll-behavior:contain; }
.date-summary { display:flex; align-items:center; gap:18px; padding:13px 15px; border-radius:15px; background:var(--sand); }
.date-summary small,.date-summary b { display:block; }
.date-summary small { color:var(--muted); font-size:12px; margin-bottom:6px; }
.date-summary b { font-size:16px; }
.date-summary button { border:0; background:transparent; padding:0; text-align:left; }
.date-summary > span { flex:1; }
.date-summary .date-clear { margin-left:auto; color:var(--accent-ink); font-size:12px; font-weight:650; }
.date-month { display:flex; align-items:center; justify-content:space-between; margin:23px 0 15px; }
.date-month h3 { font-size:19px; letter-spacing:-.02em; }
.date-month button { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:50%; background:white; }
.date-grid,.date-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.date-weekdays { margin-bottom:7px; text-align:center; color:var(--muted); font-size:12px; }
.date-cell { height:45px; padding:0; border:0; border-radius:11px; background:white; font-size:14px; font-weight:600; }
.date-cell:not(:disabled):hover { background:var(--orange-soft); }
.date-cell.selected { color:white; background:var(--ink); }
.date-cell.between { color:var(--ink); background:#e9f1eb; border-radius:5px; }
.date-cell:disabled { color:#b2b2b2; opacity:.55; }
.date-count { text-align:center; font-size:12px; color:var(--muted); margin:15px 0; }
.stay-counters > div { display:flex; align-items:center; gap:13px; padding:17px 0; border-top:1px solid var(--line); }
.stay-counters > div > span { flex:1; }
.stay-counters b,.stay-counters small { display:block; }
.stay-counters b { font-size:15px; }
.stay-counters small { margin-top:5px; font-size:12px; color:var(--muted); }
.stay-counters button { width:35px; height:35px; border-radius:50%; border:1px solid var(--line); background:white; font-size:21px; }
.stay-counters output { min-width:19px; text-align:center; font-weight:650; font-size:15px; }
.stay-picker-footer { display:grid; grid-template-columns:.7fr 1.3fr; gap:12px; padding:16px 24px 20px; border-top:1px solid var(--line); background:white; }
.stay-picker-footer .btn { min-height:47px; border-radius:13px; font-size:14px; }
.picker-error { color:var(--error); font-size:13px; }
.modern-native { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip-path:inset(50%); }
.modern-select { position:relative; min-width:140px; color:var(--ink); font-weight:550; }
.modern-select > summary { display:flex; align-items:center; justify-content:space-between; gap:18px; list-style:none; min-height:44px; padding:11px 14px; border:1px solid var(--line); border-radius:12px; background:white; cursor:pointer; font-size:13px; }
.modern-select > summary::-webkit-details-marker { display:none; }
.modern-select > summary::after { content:''; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-4px; }
.modern-select[open] > summary { border-color:var(--orange); box-shadow:0 0 0 3px #ff950010; }
.modern-options { position:absolute; top:calc(100% + 6px); left:0; min-width:100%; width:max-content; max-width:280px; max-height:260px; overflow:auto; z-index:50; padding:5px; border:1px solid var(--line); border-radius:14px; background:white; box-shadow:0 12px 35px #29292920; }
.modern-options button { display:block; width:100%; padding:11px 13px; border:0; border-radius:9px; background:white; color:var(--ink); text-align:left; font-size:13px; }
.modern-options button:hover,.modern-options button[aria-pressed=true] { background:var(--orange-soft); }
@media(max-width:1050px){ .market-home .stay-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px){
 .market-home .stay-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
 .market-home .search-card #search-form { grid-template-columns:1fr; }
 .market-home .finder.search-card { padding:13px; border-radius:24px; }
 .search-types { gap:1px; }.search-types button { padding:11px 12px; font-size:12px; gap:5px; }
 .search-bottom { flex-direction:column; align-items:stretch; gap:10px; }
 .market-home .search-card .duration-tabs { display:flex; }.market-home .search-card .duration { flex:1; padding:8px; }
 .market-home .search-card .search-submit { width:100%; min-width:0; }
 .market-home .search-card .search-destination,.market-home .search-card .search-dates,.market-home .search-card .search-guests { padding:16px 13px; gap:10px; }
 .market-home .search-card .search-destination input { font-size:16px; }
 .search-dates small { font-size:12px; }.search-dates em { font-size:10px; padding:6px; }
 #stay-picker { width:100%; max-width:100%; max-height:93dvh; margin:auto 0 0; border-radius:25px 25px 0 0; }
 .stay-picker-head { padding:21px 20px 15px; }.stay-picker-scroll { padding:16px 20px; }
 .stay-picker-footer { padding-bottom:max(18px,env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce){ #stay-picker { animation:none; } }
.market-home { position:relative; isolation:isolate; }
.market-home .finder,.market-home #results,.market-home .story-hero-copy,.market-home .living-chapter-copy { position:relative; z-index:4; }
.living-scene > img { transform:perspective(1100px) translateY(var(--scene-drift,0px)) rotateY(-7deg) rotateZ(-2deg); }

body:has(#stay-picker[open]) { overflow:hidden; }
