/* ── UNIT PAGE ─────────────────────────────────────── */
.unit-page{ padding: calc(var(--nav-h) + 16px) var(--gutter) 96px; max-width: var(--page-max); margin: 0 auto; }
.unit-back{ display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 16px; transition: color .16s; }
.unit-back:hover{ color: var(--text); }
.unit-back .lucide{ transition: transform .18s var(--ease); }
.unit-back:hover .lucide{ transform: translateX(-2px); }
.unit-title-row{ display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 20px; }
.unit-title{ margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.15; }
.unit-location{ display: inline-flex; align-items: center; gap: 5px; font-size: 15.5px; font-weight: 500; color: var(--muted); }
.unit-loc-icon{ display: inline-flex; }

.unit-gallery{ position: relative; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: min(52vw, 480px); margin-bottom: 36px; }
.gallery-main, .gallery-grid .cell{ cursor: pointer; overflow: hidden; background: var(--cream-border); min-height: 0; }
.gallery-main img, .gallery-grid img{ width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s ease, filter .2s ease; }
.gallery-main img.loaded, .gallery-grid img.loaded{ opacity: 1; }
.gallery-main:hover img, .gallery-grid .cell:hover img{ filter: brightness(.9); }
.gallery-main:focus-visible, .gallery-grid .cell:focus-visible{ outline: 2px solid var(--text); outline-offset: -2px; }
.gallery-grid{ display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 100%; min-height: 0; }
.gallery-grid .cell--empty{ cursor: default; pointer-events: none; background: var(--tint); }
.gallery-view-all{ position: absolute; right: 16px; bottom: 16px; }

.unit-tagline{ padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tagline-title{ margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.tagline-specs{ font-size: 16px; color: var(--muted); }

.unit-main{ display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 80px; align-items: start; }
.unit-left{ min-width: 0; }
.unit-desc-row{ margin-bottom: 8px; }
.unit-description{ margin: 0; font-size: 16.5px; color: var(--text); line-height: 1.65; }
.dividers{ height: 1px; background: var(--line); margin: 36px 0; }
.section-title{ margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.amenities-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.amenity{ display: flex; gap: 12px; align-items: center; font-size: 16px; color: var(--text); }
.amenity .ic{ display: inline-flex; color: var(--muted); }

.unit-right{ position: sticky; top: calc(var(--nav-h) + 20px); }
.reserve-card{ background: #fff; border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(25,19,17,.06), 0 8px 28px rgba(25,19,17,.1); padding: 24px; }
.reserve-price{ display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.price-amount{ font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.price-suffix{ color: var(--muted); font-size: 16px; }
.reserve-box{ border: 1px solid #B9AEA3; border-radius: var(--r-sm); overflow: hidden; }
.reserve-dates{ display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #B9AEA3; }
.date-btn, .guest-btn{ background: transparent; border: 0; padding: 10px 14px; text-align: left; cursor: pointer; font-family: inherit; color: var(--text); transition: background-color .15s; }
.date-btn:hover, .guest-btn:hover{ background: var(--hover); }
.date-btn + .date-btn{ border-left: 1px solid #B9AEA3; }
.date-label, .guest-label{ font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.date-value, .guest-value{ font-size: 15px; color: var(--muted); }
.guest-btn{ width: 100%; display: flex; justify-content: space-between; align-items: center; }
.guest-left{ text-align: left; }
.guest-caret{ color: var(--text); }
.reserve-cta{ margin-top: 14px; }
.reserve-footer{ margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

.where-sub{ margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.map-box{ height: 440px; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.map-placeholder{ height: 100%; }
.things-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.thing{ display: flex; flex-direction: column; gap: 10px; }
.thing-icon{ display: inline-flex; color: var(--text); width: fit-content; }
.thing-title{ font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.thing-body{ font-size: 15px; color: var(--muted); line-height: 1.55; }
.error-message{ padding: 48px; text-align: center; color: var(--muted); font-size: 15px; grid-column: 1 / -1; }
.no-amenities{ color: var(--muted); }

/* ── LIGHTBOX ──────────────────────────────────────── */
.modal-backdrop.lightbox{ background: #120E0C; padding: 0; z-index: 25000; }
.lightbox__panel{ width: 100%; height: 100dvh; display: flex; flex-direction: column; color: #FAF7F2; }
.lightbox__bar{ display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; flex-shrink: 0; }
.lightbox__count{ font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(250,247,242,.82); }
.lightbox__btn{ width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: #FAF7F2; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background-color .16s, transform .18s var(--spring); }
.lightbox__btn:hover{ background: rgba(250,247,242,.12); }
.lightbox__btn:active{ transform: scale(.93); }
.lightbox__btn--spacer{ visibility: hidden; }
.lightbox__stage{ flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; }
.lightbox__nav{ border: 1px solid rgba(250,247,242,.28); }
.lightbox__img{ flex: 1; min-width: 0; height: 100%; object-fit: contain; display: block; transition: opacity .22s ease; }
.lightbox__img.is-loading{ opacity: .25; }
.lightbox__thumbs{ flex-shrink: 0; display: flex; gap: 8px; padding: 14px 18px 18px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.lightbox__thumbs::-webkit-scrollbar{ display: none; }
.lightbox__thumbs button{ flex: 0 0 auto; width: 68px; height: 50px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #2A211D; opacity: .5; transition: opacity .16s, box-shadow .16s; }
.lightbox__thumbs button:hover{ opacity: .85; }
.lightbox__thumbs button.is-active{ opacity: 1; box-shadow: 0 0 0 2px #120E0C, 0 0 0 4px #FAF7F2; }
.lightbox__thumbs img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox--single .lightbox__nav, .lightbox--single .lightbox__thumbs{ visibility: hidden; }
body.no-scroll{ overflow: hidden; }

@media (max-width: 1024px){
  .unit-main{ grid-template-columns: 1fr; gap: 36px; }
  .unit-right{ position: static; }
  .map-box{ height: 360px; }
}
@media (max-width: 700px){
  .unit-page{ padding-bottom: 64px; }
  .unit-gallery{ grid-template-columns: 1fr; height: auto; border-radius: var(--r-md); gap: 6px; }
  .gallery-main img{ aspect-ratio: 4 / 3; height: auto; }
  .gallery-grid{ grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; gap: 6px; height: auto; }
  .gallery-grid .cell{ aspect-ratio: 1 / 1; }
  .gallery-view-all{ bottom: calc(25% + 8px); right: 10px; }
  .amenities-grid{ grid-template-columns: 1fr; }
  .map-box{ height: 280px; }
  .lightbox__stage{ padding: 0; position: relative; }
  .lightbox__nav{ position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(18,14,12,.5); }
  .lightbox__nav:first-child{ left: 8px; }
  .lightbox__nav:last-child{ right: 8px; }
  .lightbox__nav:active{ transform: translateY(-50%) scale(.93); }
  .lightbox__img{ width: 100%; }
}
