/*
  Thierry Bouffioux — Minimalist Theme
  Colors: white (#FFFFFF), black (#111111), accents: #CDE2D6 (green), #D2E8FF (blue)
  Fonts: Playfair Display for headings, Open Sans for body
*/

/* CSS Reset (light) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

:root {
  --color-bg: #FFFFFF;
  --color-bg-light: #f8f9fa;
  --color-text: #111111;
  --color-accent-green: #CDE2D6;
  --color-accent-blue: #D2E8FF;
  --color-primary: #25D366;
  --color-border: rgba(0,0,0,0.08);
  --color-border-light: rgba(0,0,0,0.06);
  --shadow-soft: 0 6px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --whatsapp-number: "31628905567";
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(150%) blur(8px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-100%);
  transition: transform 300ms ease;
}

.site-header.visible {
  transform: translateY(0);
}

/* Show navigation by default on property and city pages */
.property-page .site-header,
.city-page .site-header {
  transform: translateY(0);
}

.property-page body,
.city-page body {
  padding-top: 0;
}

/* Header height-based margins for main content areas */
.property-page main,
.city-page main,
#property-content,
#experience-content {
  margin-top: 69px; /* Desktop header height */
}

/* Mobile header height adjustment */
@media (max-width: 768px) {
  .property-page main,
  .city-page main,
  #property-content,
  #experience-content {
    margin-top: 68px; /* Mobile header height */
  }
}

/* Ensure hero sections have proper spacing */
.property-page .hero,
.city-page .section:first-of-type {
  margin-top: 0; /* Remove extra margin since main already has it */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-green), var(--color-accent-blue));
  display: grid; place-items: center; color: #111; font-weight: 700; box-shadow: var(--shadow-soft);
}
.logo-text { font-weight: 600; letter-spacing: 0.4px; }

.nav { display: flex; align-items: center; gap: 16px; }
.nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav-link { color: inherit; text-decoration: none; padding: 10px 12px; border-radius: 10px; transition: background-color 160ms ease, box-shadow 160ms ease; }
.nav-link:hover { background: #f6f7f8; box-shadow: inset 0 0 0 1px var(--color-border); }

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  
  .nav li {
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav li:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0;
  }
  
  .nav-link:hover {
    background: var(--color-accent-green);
    box-shadow: none;
  }

  /* Mobile nav: stack ul + CTA vertically */
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-cta {
    display: block;
    margin: 12px 16px 16px;
    text-align: center;
    justify-content: center;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-green));
  filter: saturate(110%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-end;
  padding: 0 0 80px 0;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-title { 
  font-size: clamp(36px, 5vw, 64px); 
  letter-spacing: -0.02em; 
  line-height: 1.1;
  font-weight: 300;
  margin: 0;
}
.hero-subtitle { 
  color: #555; 
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}
.hero-actions { 
  display: flex; 
  flex-direction: row;
  gap: 20px; 
  align-items: flex-end;
  justify-content: flex-end;
  margin-bottom: 33px;
}

/* Hero Action Links - Custom Design */
.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  color: #111;
  border-bottom: 3px solid var(--color-accent-blue);
  padding-bottom: 15px;
  opacity: 0.8;
  transition: all 300ms ease;
  cursor: pointer;
}

.hero-action:hover {
  color: #111111;
  border-color: #111111;
  opacity: 1;
  text-decoration: none;
}

.hero-action:visited {
  color: #111;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  background: #fff;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn:active { transform: translateY(0); }
.btn-primary { 
  background: #25D366; 
  color: white; 
  border-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.btn-primary:hover { 
  background: #20C55A; 
  border-color: #20C55A;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.btn-secondary {
  background: #fff;
  border-color: transparent;
  color: var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-bg-light);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Sections */
.section { 
  padding: 80px 0; 
}
.section:first-of-type {
  padding-top: 100px;
}
.section + .section {
  border-top: 1px solid var(--color-border-light);
  margin-top: 0;
}
.section-title { 
  font-size: clamp(32px, 4.5vw, 48px); 
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
  color: var(--color-text);
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-green), var(--color-accent-blue));
  margin: 1.5rem auto 0;
  opacity: 0.7;
  border-radius: 1px;
}
.section-intro { 
  color: #666; 
  margin-bottom: 2.5rem; 
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Featured Houses Grid - 3 items */
.houses .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.houses .property-card {
  grid-column: span 1;
}

/* Property Cards - Elegant Design */
.property-card {
  display: block;
  position: relative;
  grid-column: span 12;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 300ms ease;
  text-decoration: none;
  color: inherit;
  height: 320px;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  text-decoration: none;
  color: inherit;
}

.property-card:visited {
  color: inherit;
}

.property-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.property-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.property-card-link:visited {
  color: inherit;
}

.property-card-link:active {
  color: inherit;
}

.property-card-link:focus {
  color: inherit;
}

.property-card-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 300ms ease;
}

.property-card:hover .property-card-media {
  transform: scale(1.05);
}

/* Experience cards: anchor photo to top so faces are not cropped */
.experience-card .property-card-media {
    background-position: top center;
}

.property-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    225deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.20) 50%,
    rgba(0,0,0,0.40) 65%,
    rgba(0,0,0,0.60) 80%,
    rgba(0,0,0,0.8) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.property-card-content {
  padding: 24px;
  width: 100%;
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.property-card-text-content {
  flex: 1;
  min-width: 0;
}

.property-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

.property-card-text {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

.property-card-cta {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 200ms ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

.property-card:hover .property-card-cta {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.card {
  grid-column: span 12;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 300ms ease;
  text-decoration: none;
  color: inherit;
}
.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 16px 48px rgba(0,0,0,0.15); 
  text-decoration: none;
  color: inherit;
}
.card:visited { 
  color: inherit; 
}
.card:active { 
  color: inherit; 
}
.card:focus { 
  color: inherit; 
}
.card-media { 
  height: 200px; 
  background: linear-gradient(135deg, #eceff3, #f7fafc); 
  background-size: cover; 
  background-position: center; 
  transition: transform 300ms ease;
}
.card:hover .card-media {
  transform: scale(1.02);
}
.card-body { 
  padding: 20px; 
}
.card-title { 
  font-size: 20px; 
  margin-bottom: 8px; 
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
}
.card-text { 
  color: #666; 
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); background: var(--color-primary); }
.nav-cta::before { content: ''; display: inline-block; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M11.5 2C6.262 2 2 6.262 2 11.5c0 1.687.444 3.268 1.217 4.643L2 22l6.024-1.193A9.448 9.448 0 0011.5 21c5.238 0 9.5-4.262 9.5-9.5S16.738 2 11.5 2zm0 17.25a7.722 7.722 0 01-3.938-1.079l-.282-.168-2.927.58.623-2.86-.184-.293A7.712 7.712 0 013.75 11.5C3.75 7.227 7.227 3.75 11.5 3.75S19.25 7.227 19.25 11.5 15.773 19.25 11.5 19.25z'/%3E%3C/svg%3E") no-repeat center / contain; }

/* Intro Section */
.intro-section { background: var(--color-bg-light); }
.intro-inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.intro-photo img { width: 280px; height: 320px; object-fit: cover; object-position: top center; border-radius: 12px; display: block; }
.intro-content h2 { font-size: 28px; margin-bottom: 12px; }
.intro-content p { color: #555; line-height: 1.7; margin-bottom: 20px; }
.intro-reply { font-size: 13px; color: #888; margin-top: 8px; }
.intro-content .section-title { text-align: left; }
.intro-content .section-title::after { margin: 1.5rem 0 0; }

/* Reviews Section */
.reviews-section { background: var(--color-bg); }
.reviews-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.reviews-stars { font-size: 22px; letter-spacing: 3px; color: #f4a200; font-style: normal; }
.reviews-label { font-size: 18px; font-weight: 600; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--color-bg-light); border: 1px solid var(--color-border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.review-text { font-size: 14px; line-height: 1.6; color: #444; font-style: italic; margin-bottom: auto; padding-bottom: 14px; }
.review-stars { font-size: 14px; color: #f4a200; letter-spacing: 2px; margin-bottom: 10px; }
.review-author-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 12px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eee; }
.review-author-info { display: flex; flex-direction: column; }
.review-name { font-size: 13px; font-weight: 600; color: var(--color-text); }
.review-location { font-size: 12px; color: #888; }

/* For Me Section */
.for-me-section { background: linear-gradient(135deg, var(--color-accent-green), var(--color-accent-blue)); }
.for-me-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.for-me-item { display: flex; align-items: flex-start; gap: 12px; background: rgba(255,255,255,0.6); border-radius: 10px; padding: 16px; }
.for-me-icon { font-size: 22px; flex-shrink: 0; }
.for-me-text { font-size: 14px; line-height: 1.5; color: #222; }

/* How It Works / Payment Section */
.how-it-works-section { background: var(--color-bg-light); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.step { text-align: center; }
.step-number { width: 40px; height: 40px; background: var(--color-text); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; margin: 0 auto 12px; }
.step-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: #666; line-height: 1.5; }
.payment-note { margin-top: 24px; text-align: center; font-size: 13px; color: #888; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 48px 0 28px; color: #555; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .logo-text { font-weight: 700; font-size: 16px; color: var(--color-text); }
.footer-rating { font-size: 18px; margin: 8px 0 4px; color: #f4a200; letter-spacing: 3px; }
.footer-rating-text { font-size: 13px; color: #888; }
.footer-nav-title, .footer-cta-title { font-weight: 600; font-size: 14px; margin-bottom: 12px; color: var(--color-text); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #666; text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--color-text); }
.footer-cta .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.footer-cta-reply { font-size: 12px; color: #aaa; text-align: center; }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 20px; text-align: center; font-size: 12px; color: #aaa; }

/* About Page */
.about-hero { background: linear-gradient(135deg, var(--color-accent-green), var(--color-accent-blue)); padding: 120px 0 60px; }
.about-hero-inner { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; }
.about-photo img { width: 300px; height: 360px; object-fit: cover; object-position: top center; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.about-tagline { font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #444; margin-bottom: 12px; }
.about-name { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.about-bio { font-size: 16px; line-height: 1.8; color: #333; }
.about-content-section { padding: 60px 0; border-bottom: 1px solid var(--color-border); }
.about-content-section:last-of-type { border-bottom: none; }

@media (max-width: 768px) {
  .intro-inner { grid-template-columns: 1fr; }
  .intro-photo img { width: 100%; height: 240px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .for-me-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-photo img { width: 100%; height: 280px; }
  .nav-cta { font-size: 13px; padding: 8px 12px; }
  .nav-cta::before { display: none; }
}

/* ---------- Homepage carousels (city + featured) ----------
   Full-bleed-to-the-right rails: the first card lines up with the page's normal
   content edge, and the row runs out to the right edge of the viewport, so a card
   is only ever cut off by the screen edge (with the next arrow sitting there).
   Arrows + .carousel--static toggling come from carousel.js. */

/* Contain the full-bleed breakout so it never adds a page-level h-scrollbar.
   overflow-x: clip lets the vertical card shadows stay visible. */
#houses {
  overflow-x: clip;
}

.carousel {
  /* distance from the viewport edge to the page's normal content edge */
  --rail-inset: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  position: relative;
  /* break out of the centred container to span the full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

#houses-section .cards,
#featured-properties {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: var(--rail-inset);
  /* first card starts at the page content edge; row runs to the viewport edge.
     vertical padding leaves room for the card shadow + hover-lift. */
  padding: 14px 0 46px;
  padding-left: var(--rail-inset);
  padding-right: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* arrows replace the scrollbar */
}
#houses-section .cards::-webkit-scrollbar,
#featured-properties::-webkit-scrollbar {
  display: none;
}

#houses-section .card,
#featured-properties .property-card {
  scroll-snap-align: start;
}

/* Comfortable fixed card widths */
#houses-section .card {
  flex: 0 0 270px;
}
#featured-properties .property-card {
  flex: 0 0 360px;
}

/* When everything fits, carousel.js adds .carousel--static: hide the arrows and
   centre the cards in the window (drop the full-bleed left inset) instead of
   left-aligning them with empty space on the right. */
.carousel--static .carousel-arrow {
  display: none;
}
#houses-section .carousel--static .cards,
.carousel--static #featured-properties {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

/* Reduce padding for city section only */
#houses-section {
  padding-top: 40px;
}

/* ---- Arrows ---- */
.carousel-arrow {
  position: absolute;
  top: 176px; /* centre of the featured card image */
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 0; /* hide the fallback glyph; chevron is drawn below */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 200ms ease, opacity 200ms ease, transform 150ms ease;
}
.carousel-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
}
.carousel-prev::before {
  transform: rotate(135deg);
  margin-left: 5px;
}
.carousel-next::before {
  transform: rotate(-45deg);
  margin-right: 5px;
}
.carousel-arrow:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  transform: translateY(-50%) scale(1.07);
}
.carousel-prev {
  left: calc(var(--rail-inset) - 23px);
}
.carousel-next {
  right: 22px;
}
.carousel-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}
/* city cards have a shorter 200px image — centre the arrows on it */
#houses-section .carousel-arrow {
  top: 116px;
}
@media (max-width: 768px) {
  /* On mobile the rails become a single stacked column (no arrows, no scroll). */
  .carousel-arrow {
    display: none;
  }
  .carousel {
    width: auto;
    margin-left: 0;
  }
  #houses-section .cards,
  #featured-properties {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 16px;
    padding: 8px 0 24px;
  }
  #houses-section .card,
  #featured-properties .property-card {
    flex: 0 0 100%;
  }
}

/* Responsive */
@media (min-width: 640px) {
  .card { grid-column: span 6; }
  .property-card { grid-column: span 6; }
}
@media (min-width: 960px) {
  .card { grid-column: span 3; }
  .property-card { grid-column: span 4; }
  .hero-content { 
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1200px) {
  .cards {
    grid-template-columns: repeat(12, 1fr);
  }
  .card { 
    grid-column: span 3; 
  }
  .property-card { 
    grid-column: span 4; 
  }
}

/* Mobile responsive for hero */
@media (max-width: 768px) {
  .hero {
    min-height: 240px;
    padding-top: 80px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 0 0 60px 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 0;;
  }
  .hero-action {
    min-width: 180px;
  }
  
  /* Featured houses mobile */
  .houses .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Cities mobile */
  #houses-section .cards {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .houses .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #houses-section .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .houses .cards {
    grid-template-columns: 1fr;
  }
  
  #houses-section .cards {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Featured Houses - Force 1 per line */
  .houses .property-card {
    grid-column: span 1 !important;
    width: 100%;
  }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 300ms ease;
  z-index: 1000;
  text-decoration: none;
  border: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4), 0 4px 16px rgba(0,0,0,0.12);
  background: #22c55e;
}

.floating-whatsapp:active {
  transform: scale(0.95);
}

/* WhatsApp Icon */
.floating-whatsapp .whatsapp-icon {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.89 3.485'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Mobile adjustments for floating button */
@media (max-width: 768px) {
  .floating-whatsapp {
    width: 56px;
    height: 56px;
    bottom: 16px;
    right: 16px;
  }

  .floating-whatsapp .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* Thierry Photo Bubble */
.thierry-bubble {
  position: fixed;
  bottom: 100px;
  right: 20px;
  max-width: 280px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 400ms ease;
  border: 1px solid var(--color-border);
}

.thierry-bubble.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.thierry-bubble .bubble-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  top: -25px;
  left: 20px;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

.thierry-bubble .bubble-message {
  padding: 35px 20px 20px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 500;
}

.thierry-bubble .bubble-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.thierry-bubble .bubble-close:hover {
  background: #f5f5f5;
  color: #333;
}

.thierry-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 30px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

/* Thierry Introduction Card */
.thierry-intro {
  margin: 40px 0;
  padding: 40px 0;
}

.thierry-intro .intro-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.thierry-intro .intro-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 3px solid var(--color-accent-green);
}

.thierry-intro .intro-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.thierry-intro .star-rating {
  color: #ffd700;
  font-size: 16px;
  margin-bottom: 12px;
}

.thierry-intro .intro-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Mobile adjustments for Thierry components */
@media (max-width: 768px) {
  .thierry-bubble {
    bottom: 88px;
    right: 16px;
    max-width: 260px;
  }

  .thierry-bubble .bubble-message {
    padding: 30px 16px 16px 16px;
    font-size: 13px;
  }

  .thierry-bubble .bubble-photo {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 16px;
  }

  .thierry-intro .intro-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 24px;
  }

  .thierry-intro .intro-photo {
    width: 70px;
    height: 70px;
  }
}

/* Experience Cards - Based on Property Card Patterns */
.experience-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 300ms ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.experience-card:hover .property-card-media {
  transform: scale(1.05) translateY(-6px);
}

/* Keep overlay content static during hover - only background scales */
.experience-card:hover .property-card-overlay {
  transform: none;
}

/* Keep description area static during hover */
.experience-card:hover .experience-description-area {
  transform: none;
}

/* Ensure all overlay content stays in place */
.experience-card:hover .experience-duration,
.experience-card:hover .property-card-content,
.experience-card:hover .property-card-title {
  transform: none;
}

/* Prevent description area from being affected by hover */
.experience-card:hover .experience-description-area {
  transform: none;
}

/* Ensure duration stays in position within overlay */
.experience-card .experience-duration {
  z-index: 15; /* Higher than overlay content */
}

.experience-card:hover .property-card-cta {
  background: rgba(255,255,255,0.3);
  transform: none; /* Remove the translateY to keep button static */
}

.experience-card .property-card-media {
  position: relative;
  height: 200px; /* Reduced to make room for white description area */
  background-size: cover;
  background-position: center;
  transition: transform 300ms ease;
}

/* White description area at bottom of experience cards */
.experience-card .experience-description-area {
  background: white;
  padding: 16px;
  min-height: 80px; /* Ensures space for longer descriptions */
}

/* Remove underlines from experience card links */
.experience-card a,
.experience-card a:hover,
.experience-card a:visited,
.experience-card-link,
.experience-card-link:hover,
.experience-card-link:visited {
  text-decoration: none !important;
}

/* Fix overlay to only cover image area, not description */
.experience-card .property-card-overlay {
  height: 200px; /* Match the media height */
  overflow: hidden;
}

.experience-duration {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  color: var(--color-text);
  z-index: 10;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.experience-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
  margin-top: 8px;
}

.experience-card .property-card-content {
  padding: 20px;
}

.experience-card .property-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.experience-card .property-card-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Experience cards now use the same CTA styling as property cards */

/* Experiences Section */
.experiences-section {
  margin: 40px 0;
  padding: 40px 0;
}

.experiences-section .section-title {
  margin-bottom: 20px;
  text-align: center;
}

.experiences-section .section-intro {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* Mobile adjustments for experiences */
@media (max-width: 768px) {
  .experiences-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .experience-card .property-card-media {
    height: 200px;
  }

  .experience-card .property-card-content {
    padding: 16px;
  }
}

/* Google Maps Integration Preparation */
.property-location {
  margin: 20px 0;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  color: #666;
  text-align: center;
}

.map-placeholder p:first-child {
  font-size: 24px;
  margin-bottom: 8px;
}

.map-placeholder p:last-child {
  font-size: 14px;
  margin: 0;
}

/* Future Google Maps styles */
.gmap-container {
  width: 100%;
  height: 100%;
}

.gmap-info-window {
  max-width: 300px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}

.gmap-marker-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: var(--shadow-soft);
}

/* Mobile maps adjustments */
@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

/* Experience Page Specific Styles */
.experience-duration-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  color: var(--color-text);
  z-index: 10;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.experience-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-light);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.meta-icon {
  font-size: 16px;
}

.meta-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: all 200ms ease;
}

.included-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.included-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.included-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

/* Mobile adjustments for experience pages */
@media (max-width: 768px) {
  .experience-meta {
    gap: 16px;
  }

  .meta-item {
    padding: 10px 12px;
  }

  .included-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-duration-overlay {
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ---------- Phase B: city-page Sovereign Series sections ---------- */

#expertise-container .section-intro {
  max-width: 820px;
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

/* Districts (Contextual Map) */
.districts-section {
  margin: 64px 0 48px;
}

.districts-section:empty {
  display: none;
}

.districts-section .districts-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  text-align: left;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.districts-section .districts-title::after {
  width: 40px;
  margin: 12px 0 0;
}

.districts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.district-item {
  font-size: 16px;
  line-height: 1.6;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

.district-name {
  font-weight: 700;
  color: var(--color-text, #111);
}

.district-role {
  color: #555;
}

/* FAQ */
.faq-section {
  margin: 48px 0 32px;
}

.faq-section:empty {
  display: none;
}

.faq-section .faq-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  text-align: left;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.faq-section .faq-title::after {
  width: 40px;
  margin: 12px 0 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text, #111);
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #999;
  transition: transform 200ms ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: translateY(-50%);
}

.faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 20px;
  padding: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

@media (max-width: 767px) {
  .districts-section,
  .faq-section {
    margin: 48px 0 32px;
  }
  .district-item {
    padding: 12px 16px;
    font-size: 15px;
  }
  .faq-question {
    font-size: 16px;
    padding: 18px 32px 18px 0;
  }
  .faq-answer {
    font-size: 14px;
  }
}


