/* ============================================================
   StayJC — listing.css
   Styles for the individual property listing pages
   (properties/sunsuite.php, properties/colorburst.php, etc).
   ============================================================ */

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 88px 48px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb span { color: var(--tan); }

/* ---------- HERO GALLERY ---------- */
.gallery {
  padding: 20px 48px 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 290px 250px;
  gap: 4px;
  overflow: hidden;
  border-radius: 4px;
}
.gal-main {
  grid-row: 1 / 3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gal-main img, .gal-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.gal-main:hover img, .gal-sm:hover img { transform: scale(1.04); }
.gal-sm { overflow: hidden; cursor: pointer; position: relative; }
.gal-more {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  padding: 7px 15px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  border: 1px solid var(--tan);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18,16,14,.95);
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.lightbox.open { display: flex; }
.lb-inner { max-width: 1100px; width: 100%; position: relative; }
.lb-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}
.lb-close {
  position: absolute;
  top: -44px; right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 28px;
  cursor: pointer;
  font-family: var(--sans);
  padding: 4px 8px;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
.lb-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .1em;
}
.lb-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.lb-thumb {
  width: 64px; height: 44px;
  object-fit: cover;
  border-radius: 1px;
  opacity: .5;
  cursor: pointer;
  transition: opacity .2s;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.lb-thumb.active { opacity: 1; border-color: var(--accent); }

/* ---------- LISTING LAYOUT ---------- */
.listing-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding: 40px 48px 80px;
  align-items: start;
}
.divider { border: none; border-top: 1px solid var(--tan); margin: 28px 0; }

.listing-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
}
.listing-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.listing-actions { display: flex; gap: 10px; }
.action-btn {
  background: none;
  border: 1px solid var(--tan);
  padding: 8px 14px;
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
  font-family: var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
}
.action-btn:hover { border-color: var(--dark); color: var(--dark); }

.meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.meta-stars { color: var(--accent); letter-spacing: .06em; font-size: 12px; }
.meta-dot { color: var(--tan); }

.direct-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--al);
  border: 1px solid rgba(196,98,45,.2);
  padding: 10px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.vibe-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.vibe {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  font-size: 11px;
  padding: 5px 13px;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* ---------- HOST ROW ---------- */
.host-row { display: flex; align-items: center; gap: 16px; }
.host-av {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.host-name { font-size: 14px; font-weight: 500; color: var(--dark); }
.host-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.resp-badge {
  font-size: 10px;
  background: var(--sand);
  padding: 3px 8px;
  border-radius: 1px;
  color: var(--green);
  font-weight: 500;
  letter-spacing: .06em;
  margin-top: 4px;
  display: inline-block;
}

/* ---------- SPECS / FEATURES ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}
.spec {
  background: var(--sand);
  border-radius: 2px;
  padding: 16px;
  text-align: center;
}
.spec-icon { font-size: 22px; margin-bottom: 6px; }
.spec-val { font-size: 14px; font-weight: 500; color: var(--dark); }
.spec-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 12px;
}

.feature-block {
  background: var(--paper-deep);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  border: 1px solid var(--hairline);
}
/* Each direct child of .feature-block is its own mini-grid: icon in column 1
   (spanning the title + description rows), text content in column 2.
   This works for BOTH HTML patterns we have across listings:
     • Pattern A (archhaus, cafe-greenery, retro-revive):
         .fb-item > .fb-icon + <inner div containing .fb-title + .fb-desc>
     • Pattern B (sunsuite, serene-oasis, colorburst, etc.):
         <div> with .fb-icon + .fb-title + .fb-text as sibling children */
.feature-block > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: start;
}
.feature-block .fb-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  font-size: 24px;
  line-height: 1.1;
  width: 32px;
  height: auto;
  background: transparent;
  display: block;
}
.feature-block .fb-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.feature-block .fb-desc,
.feature-block .fb-text {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
/* Pattern A's inner wrapper div (sibling to .fb-icon, contains title + text)
   should occupy column 2 and let its children stack naturally inside. */
.feature-block .fb-item > div:not(.fb-icon) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* ---------- BEDROOMS — inline icon next to copy, not big box above ---------- */
.bed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.bed {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 0.15s, transform 0.15s;
}
.bed:hover { border-color: var(--ink-soft); }
.bed-img {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  width: 36px;
  height: 36px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.bed-label {
  flex: 1;
  padding: 0;
  background: transparent;
  border-top: none;
}
.bed-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.bed-detail {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--smoke);
  line-height: 1.5;
}

/* ---------- AMENITIES ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--dark);
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 2px;
}
.am-icon { font-size: 16px; }

/* ---------- LOCATION + MAP ----------
   Across listings, the map can be wrapped in any of these classes:
   .map-container, .map-section, .location-map, or .location-box.
   The unified rule below makes all four variants size correctly. */

.location-box {
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  margin-top: 16px;
  color: var(--smoke);
  font-size: 13px;
  position: relative;
  /* No fixed height — let it wrap content. The old 400px fixed height
     combined with overflow:hidden was clipping the iframe on phones. */
}

.map-container,
.location-map,
.map-section {
  margin-top: 20px;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-deep);
}

/* .map-container has a known height; .map-section / .location-map size to iframe content */
.map-container { height: 420px; }

/* Every iframe used as a map: fill the parent, never let it overflow horizontally */
.map-container iframe,
.map-section iframe,
.location-map iframe,
.location-box iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* Archhaus + a few others wrap the iframe in an inline-styled <div> inside
   .location-box. Force that inner wrapper to behave too. */
.location-box > div {
  max-width: 100% !important;
}
.location-box > div:has(iframe) {
  width: 100% !important;
  height: 320px;
  margin-bottom: 16px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  background: var(--white);
  border: 1px solid var(--tan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   AIRBNB-STYLE RATINGS + REVIEWS
   ============================================================ */

/* Header: big score + "Outstanding · N reviews" */
.reviews-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 8px 0 24px;
}
.reviews-score {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 1;
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.reviews-label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--smoke);
}

/* ---------- Rating breakdown: 5-bar overall + category cards with dividers ---------- */
.rating-summary {
  display: grid;
  grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 32px 0 40px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* "Overall rating" cell with the 5/4/3/2/1 bar chart */
.rating-overall {
  padding: 24px 28px 24px 0;
  border-right: 1px solid var(--hairline);
}
.rating-overall-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.ro-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ro-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ro-bar-level {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  width: 10px;
  text-align: right;
  flex-shrink: 0;
}
.ro-bar-track {
  flex: 1;
  height: 4px;
  background: var(--paper-deep);
  border-radius: 999px;
  overflow: hidden;
}
.ro-bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

/* Per-category cells: name on top, big number, icon below */
.rating-cat {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.rating-cat:last-child { border-right: none; }
.rating-cat-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.rating-cat-score {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1;
}
.rating-cat-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  margin-top: auto;
}

/* ---------- INDIVIDUAL REVIEW CARDS (Airbnb-style 2-column) ---------- */
.reviews-grid,
.review-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-top: 8px;
}
.review-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.rc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rc-avatar, .rc-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  background: var(--brick);
}
.rc-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.2;
}
.rc-date,
.rc-loc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--smoke);
  line-height: 1.4;
}
.rc-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rc-meta .meta-dot { color: var(--hairline); }
.rc-stars {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: 0.04em;
  font-size: 12px;
}
.rc-text {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.rc-showmore {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
  display: inline-block;
  cursor: pointer;
}

/* "Show all N reviews" button at the bottom — Airbnb's gray pill */
.reviews-show-all,
.show-more-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 26px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.reviews-show-all:hover,
.show-more-btn:hover { background: var(--ink); color: var(--paper); }

/* Hide the legacy thin progress-bar treatment — replaced by .rating-summary */
.review-bars { display: none; }

/* ---------- BOOKING WIDGET (right sidebar) ---------- */
.booking-widget {
  position: sticky;
  top: 90px;
  /* Warm off-white instead of pure #FFFFFF — pure white is jarring against the
     cream paper page; this stays distinct but doesn't pop. */
  background: #FBF7EE;
  /* Hairline edge + ambient shadow on all sides (the old shadow was bottom-cast
     only, which made the left edge look weightless). */
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(60, 54, 49, 0.04),
    0 4px 20px rgba(26, 23, 20, 0.07),
    0 16px 40px -16px rgba(26, 23, 20, 0.10);
}

/* Center Hospitable's iframe content within the widget so the calendar
   doesn't lean left. Constrained to align with the .bw-header's inner edge
   (header padding is 24px). */
#booking-iframe {
  display: block;
  width: calc(100% - 24px);
  max-width: 340px;
  margin: 0 auto;
  border: 0;
  background: transparent;
}
.bw-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.bw-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bw-amount {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--dark);
}
.bw-per { font-size: 13px; color: var(--muted); }
.bw-airbnb { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.bw-stars { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.bw-stars span { color: var(--accent); letter-spacing: .06em; }

.bw-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--tan);
  border-radius: 2px;
  margin: 20px 28px 0;
  overflow: hidden;
}
.bw-date { padding: 12px 16px; cursor: pointer; transition: background .2s; }
.bw-date:first-child { border-right: 1px solid var(--tan); }
.bw-date:hover { background: var(--sand); }
.bw-date-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.bw-date-val { font-size: 14px; color: var(--muted); }

.bw-guests {
  border: 1px solid var(--tan);
  border-radius: 2px;
  margin: 8px 28px 0;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.bw-guests:hover { background: var(--sand); }
.bw-guests-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.bw-guests-val { font-size: 14px; color: var(--dark); }

.bw-cta {
  display: block;
  margin: 16px 28px;
  background: var(--dark);
  color: #fff;
  border: none;
  width: calc(100% - 56px);
  padding: 16px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s;
  text-align: center;
  text-decoration: none;
}
.bw-cta:hover { background: var(--accent); }
.bw-note { text-align: center; font-size: 11px; color: var(--muted); margin: 0 28px 6px; }

.bw-breakdown { padding: 14px 28px 22px; border-top: 1px solid var(--tan); margin-top: 14px; }
.bw-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 5px 0; }
.bw-line.total { font-weight: 500; color: var(--dark); border-top: 1px solid var(--tan); padding-top: 12px; margin-top: 6px; }
.bw-line.save { color: var(--green); font-weight: 500; }

.hospitable-note {
  margin: 12px 28px 20px;
  padding: 12px 16px;
  background: var(--sand);
  border-radius: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid var(--accent);
}

.side-box {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 3px;
  padding: 18px 22px;
  margin-top: 14px;
}

.sim-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--tan);
  text-decoration: none;
  color: inherit;
}
.sim-row:last-child { border-bottom: none; }
.sim-thumb {
  width: 64px; height: 64px;
  background: var(--sand);
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
}
.sim-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sim-body { flex: 1; min-width: 0; }
.sim-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 3px;
}
.sim-loc { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.sim-meta { display: flex; justify-content: space-between; align-items: center; }
.sim-price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--dark);
}
.sim-price span { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.sim-stars { font-size: 10px; color: var(--accent); }

/* ---------- PROPERTIES INDEX (all listings) ---------- */
.listings-page {
  padding: 120px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.listings-page .page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.1;
}
.listings-page .page-sub {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 600px;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .listings-page { padding: 100px 20px 60px; }
  .listings-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AIRBNB-STYLE STICKY MOBILE BOOKING BAR
   Hidden on desktop. On phones, pins price + "Reserve" to bottom.
   ============================================================ */
.mobile-book-bar {
  display: none;
}

@media (max-width: 980px) {
  .mobile-book-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 14px 20px;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--hairline);
    z-index: 90;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .mb-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex: 1;
    min-width: 0;
  }
  .mb-price-amount {
    font-family: var(--serif);
    font-variation-settings: 'opsz' 36, 'SOFT' 50, 'WONK' 1;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
  }
  .mb-price-per {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--smoke);
    white-space: nowrap;
  }
  .mb-reserve {
    background: var(--brick);
    color: var(--paper);
    padding: 13px 24px;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
  }
  .mb-reserve:active { transform: scale(0.97); }
  .mb-reserve:hover { background: var(--brick-dark); }

  /* Leave room for the bar so the page footer + contact CTA aren't covered */
  body { padding-bottom: 72px; }
}

/* Smooth scroll when tapping Reserve so the booking widget glides into view */
html { scroll-behavior: smooth; }
/* ========== LIGHTBOX IMPROVEMENTS ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lb-inner {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 100%;
    max-height: calc(100% - 120px);
    object-fit: contain;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

.lb-close:hover {
    background: white;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
}

.lb-nav:hover {
    background: white;
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

.lb-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
}

.lb-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px;
}

.lb-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.lb-thumb:hover {
    opacity: 0.8;
}

.lb-thumb.active {
    opacity: 1;
    border-color: white;
}

/* ========== GALLERY "SHOW ALL PHOTOS" BUTTON ========== */
.gal-more {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gal-more:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.gallery img {
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery img:hover {
    opacity: 0.9;
}

/* ========== MAP WIDTH FIX ========== */
.listing-map {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.listing-map iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* ========== REVIEWS SECTION ========== */
.show-all-reviews {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.show-all-reviews:hover {
    background: var(--paper);
    border-color: var(--ink);
}

/* ========== RATINGS DISPLAY (Consistent formatting) ========== */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-size: 14px;
}

.rating-label {
    color: var(--ink);
}

.rating-bar-wrapper {
    flex: 1;
    margin: 0 12px;
    height: 4px;
    background: var(--hairline);
    border-radius: 2px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background: var(--ink);
    border-radius: 2px;
}

.rating-value {
    font-weight: 600;
    color: var(--ink);
    min-width: 30px;
    text-align: right;
}

/* ========== ACTION BUTTONS (Share/Save) ========== */
.action-btn {
    background: white;
    border: 1px solid var(--hairline);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--paper);
    border-color: var(--ink);
}

/* ========== BOOKING WIDGET POSITIONING ========== */
.listing-wrap {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 36px;
}

.listing-left {
    min-width: 0;
}

.booking-widget {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 1024px) {
    .listing-wrap {
        grid-template-columns: 1fr;
    }
    
    .booking-widget {
        position: static;
        margin-top: 40px;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .lb-inner {
        width: 95%;
        height: 95%;
    }
    
    .lb-nav {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .lb-prev {
        left: 10px;
    }
    
    .lb-next {
        right: 10px;
    }
    
    .lb-thumbs {
        max-width: 95%;
    }
    
    .lb-thumb {
        width: 50px;
        height: 50px;
    }
    
    .ratings-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   LISTING CSS FIXES - Add to existing listing.css
   Fixes for photo gallery, lightbox, map width, reviews
   ============================================================ */

/* ========== LIGHTBOX IMPROVEMENTS ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lb-inner {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 100%;
    max-height: calc(100% - 120px);
    object-fit: contain;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

.lb-close:hover {
    background: white;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
}

.lb-nav:hover {
    background: white;
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

.lb-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
}

.lb-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px;
}

.lb-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.lb-thumb:hover {
    opacity: 0.8;
}

.lb-thumb.active {
    opacity: 1;
    border-color: white;
}

/* ========== GALLERY "SHOW ALL PHOTOS" BUTTON ========== */
.gal-more {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gal-more:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translateY(-1px);
}

.gallery img {
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery img:hover {
    opacity: 0.9;
}

/* ========== MAP WIDTH FIX ========== */
.listing-map {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.listing-map iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* ========== REVIEWS SECTION ========== */
.show-all-reviews {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.show-all-reviews:hover {
    background: var(--paper);
    border-color: var(--ink);
}

/* ========== RATINGS DISPLAY (Consistent formatting) ========== */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-size: 14px;
}

.rating-label {
    color: var(--ink);
}

.rating-bar-wrapper {
    flex: 1;
    margin: 0 12px;
    height: 4px;
    background: var(--hairline);
    border-radius: 2px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background: var(--ink);
    border-radius: 2px;
}

.rating-value {
    font-weight: 600;
    color: var(--ink);
    min-width: 30px;
    text-align: right;
}

/* ========== ACTION BUTTONS (Share/Save) ========== */
.action-btn {
    background: white;
    border: 1px solid var(--hairline);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--paper);
    border-color: var(--ink);
}

/* ========== BOOKING WIDGET POSITIONING ========== */
.listing-wrap {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 36px;
}

.listing-left {
    min-width: 0;
}

.booking-widget {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 1024px) {
    .listing-wrap {
        grid-template-columns: 1fr;
    }
    
    .booking-widget {
        position: static;
        margin-top: 40px;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .lb-inner {
        width: 95%;
        height: 95%;
    }
    
    .lb-nav {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .lb-prev {
        left: 10px;
    }
    
    .lb-next {
        right: 10px;
    }
    
    .lb-thumbs {
        max-width: 95%;
    }
    
    .lb-thumb {
        width: 50px;
        height: 50px;
    }
    
    .ratings-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== OTHER PROPERTIES GRID ========== */
.other-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .other-properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .other-properties-grid {
        grid-template-columns: 1fr;
    }
}
