/* ============================================================
   LISTING.CSS — Listing Detail Page Styles
   Page-specific styles for listing.html.
   ============================================================ */
/* ── Page transition ── */
body {
  opacity: 0;
}
body.page-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}
body.page-exiting {
  opacity: 0;
  transition: opacity 0.2s ease;
}




/* ── Loading state ── */
#loading-screen {
  position: fixed; inset: 0; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; transition: opacity 0.4s;
}
.loading-inner { text-align: center; }
.loading-logo {
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--clay); margin-bottom: 24px;
}
.loading-bar {
  width: 120px; height: 2px; background: var(--sand);
  border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.loading-bar-fill {
  height: 100%; width: 0; background: var(--clay);
  border-radius: 2px; animation: loadBar 1.2s ease forwards;
}


/* ── Nav extras ── */
.nav-center {
  font-size: 13px; color: var(--warm-grey); font-weight: 500;
}
.nav-share-btn {
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: none; border: 1px solid var(--sand); border-radius: 100px;
  padding: 8px 14px; cursor: pointer; transition: all 0.2s; font-family: var(--sans);
}
.nav-share-btn:hover {
  border-color: var(--warm-grey-light); background: white;
}


/* ── Airbnb-style photo grid ── */
.gallery-section {
  position: relative;
  background: var(--cream);
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0 0;
}

/* Desktop grid: 1 large left + 4 small right */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 52px;
  cursor: pointer;
  background: var(--sand);
}
.gallery-grid-main {
  position: relative;
  overflow: hidden;
}
.gallery-grid-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-grid-main:hover img { transform: scale(1.03); }

.gallery-grid-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
}
.gallery-grid-cell {
  position: relative;
  overflow: hidden;
}
.gallery-grid-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-grid-cell:hover img { transform: scale(1.05); }

.gallery-grid-last { position: relative; }
.gallery-show-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: white;
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
  z-index: 2;
}
.gallery-show-all:hover {
  background: var(--cream);
  transform: scale(1.03);
}

.gallery-placeholder {
  background: linear-gradient(135deg, #2a2520 0%, #1a1612 100%);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.gallery-placeholder-icon { font-size: 64px; opacity: 0.3; }

.gallery-badge {
  position: absolute; top: 20px; left: 20px;
  background: var(--clay); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  z-index: 2;
}

/* Mobile swipe gallery */
.gallery-swipe {
  display: none;
  position: relative;
  height: 300px;
  overflow: hidden;
}
.gallery-swipe-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
}
.gallery-swipe-track::-webkit-scrollbar { display: none; }
.gallery-swipe-slide {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
}
.gallery-swipe-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-swipe-counter {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(26,22,18,0.7); backdrop-filter: blur(8px);
  color: white; font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 100px; pointer-events: none;
}

.gallery-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(247,242,234,0.9); backdrop-filter: blur(8px);
  border: none; cursor: pointer; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; opacity: 0.8;
  box-shadow: 0 2px 12px rgba(26,22,18,0.15);
}
.gallery-nav-btn:hover { background: white; transform: translateY(-50%) scale(1.05); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }


/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,8,6,0.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 88vh; object-fit: contain;
  border-radius: 8px; animation: lbIn 0.25s ease;
  position: relative; z-index: 1;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.12); border: none; color: white;
  width: 40px; height: 40px; border-radius: 50%; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white;
  width: 52px; height: 52px; border-radius: 50%; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 13px;
}


/* ── Main layout ── */
.main-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 48px 80px;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 48px; align-items: start;
}


/* ── Listing header ── */
.listing-header { margin-bottom: 32px; }

.listing-breadcrumb {
  font-size: 12px; color: var(--warm-grey); margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.listing-breadcrumb a { color: var(--warm-grey); text-decoration: none; }
.listing-breadcrumb a:hover { color: var(--clay); }

.listing-title {
  font-family: var(--serif); font-size: 36px; font-weight: 700;
  line-height: 1.2; margin-bottom: 12px; color: var(--ink);
}
.listing-title em { font-style: italic; color: var(--clay); }

.listing-sub {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--warm-grey);
}
.listing-sub span { display: flex; align-items: center; gap: 5px; }
.listing-sub .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--warm-grey-light);
}

.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}
.tag-sublease { background: #FEF3C7; color: #92400E; }
.tag-live { background: #D1FAE5; color: #065F46; }
.tag-furnished { background: #EDE9FE; color: #5B21B6; }


/* ── Price strip ── */
.price-strip {
  background: white; border: 1px solid var(--sand); border-radius: var(--radius-xl);
  padding: 24px 28px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 0;
}
.price-item { flex: 1; text-align: center; position: relative; }
.price-item + .price-item::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60%; background: var(--sand);
}
.price-label {
  font-size: 11px; font-weight: 600; color: var(--warm-grey);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.price-value { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.price-value.highlight { color: var(--clay); }
.price-sub { font-size: 11px; color: var(--warm-grey); margin-top: 2px; }


/* ── Commute calculator ── */
.commute-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.commute-mode-btn {
  padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--sand);
  background: white; font-size: 13px; font-weight: 500; color: var(--warm-grey);
  cursor: pointer; transition: all 0.18s; font-family: var(--sans);
}
.commute-mode-btn:hover { border-color: var(--clay-light); color: var(--clay); }
.commute-mode-btn.active { background: var(--clay); border-color: var(--clay); color: white; }
.commute-rows { display: flex; flex-direction: column; gap: 0; }
.commute-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--sand);
}
.commute-row:last-child { border-bottom: none; }
.commute-dest-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.commute-dest-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--ink); }
.commute-time { font-size: 14px; font-weight: 600; color: var(--clay); min-width: 60px; text-align: right; }
.commute-time.loading { color: var(--warm-grey); font-weight: 400; }


/* ── Price fairness ── */
.fairness-wrap {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sand);
  display: flex; align-items: center; gap: 14px;
}
.fairness-label {
  font-size: 11px; font-weight: 600; color: var(--warm-grey);
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.fairness-bar-track {
  flex: 1; height: 6px; background: var(--sand); border-radius: 99px; position: relative;
}
.fairness-bar-fill { height: 100%; border-radius: 99px; transition: width 0.6s ease; }
.fairness-bar-marker {
  position: absolute; top: -3px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transform: translateX(-50%); transition: left 0.6s ease;
}
.fairness-badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap;
}
.fairness-badge.great { background: #DCFCE7; color: #166534; }
.fairness-badge.fair  { background: #FEF9C3; color: #854D0E; }
.fairness-badge.above { background: #FEE2E2; color: #991B1B; }


/* ── Section ── */
.section {
  background: white; border: 1px solid var(--sand); border-radius: var(--radius-xl);
  padding: 28px; margin-bottom: 20px;
}
.section .section-title {
  font-size: 20px; margin-bottom: 18px;
}

/* ── Description ── */
.description-text { font-size: 15px; line-height: 1.75; color: #3d352e; }
.description-text p + p { margin-top: 14px; }


/* ── Amenities grid ── */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amenity-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--cream); border: 1px solid var(--sand);
  font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color 0.2s;
}
.amenity-item.has { border-color: #A7F3D0; background: #F0FDF9; color: #065F46; }
.amenity-item:not(.has) { opacity: 0.4; }
.amenity-icon { font-size: 18px; flex-shrink: 0; }


/* ── Details table ── */
.details-table { width: 100%; }
.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--sand); font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--warm-grey); font-weight: 500; }
.detail-value { font-weight: 600; color: var(--ink); }


/* ── Map ── */
.map-wrap {
  border-radius: 14px; overflow: hidden; height: 280px;
  position: relative; background: var(--sand);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* Map fallback when iframe fails to load */
.map-fallback {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
  text-align: center; gap: 10px; padding: 24px;
}
.map-fallback.visible { display: flex; }
.map-fallback-icon { font-size: 36px; opacity: 0.6; }
.map-fallback-addr {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4;
  max-width: 260px;
}
.map-fallback-link {
  font-size: 13px; font-weight: 600; color: var(--clay);
  text-decoration: none; padding: 8px 18px; border: 1.5px solid var(--clay);
  border-radius: 100px; transition: all 0.2s; margin-top: 4px;
}
.map-fallback-link:hover { background: var(--clay); color: white; }
.map-address-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: white; border-radius: 10px; padding: 8px 12px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 6px;
}


/* ── Videos ── */
.videos-list { display: flex; flex-direction: column; gap: 12px; }
.video-embed { border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; }
.video-embed iframe { width: 100%; height: 100%; border: none; display: block; }


/* ── Landlord card ── */
.landlord-card {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  padding: 16px; background: var(--cream); border-radius: 14px; border: 1px solid var(--sand);
}
.landlord-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-light), var(--clay));
  color: white; font-family: var(--serif); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.landlord-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.landlord-role { font-size: 12px; color: var(--warm-grey); }
.landlord-since { font-size: 12px; color: var(--warm-grey); margin-top: 2px; }


/* ── Reviews ── */
.reviews-summary {
  display: flex; align-items: center; gap: 28px;
  padding: 20px 0 24px; border-bottom: 1px solid var(--sand); margin-bottom: 24px;
}
.reviews-score { text-align: center; }
.reviews-score-num {
  font-family: var(--serif); font-size: 52px; font-weight: 700; color: var(--ink); line-height: 1;
}
.reviews-score-stars { font-size: 18px; margin: 6px 0 4px; letter-spacing: 2px; }
.reviews-score-count { font-size: 12px; color: var(--warm-grey); }
.reviews-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.reviews-bar-row {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--warm-grey);
}
.reviews-bar-label { width: 14px; text-align: right; font-weight: 600; color: var(--ink); }
.reviews-bar-track {
  flex: 1; height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden;
}
.reviews-bar-fill {
  height: 100%; background: var(--clay); border-radius: 3px; transition: width 0.6s ease;
}
.reviews-bar-n { width: 20px; }

.review-card {
  padding: 20px 0; border-bottom: 1px solid var(--sand); animation: fadeUp 0.4s both;
}
.review-card:last-of-type { border-bottom: none; }
.review-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sand), var(--warm-grey-light));
  color: var(--ink); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.review-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-meta {
  font-size: 12px; color: var(--warm-grey);
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.review-verified {
  background: #D1FAE5; color: #065F46; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.review-stars { font-size: 14px; letter-spacing: 1px; flex-shrink: 0; }
.review-body { font-size: 14px; line-height: 1.7; color: #3d352e; }

.write-review-btn {
  width: 100%; padding: 14px; margin-top: 20px;
  background: none; border: 1.5px dashed var(--clay);
  border-radius: 14px; color: var(--clay); font-size: 14px; font-weight: 600;
  font-family: var(--sans); cursor: pointer; transition: all 0.2s;
}
.write-review-btn:hover { background: #FEF8F4; border-style: solid; }

.review-form-wrap {
  margin-top: 20px; padding: 24px; background: var(--cream);
  border: 1px solid var(--sand); border-radius: 16px; display: none;
}
.review-form-wrap.open { display: block; animation: fadeUp 0.3s both; }
.review-form-title {
  font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 18px;
}
.star-picker { display: flex; gap: 6px; margin-bottom: 16px; }
.star-btn {
  font-size: 28px; background: none; border: none; cursor: pointer; opacity: 0.25;
  transition: all 0.15s; padding: 0; line-height: 1;
}
.star-btn.active { opacity: 1; transform: scale(1.15); }
.star-picker-label {
  font-size: 12px; font-weight: 600; color: var(--warm-grey);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: block;
}
.review-submit-btn {
  width: 100%; padding: 14px; background: var(--clay); color: white;
  border: none; border-radius: 12px; font-size: 14px; font-weight: 600;
  font-family: var(--sans); cursor: pointer; transition: all 0.2s; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.review-submit-btn:hover { background: var(--clay-dark); }
.review-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.review-auth-note {
  text-align: center; padding: 20px; font-size: 13px; color: var(--warm-grey); line-height: 1.6;
}
.review-auth-note a { color: var(--clay); font-weight: 600; text-decoration: none; }
.reviews-empty {
  text-align: center; padding: 32px 20px;
  border: 2px dashed var(--sand); border-radius: 16px;
}
.reviews-empty-icon { font-size: 36px; margin-bottom: 12px; }
.reviews-empty-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.reviews-empty-sub { font-size: 13px; color: var(--warm-grey); line-height: 1.6; }


/* ================================================================
   PHASE 6 — Trust Badges, Multi-Category Reviews
   ================================================================ */

/* ── Branded Trust Badges ── */
.trust-badges-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.vonulo-badge {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border-radius: 14px;
  flex: 1; min-width: 200px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.vonulo-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.vonulo-badge-icon { font-size: 24px; flex-shrink: 0; line-height: 1; }
.vonulo-badge-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.vonulo-badge-sub { font-size: 11px; line-height: 1.5; opacity: 0.75; }

.vonulo-verified { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.vonulo-secure { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.vonulo-reviewed { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* ── Social proof row ── */
.trust-proof-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.trust-proof {
  font-size: 12px; font-weight: 500; color: var(--warm-grey);
  display: flex; align-items: center; gap: 6px;
}

/* ── Multi-Category Review Bars ── */
.reviews-categories { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.review-cat-bar { display: flex; align-items: center; gap: 10px; }
.review-cat-bar-label { width: 100px; font-size: 12px; font-weight: 500; color: var(--ink); flex-shrink: 0; }
.review-cat-bar-track { flex: 1; height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.review-cat-bar-fill { height: 100%; background: var(--clay); border-radius: 3px; transition: width 0.6s ease; }
.review-cat-bar-val { width: 28px; font-size: 12px; font-weight: 600; color: var(--clay); text-align: right; }

/* ── Review Sort Controls ── */
.reviews-sort { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.reviews-sort-btn {
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 6px;
  border: 1px solid var(--sand); background: white; cursor: pointer;
  font-family: var(--sans); color: var(--warm-grey); transition: all 0.2s;
}
.reviews-sort-btn:hover { border-color: var(--clay); color: var(--clay); }
.reviews-sort-btn.active { background: var(--clay); color: white; border-color: var(--clay); }

/* ── Review Category Chips (per review) ── */
.review-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.review-cat-chip {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
  background: var(--cream); color: var(--warm-grey);
}

/* ── Landlord Reply to Review ── */
.review-reply {
  margin-top: 12px; padding: 12px 16px; background: var(--cream);
  border-left: 3px solid var(--clay); border-radius: 0 10px 10px 0;
}
.review-reply-label { font-size: 11px; font-weight: 700; color: var(--clay); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.review-reply-body { font-size: 13px; line-height: 1.6; color: var(--ink); }
.review-reply-date { font-size: 11px; color: var(--warm-grey); margin-top: 6px; }

/* ── Category Star Picker (form) ── */
.review-category-sliders { display: flex; flex-direction: column; gap: 14px; }
.review-cat-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-cat-row label { width: 110px; font-size: 13px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.review-cat-stars { display: flex; gap: 4px; }
.cat-star {
  font-size: 24px; background: none; border: none; cursor: pointer; opacity: 0.2;
  transition: all 0.15s; padding: 0; line-height: 1; color: var(--clay);
}
.cat-star.active { opacity: 1; transform: scale(1.1); }
.cat-star:hover { opacity: 0.7; }
.review-cat-hint { font-size: 11px; color: var(--warm-grey); }

/* ── Responsive Phase 6 ── */
@media (max-width: 768px) {
  .trust-badges-row { flex-direction: column; }
  .vonulo-badge { min-width: 0; }
  .reviews-summary { flex-direction: column; gap: 20px; }
  .review-cat-bar-label { width: 80px; font-size: 11px; }
  .review-cat-row label { width: 90px; font-size: 12px; }
  .cat-star { font-size: 22px; }
}


/* ── Sticky sidebar ── */
.sidebar-col { position: sticky; top: 80px; }

/* Sidebar entrance — slides up + fades in on first view */
.sidebar-col.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar-col.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.cta-card {
  position: relative;
  background: white; border: 1px solid var(--sand); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.cta-price-header { padding: 24px 24px 20px; border-bottom: 1px solid var(--sand); }
.cta-price-main { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--clay); }
.cta-price-main span { font-size: 15px; font-weight: 400; color: var(--warm-grey); font-family: var(--sans); }
.cta-price-total { font-size: 13px; color: var(--warm-grey); margin-top: 4px; }
.cta-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.cta-badge {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: var(--cream); border: 1px solid var(--sand); color: var(--warm-grey);
}

/* CTA tabs */
.cta-tabs { display: flex; border-bottom: 1px solid var(--sand); }
.cta-tab {
  flex: 1; padding: 14px; text-align: center; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; background: none; font-family: var(--sans);
  color: var(--warm-grey); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.2s;
}
.cta-tab.active { color: var(--clay); border-bottom-color: var(--clay); background: #FEF8F4; }

.cta-panel { padding: 24px; display: none; }
.cta-panel.active { display: block; }

.cta-field { margin-bottom: 14px; }
.cta-label {
  font-size: 12px; font-weight: 600; color: var(--warm-grey);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block;
}
.cta-input {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: var(--sans);
  border: 1.5px solid var(--sand); border-radius: 12px; background: var(--cream);
  color: var(--ink); outline: none; transition: border-color 0.2s;
}
.cta-input:focus { border-color: var(--clay); background: white; }
.cta-input::placeholder { color: var(--warm-grey-light); }
.cta-textarea { min-height: 90px; resize: vertical; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cta-submit {
  width: 100%; padding: 15px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: var(--sans);
  background: var(--clay); color: white;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cta-submit:hover { background: var(--clay-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(196,98,45,0.3); }
.cta-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.cta-success { text-align: center; padding: 20px 0; display: none; }
.cta-success-icon { font-size: 40px; margin-bottom: 12px; }
.cta-success-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cta-success-sub { font-size: 13px; color: var(--warm-grey); line-height: 1.6; }
.cta-success-link { display: inline-block; margin-top: 14px; color: var(--clay); font-size: 13px; font-weight: 500; text-decoration: none; }

.cta-note { font-size: 12px; color: var(--warm-grey); text-align: center; margin-top: 14px; line-height: 1.5; }

/* Deposit flow */
.deposit-amount-box {
  background: var(--cream); border: 1.5px solid var(--sand); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 18px;
}
.deposit-amount-label { font-size: 11px; font-weight: 700; color: var(--warm-grey); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.deposit-amount-num { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1; }
.deposit-amount-sub { font-size: 12px; color: var(--warm-grey); margin-top: 4px; }
.deposit-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.deposit-step { display: flex; align-items: flex-start; gap: 12px; }
.deposit-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--clay); color: white;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.deposit-step-body { font-size: 13px; color: var(--ink); line-height: 1.5; }
.deposit-step-body strong { font-weight: 700; }
.deposit-ref-box {
  background: white; border: 1.5px solid var(--clay); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.deposit-ref-label { font-size: 11px; font-weight: 600; color: var(--warm-grey); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.deposit-ref-code { font-size: 18px; font-weight: 700; color: var(--clay); letter-spacing: .04em; font-family: monospace; }
.deposit-copy-btn {
  background: var(--cream); border: 1px solid var(--sand); border-radius: 8px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink);
  cursor: pointer; white-space: nowrap; transition: all 0.2s; font-family: var(--sans);
}
.deposit-copy-btn:hover { background: var(--sand); }
.deposit-bank-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--sand); font-size: 13px;
}
.deposit-bank-row:last-child { border-bottom: none; }
.deposit-bank-label { color: var(--warm-grey); }
.deposit-bank-value { font-weight: 600; color: var(--ink); }
.deposit-stripe-note {
  background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px;
  padding: 10px 14px; font-size: 12px; color: #166534; margin-top: 14px; line-height: 1.5;
}

.save-cta-btn {
  width: 100%; margin-top: 12px; padding: 13px;
  background: none; border: 1.5px solid var(--sand); border-radius: 14px;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  font-family: var(--sans); transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.save-cta-btn:hover { border-color: var(--clay); color: var(--clay); }
.save-cta-btn.saved { border-color: var(--clay); color: var(--clay); background: #FEF8F4; }

.report-link {
  display: block; text-align: center; font-size: 12px; color: var(--warm-grey);
  margin-top: 14px; text-decoration: none;
}
.report-link:hover { color: var(--ink); }


/* ── Similar listings ── */
.similar-section { max-width: 1200px; margin: 0 auto; padding: 0 48px 80px; }
.similar-title { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.similar-card {
  background: white; border: 1px solid var(--sand); border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: all 0.2s; text-decoration: none; color: inherit;
}
.similar-img { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--sand); }
.similar-body { padding: 14px 16px; }
.similar-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-addr { font-size: 12px; color: var(--warm-grey); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-price { font-size: 15px; font-weight: 700; color: var(--clay); }


/* ── Error state ── */
.error-screen {
  max-width: 500px; margin: 100px auto; text-align: center; padding: 48px 32px;
  background: white; border: 1px solid var(--sand); border-radius: var(--radius-xl);
  display: none;
}
.error-screen.show { display: block; }
.error-icon { font-size: 48px; margin-bottom: 20px; }
.error-title { font-family: var(--serif); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.error-sub { font-size: 14px; color: var(--warm-grey); line-height: 1.6; margin-bottom: 24px; }
.error-btn {
  display: inline-block; padding: 13px 28px; background: var(--clay); color: white;
  border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.error-btn:hover { background: var(--clay-dark); }


/* ── Animation delay helpers ── */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


/* ── Inline spinner override ── */
.section .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: white;
}


/* ================================================================
   RESPONSIVE — Listing page
   ================================================================ */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; padding: 32px 24px 60px; gap: 24px; }
  .sidebar-col { position: static; order: -1; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .similar-section { padding: 0 24px 60px; }
}

@media (max-width: 1024px) {
  .gallery-grid { margin: 0 24px; height: 400px; }
}

@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-back span { display: none; }
  .gallery-grid { display: none; }
  .gallery-swipe { display: block; }
  .gallery-section { background: var(--ink); }
  .listing-title { font-size: 24px; }
  .listing-sub { gap: 8px; font-size: 13px; }
  .price-strip { flex-wrap: wrap; gap: 0; }
  .price-item { min-width: 50%; padding: 14px 10px; }
  .price-item + .price-item::before { display: none; }
  .price-value { font-size: 18px; }
  .main-layout { padding: 24px 16px 60px; gap: 16px; }
  .section { padding: 20px 18px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .amenity-item { padding: 10px 10px; font-size: 13px; }
  .cta-card {
  position: relative; border-radius: 16px; }
  .cta-price-header { padding: 18px 18px 14px; }
  .cta-price-main { font-size: 22px; }
  .cta-panel { padding: 18px; }
  .cta-row { grid-template-columns: 1fr; gap: 10px; }
  .save-cta-btn { padding: 12px; }
  .map-wrap { height: 220px; }
  .similar-grid { grid-template-columns: 1fr; }
  .similar-section { padding: 0 16px 60px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox-nav.lightbox-prev { left: 8px; }
  .lightbox-nav.lightbox-next { right: 8px; }
  .lightbox-img { max-width: 96vw; max-height: 80vh; }
}

@media (max-width: 480px) {
  .gallery-swipe { height: 180px; }
  .listing-title { font-size: 20px; }
  .price-item { min-width: 50%; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .section .section-title { font-size: 17px; }
  .star-picker .star-btn { font-size: 24px; }
}

/* ── Tour slots ── */
.tour-slots { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tour-slot {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream); border: 1px solid var(--sand);
  border-radius: 10px; padding: 8px 12px;
}
.tour-slot-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--clay); color: white;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tour-slot .cta-input {
  border: none; background: transparent; padding: 4px 6px;
  font-size: 13px; flex: 1;
}
.tour-slot .tour-slot-date { max-width: 140px; }
.tour-slot .tour-slot-time { max-width: 110px; }
