:root {
  --amber: #B5600A;
  --amber-dark: #924b07;
  --ivory: #fff;
  --warm-white: #f7f6f3;
  --parchment: #eeece7;
  --espresso: #2C2416;
  --slate: #4A5568;
  --border: #E0D8CC;
  --midnight: #0D2E36;
  --green: #25613f;
  --green-soft: #dff2e4;
  --heading-font: 'Fraunces', Georgia, Times, serif;
  --body-font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); background: var(--warm-white); color: var(--espresso); min-height: 100vh; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: 68px; padding: 0 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(44,36,22,.06);
  transition: transform .24s ease;
}
body.nav-hidden nav { transform: translateY(-100%); }
.nav-logo { justify-self: start; display: flex; align-items: center; gap: 8px; font-family: var(--heading-font); font-size: 22px; font-weight: 600; color: var(--espresso); text-decoration: none; }
.nav-logo-img { height: 32px; width: auto; filter: brightness(0) saturate(100%); }
.nav-menu { display: contents; }
.nav-links { justify-self: center; display: flex; align-items: center; gap: 28px; }
.nav-message-icon{position:relative;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--slate);text-decoration:none}.nav-message-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.nav-message-icon:hover{background:#f4efe7;color:var(--amber)}.nav-unread-dot{position:absolute;top:3px;right:3px;width:7px;height:7px;border:2px solid #fff;border-radius:50%;background:#c5650b}
.nav-link { position: relative; font-size: 13px; color: var(--slate); text-decoration: none; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--amber); }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; border-radius: 2px; background: var(--amber); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav-mobile-actions { display: none; align-items: center; gap: 4px; }
.member-desktop-links { justify-self: center; display: flex; align-items: center; gap: 34px; }
.member-desktop-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.member-nav-link { position: relative; color: var(--slate); font-size: 13px; font-weight: 500; text-decoration: none; }
.member-nav-link.active { color: var(--amber); }
.member-nav-link.active::after { content: ''; position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; border-radius: 2px; background: var(--amber); }
.member-nav-link.pending { color: #716d66; cursor: default; }
.member-mobile-leading, .member-mobile-trailing { display: none; }
.member-account-button { width: 38px; height: 38px; padding: 0; overflow: hidden; place-items: center; border: 1px solid #ddd7ce; border-radius: 50%; background: #f1ede5; color: var(--espresso); cursor: pointer; }
.member-account-avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-account-button:hover, .member-account-button[aria-expanded="true"] { border-color: #a99e8f; box-shadow: 0 0 0 2px rgba(181,96,10,.12); }
.member-account-backdrop { position: fixed; z-index: 125; inset: 0; background: rgba(28,28,25,.48); backdrop-filter: blur(1px); }
.member-account-menu { position: fixed; z-index: 130; top: 0; right: 0; bottom: 0; width: min(440px,100vw); overflow-y: auto; background: #fff; box-shadow: -20px 0 55px rgba(44,36,22,.18); }
.member-account-cover { position: relative; height: 210px; overflow: hidden; background: linear-gradient(145deg,#dceadf,#eee7dc); }
.member-account-cover>img { width: 100%; height: 100%; object-fit: cover; }
.member-account-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(29,26,20,.12),rgba(29,26,20,.35)); }
.member-account-close { position: absolute; z-index: 2; top: 18px; left: 18px; display: grid; width: 42px; min-height: 42px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(44,36,22,.6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.member-account-view-actions { position: absolute; z-index: 2; right: 18px; bottom: 17px; display: flex; gap: 8px; }
.member-account-view-actions a { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--espresso); font-size: 13px; font-weight: 600; text-decoration: none; }
.member-account-view-actions svg,.member-account-row svg,.member-account-logout svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.member-account-content { padding: 25px 26px 44px; }
.member-account-identity { display: flex; align-items: center; gap: 16px; padding-bottom: 25px; border-bottom: 1px solid #eee9e2; }
.member-account-owner-avatar { width: 70px; height: 70px; flex: 0 0 70px; object-fit: cover; border: 3px solid #fff; border-radius: 50%; background: #e8f4ee; box-shadow: 0 4px 16px rgba(44,36,22,.13); }
.member-account-identity h2 { font-family: var(--body-font); font-size: 27px; font-weight: 600; line-height: 1.15; }
.member-account-identity p { margin-top: 8px; font-size: 13px; font-weight: 600; }
.member-account-stats { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; padding: 21px 0; border-bottom: 1px solid #eee9e2; }
.member-account-stats div { padding: 0 8px; }
.member-account-stats span { display: block; color: #777169; font-size: 13px; }
.member-account-stats strong { display: block; margin-top: 5px; font-size: 15px; }
.member-account-stats i { width: 1px; height: 42px; background: #eee9e2; }
.member-account-rows { padding: 12px 0; border-bottom: 1px solid #eee9e2; }
.member-account-row { width: 100%; min-height: 62px; padding: 0 4px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 0; background: transparent; color: var(--espresso); text-align: left; text-decoration: none; }
.member-account-row span { font-size: 16px; font-weight: 600; }
.member-account-row small { color: #9a948b; font-size: 10px; }
.member-account-row.pending { opacity: .66; }
.member-account-logout { min-height: 46px; margin-top: 26px; padding: 0 17px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid #e3ddd4; border-radius: 999px; background: #f7f5f1; color: var(--espresso); font-size: 14px; font-weight: 600; cursor: pointer; }
.member-account-logout:hover { border-color: #cfc5b8; background: #f0ece5; }
body.account-menu-open { overflow: hidden; }
.member-bottom-nav { display: none; }
body.member-mode footer { display: none; }
.nav-sign-in, .nav-sign-out { border: 0; background: transparent; color: var(--slate); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.nav-sign-in:hover, .nav-sign-out:hover { color: var(--amber); }
.btn-nav { display: inline-block; padding: 10px 22px; border-radius: 10px; background: var(--amber); color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; transition: transform .15s ease, background .2s ease; }
.btn-nav:hover { background: var(--amber-dark); transform: translateY(-1px); }
.nav-toggle { display: none; justify-self: end; padding: 8px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; border-radius: 2px; background: var(--espresso); transition: transform .25s ease, opacity .2s ease; }
nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { min-height: calc(100vh - 110px); padding-top: 68px; background: var(--warm-white); }
.explore-controls-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; width: 100%; max-width: 1500px; min-height: 45px; margin: 8px auto 0; padding: 0 48px; }
.search-region { grid-column: 2; grid-row: 1; transition: opacity .14s ease, visibility .14s ease; }
.search-sticky { position: sticky; top: 68px; z-index: 110; width: min(540px, calc(100% - 96px)); margin: 14px auto 0; padding: 6px 0; transition: top .24s ease, width .24s ease, padding .24s ease; }
body.nav-hidden .search-sticky { top: 0; }
.search-sticky.stuck { width: min(460px, calc(100% - 400px)); padding: 7px 0; }
.search-sticky::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--warm-white); opacity: 0; transition: opacity .2s ease; }
.search-sticky.stuck::before { opacity: 1; }
.search-sticky.stuck + .explore-controls-row .search-region { opacity: 0; visibility: hidden; pointer-events: none; }
.search-shell { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 1px minmax(0,1fr) 42px; align-items: center; min-height: 54px; padding: 0 7px 0 13px; border: 1px solid #dedbd5; border-radius: 32px; background: #fff; box-shadow: 0 8px 24px rgba(44,36,22,.08); }
.search-sticky.stuck .search-shell { min-height: 50px; box-shadow: 0 6px 18px rgba(44,36,22,.1); }
.search-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #efd7bf; border-radius: 50%; background: #fff7ef; color: var(--amber); cursor: pointer; }
.search-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-submit { grid-column: 4; grid-row: 1; justify-self: end; }
.search-submit:hover { border-color: #dfb78f; background: #fcebd9; }
.search-part { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 10px 15px; border: 0; border-radius: 18px; background: transparent; color: var(--espresso); cursor: pointer; text-align: left; }
.search-part#locationButton { grid-column: 1; grid-row: 1; }
.search-part#dateButton { grid-column: 3; grid-row: 1; }
.search-part:hover, .search-part[aria-expanded="true"] { background: #f6f4ef; }
.search-label { display: none; font-size: 12px; color: #8b877f; }
.search-value { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.search-divider { grid-column: 2; grid-row: 1; width: 1px; height: 30px; background: #e7e3dc; }
.location-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1120px; min-height: 45px; margin: 0 auto; }
.location-chip { display: inline-flex; min-width: 76px; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px 10px; border: 1px solid transparent; border-radius: 999px; background: #e9e7e2; color: #615d56; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.location-chip-icon { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; }
.location-chip-icon svg { width: 27px; height: 27px; overflow: visible; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.location-chip:hover { background: #dfddd7; }
.location-chip.active { border-color: #7e7970; background: transparent; color: var(--espresso); }

@media (min-width: 861px) {
  body, main, nav { background: #fff; }
  .search-sticky::before { background: #fff; }
  body.compact-explore-header nav { box-shadow: 0 1px 12px rgba(44,36,22,.08); }
  body.compact-explore-header .nav-links,
  body.compact-explore-header .member-desktop-links { opacity: 0; visibility: hidden; pointer-events: none; }
  body.compact-explore-header .search-sticky { top: 0; }
  body.compact-explore-header .search-sticky::before { opacity: 0; }
}

.member-view-bar { grid-column: 1; grid-row: 1; justify-self: start; }
.member-view-toggle { display: inline-flex; padding: 4px; border: 1px solid #ddd7ce; border-radius: 999px; background: #fff; box-shadow: 0 6px 20px rgba(44,36,22,.05); }
.member-view-toggle button { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: #777169; font-size: 13px; font-weight: 600; cursor: pointer; }
.member-view-toggle button.active { background: var(--espresso); color: #fff; }
.member-view-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.member-map-view { position: relative; margin-bottom: 30px; }
.member-explore-map { width: 100%; height: min(64vh, 650px); min-height: 460px; overflow: hidden; border: 1px solid #ddd7ce; border-radius: 18px; background: #e9e7e2; }
.member-map-note { position: absolute; z-index: 4; right: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 3px 12px rgba(44,36,22,.14); color: #625d55; font-size: 11px; }
.member-map-marker { width: 40px; height: 40px; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #fcebd8; box-shadow: 0 3px 12px rgba(44,36,22,.34); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.member-map-marker:hover, .member-map-marker[aria-expanded="true"] { transform: scale(1.14); box-shadow: 0 5px 17px rgba(44,36,22,.42); }
.member-map-marker img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 38%; }
.member-map-popup { max-width: 220px; color: var(--espresso); text-decoration: none; }
.member-map-popup img { display: block; width: 180px; height: 120px; margin-bottom: 8px; border-radius: 8px; object-fit: cover; }
.member-map-popup strong { display: block; font-family: var(--heading-font); font-size: 16px; line-height: 1.2; }
.member-map-popup small { display: block; margin-top: 4px; color: #6f6a63; }

.search-dialog { width: min(900px, calc(100vw - 40px)); height: min(780px, calc(100dvh - 40px)); max-height: none; margin: auto; overflow: hidden; border: 0; border-radius: 24px; background: #fff; color: var(--espresso); box-shadow: 0 30px 90px rgba(13,24,28,.3); }
.search-dialog::backdrop { background: rgba(24,27,26,.54); backdrop-filter: blur(2px); }
.search-dialog-layout { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: 100%; }
.search-dialog-header { display: grid; grid-template-columns: 52px minmax(0,1fr) 64px; align-items: center; min-height: 78px; margin: 0 36px; border-bottom: 1px solid #e7e3dc; }
.search-dialog-header h2 { font-family: var(--heading-font); font-size: 30px; line-height: 1; text-align: center; }
.search-dialog-close, .search-dialog-reset { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--espresso); cursor: pointer; }
.search-dialog-close { justify-self: start; font-size: 32px; font-weight: 300; line-height: 1; }
.search-dialog-reset { justify-self: end; color: var(--amber-dark); font-size: 14px; font-weight: 600; }
.search-dialog-content { overflow-y: auto; padding: 26px 36px 30px; }
.search-dialog-prompt { margin-bottom: 16px; color: #77736d; font-size: 14px; font-weight: 600; }
.destination-options { display: flex; flex-direction: column; }
.destination-option { display: grid; grid-template-columns: 72px minmax(0,1fr) 48px; align-items: center; gap: 18px; width: 100%; min-height: 98px; padding: 12px; border: 0; border-bottom: 1px solid #e7e3dc; background: transparent; color: var(--espresso); text-align: left; cursor: pointer; }
.destination-option:hover { background: #faf8f4; }
.destination-image { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.destination-label { font-size: 22px; font-weight: 600; }
.destination-choice { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dedbd5; border-radius: 50%; background: #f7f6f3; font-size: 25px; font-weight: 400; }
.destination-option.active .destination-choice { border-color: var(--green); background: var(--green); color: #fff; font-size: 18px; font-weight: 700; }
.search-dialog-footer { padding: 18px 36px 28px; border-top: 1px solid #e7e3dc; background: #fff; }
.search-dialog-submit { width: 100%; min-height: 58px; border: 0; border-radius: 999px; background: #111; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
.search-dialog-submit:hover { background: #292929; }
.date-dialog { width: min(760px, calc(100vw - 40px)); height: min(570px, calc(100dvh - 40px)); }
.month-options { display: flex; flex-wrap: wrap; gap: 12px; }
.month-option { min-height: 52px; padding: 0 24px; border: 1px solid #dedbd5; border-radius: 999px; background: #fff; color: var(--espresso); font-size: 16px; cursor: pointer; }
.month-option:hover { background: #f7f6f3; }
.month-option.active { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.month-empty { max-width: 460px; color: var(--slate); font-size: 15px; line-height: 1.65; }

.member-quick-dialog { position: fixed; inset: auto 0 24px; width: min(520px, calc(100vw - 24px)); max-width: none; margin: auto; overflow: visible; border: 0; border-radius: 20px; background: transparent; color: var(--espresso); }
.member-quick-dialog::backdrop { background: rgba(23,27,24,.46); backdrop-filter: blur(1px); }
.member-quick-sheet { position: relative; overflow: hidden; padding: 10px 0 4px; border-radius: 20px; background: var(--warm-white); box-shadow: 0 24px 70px rgba(13,24,28,.26); }
.member-quick-handle { display: block; width: 42px; height: 5px; margin: 0 auto 8px; border-radius: 99px; background: #d9d2c8; }
.member-quick-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 82px; padding: 14px 58px 14px 22px; border: 0; border-bottom: 1px solid #e6e0d6; background: transparent; color: var(--espresso); text-align: left; opacity: 1; }
.member-quick-row:last-of-type { border-bottom: 0; }
.member-quick-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.member-quick-row strong { font-size: 16px; }
.member-quick-row small { color: #6f6a63; font-size: 13px; }
.member-quick-row em { color: #9a9389; font-size: 10px; font-style: normal; font-weight: 600; text-transform: uppercase; }
.member-quick-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.member-quick-icon.travel { background: #dff2e9; color: var(--green); }
.member-quick-icon.host { background: #f6e8d7; color: var(--amber); }
.member-quick-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.member-quick-close { position: absolute; top: 17px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e9e4dc; color: var(--espresso); font-size: 24px; line-height: 1; cursor: pointer; }

.homes-section { max-width: 1500px; margin: 0 auto; padding: 24px 48px 80px; }
.homes-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 42px 24px; }
.homes-grid article { position: relative; min-width: 0; }
.home-card { display: block; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.card-save { position: absolute; z-index: 3; top: 13px; right: 13px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--espresso); box-shadow: 0 3px 12px rgba(44,36,22,.14); cursor: pointer; }
.card-save svg { width: 22px; height: 22px; fill: transparent; stroke: currentColor; stroke-width: 1.8; transition: fill .16s ease, transform .16s ease; }
.card-save:hover svg { transform: scale(1.06); }
.card-save.saved { color: var(--amber); }
.card-save.saved svg { fill: currentColor; }
.card-save.busy { cursor: wait; }
.card-photo-wrap { position: relative; aspect-ratio: 422 / 382; overflow: hidden; border-radius: 12px; background: #e7e3dc; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.home-card:hover .card-photo { transform: scale(1.025); }
.card-photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 24px; color: #837c72; text-align: center; font-size: 13px; }
.card-body { padding-top: 14px; }
.card-location { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--espresso); }
.card-title { font-family: var(--heading-font); font-size: clamp(20px, 1.55vw, 25px); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; }
.card-facts { margin-top: 9px; color: #77736d; font-size: 13px; line-height: 1.5; }
.availability-badge { display: inline-flex; align-items: center; margin-top: 13px; padding: 7px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 600; }
.comparison-card { display: flex; min-height: 100%; flex-direction: column; padding: 30px 26px 24px; border-radius: 12px; background: var(--parchment); }
.comparison-card h2 { max-width: 280px; font-family: var(--heading-font); font-size: clamp(23px, 1.8vw, 29px); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.comparison-prices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
.comparison-price { display: flex; min-height: 132px; flex-direction: column; justify-content: space-between; padding: 18px 15px; border-radius: 8px; background: #fff; }
.comparison-price-label { font-size: 13px; font-weight: 600; }
.comparison-price-value { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; font-size: clamp(19px, 1.45vw, 24px); font-weight: 600; letter-spacing: -.035em; }
.comparison-price-value span { flex: 0 0 auto; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.comparison-cta { align-self: flex-start; margin-top: auto; padding: 11px 18px; border-radius: 999px; background: var(--espresso); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .15s ease, background .2s ease; }
.comparison-cta:hover { background: #151008; transform: translateY(-1px); }

.page-state[hidden], .homes-grid:empty { display: none; }
.message-state { min-height: 360px; padding: 80px 20px; text-align: center; }
.message-state h1 { font-family: var(--heading-font); font-size: clamp(28px, 4vw, 42px); }
.message-state p { margin-top: 12px; color: var(--slate); line-height: 1.6; }
.state-button { margin-top: 24px; padding: 12px 20px; border: 0; border-radius: 10px; background: var(--espresso); color: #fff; font-weight: 600; cursor: pointer; }
.skeleton-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 42px 24px; }
.skeleton-card span { display: block; aspect-ratio: 422/382; border-radius: 12px; background: #e8e5df; }
.skeleton-card i { display: block; width: 34%; height: 12px; margin-top: 14px; border-radius: 8px; background: #e8e5df; }
.skeleton-card i:nth-child(3) { width: 77%; height: 22px; margin-top: 10px; }
.skeleton-card i:nth-child(4) { width: 52%; margin-top: 10px; }
.skeleton-card span, .skeleton-card i { animation: shimmer 1.3s ease-in-out infinite alternate; }
@keyframes shimmer { to { opacity: .48; } }

footer { background: var(--midnight); color: rgba(255,255,240,.72); }
.footer-inner { padding: 26px 48px 22px; }
.footer-bar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 28px; }
.footer-logo { justify-self: start; display: flex; align-items: center; gap: 8px; font-family: var(--heading-font); font-size: 22px; font-weight: 600; color: #fff; text-decoration: none; }
.footer-logo img { height: 32px; width: auto; }
.footer-links { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; list-style: none; }
.footer-links a { color: rgba(255,255,240,.72); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #D4A857; }
.footer-copy { justify-self: end; color: rgba(255,255,240,.44); font-size: 12px; }

@media (max-width: 1279px) {
  .homes-grid, .skeleton-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1020px) {
  .homes-grid, .skeleton-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-bar { grid-template-columns: auto 1fr; }
  .footer-copy { grid-column: 1/-1; justify-self: start; }
}

@media (max-width: 860px) {
  nav { height: 58px; padding: 0 16px; display: flex; justify-content: space-between; }
  nav.menu-open { z-index: 140; }
  .nav-logo { font-size: 18px; gap: 6px; }
  .nav-logo-img { height: 24px; }
  .nav-mobile-actions { display: flex; }
  .nav-toggle { display: flex; }
  .nav-menu { display: block; position: absolute; top: 58px; left: 0; right: 0; max-height: 0; overflow: hidden; opacity: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 8px 18px rgba(44,36,22,.1); transition: max-height .28s ease, opacity .2s ease; }
  nav.menu-open .nav-menu { max-height: 440px; opacity: 1; }
  .nav-menu .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0; }
  .nav-menu .nav-link { padding: 10px 22px; font-size: 14px; }
  .nav-link.active::after { display: none; }
  .nav-menu .nav-actions { display: flex; width: 100%; flex-direction: column; align-items: center; justify-self: stretch; gap: 10px; padding: 10px 22px 14px; border-top: 1px solid var(--border); text-align: center; }
  .nav-menu .nav-message-icon { display: none !important; }
  .nav-menu .nav-sign-in, .nav-menu .nav-sign-out { padding: 10px; }
  .nav-menu .btn-nav { display: block; text-align: center; }
  main { padding-top: 58px; }
  .explore-controls-row { display: block; min-height: 0; margin-top: 0; padding: 0; }
  .search-region { padding: 0 16px; }
  .search-sticky { top: 58px; width: calc(100% - 32px); margin-top: 16px; padding: 10px 0; }
  .search-sticky.stuck { width: calc(100% - 24px); padding: 7px 0; }
  .search-shell { min-height: 68px; grid-template-columns: 38px minmax(0,1fr) 1px minmax(0,1fr); padding: 0 10px; border-radius: 34px; }
  .search-submit { grid-column: 1; grid-row: 1; width: 38px; height: 38px; justify-self: stretch; border: 0; border-radius: 0; background: transparent; color: var(--amber); }
  .search-submit:hover { background: transparent; }
  .search-part#locationButton { grid-column: 2; }
  .search-part#dateButton { grid-column: 4; }
  .search-part { padding: 10px 12px; gap: 3px; }
  .search-label { display: inline; font-size: 10px; }
  .search-value { max-width: 110px; font-size: 13px; }
  .search-divider { grid-column: 3; height: 34px; }
  .location-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
  .location-chips::-webkit-scrollbar { display: none; }
  .location-chip { min-width: auto; gap: 7px; white-space: nowrap; padding: 9px 14px; }
  .location-chip-icon { display: grid; width: 22px; height: 22px; flex-basis: 22px; }
  .location-chip-icon svg { width: 22px; height: 22px; }
  .member-view-bar { margin-top: 10px; padding: 0 16px; }
  .member-view-toggle { width: 100%; }
  .member-view-toggle button { flex: 1; justify-content: center; }
  .member-explore-map { height: calc(100dvh - 270px); min-height: 430px; border-radius: 12px; }
  .homes-section { padding: 34px 16px 64px; }
  .footer-inner { padding: 26px 16px 22px; }
  .footer-bar { grid-template-columns: auto; gap: 18px; }
  .footer-logo { font-size: 18px; }
  .footer-logo img { height: 24px; }
  .footer-links { justify-self: stretch; justify-content: flex-start; gap: 8px; }
  .footer-links a { display: inline-flex; min-height: 32px; align-items: center; padding: 7px 10px; border: 1px solid rgba(255,255,240,.12); border-radius: 999px; font-size: 12px; }
  .footer-copy { grid-column: auto; }

  body.member-mode { padding-bottom: 72px; }
  body.member-mode.nav-hidden nav { transform: none; }
  body.member-mode nav { height: 60px; display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; padding: 0 16px; }
  body.member-mode .nav-logo { position: absolute; left: 50%; justify-self: auto; transform: translateX(-50%); font-size: 21px; }
  body.member-mode .nav-logo-img { display: none; }
  body.member-mode .nav-menu, body.member-mode .nav-mobile-actions { display: none !important; }
  body.member-mode .member-desktop-links, body.member-mode .member-desktop-actions { display: none !important; }
  body.member-mode .member-mobile-leading { display: grid; grid-column: 1; justify-self: start; }
  body.member-mode .member-mobile-trailing { display: grid; grid-column: 3; justify-self: end; }
  body.member-mode main { padding-top: 60px; }
  body.member-mode .search-sticky { top: 60px; }
  body.member-mode .member-bottom-nav { position: fixed; z-index: 120; top: auto; right: 0; bottom: 0; left: 0; height: auto; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: center; min-height: 72px; padding: 7px max(6px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); border-top: 1px solid #e3ddd4; background: #fff; box-shadow: 0 -5px 22px rgba(44,36,22,.08); transform: none; transition: none; }
  body.member-mode .homes-section { padding-bottom: 104px; }
  .member-tab { min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #938d84; text-decoration: none; opacity: 1; }
  .member-tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .member-tab span { font-size: 10px; font-weight: 600; white-space: nowrap; }
  .member-tab.active { color: var(--green); }
  .member-tab.pending { color: #9b958c; }
  .member-add-action { position: relative; align-self: center; justify-self: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--espresso); box-shadow: 0 5px 13px rgba(44,36,22,.22); cursor: pointer; }
  .member-add-action span::before, .member-add-action span::after { content: ''; position: absolute; top: 24px; left: 14px; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease; }
  .member-add-action span::after { transform: rotate(90deg); }
  .member-add-action[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .member-add-action[aria-expanded="true"] span::after { transform: rotate(135deg); }
  .member-account-menu { width: 100vw; }
  .member-account-cover { height: 190px; }
  .member-account-content { padding: 22px 22px calc(40px + env(safe-area-inset-bottom)); }
  .member-quick-dialog { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  .homes-grid, .skeleton-grid { grid-template-columns: 1fr; gap: 36px; }
  .card-photo-wrap { border-radius: 10px; }
  .comparison-card { min-height: 410px; padding: 26px 22px 22px; }
  .search-dialog, .date-dialog { width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 20px; }
  .search-dialog-header { min-height: 68px; margin: 0 18px; }
  .search-dialog-header h2 { font-size: 25px; }
  .search-dialog-content { padding: 20px 18px 24px; }
  .search-dialog-footer { padding: 14px 18px 20px; }
  .destination-option { grid-template-columns: 58px minmax(0,1fr) 44px; gap: 14px; min-height: 82px; padding: 10px 4px; }
  .destination-image { width: 58px; height: 58px; }
  .destination-label { font-size: 18px; }
  .destination-choice { width: 40px; height: 40px; }
  .month-options { gap: 9px; }
  .month-option { min-height: 48px; padding: 0 18px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
