/* Shared mobile styles — load after page inline CSS */

/* Area cards: hero image + gradient overlay (no inline background-image) */
.area-card-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.area-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(31, 61, 92, 0.35) 0%, rgba(20, 20, 20, 0.85) 100%);
  pointer-events: none;
}

.area-card .area-overlay {
  z-index: 2;
}

/* Property cards: align price row across grid columns */
.properties-grid {
  align-items: stretch;
}

.prop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Reliable card photos on mobile (flex + aspect-ratio can collapse img height) */
.prop-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e4de;
  flex-shrink: 0;
  width: 100%;
}

.prop-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prop-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 24px;
}

.prop-body > .prop-type,
.prop-body > .prop-name,
.prop-body > .prop-location,
.prop-body > .prop-specs,
.prop-body > .prop-price {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  text-align: left;
}

.prop-type {
  margin-bottom: 6px;
}

.prop-name {
  margin-bottom: 8px;
  line-height: 1.35;
  /* Reserve two title lines so location/specs align across a row */
  min-height: calc(2 * 1.35em);
}

.prop-location {
  margin-bottom: 14px;
  min-height: 1.35em;
  display: flex;
  align-items: center;
}

.prop-location .prop-location-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  line-height: 1.35;
  padding: 0;
  margin: 0;
}

.prop-location .prop-location-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

.prop-specs {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.prop-specs .spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
  white-space: nowrap;
}

.prop-specs .spec svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

.prop-price {
  margin-top: 0;
  line-height: 1.2;
}

/* ── Pool hero background (all pages) ── */
.hero-pool-host {
  position: relative;
  overflow: hidden;
}

.hero-pool-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.05) 42%, rgba(0, 0, 0, 0.68) 100%),
    url('/images/hero-pool.png') center/cover no-repeat;
}

.hero-pool-host > .hero-pool-content,
.hero-pool-host > .hero-content,
.hero-pool-host > .page-hero-content,
.hero-pool-host > div[style*="z-index:1"],
.hero-pool-host > div[style*="z-index: 1"] {
  position: relative;
  z-index: 1;
}

/* ── Sell CTA panel (kitchen photo) — homepage only ── */
.sell-cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
  overflow: hidden;
}

.sell-panel-photo {
  background: url('/images/sell-with-us.jpg') center/cover no-repeat;
  min-height: 240px;
}

.sell-panel-copy {
  background: #1f3d5c;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sell-panel-copy .section-eyebrow {
  color: #e8cb7a;
}

.sell-panel-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 44px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.sell-panel-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 420px;
}

/* Justified copy — body paragraphs only (titles/headings stay left) */
#about .about-grid > div:last-child > p,
#about .value p,
.sell-panel-text,
.about-copy-shell p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.about-copy-shell .about-copy-title {
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.sell-panel-copy .btn-primary,
.about-copy-shell .btn-primary,
.about-copy-shell .btn-gold {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  box-sizing: border-box;
}

/* ── Global section spacing tighten ── */
#properties,
#areas,
#about,
#contact {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.properties-listing-section {
  padding: 32px 48px 28px !important;
}

.properties-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.properties-layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  /* Tall left column track so sticky sidebar can travel while scrolling cards */
  align-items: stretch;
}

.filters-sidebar-col {
  min-height: 0;
  /* Do not size the panel itself — column stretches with the card grid */
}

.properties-main-col {
  min-width: 0;
}

/* Listings agent banner only (?agent=…) — circular photo, no box */
#properties-agent-banner {
  display: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
}

#properties-agent-banner .agent-profile-photo-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #0d1e28;
}

#properties-agent-banner .agent-profile-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

#properties-agent-banner .agent-profile-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #000000, #141414);
}

#properties-agent-banner .agent-profile-body {
  min-width: 0;
  flex: 0 1 auto;
}

#properties-agent-banner .agent-profile-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 4px;
}

#properties-agent-banner .agent-profile-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 23px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 6px;
  line-height: 1.15;
}

#properties-agent-banner .agent-profile-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

#properties-agent-banner .agent-profile-field {
  margin-bottom: 0;
}

#properties-agent-banner .agent-profile-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A7168;
  margin-bottom: 4px;
}

#properties-agent-banner .agent-profile-field-value {
  display: block;
  font-size: 15px;
  color: #141414;
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
}

#properties-agent-banner .agent-profile-field-value:hover {
  color: #C9A84C;
}

#properties-agent-banner .agent-profile-langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

#properties-agent-banner .agent-profile-lang {
  font-size: 18px;
  line-height: 1;
}

/* Tighter footer handoff on pages without homepage sell CTA */
.properties-listing-section + footer,
.team-section + footer,
#property-similar-section + footer,
section[id="property-detail"] + footer {
  margin-top: 0;
}

footer {
  padding-top: 28px !important;
  padding-bottom: 20px !important;
}

.contact-form-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

.contact-form-actions .cf-turnstile {
  flex: 0 0 168px;
  width: 168px;
  height: 36px;
  order: 0;
  overflow: hidden;
  position: relative;
  margin: 0 !important;
  padding: 0;
  border: none;
  line-height: 0;
}

.contact-form-actions .cf-turnstile > div {
  transform: scale(0.55);
  transform-origin: top left;
  width: 300px;
  height: 65px;
}

.contact-form-actions button[type="submit"] {
  flex: 1 1 auto;
  order: 1;
  width: auto !important;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.section-header {
  margin-bottom: 16px !important;
}

/* ── Safe areas (notched phones) ── */
.whatsapp-float {
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  right: max(28px, env(safe-area-inset-right, 0px));
}

/* ── Touch: skip sticky hover lift on cards ── */
@media (hover: none) {
  .prop-card:hover {
    transform: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  }

  .prop-card:hover .prop-img img {
    transform: none;
  }

  .area-card:hover {
    transform: none;
  }

  .team-card:hover {
    transform: none;
    box-shadow: none;
  }

  .team-card:hover .team-img img {
    transform: none;
  }
}

/* ── Tablet / phone (≤900px) ── */
@media (max-width: 900px) {
  /*
   * Same wide villa (hero-pool.png) on every page — match the Properties banner.
   * Do not switch to the tall portrait crop; that looked smashed on phones.
   */
  .hero-pool-bg,
  #home .hero-pool-bg {
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.05) 42%, rgba(0, 0, 0, 0.68) 100%),
      url('/images/hero-pool.png') !important;
    background-position: center 40% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  /*
   * Homepage: content-sized banner like Properties (not 68–100vh).
   * A tall frame + landscape cover crops the villa and looks smashed.
   */
  #home.hero {
    min-height: 0 !important;
    padding: 110px 20px 40px !important;
    align-items: flex-end;
  }

  #home .hero-content h1 {
    font-size: clamp(28px, 8.2vw, 40px) !important;
    line-height: 1.14 !important;
    margin-bottom: 16px !important;
    max-width: 18ch !important;
    min-height: 2.4em;
  }

  #home .hero-content p {
    font-size: clamp(15px, 4.8vw, 18px) !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
    max-width: 28ch !important;
    min-height: 4.6em;
  }

  #home .hero-actions {
    gap: 12px !important;
  }

  #home .hero-actions .btn-primary,
  #home .hero-actions .btn-outline {
    padding: 12px 20px !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
  }

  /* Language-specific hero typography (mobile) */
  html[lang="en"] #home .hero-content h1 {
    font-size: clamp(28px, 7.9vw, 39px) !important;
    line-height: 1.14 !important;
    min-height: 2.5em;
  }

  html[lang="en"] #home .hero-content p {
    font-size: clamp(15px, 4.5vw, 17px) !important;
    max-width: 30ch !important;
  }

  html[lang="es"] #home .hero-content h1 {
    font-size: clamp(28px, 7.8vw, 39px) !important;
    line-height: 1.13 !important;
    min-height: 2.5em;
  }

  html[lang="es"] #home .hero-content p {
    font-size: clamp(15px, 4.4vw, 17px) !important;
    max-width: 29ch !important;
  }

  html[lang="de"] #home .hero-content h1 {
    font-size: clamp(27px, 7.4vw, 37px) !important;
    line-height: 1.11 !important;
    min-height: 2.7em;
  }

  html[lang="de"] #home .hero-content p {
    font-size: clamp(14px, 4.2vw, 16px) !important;
    max-width: 27ch !important;
  }

  html[lang="fr"] #home .hero-content h1 {
    font-size: clamp(28px, 7.8vw, 39px) !important;
    line-height: 1.13 !important;
    min-height: 2.5em;
  }

  html[lang="fr"] #home .hero-content p {
    font-size: clamp(15px, 4.3vw, 17px) !important;
    max-width: 28ch !important;
  }

  html[lang="ru"] #home .hero-content h1 {
    font-size: clamp(26px, 7.1vw, 36px) !important;
    line-height: 1.08 !important;
    min-height: 2.8em;
  }

  .hero-content {
    padding-left: max(20px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(20px, env(safe-area-inset-right, 0px)) !important;
  }

  .page-hero.hero-pool-host {
    padding-top: 100px !important;
    padding-bottom: 48px !important;
  }

  /* Header */
  .nav-cta {
    display: none !important;
  }

  .nav-actions .lang-current {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px !important;
    flex-shrink: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open nav {
    z-index: 1100;
  }

  .nav-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
  }

  body.nav-open .nav-mobile-backdrop {
    display: block;
  }

  nav .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 72px;
    right: 0;
    left: auto;
    width: 60vw;
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 72px);
    margin: 0;
    padding: 12px 18px 20px;
    background: #141414;
    border-left: 1px solid rgba(201, 168, 76, 0.2);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    z-index: 1200;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    list-style: none;
  }

  body.nav-open nav .nav-links {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s ease, visibility 0s;
    pointer-events: auto;
  }

  nav .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
  }

  .nav-mobile-lang {
    border-bottom: none !important;
    padding-top: 12px;
    margin-top: 4px;
  }

  .nav-mobile-lang-links {
    display: flex !important;
    flex-direction: column;
    position: static !important;
    background: transparent !important;
    border: none !important;
    min-width: 0 !important;
    padding-top: 0 !important;
  }

  .nav-mobile-lang-links a {
    padding: 10px 0 !important;
  }

  .nav-mobile-cta-wrap {
    border-bottom: none !important;
    padding-top: 12px;
    margin-top: 12px;
  }

  .nav-mobile-cta {
    display: block !important;
    text-align: center;
    padding: 14px 18px !important;
    border: 1px solid var(--gold, #c9a84c);
    color: var(--gold, #c9a84c) !important;
  }

  /* Lang switcher: tap only on mobile (no sticky hover) */
  .nav-actions .lang-switcher:hover .lang-dropdown {
    display: none !important;
  }

  .nav-actions .lang-switcher.open .lang-dropdown {
    display: block !important;
  }

  /* Homepage & shared sections */
  #about .about-grid {
    grid-template-columns: 1fr !important;
  }

  .sell-cta-section,
  #sell {
    grid-template-columns: 1fr !important;
  }

  .sell-cta-section .sell-panel-photo,
  #sell .sell-panel-photo {
    min-height: 200px !important;
    background-position: center 45% !important;
  }

  .sell-panel-copy {
    padding: 20px 20px !important;
  }

  .sell-panel-text {
    max-width: none !important;
  }

  #properties,
  #areas,
  #about,
  #contact {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .about-copy-shell {
    padding: 24px 20px 8px !important;
  }

  .about-copy-shell p {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .about-copy-shell .about-copy-title {
    text-align: left !important;
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .about-copy-body-grid {
    gap: 20px !important;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-form-names {
    grid-template-columns: 1fr !important;
  }

  #contact form input,
  #contact form select,
  #contact form textarea {
    font-size: 16px !important;
  }

  .contact-form-actions .cf-turnstile {
    flex: 0 0 150px;
    width: 150px;
    height: 32px;
  }

  .contact-form-actions .cf-turnstile > div {
    transform: scale(0.48);
  }

  .contact-form-actions {
    gap: 8px;
  }

  /* Properties listing */
  .properties-hero {
    padding: 96px 20px 40px !important;
  }

  .property-breadcrumb-bar,
  .property-filter-bar,
  .properties-section-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .properties-listing-section,
  section[style*="padding:52px 60px 88px"],
  section[style*="padding:32px 48px 40px"],
  section[style*="padding:32px 48px 28px"] {
    padding: 20px 20px 24px !important;
  }

  .team-section {
    padding-bottom: 24px !important;
  }

  .properties-layout-grid > div:last-child {
    min-width: 0;
    width: 100%;
  }

  .property-filter-tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .property-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .property-filter-tabs a {
    flex: 0 0 auto !important;
    min-width: max-content;
    padding: 12px 16px !important;
    font-size: 11px !important;
  }

  .properties-layout-grid {
    grid-template-columns: 1fr !important;
  }

  #properties-grid,
  .properties-grid {
    grid-template-columns: 1fr !important;
  }

  #areas-grid.areas-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .area-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    min-height: 0;
  }

  .area-overlay {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex: 0 0 auto;
    width: 100%;
    padding: 12px 14px !important;
    text-align: left !important;
    background: linear-gradient(to top, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0) 100%);
    box-sizing: border-box;
  }

  .area-name {
    font-size: clamp(15px, 4.2vw, 21px) !important;
    line-height: 1.15 !important;
    margin-bottom: 3px !important;
    word-break: break-word;
  }

  .area-count {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .filters-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid rgba(201, 168, 76, 0.45);
    color: #141414;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .filters-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1300;
  }

  body.filters-open .filters-backdrop {
    display: block;
  }

  body.filters-open {
    overflow: hidden;
  }

  .filters-sidebar {
    display: none !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    margin: 0 !important;
    padding: 56px 20px 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: #faf8f5 !important;
    border: none !important;
    max-height: none !important;
  }

  body.filters-open .filters-sidebar {
    display: block !important;
  }

  .filters-close-btn {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #141414;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }

  /* Property detail */
  .property-detail-body-grid {
    grid-template-columns: 1fr !important;
  }

  #property-description,
  #property-features li {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .property-detail-body-grid > div[style*="sticky"] {
    position: static !important;
  }

  #property-similar {
    grid-template-columns: 1fr !important;
  }

  #property-similar-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #properties-agent-banner {
    align-items: flex-start;
  }

  #properties-agent-banner .agent-profile-photo-wrap {
    width: 104px;
    height: 104px;
  }

  #properties-agent-banner .agent-profile-fields {
    flex-direction: column;
    gap: 8px;
  }

  #properties-agent-banner .agent-profile-name {
    font-size: 22px;
  }

  /* Single-column grids on phones/tablets (overrides page inline 2-col rules) */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .team-card {
    min-width: 0;
  }

  .areas-grid {
    grid-template-columns: 1fr !important;
  }

  .about-intro-img img {
    max-width: 100% !important;
    width: 100% !important;
  }

  #about .about-photo {
    min-height: 240px !important;
    height: 240px !important;
  }

  /* About page: stack sticky sidebar on mobile/tablet */
  .about-copy-body-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .about-copy-sidebar,
  .about-copy-sidebar-track {
    position: static !important;
  }

  .about-sidebar-photo {
    min-height: 200px;
  }

  .property-agent-photo-wrap {
    min-height: 200px;
  }

  .about-sidebar-cta {
    padding: 24px 20px !important;
  }

  .property-sidebar-cta-inner {
    padding: 24px 20px 0 !important;
  }

  .team-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .prop-img img,
  .area-card img,
  .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .prop-img img {
    position: absolute;
    inset: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 0 !important;
  }

  .footer-brand {
    height: auto !important;
    margin-bottom: 12px !important;
  }

  .footer-col {
    align-self: start !important;
    min-height: 0 !important;
  }

  .footer-col ul {
    margin-top: 0 !important;
  }

  .footer-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 0;
    background: none;
    border: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold, #c9a84c);
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-accordion-icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    position: relative;
  }

  .footer-accordion-icon::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--gold, #c9a84c);
    border-bottom: 2px solid var(--gold, #c9a84c);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .footer-accordion.is-open .footer-accordion-icon::before {
    top: 4px;
    transform: rotate(-135deg);
  }

  .footer-accordion-panel {
    padding-bottom: 14px;
  }

  .footer-accordion-panel[hidden] {
    display: none !important;
  }

  .footer-link-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 14px !important;
    margin-top: 0 !important;
  }

  .footer-link-grid li a {
    font-size: 13px !important;
    line-height: 1.35;
  }

  footer {
    padding-top: 24px !important;
    /* Small safe-area buffer; WhatsApp button floats bottom-right over content */
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ── Tablet (481–900px): header lang visible, hide duplicate in slide-out ── */
@media (min-width: 481px) and (max-width: 900px) {
  .nav-mobile-lang {
    display: none !important;
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .nav-actions .lang-switcher {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-col h4 {
    margin-bottom: 12px !important;
  }

  .footer-col ul {
    margin-top: 0 !important;
    gap: 10px !important;
  }

  .stats {
    grid-template-columns: 1fr 1fr !important;
  }

  #areas-grid.areas-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .area-overlay {
    padding: 14px 16px !important;
  }

  .area-name {
    font-size: clamp(18px, 5vw, 24px) !important;
  }

  .area-count {
    font-size: 11px !important;
  }

  .property-breadcrumb-bar {
    flex-wrap: wrap;
    gap: 4px !important;
  }

  #property-breadcrumb-title {
    flex: 1 1 100%;
    font-size: 16px !important;
  }

  .team-img {
    height: 260px !important;
    max-height: 260px !important;
  }

  .team-name,
  .team-field-value,
  .team-listings-link {
    overflow-wrap: anywhere;
  }
}

/* ── Desktop (≥901px): reset mobile overrides ── */
@media (min-width: 901px) {
  .filters-open-btn,
  .filters-backdrop,
  .filters-close-btn,
  .nav-mobile-backdrop {
    display: none !important;
  }

  .nav-mobile-lang,
  .nav-mobile-cta-wrap {
    display: none !important;
  }

  .hamburger {
    display: none !important;
  }

  body.nav-open,
  body.filters-open {
    overflow: auto !important;
  }

  nav .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  nav .nav-links li {
    border-bottom: none !important;
  }

  nav .nav-links a {
    display: inline !important;
    padding: 0 !important;
    font-size: 16px !important;
  }

  .filters-sidebar {
    display: flex !important;
    flex-direction: column !important;
    /* Natural content height — not stretched to all cards */
    height: auto !important;
    max-height: calc(100vh - 88px - 24px) !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 88px !important;
    align-self: start !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    padding: 16px 18px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid rgba(201, 168, 76, 0.25) !important;
  }

  .filters-sidebar h3 {
    margin-bottom: 10px !important;
    font-size: 17px !important;
    flex-shrink: 0;
  }

  .filters-sidebar-fields {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-right: -2px;
    padding-right: 2px;
  }

  .filters-sidebar-fields > div {
    margin-bottom: 6px !important;
  }

  .filters-sidebar-fields > div label {
    margin-bottom: 4px !important;
    font-size: 11px !important;
  }

  .filters-sidebar > div {
    margin-bottom: 6px !important;
    flex-shrink: 0;
  }

  .filters-sidebar > div label {
    margin-bottom: 4px !important;
    font-size: 11px !important;
  }

  .filters-sidebar select,
  .filters-sidebar input[type="number"] {
    padding: 7px 9px !important;
    font-size: 15px !important;
  }

  .filters-sidebar #filter-search-btn {
    margin-top: 8px !important;
    flex-shrink: 0;
  }

  .lang-switcher.open .lang-dropdown {
    display: none !important;
  }

  .footer-grid {
    gap: 24px !important;
  }

  .footer-brand {
    margin-bottom: 0 !important;
  }
}

/* Google review CTA (contact section) — styles in CSS, not inline JS */
.google-review-cta {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: #fff;
}

.google-review-cta-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A7168;
  margin-bottom: 10px;
}

.google-review-cta-hint {
  font-size: 14px;
  line-height: 1.6;
  color: #3A3530;
  margin: 0 0 14px;
}

.google-review-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C9A84C;
  color: #000;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
