/* ============================================================
   Casa Collective Co. — Shared Styles
   Brand: charcoal, gold, warm cream — curated & professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --gold:        #B8943F;
  --gold-dark:   #9A7A32;
  --gold-light:  #D4AF70;
  --gold-pale:   #F5EDE6;
  --cream:       #F7F3EE;
  --cream-dark:  #EDE7DE;
  --charcoal:    #2A2A2A;
  --text:        #2A2A2A;
  --text-muted:  #6B6B6B;
  --white:       #FFFFFF;
  --radius:      10px;
  --shadow:      0 4px 20px rgba(42,42,42,0.10);
  --transition:  0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-muted); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo svg { width: 40px; height: 40px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text);
  font-weight: 400;
  text-transform: uppercase;
}
.logo-co {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-line { height: 0.5px; background: var(--gold); width: 14px; flex-shrink: 0; }

/* ---------- Nav Links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-dark); background: var(--gold-pale); }
.nav-cta {
  background: var(--charcoal);
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn-outline:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-dark); }
.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: var(--cream); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  background: url('images/IMG_6999.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,16,10,0.52) 0%, rgba(20,16,10,0.42) 60%, rgba(20,16,10,0.62) 100%);
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 20px 24px;
}
.trust-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-bar span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.trust-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust-logos img { height: 22px; width: auto; object-fit: contain; filter: grayscale(1) opacity(0.6); transition: filter var(--transition); }
.trust-logos img:hover { filter: grayscale(0) opacity(1); }

/* ---------- Section ---------- */
.section { padding: 80px 24px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; max-width: 540px; margin-bottom: 48px; }
.section-bg { background: var(--cream); }
.section-sage { background: var(--gold-pale); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(42,42,42,0.14); }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-dark);
}
.card h3 { margin-bottom: 10px; color: var(--text); }

/* ---------- Stats ---------- */
.stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.stat-item {}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-img {
  border-radius: 16px;
  overflow: hidden;
  background: var(--gold-pale);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-img-placeholder {
  color: var(--gold-dark);
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}

/* ---------- Booking Widget ---------- */
.widget-section { background: var(--cream); padding: 80px 24px; }
.widget-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.widget-inner h2 { margin-bottom: 12px; }
.widget-inner > p { margin-bottom: 40px; }
.widget-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  min-height: 400px;
}

/* ---------- Landlord CTA ---------- */
.landlord-cta {
  background: linear-gradient(135deg, var(--charcoal), #3D3530);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.landlord-cta h2 { color: var(--white); margin-bottom: 14px; }
.landlord-cta p { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Contact Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-co { color: var(--gold-light); }
.footer-brand .logo-line { background: var(--gold-light); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #3D3530 100%);
  padding: 72px 24px 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--cream-dark); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .stats-row { gap: 24px; }
  .hero { padding: 72px 20px 60px; }
  .section { padding: 56px 20px; }
}

/* ---------- Property Listing Pages ---------- */
.prop-chip {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.prop-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 32px;
}
.prop-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1;
}
.prop-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.amenities-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.amenities-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.amenity-icon {
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .amenities-list { grid-template-columns: 1fr; }
}

/* ── Airbnb-style Photo Grid ──────────────────────────────── */
#propertyGallery { display: none; }   /* hidden until JS loads photos */

/* Outer grid: left large + right 2×2 */
.ag-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4px;
  height: 580px;
  position: relative;
  overflow: hidden;
  background: #eee;
}
.ag-solo { grid-template-columns: 1fr; }

.ag-main {
  overflow: hidden;
  cursor: zoom-in;
}
.ag-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 0.2s;
  display: block;
}
.ag-main:hover img { filter: brightness(0.93); }

/* Right 2×2 grid */
.ag-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.ag-cell {
  overflow: hidden;
  cursor: zoom-in;
}
.ag-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
  display: block;
}
.ag-cell:hover img { filter: brightness(0.9); }

/* "Show all X photos" button */
.ag-all-btn {
  position: absolute;
  bottom: 16px; right: 16px;
  background: #fff;
  border: 1.5px solid #222;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 4;
  transition: background 0.15s;
  color: #222;
}
.ag-all-btn:hover { background: #f5f5f5; }

/* Mobile: only show main photo */
@media (max-width: 640px) {
  .ag-grid { grid-template-columns: 1fr; height: 300px; }
  .ag-side { display: none; }
  .ag-all-btn { bottom: 10px; right: 10px; padding: 6px 12px; font-size: 0.75rem; }
}

/* ── Show more / description collapse ── */
.prop-desc {
  font-size: 1.05rem;
  margin-bottom: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  max-height: calc(1.6em * 4);
}
.prop-desc.expanded {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.show-more-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 8px 0 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
}
.show-more-btn:hover { color: var(--gold-dark); }

/* ── Photo Tour overlay ── */
#gPhotoTour {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9000;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#gPhotoTour.active { display: block; }
.g-pt-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 24px;
  z-index: 10;
}
.g-pt-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--charcoal);
  padding: 4px 0;
}
.g-pt-close:hover { color: var(--gold-dark); }
.g-pt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
}
.g-pt-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #eee;
}
.g-pt-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.g-pt-item:hover img { transform: scale(1.03); }
@media (max-width: 600px) {
  .g-pt-grid { grid-template-columns: 1fr; }
}

/* ── Property rating + detail row ── */
.prop-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text);
}
.prop-stars {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}
.prop-rating-sep {
  color: var(--text-muted);
}
.prop-review-count {
  color: var(--text-muted);
  text-decoration: underline;
  cursor: default;
}
.prop-type-row {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 400;
}

/* ── Property detail layout (description left, calendar right) ── */
.prop-detail-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
}
.prop-detail-left { }
.prop-detail-right {
  position: sticky;
  top: 90px;
}
.booking-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.booking-card h3 { margin-bottom: 4px; }
.booking-card > p { font-size: 0.88rem; margin-bottom: 16px; }

@media (max-width: 900px) {
  .prop-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .prop-detail-right { position: static; }
}

/* ── Lightbox ─────────────────────────────────────────────── */
#gLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
#gLightbox.active { display: flex; align-items: center; justify-content: center; }

.g-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.94);
  cursor: pointer;
}
.g-lb-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.25s;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  display: block;
}
.g-lb-close {
  position: fixed;
  top: 16px; right: 20px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.g-lb-close:hover { background: rgba(255,255,255,0.25); }
.g-lb-prev, .g-lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 54px; height: 54px;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.g-lb-prev:hover, .g-lb-next:hover { background: rgba(255,255,255,0.25); }
.g-lb-prev { left: 16px; }
.g-lb-next { right: 16px; }
.g-lb-counter {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  z-index: 10;
  background: rgba(0,0,0,0.45);
  padding: 4px 16px;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .g-lb-prev { left: 6px; width: 42px; height: 42px; font-size: 1.6rem; }
  .g-lb-next { right: 6px; width: 42px; height: 42px; font-size: 1.6rem; }
  .g-lb-img { max-width: 98vw; max-height: 80vh; }
}

/* ── Search Hero + Bar ────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, #2A2A2A 0%, #3D3025 100%);
  padding: 64px 24px 52px;
  text-align: center;
  color: #fff;
}
.search-hero-inner { max-width: 720px; margin: 0 auto; }
.search-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 10px;
}
.search-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 28px; }

.search-bar {
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.sb-field {
  flex: 1;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}
.sb-field label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
}
.sb-field input, .sb-field select {
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2A2A2A;
  background: transparent;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.sb-divider {
  width: 1px;
  height: 36px;
  background: #E5E5E5;
  flex-shrink: 0;
}
.sb-btn {
  background: var(--gold-dark);
  color: #fff;
  border: none;
  padding: 0 28px;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  align-self: stretch;
  transition: background 0.15s;
  font-family: inherit;
  min-height: 56px;
}
.sb-btn:hover { background: #9A7A32; }
@media (max-width: 600px) {
  .search-bar { flex-direction: column; border-radius: 12px; }
  .sb-divider { width: 100%; height: 1px; }
  .sb-btn { width: 100%; border-radius: 0 0 12px 12px; min-height: 48px; }
}

/* ── Search page card cover photos ──────────────────────── */
.property-card-img[data-cover-slug] {
  background-color: var(--cream-dark);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}
.property-card:hover .property-card-img[data-cover-slug] { transform: scale(1.03); }

/* ---------- Property Cards (search page) ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.property-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(42,42,42,0.12);
}
.property-card-img {
  height: 180px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 2.5rem;
}
.property-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.property-card-location {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.property-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}
.property-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.property-card-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.property-card-chip {
  padding: 3px 10px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.property-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ── Amenities section ── */
.prop-amenities-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--cream-dark); }
.prop-amenities-title { font-size: 1.2rem; font-weight: 700; color: var(--charcoal); margin-bottom: 20px; }
.amen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.amen-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.amen-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--charcoal);
}
.amen-show-all-btn {
  background: none;
  border: 1.5px solid var(--charcoal);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.18s, color 0.18s;
}
.amen-show-all-btn:hover { background: var(--charcoal); color: #fff; }

/* ── Amenities Modal ── */
.amen-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.amen-modal.active { display: flex; }
.amen-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.amen-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  z-index: 1;
}
.amen-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.amen-modal-header h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.amen-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--charcoal);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amen-modal-close:hover { background: var(--cream); }
.amen-all-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.amen-all-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--charcoal);
}

/* ── Mobile gallery swipe indicator ── */
.ag-mobile-counter {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 5;
}
@media (max-width: 700px) {
  .ag-mobile-counter { display: block; }
  .amen-grid { grid-template-columns: 1fr; }
  .amen-all-grid { grid-template-columns: 1fr; }
  .amen-modal-box { padding: 20px; max-height: 90vh; }
}

/* ============================================================
   Gallery mobile arrows
   ============================================================ */
.ag-arrow {
  display: none; /* hidden on desktop */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.15s, transform 0.15s;
  padding: 0;
  color: #2A2A2A;
}
.ag-arrow:active { background: rgba(255,255,255,1); transform: translateY(-50%) scale(0.93); }
.ag-arrow-prev { left: 10px; }
.ag-arrow-next { right: 10px; }
@media (max-width: 700px) {
  .ag-arrow { display: flex; }
  .ag-grid { position: relative; } /* ensure arrows are positioned relative to grid */
}

/* ============================================================
   Homepage search bar (hsb)
   ============================================================ */
.hsb-section { background: var(--cream); padding-top: 40px; padding-bottom: 56px; }

.hsb-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 60px;
  box-shadow: 0 4px 28px rgba(42,42,42,0.13);
  overflow: visible;
  max-width: 900px;
  margin: 0 auto;
  padding: 6px;
  gap: 0;
}

.hsb-field {
  flex: 1;
  min-width: 0;
  position: relative;
}

.hsb-field-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.15s;
  height: 100%;
  user-select: none;
}
.hsb-field-inner:hover { background: #f4f0eb; }

.hsb-icon { color: var(--gold); flex-shrink: 0; }
.hsb-label { font-size: 0.7rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.hsb-value { font-size: 0.9rem; color: var(--text); font-weight: 500; white-space: nowrap; }

.hsb-divider {
  width: 1px;
  background: #e8e1d8;
  margin: 10px 0;
  flex-shrink: 0;
}

/* Location dropdown */
.hsb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 100;
  min-width: 200px;
  overflow: hidden;
  padding: 8px 0;
}
.hsb-dropdown.open { display: block; }
.hsb-opt {
  padding: 12px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.12s;
  color: var(--text);
}
.hsb-opt:hover { background: var(--cream); }

/* Guests stepper */
.hsb-guests-field .hsb-field-inner { cursor: default; }
.hsb-guests-ctrl { display: flex; align-items: center; gap: 8px; }
.hsb-guests-btn {
  background: #fff;
  border: 1.5px solid #d0c8be;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  transition: background 0.12s, border-color 0.12s;
  padding: 0;
}
.hsb-guests-btn:hover { background: var(--gold-pale); border-color: var(--gold); }

/* Search button */
.hsb-search-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0 28px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
  margin: 0;
}
.hsb-search-btn:hover { background: var(--gold-dark); }
.hsb-search-btn:active { transform: scale(0.97); }

/* Mobile: stack vertically */
@media (max-width: 700px) {
  .hsb-wrap {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 2px;
  }
  .hsb-field-inner { border-radius: 12px; padding: 10px 14px; }
  .hsb-divider { display: none; }
  .hsb-search-btn { width: 100%; justify-content: center; padding: 14px; margin-top: 4px; border-radius: 12px; }
}

/* ============================================================
   search.html — Location dropdown in existing search bar
   ============================================================ */
.search-bar select { color: var(--text); }

/* Filter chips */
.filter-chip {
  background: var(--gold-pale);
  color: var(--gold-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-x {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold-dark);
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
}

/* ============================================================
   Date Picker (#ccDatePicker)
   ============================================================ */
#ccDatePicker { display: none; }
#ccDatePicker.active { display: block; }

.dp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: transparent;
}

.dp-panel {
  position: absolute;
  z-index: 1001;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  padding: 20px;
  min-width: 580px;
  max-width: 660px;
}

.dp-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dp-months {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.dp-month { flex: 1; min-width: 220px; }

.dp-month-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ebe4;
}

.dp-day-hdrs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.dp-day-hdr {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #999;
  padding: 4px 0;
}

.dp-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-cell {
  text-align: center;
  font-size: 0.85rem;
  padding: 7px 2px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  user-select: none;
  transition: background 0.1s, color 0.1s;
}
.dp-cell:not(.dp-blank):not(.dp-past):hover { background: var(--gold-pale); }
.dp-cell.dp-past  { color: #ccc; cursor: default; }
.dp-cell.dp-blank { cursor: default; }

/* Range highlight */
.dp-cell.dp-range {
  background: #faf0e4;
  border-radius: 0;
  color: var(--text);
}
.dp-cell.dp-start,
.dp-cell.dp-end {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
}
.dp-cell.dp-start { border-radius: 50%; }
.dp-cell.dp-end   { border-radius: 50%; }
.dp-cell.dp-single { border-radius: 50%; }

/* Nav buttons */
.dp-nav {
  background: none;
  border: 1.5px solid #e0d8ce;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.12s;
}
.dp-nav:hover { background: var(--gold-pale); }

.dp-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ebe4;
}
.dp-clear {
  background: none;
  border: 1.5px solid #e0d8ce;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.12s;
}
.dp-clear:hover { background: #f5f0ea; }
.dp-done {
  background: var(--gold);
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.12s;
}
.dp-done:hover { background: var(--gold-dark); }

@media (max-width: 640px) {
  .dp-panel {
    min-width: unset;
    width: calc(100vw - 24px);
    left: 12px !important;
    border-radius: 16px;
    padding: 14px;
  }
  .dp-months { flex-direction: column; gap: 16px; }
}

/* ── Date picker hint bar ─────────────────────────────────── */
.dp-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 0 12px;
  font-weight: 500;
}
.dp-hint.dp-hint-selecting {
  color: var(--gold-dark);
  font-weight: 600;
}
