/* =============================================
   VendeDO.net — Main Stylesheet
   Brand (logo-derived): Navy #102A3A | Caribbean Blue #1E78C2 | Terracotta #C0312B | Palm #1F7A3A | Sand #E8B96A
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&display=swap');

/* === VARIABLES === */
:root {
  --primary:       #1E78C2;
  --primary-dark:  #155A93;
  --primary-light: #E6F1FA;
  --accent:        #C0312B;
  --accent-light:  #FBE9E7;
  --dark:          #102A3A;
  --sand:          #E8B96A;
  --sand-light:    #FBF6EC;
  --gray-900:      #0F172A;
  --gray-700:      #334155;
  --gray-600:      #475569;
  --gray-500:      #64748B;
  --gray-400:      #94A3B8;
  --gray-300:      #CBD5E1;
  --gray-200:      #E2E8F0;
  --gray-100:      #F1F5F9;
  --white:         #FFFFFF;
  --green:         #1F7A3A;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --font:          'Inter', sans-serif;
  --ease:          0.2s ease;
  --container:     1440px;
  --nav-h:         68px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
select {
  appearance: none;
  -webkit-appearance: none;
  /* !important so the chevron survives form rules that use the `background`
     shorthand (which would otherwise reset background-image to none) and the
     padding shorthand on the same elements. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  padding-right: 32px !important;
}
/* Suppress the background chevron where one is already drawn over the select
   (currency picker + filter sidebar both use .currency-wrap with an overlaid
   Font Awesome chevron), or where the select keeps the native arrow. */
/* Don't override padding-right here — these selects rely on their own padding
   to leave room for either the overlaid FA chevron (.currency-wrap) or the
   native browser arrow (.form-input). Forcing 12px here caused the selected
   value to overlap the chevron in the currency/filter pickers. */
.currency-wrap select,
select.form-input { background-image: none !important; }

/* === ACCESSIBILITY — FOCUS STYLES === */
/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) { outline: none; }

/* Visible focus ring for keyboard navigation on all interactive elements */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Inputs and selects already show a border highlight on focus — add ring on top */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}

/* Buttons inside dark backgrounds get a light ring */
.dash-sidebar :focus-visible,
.agent-hero :focus-visible,
footer :focus-visible {
  outline-color: #8FC4EE;
}

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link for screen readers */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  z-index: 10000;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* === LAYOUT === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: var(--gray-500); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* === NAVBAR === */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  height: var(--nav-h);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link {
  padding: 8px 15px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--gray-700);
  transition: background var(--ease), color var(--ease); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--gray-100); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* === NAV USER MENU (avatar + dropdown) === */
#nav-user-menu { display: none; position: relative; align-items: center; }

/* Avatar trigger button */
.nav-avatar-btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  padding: 4px 6px 4px 4px; border-radius: 24px;
  transition: background .15s;
}
.nav-avatar-btn:hover { background: var(--gray-100); }

/* Circle with initials */
.nav-avatar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; user-select: none;
}

.nav-avatar-name {
  font-size: .87rem; font-weight: 600; color: var(--dark);
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-avatar-chev {
  font-size: .6rem; color: var(--gray-400);
  transition: transform .2s; flex-shrink: 0;
}
.nav-avatar-btn[aria-expanded="true"] .nav-avatar-chev { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 230px; z-index: 9999;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Dropdown header (name + role) */
.nav-dd-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
}
.nav-dd-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: .9rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-dd-fullname  { font-size: .92rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.nav-dd-role-pill {
  display: inline-block; margin-top: 3px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 1px 8px; border-radius: 10px;
}
.nav-dd-role-pill.pill-buyer  { background: #D6F0DD; color: var(--green); }
.nav-dd-role-pill.pill-agent  { background: var(--primary-light); color: var(--primary-dark); }
.nav-dd-role-pill.pill-admin  { background: #FEF3C7; color: #92400E; }

.nav-dd-divider { height: 1px; background: var(--gray-200); margin: 4px 0; }

/* Dropdown items */
.nav-dd-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px; font-size: .87rem; color: var(--gray-700);
  text-decoration: none; transition: background .12s; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit; font-weight: 500;
}
.nav-dd-item:hover { background: var(--gray-100); color: var(--dark); }
.nav-dd-item i { width: 15px; text-align: center; color: var(--gray-400); font-size: .82rem; flex-shrink: 0; }
.nav-dd-item:hover i { color: var(--primary); }
.nav-dd-logout { color: #DC2626; }
.nav-dd-logout i { color: #DC2626; }
.nav-dd-logout:hover { background: #FEE2E2; color: #DC2626; }
.nav-dd-logout:hover i { color: #DC2626; }

/* Hide name label on small screens — just show the circle */
@media (max-width: 900px) { .nav-avatar-name { display: none; } }

/* Hamburger */
.nav-hamburger { display: none; padding: 6px; border-radius: var(--radius-sm); color: var(--gray-700); font-size: 1.2rem; }
.nav-hamburger:hover { background: var(--gray-100); }

/* Language Toggle */
.lang-toggle { display: flex; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.lang-btn {
  padding: 5px 11px; font-size: 0.78rem; font-weight: 700;
  color: var(--gray-500); background: var(--white); cursor: pointer;
  transition: all var(--ease); border: none;
}
.lang-btn.active { background: var(--primary); color: var(--white); }

/* Currency Selector */
.currency-wrap { position: relative; display: flex; align-items: center; }
.currency-wrap i { position: absolute; right: 8px; font-size: 0.65rem; color: var(--gray-500); pointer-events: none; }
.currency-select {
  padding: 6px 26px 6px 10px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 700; color: var(--gray-700); background: var(--white); cursor: pointer;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; transition: all var(--ease); white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: var(--white); }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent   { background: var(--accent); color: var(--white); }
.btn-accent:hover   { background: #B71C1C; }
.btn-outline  { border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover  { background: var(--primary); color: var(--white); }
.btn-dark     { background: var(--dark); color: var(--white); }
.btn-dark:hover     { background: #0f2118; }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1EB858; }
.btn-gray     { background: var(--gray-100); color: var(--gray-700); }
.btn-gray:hover     { background: var(--gray-200); }
.btn-sm  { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; }

/* === HERO === */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(16,42,58,0.82) 0%, rgba(21,90,147,0.72) 55%, rgba(30,120,194,0.62) 100%),
    url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80') center/cover no-repeat;
  color: var(--white); padding: 80px 0;
  isolation: isolate;
}
/* Mesh glows — sand top-left, caribbean bottom-right */
.hero::before,
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 620px; height: 620px; border-radius: 50%;
  filter: blur(110px); pointer-events: none;
  opacity: .55;
}
.hero::before {
  top: -180px; left: -160px;
  background: radial-gradient(circle, var(--sand) 0%, transparent 70%);
}
.hero::after {
  bottom: -220px; right: -180px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: .65;
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 24px;
  padding: 6px 18px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 20px; letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.18; margin-bottom: 18px;
}
.hero h1 .highlight { color: var(--sand); }
.hero-sub { font-size: 1.1rem; opacity: 0.88; margin-bottom: 36px; }

/* Seller secondary CTA below search bar */
.hero-seller-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 20px; flex-wrap: wrap;
}
.hero-seller-cta span {
  font-size: .88rem; color: rgba(255,255,255,.65);
}
.hero-seller-link {
  font-size: .88rem; font-weight: 700;
  color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.hero-seller-link:hover {
  color: var(--sand);
  border-color: var(--sand);
}
.hero-seller-link i { font-size: .78rem; transition: transform .2s; }
.hero-seller-link:hover i { transform: translateX(3px); }

/* === SEARCH WIDGET === */
.search-widget {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); max-width: 880px; margin: 0 auto;
}
.search-tabs { display: flex; border-bottom: 1px solid var(--gray-200); }
.search-tab {
  flex: 1; padding: 13px 0; text-align: center;
  font-size: 0.88rem; font-weight: 600; color: var(--gray-500);
  cursor: pointer; transition: all var(--ease);
  border-bottom: 3px solid transparent; background: none; border-top: none; border-left: none; border-right: none;
}
.search-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light); }
.search-tab:hover:not(.active) { color: var(--gray-900); background: var(--gray-100); }

.search-form { display: flex; align-items: stretch; }
.search-field { flex: 1; display: flex; align-items: center; padding: 16px 18px; gap: 10px; border-right: 1px solid var(--gray-200); position: relative; }
.search-field i { color: var(--gray-400); font-size: 0.95rem; flex-shrink: 0; }
.search-field input { flex: 1; border: none; outline: none; font-size: 0.95rem; color: var(--gray-900); background: transparent; }
.search-field input::placeholder { color: var(--gray-400); }

/* Leading icon stack — magnifying glass swaps to spinner while typing */
.search-leading-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.search-leading-icon > i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.95rem;
  transition: opacity .18s ease, transform .25s cubic-bezier(.2,.7,.2,1);
}
.search-leading-icon .search-leading-spinner {
  opacity: 0;
  transform: scale(.6) rotate(-90deg);
  color: var(--primary);
}
.search-leading-icon.is-loading > i:first-child {
  opacity: 0;
  transform: scale(.6) rotate(90deg);
}
.search-leading-icon.is-loading .search-leading-spinner {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Suggestions dropdown — appears below the search widget */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(16,42,58,.18), 0 4px 12px rgba(16,42,58,.08);
  max-height: 380px;
  overflow-y: auto;
  z-index: 50;
  padding: 6px;
  animation: vd-fade-up .18s ease-out;
}
.search-suggest[hidden] { display: none; }
.search-suggest-group {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gray-500);
  padding: 10px 14px 6px;
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .92rem;
  color: var(--dark);
  text-decoration: none;
  transition: background .12s ease;
}
.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.search-suggest-item i {
  width: 18px;
  font-size: .88rem;
  color: var(--primary);
}
.search-suggest-item .sg-sub {
  font-size: .76rem;
  color: var(--gray-500);
  margin-left: auto;
  font-weight: 500;
}
.search-suggest-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: .88rem;
}

.search-divider { width: 1px; background: var(--gray-200); }
.search-type-wrap { position: relative; display: flex; align-items: center; }
.search-type-wrap i.chevron { position: absolute; right: 14px; font-size: 0.65rem; color: var(--gray-400); pointer-events: none; }
.search-select-inner {
  padding: 16px 36px 16px 18px; border: none; outline: none;
  font-size: 0.88rem; font-weight: 500; color: var(--gray-700);
  background: transparent; cursor: pointer; white-space: nowrap;
}
.search-btn {
  padding: 16px 30px; background: var(--primary); color: var(--white);
  font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
  transition: background var(--ease); display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-dark); }

/* === PROPERTY CARDS === */
/* Explicit fixed columns — avoids Safari's auto-fill/minmax rendering bug
   where containers near the min-width produce 0 visible columns */
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.property-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer;
  display: flex; flex-direction: column; /* equal-height cards in each row */
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-img { position: relative; height: 215px; overflow: hidden; background: var(--gray-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .card-img img { transform: scale(1.05); }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
}
.badge-sale            { background: var(--primary); color: var(--white); }
.badge-rent            { background: var(--green);   color: var(--white); }
.badge-land            { background: #92400E;         color: var(--white); }
.badge-commercial      { background: var(--gray-700); color: var(--white); }
.badge-featured        { background: #D97706;         color: var(--white); }
.card-badge-bottom-right { bottom: 10px; right: 10px; left: auto; top: auto; }
.card-badge-bottom-left  { bottom: 10px; left: 10px; top: auto; }

.card-fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; background: rgba(255,255,255,0.92);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: all var(--ease);
}
.card-fav:hover { transform: scale(1.1); }
.card-fav i { color: var(--gray-400); font-size: 0.88rem; transition: color var(--ease); }
.card-fav.saved i { color: var(--accent); }
.card-fav.saved .fa-regular { display: none; }
.card-fav:not(.saved) .fa-solid.fa-heart { display: none; }

.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-price { font-size: 1.3rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.card-price-note { font-size: 0.78rem; font-weight: 400; color: var(--gray-500); margin-left: 2px; }
.card-addr { font-size: 0.82rem; color: var(--gray-500); margin-top: 5px; margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }
.card-addr i { color: var(--primary); font-size: 0.78rem; flex-shrink: 0; }
.card-stats { display: flex; gap: 14px; padding-top: 12px; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.card-stat { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--gray-600); }
.card-stat i { color: var(--gray-400); font-size: 0.78rem; }
.card-stat strong { color: var(--gray-800); font-weight: 700; }

/* === CITY CARDS === */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 14px; }
.city-card { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 158px; display: block; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.city-card:hover img { transform: scale(1.08); }
.city-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, transparent 55%); }
.city-info { position: absolute; bottom: 14px; left: 14px; color: var(--white); }
.city-name { font-size: 0.95rem; font-weight: 700; display: block; }
.city-count { font-size: 0.75rem; opacity: 0.85; }

/* === STATS BAND === */
.stats-band { background: var(--dark); color: var(--white); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 2.6rem; font-weight: 800; color: var(--sand); margin-bottom: 6px; }
.stat-item p { font-size: 0.9rem; opacity: 0.82; }

/* === FEATURES GRID === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.feature-card {
  padding: 32px 24px; border-radius: var(--radius-md);
  background: var(--gray-100); text-align: center;
  transition: all var(--ease); border: 1px solid transparent;
}
.feature-card:hover { background: var(--primary-light); border-color: #BBDEFB; transform: translateY(-3px); }
.feat-icon {
  width: 62px; height: 62px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(21,101,192,0.35);
}
.feat-icon i { color: var(--white); font-size: 1.45rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; }

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: var(--white); padding: 52px 0;
}
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.page-header p { opacity: 0.8; font-size: 0.95rem; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; opacity: 0.65; margin-bottom: 14px; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb i { font-size: 0.6rem; }

/* === LISTINGS LAYOUT === */
.listings-layout { display: grid; grid-template-columns: 288px 1fr; gap: 28px; align-items: start; margin-top: 32px; }
/* Prevents grid blowout — without this, wide cards overflow the column on Safari */
.listings-layout > main { min-width: 0; }

/* Sidebar */
.filter-sidebar {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); padding: 22px;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.filter-head h3 { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.filter-clear { font-size: 0.78rem; color: var(--primary); font-weight: 600; cursor: pointer; }
.filter-clear:hover { text-decoration: underline; }

.filter-group { margin-bottom: 20px; }
.filter-label { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 8px; }
.filter-select, .filter-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--gray-700);
  background: var(--white); outline: none; transition: border-color var(--ease);
}
.filter-select:focus, .filter-input:focus { border-color: var(--primary); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.opt-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.opt-btn {
  padding: 5px 13px; border: 1.5px solid var(--gray-200); border-radius: 20px;
  font-size: 0.78rem; font-weight: 700; color: var(--gray-600);
  cursor: pointer; background: var(--white); transition: all var(--ease);
}
.opt-btn:hover, .opt-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.status-opts { display: flex; flex-direction: column; gap: 8px; }
.status-opt { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.875rem; color: var(--gray-700); }
.status-opt input { accent-color: var(--primary); }

/* Listings main */
.listings-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.listings-count { font-size: 0.9rem; color: var(--gray-500); }
.listings-count strong { color: var(--dark); }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-500); }
.sort-select-inner { padding: 7px 30px 7px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.85rem; background: var(--white); color: var(--gray-700); }

/* === PROPERTY DETAIL === */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; padding: 36px 0; }

/* Gallery */
.gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; box-shadow: 0 4px 24px rgba(0,0,0,0.10); }
.gallery-main { height: 520px; position: relative; overflow: hidden; background: #111; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; width: 100%; padding: 0 16px; pointer-events: none;
}
.gallery-nav button {
  pointer-events: all; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25); transition: all var(--ease); font-size: 0.95rem; color: var(--dark);
}
.gallery-nav button:hover { background: var(--white); transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.gallery-counter { position: absolute; bottom: 16px; right: 16px; background: rgba(0,0,0,0.62); color: var(--white); padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; background: #111; padding: 6px; }
.gallery-thumb { height: 80px; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2.5px solid transparent; transition: border-color var(--ease), opacity var(--ease); opacity: 0.72; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--primary); opacity: 1; }
.gallery-thumb:hover:not(.active) { opacity: 0.9; }

/* Detail info */
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-title { font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 800; color: var(--dark); margin-bottom: 8px; line-height: 1.2; }
.detail-addr { display: flex; align-items: center; gap: 7px; color: var(--gray-500); font-size: 0.9rem; margin-bottom: 4px; }
.detail-addr i { color: var(--primary); }
.detail-price { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin: 16px 0 20px; line-height: 1; letter-spacing: -0.5px; }
.detail-price small { font-size: 1rem; color: var(--gray-500); font-weight: 400; margin-left: 4px; }

.detail-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px;
  border: 1.5px solid var(--gray-200); box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.ds-item { text-align: center; padding: 18px 8px; border-right: 1px solid var(--gray-200); }
.ds-item:last-child { border-right: none; }
.ds-item i { color: var(--primary); font-size: 1.1rem; display: block; margin-bottom: 7px; }
.ds-item .val { font-size: 1.3rem; font-weight: 800; color: var(--dark); display: block; line-height: 1; }
.ds-item .lbl { font-size: 0.7rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; display: block; }

/* Detail tabs */
.detail-tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; gap: 2px; overflow-x: auto; }
.detail-tab {
  padding: 10px 16px; font-size: 0.86rem; font-weight: 600; color: var(--gray-500);
  cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: all var(--ease); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: none; white-space: nowrap; flex-shrink: 0;
}
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-light); }
.detail-tab:hover:not(.active) { color: var(--gray-900); background: var(--gray-100); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.detail-desc { font-size: 0.96rem; color: var(--gray-700); line-height: 1.9; }
.detail-info-table { width: 100%; border-collapse: collapse; }
.detail-info-table tr { border-bottom: 1px solid var(--gray-100); }
.detail-info-table td { padding: 11px 6px; font-size: 0.875rem; }
.detail-info-table td:first-child { color: var(--gray-500); width: 42%; }
.detail-info-table td:last-child { font-weight: 600; color: var(--dark); }

.map-placeholder { background: var(--gray-100); border-radius: var(--radius-md); height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--gray-500); }
.map-placeholder i { font-size: 2rem; color: var(--gray-400); }

/* Contact sidebar card */
.contact-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
/* Stick the whole right column (agent card + "Necesitas ayuda" card) as one
   unit. Pinning just .contact-card caused the help card below it to scroll
   up underneath the sticky agent card. */
.detail-layout > aside { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.contact-card-title { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); }

.agent-mini { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--gray-100); }
.agent-mini img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); flex-shrink: 0; }
.agent-mini-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.agent-mini-role { font-size: 0.78rem; color: var(--gray-500); }
.agent-mini-zone { font-size: 0.78rem; color: var(--primary); font-weight: 600; }

.cform-group { margin-bottom: 10px; }
.cform-input, .cform-select, .cform-textarea {
  width: 100%; padding: 9px 13px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 0.85rem; outline: none;
  transition: border-color var(--ease); background: var(--white); color: var(--gray-900);
}
.cform-input:focus, .cform-select:focus, .cform-textarea:focus { border-color: var(--primary); }
.cform-textarea { resize: vertical; min-height: 86px; }
.cform-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.cform-success { display: none; background: #D6F0DD; color: var(--green); padding: 12px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; text-align: center; }

/* === AGENTS PAGE === */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.agent-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 28px 22px; text-align: center; transition: all 0.25s ease;
}
.agent-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.agent-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--primary-light); }
.agent-name { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.agent-title-text { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 8px; }
.agent-zone { font-size: 0.78rem; color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 16px; }
.agent-nums { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; padding: 14px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.agent-num strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.agent-num span { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.4px; }
.agent-actions-col { display: flex; flex-direction: column; gap: 8px; }
.agent-soc-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 0.85rem; transition: opacity var(--ease), transform var(--ease); text-decoration: none; }
.agent-soc-btn:hover { opacity: 0.85; transform: scale(1.1); }

/* === FOOTER === */
.footer { background: var(--dark); color: rgba(255,255,255,0.72); }
.footer-main { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-brand-logo { height: 48px; width: auto; margin-bottom: 14px; border-radius: 6px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; max-width: 270px; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; transition: color var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-contact-list { display: flex; flex-direction: column; gap: 11px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; }
.footer-contact-list i { color: var(--sand); margin-top: 3px; flex-shrink: 0; width: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.soc-link { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background var(--ease); }
.soc-link:hover { background: var(--primary); }
.soc-link i { color: var(--white); font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--ease); }
.footer-bottom a:hover { color: var(--white); }

/* === MOBILE NAV DRAWER === */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--white); padding: 80px 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mobile-nav-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gray-700);
}
.mobile-nav-link { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; color: var(--gray-700); display: flex; align-items: center; gap: 10px; }
.mobile-nav-link:hover { background: var(--gray-100); color: var(--primary); }
.mobile-nav-link i { width: 18px; color: var(--primary); }
.mobile-nav-divider { height: 1px; background: var(--gray-200); margin: 10px 0; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* === UTILITY === */
.bg-light { background: var(--gray-100); }
.text-center { text-align: center; }
.mt-6 { margin-top: 24px; }
.mt-10 { margin-top: 40px; }
.hidden { display: none !important; }
.badge-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.pill-blue { background: var(--primary-light); color: var(--primary); }
.pill-red  { background: var(--accent-light);  color: var(--accent); }
.pill-green { background: #D6F0DD; color: var(--green); }

/* No results */
.no-results { text-align: center; padding: 64px 32px; color: var(--gray-500); grid-column: 1/-1; }
.no-results i { font-size: 2.5rem; margin-bottom: 14px; display: block; color: var(--gray-300); }

/* Skeleton loading cards */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.skeleton-pulse {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}
.skeleton-img   { height: 200px; }
.skeleton-body  { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line  { height: 14px; border-radius: 4px; }
.skeleton-line.wide  { width: 80%; }
.skeleton-line.med   { width: 60%; }
.skeleton-line.short { width: 40%; }

/* Load more button */
.load-more-wrap { grid-column: 1/-1; text-align: center; padding: 24px 0 8px; }
.btn-load-more  { min-width: 200px; }

/* === RESPONSIVE === */

/* ── Mobile filter toggle (listings page) ── */
.filter-mobile-toggle {
  display: none;
}

/* ── City about 2-col layout (used on all city landing pages) ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

@media (max-width: 1024px) {
  .listings-layout { grid-template-columns: 256px 1fr; }
  /* Drop to 2-col grid when sidebar is present — keeps cards a comfortable width */
  .listings-layout .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr 300px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-outline, .nav-actions .btn-primary { display: none; }

  .hero { min-height: 520px; padding: 60px 0; }
  .search-form { flex-direction: column; }
  .search-divider { display: none; }
  .search-field { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .search-type-wrap { border-bottom: 1px solid var(--gray-200); }
  .search-select-inner { padding: 14px 36px 14px 18px; width: 100%; }
  .search-btn { justify-content: center; padding: 15px; }

  .listings-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: none; }
  .filter-sidebar.filter-open { display: block; }
  /* Full-width on mobile: 2 symmetrical columns */
  .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-img { height: 185px; }
  .filter-mobile-toggle {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 12px 18px;
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: .9rem; font-weight: 700;
    color: var(--dark); cursor: pointer; margin-bottom: 12px;
    justify-content: space-between;
  }
  .filter-mobile-toggle .fmt-left { display: flex; align-items: center; gap: 8px; }
  .filter-mobile-toggle .fmt-chevron { transition: transform .2s; color: var(--gray-400); font-size: .75rem; }
  .filter-mobile-toggle.open .fmt-chevron { transform: rotate(180deg); }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid > div:first-child { order: 2; }
  .about-grid > div:last-child  { order: 1; }

  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout > aside { position: static; }
  .detail-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .ds-item:nth-child(2) { border-right: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .gallery-main { height: 360px; }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
  .gallery-thumb { height: 60px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
}

/* ── Tablet (481–767 px): 2-column property grid ── */
@media (min-width: 481px) and (max-width: 767px) {
  .container        { padding: 0 16px; }
  .properties-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-img         { height: 185px; }
  .card-body        { padding: 12px 14px; }
  .card-price       { font-size: 1.15rem; }
  .card-addr        { font-size: 0.78rem; margin-bottom: 10px; }
  .card-stats       { gap: 10px; padding-top: 10px; }
  .card-stat        { font-size: 0.76rem; }
  .card-badge       { font-size: 0.64rem; padding: 3px 8px; letter-spacing: 0.3px; }
}

/* ── Phones (≤ 480px): 2 compact side-by-side columns ── */
@media (max-width: 480px) {
  .cities-grid  { grid-template-columns: repeat(2, 1fr); }
  .agents-grid  { grid-template-columns: 1fr; }
  /* 2 columns on phones for a modern, symmetrical grid */
  .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img    { height: 155px; }
  .card-body   { padding: 10px 11px; }
  .card-price  { font-size: 1.05rem; }
  .card-addr   { font-size: 0.74rem; margin-bottom: 9px; margin-top: 3px; }
  .card-stats  { gap: 7px; padding-top: 8px; }
  .card-stat   { font-size: 0.71rem; }
  /* Compact badges — truncate long labels */
  .card-badge  { font-size: 0.6rem; padding: 3px 7px; letter-spacing: 0.2px; max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .detail-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .gallery-main     { height: 260px; }
  .gallery-thumbs   { grid-template-columns: repeat(4, 1fr); }

  /* Force 2-col city info cards on narrow phones */
  .city-info-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hide currency selector in nav on very small screens — it's in mobile menu */
  .nav-actions .currency-wrap { display: none; }

  /* Features grid: 1 col under 480px */
  .features-grid { grid-template-columns: 1fr; }

  /* Tighter container padding on narrow phones so cards use more screen width */
  .container { padding: 0 14px; }
}

/* ── Very small phones (≤ 360px): single column ── */
@media (max-width: 360px) {
  .properties-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-img    { height: 190px; }
  .card-body   { padding: 12px 14px; }
  .card-price  { font-size: 1.15rem; }
  .card-addr   { font-size: 0.78rem; }
  .card-stats  { gap: 10px; }
  .card-stat   { font-size: 0.75rem; }
}

/* ── Agent banner responsive ── */
@media (max-width: 600px) {
  #agent-banner > div { flex-direction: column; align-items: flex-start !important; gap: 12px !important; }
  #agent-banner img   { width: 56px !important; height: 56px !important; }
  #agent-banner > div > div:last-child { width: 100%; justify-content: flex-start !important; flex-wrap: wrap; gap: 8px !important; }
}

/* ── Similar properties section responsive ── */
@media (max-width: 600px) {
  .similar-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .similar-section { padding: 32px 0 !important; }
}
@media (max-width: 400px) {
  .similar-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   NEW COMPONENTS
   ═══════════════════════════════════════════════════ */

/* === COOKIE BANNER === */
#vd-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark); color: rgba(255,255,255,.85);
  padding: 18px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
#vd-cookie-banner p { font-size: .85rem; line-height: 1.5; flex: 1; min-width: 220px; }
#vd-cookie-banner a { color: var(--sand); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
#vd-cookie-reject {
  padding: 8px 18px; border-radius: var(--radius-sm); font-size: .83rem; font-weight: 600;
  background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7);
  cursor: pointer; transition: all .2s;
}
#vd-cookie-reject:hover { border-color: rgba(255,255,255,.7); color: var(--white); }
#vd-cookie-accept {
  padding: 8px 18px; border-radius: var(--radius-sm); font-size: .83rem; font-weight: 700;
  background: var(--primary); color: var(--white); border: none; cursor: pointer; transition: background .2s;
}
#vd-cookie-accept:hover { background: var(--primary-dark); }

/* === SOCIAL SHARE BAR === */
.share-bar { margin: 18px 0; }
.share-bar-label {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px;
}
.share-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: all .2s; text-decoration: none; border: none; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.share-btn-fb { background: #1877F2; color: var(--white); }
.share-btn-wa { background: #25D366; color: var(--white); }
.share-btn-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: var(--white); }
.share-btn-tt { background: #000; color: var(--white); }
.share-btn:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
@media (max-width: 480px) {
  .share-bar-btns { gap: 6px; }
  .share-btn { padding: 7px 11px; font-size: .76rem; }
}

/* === MORTGAGE CALCULATOR === */
.calc-card { background: var(--gray-100); border-radius: var(--radius-md); padding: 24px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc-group { display: flex; flex-direction: column; gap: 6px; }
.calc-group label { font-size: .73rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.calc-group input, .calc-group select {
  padding: 9px 13px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: .875rem; background: var(--white); outline: none; transition: border-color .2s;
}
.calc-group input:focus, .calc-group select:focus { border-color: var(--primary); }
.calc-result {
  background: var(--dark); color: var(--white); border-radius: var(--radius-md);
  padding: 20px 24px; text-align: center; margin-top: 4px;
}
.calc-result .result-val  { font-size: 2rem; font-weight: 800; color: var(--sand); line-height: 1.1; }
.calc-result .result-label { font-size: .82rem; opacity: .75; margin-top: 4px; }
.calc-result .result-breakdown { font-size: .78rem; opacity: .6; margin-top: 8px; }
@media (max-width: 480px) { .calc-row { grid-template-columns: 1fr; } }

/* === SIMILAR PROPERTIES === */
.similar-section { padding: 48px 0; background: var(--gray-100); margin-top: 48px; }
.similar-section .section-title { font-size: 1.3rem; margin-bottom: 24px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 20px; }

/* === VERIFIED BADGE === */
.badge-verified {
  background: #D6F0DD; color: var(--green);
  padding: 2px 8px; border-radius: 4px; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  display: inline-flex; align-items: center; gap: 3px;
}

/* === RECENTLY VIEWED === */
.rv-section { padding: 40px 0; }
.rv-section .section-title { font-size: 1.2rem; margin-bottom: 20px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rv-card { display: flex; flex-direction: column; border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; transition: all .2s; text-decoration: none; }
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.rv-img { height: 130px; overflow: hidden; background: var(--gray-100); flex-shrink: 0; }
.rv-img img { width: 100%; height: 100%; object-fit: cover; }
.rv-info { padding: 12px; }
.rv-title { font-size: .82rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.3; }
.rv-price { font-size: .95rem; font-weight: 800; color: var(--primary); margin-bottom: 3px; }
.rv-city  { font-size: .73rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.rv-city i { color: var(--primary); font-size: .68rem; }

/* === ADVANCED FILTER CHECKBOXES === */
.filter-amenity-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.filter-check-label { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--gray-700); cursor: pointer; padding: 4px 0; }
.filter-check-label input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 28px 24px;
}
.test-stars   { color: #F59E0B; font-size: .95rem; margin-bottom: 14px; letter-spacing: 2px; }
.test-quote   { font-size: .92rem; color: var(--gray-600); line-height: 1.78; margin-bottom: 20px; font-style: italic; }
.test-author  { display: flex; align-items: center; gap: 12px; }
.test-avatar  {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.test-name { font-weight: 700; font-size: .88rem; color: var(--dark); }
.test-role { font-size: .76rem; color: var(--gray-500); }

/* === CITY LANDING PAGE === */
.city-hero {
  min-height: 480px; display: flex; align-items: center;
  background: linear-gradient(rgba(16,42,58,.65), rgba(16,42,58,.55)) center/cover no-repeat, var(--city-bg, #102A3A);
  background-blend-mode: multiply, normal;
  color: var(--white); padding: 96px 0 80px;
}
.city-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.city-hero p  { font-size: 1.05rem; opacity: .85; max-width: 580px; margin-bottom: 32px; }
.city-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 16px; margin: 40px 0; }
.city-info-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; text-align: center;
}
.city-info-card i  { font-size: 1.5rem; color: var(--primary); margin-bottom: 10px; display: block; }
.city-info-card h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.city-info-card p  { font-size: .8rem; color: var(--gray-500); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; transition: all .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { height: 195px; overflow: hidden; background: var(--gray-100); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 20px 22px; }
.blog-card-tag     { font-size: .71rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); margin-bottom: 8px; }
.blog-card-title   { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.45; }
.blog-card-excerpt { font-size: .85rem; color: var(--gray-500); line-height: 1.65; margin-bottom: 16px; }
.blog-card-meta    { font-size: .78rem; color: var(--gray-400); display: flex; align-items: center; gap: 12px; }
.blog-tag-chip {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}

/* === CONTACT PAGE === */
.contact-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; padding: 48px 0; }
.contact-form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 32px; }
.contact-info-card { background: var(--dark); color: rgba(255,255,255,.82); border-radius: var(--radius-md); padding: 32px; }
.contact-info-card h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-info-item i { color: var(--sand); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; width: 20px; }
.contact-info-item strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 3px; }
.contact-info-item span { font-size: .85rem; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

/* === LEGAL PAGES === */
.legal-content { max-width: 820px; margin: 48px auto; padding: 0 24px; }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin: 32px 0 10px; }
.legal-content p  { font-size: .92rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: .92rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 6px; }

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL LAYER — Premium Caribbean (Sotheby's × Airbnb Luxe)
   Applied on top of base styles so it cascades site-wide.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --bg-page:      #FFFFFF;
  --bg-paper:     #F8FAFC;
  --rule:         #E2E8F0;
  --shadow-paper: 0 1px 2px rgba(16,42,58,.04), 0 8px 24px rgba(16,42,58,.06);
  --shadow-hover: 0 6px 12px rgba(16,42,58,.06), 0 18px 48px rgba(16,42,58,.10);
}

body { background: var(--bg-page); }

.section { padding: 112px 0; }
.section-header { margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--dark);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--primary); }
.section-subtitle { font-size: 1.05rem; color: var(--gray-600); line-height: 1.75; max-width: 600px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 36px; height: 1.5px; background: var(--sand); }

.bg-light { background: var(--bg-paper); }
.bg-paper { background: var(--bg-paper); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 6.6vw, 5.4rem);
  letter-spacing: -0.028em;
  line-height: 1.02;
  /* Soft dark halo so the headline pops against any background photo */
  text-shadow:
    0 2px 4px rgba(16,42,58,.35),
    0 12px 36px rgba(16,42,58,.55);
}
.hero h1 .highlight { font-style: italic; font-weight: 500; color: var(--sand); }
.hero-sub { font-size: 1.15rem; opacity: 0.92; max-width: 580px; margin: 0 auto 36px; line-height: 1.65; }
.hero-badge {
  background: rgba(255,255,255,0.12);
  border-color: rgba(232,185,106,0.45);
  color: var(--sand);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.7rem;
}

.search-widget {
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(16,42,58,.18), 0 4px 12px rgba(16,42,58,.06);
  border: 1px solid rgba(255,255,255,0.6);
  /* allow the suggestions dropdown to overflow below the widget */
  overflow: visible;
  position: relative;
}
.search-widget .search-tabs { border-radius: 18px 18px 0 0; overflow: hidden; }
.search-widget .search-form { border-radius: 0 0 18px 18px; overflow: hidden; }

.btn { font-weight: 600; letter-spacing: 0.01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(16,42,58,.18), 0 6px 16px rgba(16,42,58,.18);
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(30,120,194,.25), 0 12px 24px rgba(30,120,194,.22);
}
.btn-outline { border: 1.5px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-lg { padding: 15px 32px; font-size: 0.95rem; border-radius: 10px; }

.property-card {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transition: transform .35s ease, box-shadow .35s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 4 / 3; height: auto; }
.card-body { padding: 22px 22px 20px; }
.card-price { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.card-addr { font-size: 0.82rem; color: var(--gray-600); letter-spacing: 0.01em; }

.cities-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.city-card { height: 280px; border-radius: 14px; box-shadow: var(--shadow-paper); }
.city-card:hover { box-shadow: var(--shadow-hover); }
.city-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.city-card:hover img { transform: scale(1.06); }
.city-overlay {
  background: linear-gradient(to top,
    rgba(16,42,58,0.88) 0%,
    rgba(16,42,58,0.35) 50%,
    rgba(16,42,58,0) 100%);
}
.city-info { bottom: 22px; left: 22px; right: 22px; }
.city-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1.1; }
.city-count { display: block; margin-top: 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.85; font-weight: 600; }

.feature-card {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 40px 28px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16,42,58,.03);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover { background: var(--bg-paper); border-color: var(--sand); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.feat-icon {
  width: 52px; height: 52px;
  background: var(--sand-light);
  border: 1px solid var(--sand);
  border-radius: 12px;
  box-shadow: none;
  margin: 0 0 22px;
}
.feat-icon i { color: var(--dark); font-size: 1.2rem; }
.feature-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; }

.stats-band { padding: 88px 0; }
.stats-band .container { border-top: 1px solid rgba(232,185,106,0.2); padding-top: 64px; }
.stat-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 3.4rem; letter-spacing: -0.02em; color: var(--sand); }
.stat-item p { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.7; margin-top: 4px; }

.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #143A55 60%, var(--primary-dark) 100%);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute;
  top: -180px; right: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--sand) 0%, transparent 70%);
  opacity: 0.22; filter: blur(80px); pointer-events: none;
}
.page-header h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.08; }
.page-header p { font-size: 1.05rem; opacity: 0.78; max-width: 580px; margin-top: 10px; }
.breadcrumb { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; opacity: 0.7; }

.detail-tab { font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: -0.005em; }
.detail-tab.active { color: var(--dark); border-bottom-color: var(--sand); }

.blog-card { border: 1px solid var(--rule); border-radius: 14px; background: var(--bg-paper); box-shadow: var(--shadow-paper); }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
.blog-card-tag { letter-spacing: 0.2em; }

.footer { background: var(--dark); }
.footer h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.005em; }

input, select, textarea { border-radius: 10px !important; }

.section + .section { border-top: 1px solid var(--rule); }
.section.bg-light + .section,
.section + .section.bg-light { border-top: none; }
.hero + .section { border-top: none; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }
  .city-card { height: 220px; }
  .feature-card { padding: 32px 22px; }
  .stats-band { padding: 64px 0; }
  .stat-item h3 { font-size: 2.4rem; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO ENTRANCE ANIMATIONS — staggered fade-up on load, slow Ken
   Burns on the photo, continuous mesh drift on the glow blobs.
   ═══════════════════════════════════════════════════════════════ */
@keyframes vd-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vd-fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vd-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes vd-ken-burns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1.2%, -0.8%); }
  100% { transform: scale(1.0)  translate(0, 0); }
}
@keyframes vd-glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
  50%      { transform: translate(40px, 30px) scale(1.08); opacity: .7; }
}
@keyframes vd-glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .65; }
  50%      { transform: translate(-50px, -28px) scale(1.12); opacity: .85; }
}
@keyframes vd-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes vd-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Slow Ken Burns on the hero background image.
   The .hero already has background:linear-gradient + url(...). To animate
   only the url() layer, use a pseudo-element layered behind. */
.hero { position: relative; }
.hero > .container { position: relative; z-index: 2; }

/* Override .hero background so the photo lives on a ::before we can animate */
.hero {
  background:
    linear-gradient(120deg, rgba(16,42,58,0.82) 0%, rgba(21,90,147,0.72) 55%, rgba(30,120,194,0.62) 100%),
    transparent !important;
}
.hero::before {
  /* The original ::before was a sand glow; reassigning it here would
     conflict. We add a NEW layer for the photo via .hero-bg-photo applied
     to .hero directly using an extra pseudo on .hero-content's parent.
     Simpler: keep glows as ::before/::after, add the photo behind everything
     by inserting a ::backdrop-style div via CSS layer (background-image
     on .hero stays the gradient; photo lives on the new layer). */
}
/* Photo layer — animated Ken Burns. Sits between gradient overlay and content. */
.hero {
  position: relative;
  isolation: isolate;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80') center/cover no-repeat;
  z-index: -2;
  animation: vd-ken-burns 22s ease-in-out infinite;
  will-change: transform;
}

/* Slow drift on the existing sand + caribbean glows */
.hero::before { animation: vd-glow-drift-1 14s ease-in-out infinite; }
.hero::after  { animation: vd-glow-drift-2 18s ease-in-out infinite; }

/* Entrance stagger — each element fades up in sequence */
.hero .hero-badge       { animation: vd-fade-down .7s .1s both cubic-bezier(.2,.7,.2,1); }
.hero h1                { animation: vd-fade-up   .9s .25s both cubic-bezier(.2,.7,.2,1); }
.hero .hero-sub         { animation: vd-fade-up   .8s .5s both cubic-bezier(.2,.7,.2,1); }
.hero .search-widget    { animation: vd-fade-up   .9s .7s both cubic-bezier(.2,.8,.2,1); }
.hero .hero-seller-cta  { animation: vd-fade-in   .8s 1s both ease-out; }

/* Continuous flowing gradient on the italic word — never stops, drives
   the "alive" feel of the hero. Multiple highlight stops + slow loop
   make the motion visible without feeling busy. */
.hero h1 .highlight {
  background: linear-gradient(
    100deg,
    var(--sand)   0%,
    #FFF1D0      18%,
    #FFFFFF      30%,
    #FFD988      45%,
    var(--sand)  60%,
    #FFF1D0      78%,
    var(--sand) 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(232,185,106,.35); /* soft glow halo */
  filter: drop-shadow(0 2px 12px rgba(232,185,106,.18));
  animation: vd-flow 7s linear infinite, vd-glow-pulse 3.5s ease-in-out infinite;
  will-change: background-position, filter;
}

@keyframes vd-flow {
  0%   { background-position: 0%   50%; }
  100% { background-position: 300% 50%; }
}
@keyframes vd-glow-pulse {
  0%, 100% { filter: drop-shadow(0 2px 12px rgba(232,185,106,.18)); }
  50%      { filter: drop-shadow(0 4px 24px rgba(232,185,106,.42)); }
}

/* Subtle bob on the seller-CTA arrow once the entrance settles */
.hero-seller-link i {
  animation: vd-bob 2.4s 1.8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   LIQUID GLASS BUTTON — apply via class="btn btn-liquid" on any
   button users (buyers) interact with. Combines a translucent
   caribbean wash, multi-layer bevel inset shadows, backdrop blur,
   and a slow flowing gradient sweep on hover.
   ═══════════════════════════════════════════════════════════════ */
.btn-liquid {
  position: relative;
  isolation: isolate;
  color: #fff !important;
  background: linear-gradient(180deg,
    rgba(30,120,194,.92) 0%,
    rgba(21,90,147,.92) 100%) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(0,0,0,.18),
    inset 1px 0 0 rgba(255,255,255,.18),
    inset -1px 0 0 rgba(255,255,255,.18),
    0 1px 2px rgba(16,42,58,.20),
    0 8px 24px rgba(30,120,194,.30),
    0 16px 48px rgba(30,120,194,.18) !important;
  text-shadow: 0 1px 1px rgba(16,42,58,.4);
  letter-spacing: 0.015em;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, filter .2s ease;
}
/* Animated sheen — a soft white highlight slides across on hover */
.btn-liquid::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 60%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255,255,255,.32) 50%,
    transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 1;
  transition: left .9s cubic-bezier(.2,.7,.2,1);
}
.btn-liquid > * { position: relative; z-index: 2; }
.btn-liquid:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.22),
    inset 1px 0 0 rgba(255,255,255,.22),
    inset -1px 0 0 rgba(255,255,255,.22),
    0 2px 4px rgba(16,42,58,.24),
    0 14px 32px rgba(30,120,194,.42),
    0 24px 64px rgba(30,120,194,.26) !important;
}
.btn-liquid:hover::before { left: 110%; }
.btn-liquid:active {
  transform: translateY(0) scale(.985);
  filter: brightness(.95);
}

/* Sand / gold liquid variant — for premium "Contact" / "Sign up" CTAs */
.btn-liquid.btn-liquid-gold {
  background: linear-gradient(180deg,
    rgba(232,185,106,.94) 0%,
    rgba(193,142,68,.94) 100%) !important;
  color: var(--dark) !important;
  text-shadow: 0 1px 0 rgba(255,241,208,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 1px 2px rgba(16,42,58,.20),
    0 8px 24px rgba(232,185,106,.40),
    0 16px 48px rgba(232,185,106,.22) !important;
}
.btn-liquid.btn-liquid-gold:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 2px 4px rgba(16,42,58,.24),
    0 14px 32px rgba(232,185,106,.52),
    0 24px 64px rgba(232,185,106,.30) !important;
}

/* Green WhatsApp variant — for the buyer contact CTA on property page */
.btn-liquid.btn-liquid-whatsapp {
  background: linear-gradient(180deg,
    rgba(37,211,102,.95) 0%,
    rgba(30,184,88,.95) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 1px 2px rgba(16,42,58,.20),
    0 8px 24px rgba(37,211,102,.32),
    0 16px 48px rgba(37,211,102,.18) !important;
}
.btn-liquid.btn-liquid-whatsapp:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 2px 4px rgba(16,42,58,.24),
    0 14px 32px rgba(37,211,102,.44),
    0 24px 64px rgba(37,211,102,.26) !important;
}

@media (prefers-reduced-motion: reduce) {
  .btn-liquid, .btn-liquid::before { transition: none !important; }
  .btn-liquid::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   SPOTLIGHT — cursor-following soft radial glow on dark surfaces.
   Apply with class="vd-spotlight" on any section; JS in index.html
   writes --sx / --sy / --sopacity on mousemove.
   ═══════════════════════════════════════════════════════════════ */
.vd-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.vd-spotlight::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      560px circle at var(--sx, 50%) var(--sy, 50%),
      rgba(232,185,106,0.22) 0%,
      rgba(30,120,194,0.18) 30%,
      transparent 70%
    );
  opacity: var(--sopacity, 0);
  transition: opacity .35s ease;
  mix-blend-mode: screen;
  will-change: opacity;
}
.vd-spotlight > * { position: relative; z-index: 1; }

/* Per-card spotlight echo — each feature-card inside gets its own soft
   highlight on hover, layered on top of the section's spotlight. */
.vd-spotlight .feature-card {
  position: relative;
  overflow: hidden;
}
.vd-spotlight .feature-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    280px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(232,185,106,0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .25s ease;
}
.vd-spotlight .feature-card:hover::before { opacity: 1; }
.vd-spotlight .feature-card > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .vd-spotlight::after,
  .vd-spotlight .feature-card::before { display: none; }
}
@media (hover: none) {
  /* Touch devices don't have a cursor; hide the spotlight to save paint */
  .vd-spotlight::after,
  .vd-spotlight .feature-card::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   LEAFLET MAP — branded label tooltip + popup
   ═══════════════════════════════════════════════════════════════ */
.leaflet-tooltip.vd-map-label {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(16,42,58,.18), 0 2px 6px rgba(16,42,58,.08);
  font-family: 'Inter', sans-serif;
  white-space: normal;
  max-width: 240px;
}
.leaflet-tooltip.vd-map-label::before {
  border-right-color: #fff !important;
}
.leaflet-popup.vd-map-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16,42,58,.22), 0 4px 12px rgba(16,42,58,.10);
  padding: 4px;
}
.leaflet-popup.vd-map-popup .leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.4;
}

/* Shimmer keyframe used by the map skeleton placeholder */
@keyframes vd-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (max-width: 600px) {
  /* On small screens the permanent label can crowd the map; switch to a
     compact bottom-anchored variant. */
  .leaflet-tooltip.vd-map-label {
    max-width: 180px;
    padding: 8px 10px;
    font-size: .8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED SECTION — empty-state card + animated category tiles
   that keep the grid feeling alive when real listings are sparse.
   ═══════════════════════════════════════════════════════════════ */
.featured-empty-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #143A55 60%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 48px 40px;
  text-align: center;
  isolation: isolate;
  box-shadow: 0 12px 40px rgba(16,42,58,.18);
}
.featured-empty-card .fec-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(232,185,106,.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30,120,194,.4)  0%, transparent 50%);
  filter: blur(40px);
  animation: vd-glow-drift-1 12s ease-in-out infinite;
}
.featured-empty-card .fec-content { position: relative; }
.featured-empty-card .fec-icon {
  width: 68px; height: 68px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(232,185,106,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  color: var(--sand);
  font-size: 1.5rem;
  animation: vd-bob 3s ease-in-out infinite;
}
.featured-empty-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.featured-empty-card p {
  font-size: .92rem;
  opacity: .82;
  max-width: 460px;
  margin: 0 auto 22px;
  line-height: 1.6;
}
.featured-empty-card .btn {
  background: var(--sand) !important;
  color: var(--dark) !important;
  box-shadow: 0 8px 24px rgba(232,185,106,.35);
}
.featured-empty-card .btn:hover { background: #FFD988 !important; transform: translateY(-2px); }

/* ── Category tiles — vibrant cinematic cards that fill empty grid space ── */
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  box-shadow: var(--shadow-paper);
  /* Visible by default — never depend on the animation to reveal the tile */
  opacity: 1;
  isolation: isolate;
  text-decoration: none;
  color: #fff;
}
/* Entrance animation only when motion is welcome; failure can't hide tiles */
@media (prefers-reduced-motion: no-preference) {
  .cat-tile {
    opacity: 0;
    transform: translateY(20px);
    animation: vd-fade-up .7s cubic-bezier(.2,.7,.2,1) forwards;
  }
}
.cat-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease;
  z-index: 0;
}
.cat-tile-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16,42,58,.92) 0%, rgba(16,42,58,.4) 50%, transparent 100%),
    var(--tint, rgba(16,42,58,.4));
  z-index: 1;
  transition: opacity .3s ease;
}
.cat-tile-body {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.cat-tile-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--sand);
  margin-bottom: 8px;
  opacity: .9;
}
.cat-tile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cat-tile-cta {
  font-size: .82rem; font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-tile-cta i { transition: transform .25s ease; }
.cat-tile:hover img       { transform: scale(1.08); filter: brightness(1.05); }
.cat-tile:hover .cat-tile-body { transform: translateY(0); }
.cat-tile:hover .cat-tile-cta  { opacity: 1; transform: translateY(0); }
.cat-tile:hover .cat-tile-cta i { transform: translateX(4px); }
.cat-tile:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .cat-tile { animation: none; opacity: 1; transform: none; }
  .featured-empty-card .fec-icon { animation: none; }
  .featured-empty-card .fec-glow { animation: none; }
}

/* ─── Floating sand orbs — firefly drift upward, infinite ─── */
.hero-orbs {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-orbs .orb {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFF1D0, var(--sand) 60%, rgba(232,185,106,0) 100%);
  filter: blur(.5px) drop-shadow(0 0 10px rgba(232,185,106,.6));
  opacity: 0;
  animation: vd-orb-float 14s linear infinite;
  will-change: transform, opacity;
}
@keyframes vd-orb-float {
  0%   { transform: translate3d(0, 110vh, 0) scale(.5); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate3d(var(--dx, 30px), 40vh, 0) scale(1); opacity: 1; }
  90%  { opacity: .9; }
  100% { transform: translate3d(calc(var(--dx, 30px) * -1), -10vh, 0) scale(.4); opacity: 0; }
}
/* Spread the 12 orbs across the hero with staggered timing + variable drift */
.hero-orbs .orb:nth-child(1)  { left:  6%; --dx: 24px;  animation-duration: 13s; animation-delay:  0s;   width: 7px; height: 7px; }
.hero-orbs .orb:nth-child(2)  { left: 14%; --dx: -32px; animation-duration: 17s; animation-delay: -2s;   width: 10px; height: 10px; }
.hero-orbs .orb:nth-child(3)  { left: 22%; --dx: 18px;  animation-duration: 15s; animation-delay: -5s;   width: 6px; height: 6px; }
.hero-orbs .orb:nth-child(4)  { left: 31%; --dx: -22px; animation-duration: 19s; animation-delay: -8s;   width: 9px; height: 9px; }
.hero-orbs .orb:nth-child(5)  { left: 40%; --dx: 28px;  animation-duration: 14s; animation-delay: -1s;   width: 8px; height: 8px; }
.hero-orbs .orb:nth-child(6)  { left: 49%; --dx: -18px; animation-duration: 16s; animation-delay: -11s;  width: 7px; height: 7px; }
.hero-orbs .orb:nth-child(7)  { left: 58%; --dx: 34px;  animation-duration: 12s; animation-delay: -4s;   width: 11px; height: 11px; }
.hero-orbs .orb:nth-child(8)  { left: 66%; --dx: -26px; animation-duration: 18s; animation-delay: -9s;   width: 8px; height: 8px; }
.hero-orbs .orb:nth-child(9)  { left: 74%; --dx: 20px;  animation-duration: 15s; animation-delay: -6s;   width: 6px; height: 6px; }
.hero-orbs .orb:nth-child(10) { left: 82%; --dx: -30px; animation-duration: 17s; animation-delay: -3s;   width: 9px; height: 9px; }
.hero-orbs .orb:nth-child(11) { left: 89%; --dx: 22px;  animation-duration: 14s; animation-delay: -7s;   width: 7px; height: 7px; }
.hero-orbs .orb:nth-child(12) { left: 95%; --dx: -16px; animation-duration: 16s; animation-delay: -10s;  width: 8px; height: 8px; }

/* Mouse parallax — JS writes --mx and --my (range -1 to 1).
   Headline and glow blobs shift subtly toward the cursor. */
.hero { --mx: 0; --my: 0; }
.hero-content {
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px), 0);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.hero::before {
  /* keyframe animation + parallax shift composed */
  --px: calc(var(--mx) * 30px);
  --py: calc(var(--my) * 22px);
}
.hero::after {
  --px: calc(var(--mx) * -28px);
  --py: calc(var(--my) * -20px);
}

/* Honor reduced motion — kill all hero animations and just show final state */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg,
  .hero::before, .hero::after,
  .hero .hero-badge, .hero h1, .hero .hero-sub,
  .hero .search-widget, .hero .hero-seller-cta,
  .hero h1 .highlight,
  .hero-seller-link i,
  .hero-orbs .orb {
    animation: none !important;
  }
  .hero-orbs { display: none; }
  .hero-content { transform: none !important; }
  .hero h1 .highlight {
    -webkit-text-fill-color: var(--sand);
    color: var(--sand);
  }
}

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL ADDITIONS — Hero split, gallery mosaic, price chip
   ═══════════════════════════════════════════════════════════════ */

/* === HERO SPLIT === */
.hero-split {
  position: relative;
  background: var(--bg-page);
  color: var(--dark);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  align-items: stretch;
}
.hero-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px max(48px, calc((100vw - var(--container)) / 2 + 24px)) 80px 48px;
  position: relative;
}
.hero-text-inner { max-width: 560px; width: 100%; text-align: left; }
.hero-split .hero-badge {
  background: var(--sand-light);
  border: 1px solid var(--sand);
  color: var(--dark);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.hero-split h1 { color: var(--dark); text-align: left; margin-bottom: 22px; }
.hero-split .hero-h1a, .hero-split #hero-h1a { color: var(--dark); }
.hero-split h1 .highlight { color: var(--primary); font-style: italic; font-weight: 500; }
.hero-split .hero-sub {
  color: var(--gray-600);
  opacity: 1;
  text-align: left;
  margin: 0 0 36px;
  max-width: 480px;
}
.hero-split .search-widget {
  margin: 0 0 24px;
  box-shadow: 0 20px 60px rgba(16,42,58,.12), 0 4px 12px rgba(16,42,58,.06);
  border: 1px solid var(--rule);
}
.hero-split .hero-seller-cta { justify-content: flex-start; margin-top: 18px; }
.hero-split .hero-seller-cta span { color: var(--gray-500); }
.hero-split .hero-seller-link {
  color: var(--dark);
  border-bottom-color: var(--rule);
}
.hero-split .hero-seller-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

.hero-visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--gray-200);
}
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(251,246,236,0.35) 0%, transparent 35%);
  pointer-events: none;
}
.hero-visual-badge {
  position: absolute;
  left: 32px; bottom: 32px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(16,42,58,.18);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-visual-badge i { color: var(--green); font-size: 0.92rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 320px; order: -1; }
  .hero-text { padding: 56px 24px 64px; justify-content: center; }
  .hero-text-inner { max-width: 100%; }
  .hero-visual-badge { left: 16px; bottom: 16px; font-size: 0.76rem; padding: 10px 14px; }
}

/* === PROPERTY GALLERY MOSAIC === */
.gallery {
  margin-bottom: 28px;
  position: relative;
}
.gallery-mosaic {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  cursor: pointer;
}
/* Single image */
.gallery-mosaic.gm-count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-mosaic.gm-count-1 .gm-main { grid-column: 1; grid-row: 1; }
/* Two images */
.gallery-mosaic.gm-count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery-mosaic.gm-count-2 .gm-main { grid-column: 1; grid-row: 1; }
/* Three+ images */
.gallery-mosaic.gm-count-3,
.gallery-mosaic.gm-count-4,
.gallery-mosaic.gm-count-5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery-mosaic.gm-count-3 .gm-main,
.gallery-mosaic.gm-count-4 .gm-main,
.gallery-mosaic.gm-count-5 .gm-main {
  grid-column: 1; grid-row: 1 / span 2;
}
.gm-main, .gm-small {
  background: var(--bg-paper, #fff);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: filter .3s ease, background .25s ease;
  outline: none;
  border: 1px solid var(--rule);
}
.gm-main > img, .gm-small > img {
  width: 100%; height: 100%;
  display: block;
  /* object-fit / object-position set inline per-tile based on the agent's saved
     framing — see tileHTML() in js/listings-loader.js */
}
.gm-main:hover > img, .gm-small:hover > img { filter: brightness(.92); }
.gm-main:focus-visible, .gm-small:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }

/* Per-photo shape support — agents' saved gridth carries into the mosaic */
.gm-shape-circle { background: var(--bg-paper); }
.gm-shape-circle > img { transition: clip-path .2s ease, filter .3s ease; }
.gm-shape-circle:hover > img { clip-path: circle(50% at 50% 50%) !important; }
.gm-shape-rectPortrait, .gm-shape-rectLandscape, .gm-shape-square { /* honored by grid placement; no extra clip */ }

.gm-all-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--dark);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16,42,58,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gm-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16,42,58,.28);
}
.gm-all-btn i { font-size: 0.88rem; }

@media (max-width: 700px) {
  .gallery-mosaic { aspect-ratio: 4 / 3; }
  .gallery-mosaic.gm-count-3,
  .gallery-mosaic.gm-count-4,
  .gallery-mosaic.gm-count-5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
  }
  .gallery-mosaic.gm-count-3 .gm-main,
  .gallery-mosaic.gm-count-4 .gm-main,
  .gallery-mosaic.gm-count-5 .gm-main {
    grid-column: 1 / span 2; grid-row: 1;
  }
  /* hide 4th and 5th tile on mobile to keep things tidy */
  .gallery-mosaic.gm-count-4 .gm-small:nth-child(n+4),
  .gallery-mosaic.gm-count-5 .gm-small:nth-child(n+4) { display: none; }
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(16,42,58,0.94);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: lb-fade .2s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  max-width: 1400px; max-height: 90vh;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img {
  max-width: 100%; max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}
.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.05); }
.lb-next:hover { transform: translateY(-50%) scale(1.05); }
.lb-counter {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 700px) {
  .lb-close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .lb-prev  { left: 12px;  width: 40px; height: 40px; }
  .lb-next  { right: 12px; width: 40px; height: 40px; }
  .lb-counter { bottom: 16px; padding: 6px 14px; font-size: 0.74rem; }
}

/* === CARD PRICE CHIP (magazine overlay) === */
.card-img { position: relative; }
.card-price-chip {
  position: absolute;
  left: 14px; bottom: 14px;
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--dark);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  box-shadow: 0 4px 14px rgba(16,42,58,.22);
  z-index: 2;
  pointer-events: none;
}
.card-price-chip span { line-height: 1; }
/* Hide the old body price (kept in legacy code paths) */
.card-body .card-price { display: none; }
/* Tighten body now that price moved up */
.card-body { padding: 16px 20px 18px; }
.card-addr { margin-top: 0; margin-bottom: 12px; font-size: 0.86rem; }

@media (max-width: 480px) {
  .card-price-chip { font-size: 0.95rem; padding: 7px 12px; }
}
