/*
   Harmonia Estate – Main Stylesheet
   Brand: Mocha #685D54 · Taupe #A39382 · Milk #FBF7F4 · Charcoal #232323
   Palette: Milk #FBF7F4 · Oat #E5DED2 · Taupe #A39382 · Mocha #685D54 · Charcoal #232323
   ═══════════════════════════════════════════════════ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Core Brand Palette ── */
  --navy:        #232323;   /* Charcoal – primary dark */
  --navy-mid:    #3a3228;   /* dark mocha mid */
  --gold:        #A39382;   /* Taupe – accent */
  --gold-dark:   #685D54;   /* Mocha – hover accent */
  --gold-light:  rgba(163,147,130,0.12);

  /* ── Background Palette ── */
  --bg:          #FBF7F4;   /* Milk */
  --bg-oat:      #E5DED2;   /* Oat */
  --bg-ivory:    #E8DED4;   /* Ivory Silk */
  --bg-section:  #F6F2EB;   /* Sunlit Veil */

  --white:       #FFFFFF;
  --gray-dark:   #3D3530;
  --gray-mid:    #8A8077;   /* Pavement Shadow */
  --gray-light:  #DDD8D2;
  --gray-xlight: #F0EDE8;

  --success:    #4a7c59;
  --warning:    #b07d3a;
  --danger:     #9b3a3a;
  --info:       #4a6fa5;

  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 2px 20px rgba(35,35,35,0.07);
  --shadow-lg:  0 8px 40px rgba(35,35,35,0.13);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--navy); font-size: 14px; line-height: 1.6; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.page-wrap  { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white); border-bottom: 1px solid var(--gray-light);
  position: sticky; top: 0; z-index: 200;
}
.navbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 40px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo-mark {
  width: 36px; height: 36px; background: var(--navy); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
}
.navbar-logo-img { height: 44px; width: auto; display: block; }
.navbar-logo-name { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--navy); letter-spacing: 0.08em; display: block; line-height: 1.1; }
.navbar-logo-sub  { font-size: 10px; color: var(--gold-dark); letter-spacing: 0.15em; text-transform: uppercase; display: block; }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-link { font-size: 14px; color: var(--gray-mid); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.navbar-link:hover, .navbar-link.active { color: var(--navy); }
.navbar-link.active { border-bottom-color: var(--gold-dark); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher { display: flex; gap: 4px; margin-right: 8px; }
.lang-btn { padding: 5px 10px; border: 1.5px solid var(--gray-light); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--gray-mid); cursor: pointer; background: transparent; transition: all .15s; }
.lang-btn.active, .lang-btn:hover { border-color: var(--gold-dark); color: var(--navy); background: var(--gold-light); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: 'Inter', sans-serif; transition: all .15s; text-decoration: none; }
.btn-primary   { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); }
.btn-gold      { background: var(--gold-dark); color: var(--white); }
.btn-gold:hover { background: #574d46; }
.btn-outline   { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-gold { background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold-dark); }
.btn-outline-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: var(--white); }

/* ── CARDS ── */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 24px 28px; }
.card-header { padding: 18px 28px; border-bottom: 1px solid var(--gray-light); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-gold      { background: var(--gold-dark); color: var(--white); }
.badge-success   { background: rgba(74,124,89,.12); color: #2d5e3e; }
.badge-warning   { background: rgba(176,125,58,.12); color: #8a5a1a; }
.badge-danger    { background: rgba(155,58,58,.12); color: #7a2020; }
.badge-info      { background: rgba(74,111,165,.12); color: #2a4f8a; }
.badge-gray      { background: var(--gray-xlight); color: var(--gray-mid); }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-label .req { color: var(--gold-dark); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-light);
  border-radius: 10px; font-size: 14px; color: var(--navy); background: var(--white);
  font-family: 'Inter', sans-serif; transition: border-color .2s; outline: none;
}
.form-control:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(104,93,84,.1); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238A8077' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--gray-mid); text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--gray-light); background: var(--gray-xlight); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); color: var(--navy); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-oat); }

/* ── SECTION TITLES ── */
.section-title { font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.section-sub   { font-size: 15px; color: var(--gray-mid); margin-bottom: 32px; }
.section-label { font-size: 11px; font-weight: 700; color: var(--gold-dark); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--gray-light); background: var(--white); font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all .15s; }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn:hover:not(.active) { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 48px 0 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white); margin-bottom: 8px; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 8px; transition: color .15s; }
.footer-link:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ── LISTING CARDS ── */
.listing-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all .2s; display: block; color: inherit; }
.listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.listing-img { height: 200px; position: relative; overflow: hidden; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(35,35,35,.55) 0%, transparent 55%); }
.listing-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.listing-floor-tag { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.45); color: var(--white); font-size: 11px; padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(4px); font-weight: 600; }
.listing-photo-count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.45); color: var(--white); font-size: 11px; padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(4px); }
.listing-body { padding: 18px 20px 20px; }
.listing-property-tag { font-size: 11px; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.listing-title { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.listing-address { font-size: 12px; color: var(--gray-mid); margin-bottom: 10px; }
.listing-transport { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.transport-chip { padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 500; }
.chip-metro   { background: rgba(74,111,165,.1); color: #2a4f8a; }
.chip-bus     { background: rgba(74,124,89,.1); color: #2d5e3e; }
.chip-tram    { background: rgba(124,93,84,.1); color: #685D54; }
.chip-airport { background: rgba(35,35,35,.08); color: var(--navy); }
.listing-specs { display: flex; border-top: 1px solid var(--gray-xlight); border-bottom: 1px solid var(--gray-xlight); padding: 10px 0; margin-bottom: 14px; }
.spec-item { flex: 1; text-align: center; }
.spec-item + .spec-item { border-left: 1px solid var(--gray-xlight); }
.spec-value { font-size: 13px; font-weight: 700; color: var(--navy); }
.spec-label { font-size: 10px; color: var(--gray-mid); text-transform: uppercase; }
.listing-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.listing-price-label { font-size: 11px; color: var(--gray-mid); }
.listing-price-value { font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.listing-price-period { font-size: 12px; color: var(--gray-mid); font-weight: 400; }

/* ── HERO SECTION ── */
.hero-section {
  background: linear-gradient(135deg, var(--navy) 0%, #3a3228 60%, #685D54 100%);
}

/* ── STATUS BADGES ── */
.status-new        { background: rgba(74,111,165,.1); color: #2a4f8a; }
.status-reviewed   { background: rgba(124,93,84,.1); color: #685D54; }
.status-in_progress{ background: rgba(176,125,58,.12); color: #8a5a1a; }
.status-completed  { background: rgba(74,124,89,.1); color: #2d5e3e; }
.status-cancelled  { background: rgba(138,128,119,.1); color: #5a524d; }

/* ── UTILITIES ── */
.text-gold   { color: var(--gold-dark); }
.text-navy   { color: var(--navy); }
.text-gray   { color: var(--gray-mid); }
.text-success{ color: #2d5e3e; }
.text-danger { color: #7a2020; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ══════════════════════════════════════════════════
   WHATSAPP / VIBER FLOATING CONTACT BUTTONS
   ══════════════════════════════════════════════════ */
.float-contact-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

/* Toggle button */
.float-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(104,93,84,.45);
  transition: transform .2s, background .2s;
  font-size: 22px;
}
.float-toggle:hover { background: #574d46; transform: scale(1.08); }

/* Individual app buttons */
.float-btn-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: opacity .25s, transform .25s;
}
.float-btn-group.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.float-app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 16px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.float-app-btn:hover { transform: translateX(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.22); }

.float-app-btn svg { flex-shrink: 0; }

/* WhatsApp green */
.float-whatsapp { background: #25D366; }
.float-whatsapp:hover { background: #1ebe5d; }

/* Viber purple */
.float-viber { background: #7360F2; }
.float-viber:hover { background: #5e4de0; }

/* Tooltip label */
.float-label {
  position: absolute;
  right: 68px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.float-toggle:hover .float-label { opacity: 1; }


/* ══════════════════════════════════════════════════
   RESPONSIVE DESIGN — Mobile & Tablet Adaptation
   Breakpoints:
     xl  : ≤1200px  (large tablet / small laptop)
     lg  : ≤1024px  (iPad landscape / tablet)
     md  : ≤768px   (iPad portrait)
     sm  : ≤600px   (large phone)
     xs  : ≤480px   (standard phone)
     xxs : ≤360px   (small phone)
   ══════════════════════════════════════════════════ */

/* ── xl: ≤1200px ── */
@media (max-width: 1200px) {
  .container { padding: 0 28px; }
  .navbar-inner { padding: 0 28px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
  .footer-grid > *:last-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── lg: ≤1024px (iPad landscape) ── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .navbar-inner { padding: 0 20px; }
  .navbar-links { gap: 18px; }
  .navbar-link { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}

/* ── md: ≤768px (iPad portrait) ── */
@media (max-width: 768px) {
  /* Navbar: hide desktop links, show hamburger */
  .navbar-links { display: none; }
  .navbar-actions .lang-switcher { display: flex; }
  .navbar-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1.5px solid var(--gray-light);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
  }
  .navbar-hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .2s;
  }
  /* Mobile nav drawer — controlled by JS inline style */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 8px 24px rgba(35,35,35,.12);
    z-index: 99999;
    padding: 16px 20px 20px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .mobile-nav .navbar-link {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--gray-xlight);
    color: var(--navy);
  }
  .mobile-nav .navbar-link:last-child { border-bottom: none; }
  .mobile-nav .btn { width: 100%; margin-top: 12px; justify-content: center; }

  /* Layout */
  .container { padding: 0 16px; }
  .navbar-inner { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }

  /* Section titles */
  .section-title { font-size: 22px; }
  .section-sub { font-size: 14px; }

  /* Cards */
  .card-body { padding: 18px 16px; }
  .card-header { padding: 14px 16px; }

  /* Listing cards */
  .listing-img { height: 180px; }

  /* Float buttons */
  .float-contact-wrap { bottom: 18px; right: 16px; }
  .float-toggle { width: 50px; height: 50px; font-size: 20px; }
}

/* ── sm: ≤600px (large phone) ── */
@media (max-width: 600px) {
  body { font-size: 13px; }

  /* Hero */
  .hero-section { padding: 40px 0 !important; }

  /* Navbar */
  .navbar-inner { height: 60px; }
  .mobile-nav { top: 60px; }
  .navbar-logo-name { font-size: 13px; }
  .navbar-logo-sub { font-size: 9px; }
  .navbar-logo-mark { width: 32px; height: 32px; font-size: 16px; }

  /* Buttons */
  .btn { padding: 9px 18px; font-size: 13px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }

  /* Tables: horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 540px; }

  /* Listing cards */
  .listing-img { height: 160px; }
  .listing-body { padding: 14px 14px 16px; }
  .listing-title { font-size: 15px; }

  /* Section spacing */
  section, .section { padding: 32px 0 !important; }

  /* Float buttons */
  .float-app-btn { padding: 9px 14px 9px 12px; font-size: 13px; }
}

/* ── xs: ≤480px (standard phone) ── */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .navbar-inner { padding: 0 12px; }

  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 17px !important; }

  .section-title { font-size: 20px; }

  /* Cards */
  .card-body { padding: 14px 12px; }

  /* Pagination */
  .pagination { gap: 4px; }
  .page-btn { width: 32px; height: 32px; font-size: 13px; }

  /* Listing card specs */
  .spec-value { font-size: 12px; }
  .spec-label { font-size: 9px; }

  /* Float: hide label text on small screens */
  .float-app-btn span.float-btn-text { display: none; }
  .float-app-btn { padding: 10px 12px; border-radius: 50%; }
  .float-toggle { width: 46px; height: 46px; font-size: 18px; }
}

/* ── xxs: ≤360px (small phone) ── */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .navbar-inner { padding: 0 10px; }
  .btn { padding: 8px 14px; font-size: 12px; }
  .card-body { padding: 12px 10px; }
  .listing-img { height: 140px; }
}

/* ══════════════════════════════════════════════════
   NAVBAR HAMBURGER — hidden on desktop (min-width:769px) only
   ══════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .navbar-hamburger { display: none !important; }
  .mobile-nav       { display: none !important; }
}

/* ══════════════════════════════════════════════════
   PROPERTY PAGE — Responsive overrides
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Property hero */
  .property-hero { min-height: 220px !important; }
  .property-hero h1 { font-size: 22px !important; }

  /* Property detail two-column → single column */
  .property-detail-grid {
    grid-template-columns: 1fr !important;
  }

  /* Highlights grid */
  .highlights-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Facilities grid */
  .facilities-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Transport list */
  .transport-list { padding: 0; }

  /* Google Map iframe */
  .map-embed iframe {
    height: 260px !important;
  }

  /* VR iframe */
  .vr-embed iframe {
    height: 260px !important;
  }
}

@media (max-width: 480px) {
  .highlights-grid {
    grid-template-columns: 1fr !important;
  }
  .facilities-grid {
    grid-template-columns: 1fr !important;
  }
  .map-embed iframe {
    height: 220px !important;
  }
}

/* ══════════════════════════════════════════════════
   UNIT PAGE — Responsive overrides
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Unit image gallery */
  .unit-gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  /* Unit detail layout */
  .unit-detail-layout {
    grid-template-columns: 1fr !important;
  }

  /* Unit specs bar */
  .unit-specs-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .unit-spec-item {
    min-width: 80px;
  }

  /* Lightbox */
  .lightbox-nav { width: 36px; height: 36px; font-size: 18px; }
}

@media (max-width: 480px) {
  .unit-gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════
   PORTAL — Responsive overrides
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Portal sidebar → top bar */
  .portal-layout {
    flex-direction: column !important;
  }
  .portal-sidebar {
    width: 100% !important;
    min-height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-light);
  }
  .portal-sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    gap: 4px;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .portal-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px !important;
    border-radius: 100px !important;
    font-size: 13px;
  }
  .portal-content {
    padding: 20px 16px !important;
  }

  /* Dashboard stat cards */
  .dashboard-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr !important;
  }
  .portal-content {
    padding: 16px 12px !important;
  }
}

/* ══════════════════════════════════════════════════
   ADMIN — Responsive overrides
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column !important;
  }
  .admin-sidebar {
    width: 100% !important;
    min-height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-light);
  }
  .admin-sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    gap: 4px;
    padding: 8px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px !important;
    border-radius: 100px !important;
    font-size: 13px;
  }
  .admin-content {
    padding: 20px 16px !important;
  }
}

/* ══════════════════════════════════════════════════
   ANNOUNCEMENTS — Responsive overrides
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .announcement-grid {
    grid-template-columns: 1fr !important;
  }
  .announcement-detail-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════
   CONTACT PAGE — Responsive overrides
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════
   TOUCH IMPROVEMENTS
   ══════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .btn { min-height: 44px; }
  .navbar-link { padding: 8px 0; }
  .page-btn { width: 40px; height: 40px; }
  .form-control { padding: 12px 14px; font-size: 16px; } /* Prevent iOS zoom */
  select.form-control { font-size: 16px; }

  /* Disable hover effects that don't work on touch */
  .listing-card:hover { transform: none; }
  .float-app-btn:hover { transform: none; }
}

/* ══════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════ */
@media print {
  .navbar, .site-footer, .float-contact-wrap, .mobile-nav { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: none; }
}

/* ══════════════════════════════════════════════════
   NAVBAR OVERFLOW FIX — Hide action buttons on very small screens
   ══════════════════════════════════════════════════ */
@media (max-width: 540px) {
  /* Hide Sign In and Resident Portal buttons in navbar on mobile — they're in the drawer */
  .navbar-actions .btn { display: none !important; }
  .navbar-actions .lang-switcher { display: flex !important; }
  .navbar-hamburger { display: flex !important; }
  .navbar-inner { gap: 8px; }
}

@media (max-width: 380px) {
  .navbar-logo-name { font-size: 11px; }
  .navbar-logo-sub { display: none; }
  .lang-btn { padding: 4px 8px; font-size: 11px; }
}

/* ══════════════════════════════════════════════════
   PROPERTY PAGE — About + Highlights two-column fix
   ══════════════════════════════════════════════════ */
.property-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .property-about-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

/* ══════════════════════════════════════════════════
   NEARBY SECTION — Clean list layout
   ══════════════════════════════════════════════════ */
.nearby-category-section { margin-bottom: 24px; }
.nearby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-xlight);
  gap: 12px;
}
.nearby-item:last-child { border-bottom: none; }
.nearby-item-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.nearby-item-desc { font-size: 12px; color: var(--gray-mid); margin-top: 2px; }
.nearby-item-dist {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .nearby-item { flex-wrap: wrap; gap: 4px; }
  .nearby-item-dist { width: 100%; text-align: right; }
}

/* ══════════════════════════════════════════════════
   HERO SECTION — Mobile h1 size fix
   ══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-section h1 { font-size: 28px !important; line-height: 1.2 !important; }
  .hero-section p { font-size: 14px !important; }
}
@media (max-width: 400px) {
  .hero-section h1 { font-size: 24px !important; }
}

/* ══════════════════════════════════════════════════
   VISITOR ANALYTICS — Admin page styles
   ══════════════════════════════════════════════════ */
.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.analytics-stat-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.analytics-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--navy);
  font-weight: 700;
}
.analytics-stat-label {
  font-size: 12px;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}
.analytics-bar-wrap {
  background: var(--gray-xlight);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  flex: 1;
}
.analytics-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 100px;
  transition: width .4s ease;
}
.analytics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-xlight);
}
.analytics-row:last-child { border-bottom: none; }
.analytics-row-label { font-size: 13px; color: var(--navy); min-width: 140px; }
.analytics-row-count { font-size: 13px; font-weight: 700; color: var(--gold-dark); min-width: 40px; text-align: right; }

@media (max-width: 768px) {
  .analytics-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .analytics-stat-grid { grid-template-columns: 1fr; }
  .analytics-row-label { min-width: 100px; font-size: 12px; }
}

/* ══════════════════════════════════════════════════
   MOBILE FIX PATCH — Navbar, Search, Why Harmonia
   ══════════════════════════════════════════════════ */

/* Prevent horizontal overflow everywhere */
body { overflow-x: hidden !important; }
.container { box-sizing: border-box !important; }

/* Navbar: prevent Sign In + Resident Portal overflow */
@media (max-width: 900px) {
  .navbar-inner { padding: 0 16px !important; }
  .navbar-actions { gap: 6px !important; }
  .navbar-actions .btn { padding: 8px 10px !important; font-size: 12px !important; white-space: nowrap; }
  .lang-switcher { margin-right: 4px !important; }
  .lang-btn { padding: 5px 8px !important; font-size: 11px !important; }
}
@media (max-width: 768px) {
  .navbar-logo-name, .navbar-logo-sub { display: none !important; }
  .navbar-links { display: none !important; }
  .navbar-actions .btn-outline { display: none !important; }
}
@media (max-width: 480px) {
  .navbar-inner { padding: 0 12px !important; height: 60px !important; }
  .navbar-logo-mark { width: 30px !important; height: 30px !important; font-size: 15px !important; }
  .lang-switcher { display: none !important; }
}

/* Hero search bar — guaranteed 3-row stacked on mobile */
@media (max-width: 640px) {
  .hero-search-box {
    flex-direction: column !important;
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-search-field {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 18px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--gray-xlight) !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .hero-search-field label { min-width: 80px !important; font-size: 11px !important; flex-shrink: 0 !important; }
  .hero-search-field select { flex: 1 !important; text-align: right !important; font-size: 14px !important; max-width: calc(100% - 90px) !important; }
  .hero-search-divider { display: none !important; }
  .hero-search-btn { width: calc(100% - 32px) !important; margin: 12px 16px 16px !important; display: flex !important; justify-content: center !important; border-radius: 12px !important; }
}

/* Why Harmonia — stats card overflow fix */
@media (max-width: 768px) {
  .why-harmonia-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .why-harmonia-grid > div:last-child { width: 100% !important; box-sizing: border-box !important; }
}

/* Property page — About + Highlights 2-col → 1-col */
@media (max-width: 768px) {
  .prop-about-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* Grid responsive */
@media (max-width: 768px) {
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
}
@media (max-width: 480px) {
  .container { padding-left: 12px !important; padding-right: 12px !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* Mobile nav drawer animation */
.mobile-nav-drawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-overlay { opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

/* Floating contact buttons — mobile position */
@media (max-width: 480px) {
  .float-contact-wrap { bottom: 16px !important; right: 16px !important; }
  .float-toggle { width: 48px !important; height: 48px !important; font-size: 18px !important; }
}

/* Section overflow guard */
@media (max-width: 768px) {
  section { overflow: hidden; }
}
