/* Property listing page */

.small { font-size: 0.86rem; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.house-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.house-mark-badge { width: 32px; height: 32px; border-radius: var(--pill); display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 0.72rem; letter-spacing: 0.02em; }
.topnav { display: flex; gap: 22px; margin-left: auto; font-size: 0.94rem; }
.topnav a { text-decoration: none; color: var(--ink-2); }
.topnav a:hover { color: var(--ink); }
@media (max-width: 860px) { .topnav { display: none; } .topbar-in > .btn { margin-left: auto; } }

/* Welcome-back banner */
.welcome { background: var(--brand-navy); color: #e8eef2; border-bottom: 1px solid var(--line); }
.welcome-in { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.welcome-in > i { font-size: 1.4rem; color: #2cc4b8; }
.welcome-in p { flex: 1; font-size: 0.95rem; }
.welcome-close { background: none; border: 0; color: inherit; width: 36px; height: 36px; border-radius: var(--pill); cursor: pointer; }
.welcome-close:hover { background: rgb(255 255 255 / 0.1); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(16px, 3vw, 32px); align-items: end; }
.hero-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: settle 1.6s var(--ease) both; }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 80ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 160ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 240ms; }
  .hero-copy > *:nth-child(5) { animation-delay: 320ms; }
}
@keyframes settle { from { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 0; background: rgb(255 255 255 / 0.92); color: #17201d; font-weight: 550; cursor: pointer; }
.hero-copy { padding-bottom: 8px; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
.hero-where { display: flex; align-items: center; gap: 6px; color: var(--ink-2); margin-top: 14px; }
.hero-lede { font-size: 1.12rem; margin-top: 20px; max-width: 40ch; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 28px; margin: 28px 0 0; padding: 18px 0; border-block: 1px solid var(--line); }
.hero-facts dt { font-size: 0.78rem; color: var(--ink-3); }
.hero-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; }
.hero-price { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.hero-price strong { font-size: 1.6rem; font-weight: 500; }
.hero-from { color: var(--ink-3); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
  .hero-facts dd { font-size: 1.25rem; }
}

/* Filmstrip gallery */
.strip { margin-top: clamp(28px, 4vw, 48px); }
.strip-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scrollbar-width: thin; }
.strip-track button { flex: 0 0 auto; scroll-snap-align: start; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface-2); height: clamp(150px, 20vw, 240px); }
.strip-track button:nth-child(3n + 1) { aspect-ratio: 4 / 3; }
.strip-track button:nth-child(3n + 2) { aspect-ratio: 3 / 4; }
.strip-track button:nth-child(3n) { aspect-ratio: 16 / 10; }
.strip-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.strip-track button:hover img { transform: scale(1.04); }
@media (min-width: 1400px) { .strip-track { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.side { position: sticky; top: 84px; display: grid; gap: 14px; }
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: -1; }
}
.block { padding-bottom: clamp(48px, 7vw, 88px); scroll-margin-top: 84px; }
.block h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.block-title { font-size: 1.2rem; margin: 48px 0 18px; }
.lead-sm { margin-top: 8px; }

/* Host note */
.host { display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.host h2 { margin-bottom: 14px; }
.host p + p { margin-top: 12px; }
.host-avatar { width: 64px; height: 64px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; white-space: nowrap; }
.host-avatar span { font-weight: 500; opacity: 0.8; margin-inline: 1px; }
@media (max-width: 560px) { .host { grid-template-columns: 1fr; } }

/* Rooms */
.rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.rooms li { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rooms i { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.rooms span { font-size: 0.9rem; color: var(--ink-2); }

/* Amenities bento */
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amen-group { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.amen-group h4 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 12px; }
.amen-group h4 i { color: var(--accent); font-size: 1.25rem; }
.amen-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.95rem; }
.amen-photo { padding: 0; overflow: hidden; border: 0; min-height: 220px; grid-row: span 2; }
@media (max-width: 640px) { .amen-photo { grid-row: auto; } }
.amen-photo img { width: 100%; height: 100%; object-fit: cover; }
.amen-group:last-child { grid-column: 1 / -1; background: var(--surface-2); border-color: transparent; }
.amen-group:last-child ul { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
@media (max-width: 640px) { .amenities, .amen-group:last-child ul { grid-template-columns: 1fr; } }

/* Availability */
.avail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-2); }
.sync i { color: var(--ok); }
.sync.is-warn i { color: var(--accent); }
.sync details { display: inline; }
.sync summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.sync summary::-webkit-details-marker { display: none; }
.sync-list { position: absolute; z-index: 5; margin-top: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); display: grid; gap: 6px; min-width: 240px; }
.sync-list span { display: flex; justify-content: space-between; gap: 16px; }
.avail-card { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.avail-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: grid; gap: 2px; text-align: left; padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, transform 0.15s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.98); }
.chip strong { font-weight: 600; font-size: 0.95rem; }
.chip span { font-size: 0.84rem; color: var(--ink-2); }
.chip.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip-skel { width: 180px; height: 62px; background: var(--surface-2); border: 0; animation: pulse 1.4s ease-in-out infinite; }
.chips-empty { color: var(--ink-2); font-size: 0.95rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 12px; margin-top: 24px; }
.review { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review figcaption { display: grid; font-size: 0.9rem; }
.review-lg { grid-row: span 2; background: var(--accent-soft); border-color: transparent; }
.review-lg blockquote { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 550; line-height: 1.25; letter-spacing: -0.015em; }
@media (max-width: 700px) { .reviews { grid-template-columns: 1fr; } .review-lg { grid-row: auto; } }

/* Area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.area-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.area-t { color: var(--accent); font-weight: 500; padding-top: 2px; }
.area-list div { display: grid; }
.area-list span:not(.area-t) { color: var(--ink-2); font-size: 0.94rem; }
.map iframe { width: 100%; aspect-ratio: 1; border: 0; border-radius: var(--radius); background: var(--surface-2); filter: saturate(0.6); }
.map p { margin-top: 8px; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } .map iframe { aspect-ratio: 4 / 3; } }

/* Policies */
.policies { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 24px 0 0; }
.policies dt { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.policies dt i { color: var(--accent); font-size: 1.2rem; }
.policies dd { margin: 6px 0 0; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 640px) { .policies { grid-template-columns: 1fr; } }

/* Booking panel */
.panel { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
.panel-price strong { font-size: 1.5rem; font-weight: 500; }
.panel-price .stay-total { display: block; font-size: 0.9rem; color: var(--ink-2); }
.dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.date-btn { display: grid; text-align: left; gap: 2px; padding: 10px 14px; border: 0; background: none; cursor: pointer; }
.date-btn + .date-btn { border-left: 1px solid var(--line); }
.date-btn:hover, .date-btn[aria-expanded='true'] { background: var(--surface-2); }
.date-k { font-size: 0.74rem; font-weight: 600; color: var(--ink-2); }
.date-v { font-size: 0.98rem; }
.date-v.is-empty { color: var(--ink-3); }
.panel-cal { padding-top: 4px; }
.panel-cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.guests { display: grid; gap: 4px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.step-ctrl { display: flex; align-items: center; gap: 12px; }
.step-ctrl button { width: 34px; height: 34px; border-radius: var(--pill); border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.step-ctrl button:hover:not(:disabled) { border-color: var(--ink); }
.step-ctrl button:disabled { opacity: 0.35; cursor: default; }
.step-ctrl output { min-width: 1.5ch; text-align: center; font-family: var(--font-mono); }
.panel-msg { font-size: 0.88rem; color: var(--accent); min-height: 0; }
.panel-msg:empty { display: none; }
.panel-msg.is-info { color: var(--ink-2); }
.panel-note { font-size: 0.82rem; color: var(--ink-3); text-align: center; }
.quote { display: grid; gap: 8px; font-size: 0.93rem; padding-top: 14px; border-top: 1px solid var(--line); }
.q-row { display: flex; justify-content: space-between; gap: 12px; }
.q-row .mono { white-space: nowrap; }
.q-row.is-credit { color: var(--ok); }
.q-row.is-zero span:first-child { color: var(--ink-2); }
.q-row.is-zero .mono { text-decoration: line-through; color: var(--ink-3); }
.q-total { font-weight: 650; font-size: 1.02rem; padding-top: 10px; border-top: 1px solid var(--line); }
.direct-note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); font-size: 0.9rem; color: var(--ink-2); }
.direct-note i { font-size: 1.4rem; color: var(--accent); flex: none; }
.direct-note strong { color: var(--ink); }
.panel.is-flash { animation: flash 1s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 120px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (min-width: 961px) { .foot { padding-bottom: 40px; } }

/* Mobile bottom bar */
.mbar { position: fixed; inset: auto 0 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.35s var(--ease); }
.mbar.is-on { transform: none; }
.mbar-price strong { font-size: 1.1rem; }
@media (max-width: 960px) { .mbar { display: flex; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(4 16 27 / 0.96); color: #eef1ef; }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 56px 0; height: 100%; align-content: center; }
.lightbox img { max-height: calc(100dvh - 160px); width: auto; max-width: 100%; border-radius: var(--radius); }
.lightbox figcaption { font-size: 0.9rem; opacity: 0.8; text-align: center; max-width: 60ch; }
.lb-close, .lb-arrow { width: 44px; height: 44px; border-radius: var(--pill); border: 1px solid rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.06); color: inherit; cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; justify-self: center; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lightbox::backdrop { background: transparent; }
@media (max-width: 640px) { .lightbox[open] { grid-template-columns: 48px 1fr 48px; } }

/* Request dialog */
.request { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 28px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.request::backdrop { background: rgb(4 16 27 / 0.55); backdrop-filter: blur(3px); }
.request h2 { font-size: 1.7rem; margin-bottom: 6px; padding-right: 40px; }
.req-close-form { position: absolute; top: 14px; right: 14px; }
.req-close { width: 38px; height: 38px; border-radius: var(--pill); border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 22px 0 8px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .req-grid { grid-template-columns: 1fr; } }
.req-total { display: flex; justify-content: space-between; padding: 14px 0; margin-bottom: 14px; border-block: 1px solid var(--line); font-weight: 600; }
.req-step[data-step='done'] { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 12px 0; }
.done-icon { font-size: 2.6rem; color: var(--accent); }
.ref { padding: 6px 14px; border-radius: var(--pill); background: var(--surface-2); }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .request[open] { animation: pop 0.35s var(--ease); }
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.powered { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.powered:hover { color: var(--ink); }

/* VacaBookly logo in the property header */
.topbar-in { gap: 18px; }
.vb-logo { display: inline-flex; flex: none; }
.vb-logo img { height: 30px; width: auto; }
.topbar-divider { width: 1px; height: 28px; background: var(--line); flex: none; }
@media (max-width: 1100px) { .topnav { gap: 16px; font-size: 0.9rem; } }
@media (max-width: 560px) {
  .vb-logo img { height: 24px; }
  .house-mark span:not(.house-mark-badge) { display: none; }
}

/* Template states for data-driven property pages */
body.is-loading main { opacity: 0; }
main { transition: opacity 0.3s var(--ease); }
.crumbs { display: flex; align-items: center; gap: 10px; padding-top: 18px; font-size: 0.9rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs + .hero { padding-top: 14px; }
.missing { padding-top: 80px; display: grid; gap: 16px; justify-items: start; }
.amenities.is-even .amen-group:last-child { grid-column: auto; background: var(--surface); border-color: var(--line); }
.amenities.is-even .amen-group:last-child ul { grid-template-columns: 1fr; }
.reviews.is-single { grid-template-columns: 1fr; }
.reviews.is-single .review { background: var(--accent-soft); border-color: transparent; }
.reviews.is-single blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 550; line-height: 1.3; letter-spacing: -0.01em; }
.reviews.is-pair .review-lg { grid-row: auto; }
.foot-owner { font-weight: 650; text-decoration: none; }

/* More homes from the same owner */
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.more-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.more-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-2); }
.more-body { display: grid; gap: 2px; padding: 12px 14px 14px; font-size: 0.88rem; color: var(--ink-2); }
.more-body strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); font-weight: 650; }
@media (max-width: 700px) { .more-grid { grid-template-columns: 1fr; } }
