/* ============================================================
   AAFNO GHAR – Main Stylesheet
   Mobile-first, futuristic design
   ============================================================ */

/* ── CSS Variables ──
   Brand direction: "The way home." Cinematic Himalayan editorial theme —
   deep forest + burnished brass on a warm ivory canvas. Aged brass, never
   luxury gold. See brand-brief.md / the Kimi design brief for the full spec. */
:root {
  /* Named brand palette — Navy & Gold */
  --color-forest: #0E2340;    /* Deep Navy — primary brand color */
  --color-tea: #1B3A63;       /* Slate Navy — secondary blue */
  --color-ivory: #F7F6F2;     /* Warm White — dominant canvas */
  --color-brass: #C9A15A;     /* Gold — sparing highlights */
  --color-charcoal: #12151C;  /* Charcoal — type & deep contrast */
  --color-mist: #E4E7ED;      /* Mist — quiet UI surfaces */

  --bg-primary: var(--color-ivory);
  --bg-secondary: #ECEAE4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F3;
  --border: rgba(14, 35, 64, 0.10);
  --border-hover: rgba(201, 161, 90, 0.55);

  --accent-1: var(--color-brass);
  --accent-2: var(--color-forest);
  --accent-3: var(--color-tea);
  --accent-hot: #B5502E;
  --accent-urgent: #96702F;
  --accent-off: #1B3A63;

  --text-primary: var(--color-charcoal);
  --text-secondary: #454B56;
  --text-muted: #7A8291;

  --gradient-main: linear-gradient(135deg, var(--color-brass), var(--color-forest), var(--color-tea));
  --gradient-btn: linear-gradient(135deg, #FFD873 0%, #E8B33D 100%);
  --gradient-hot: linear-gradient(135deg, #C97A4A, #A83F28);
  --gradient-card: linear-gradient(145deg, #FFFFFF, var(--color-ivory));

  --shadow-sm: 0 2px 8px rgba(14, 20, 30, 0.06);
  --shadow-md: 0 8px 32px rgba(14, 20, 30, 0.10);
  --shadow-lg: 0 20px 50px rgba(14, 20, 30, 0.16);
  --shadow-glow: 0 0 30px rgba(201, 161, 90, 0.20);
  --shadow-glow-hover: 0 0 50px rgba(201, 161, 90, 0.32);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-main: 'Inter', sans-serif;
  --font-display: 'Cormorant Garamond', serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-cinematic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 70px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Utility ── */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-domain {
  font-size: 0.62em;
  font-weight: 600;
  font-family: var(--font-body, inherit);
  letter-spacing: 0;
  color: var(--color-brass, #C9A15A);
  vertical-align: baseline;
  margin-left: 2px;
  opacity: 0.9;
}

/* Nav Links */
.nav-links {
  display: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: none;
  padding: 9px 20px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 20px rgba(201, 161, 90, 0.3);
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(201, 161, 90, 0.5);
}

/* Hamburger */
.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(31,42,34,0.06);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-ivory);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  box-shadow: var(--shadow-md);
}

.mobile-menu.open {
  max-height: 400px;
}

.mobile-menu a {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.mobile-menu a:hover {
  color: var(--text-primary);
  background: rgba(31,42,34,0.04);
}

.mobile-menu .mobile-cta {
  margin: 16px 24px;
  padding: 14px 24px;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-align: center;
  border: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 20px 80px;
  overflow: hidden;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 161, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 161, 90, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #D4AF6A, transparent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #8A6D3B, transparent);
  bottom: -80px;
  right: -80px;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #6FA287, transparent);
  top: 50%;
  left: 60%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 161, 90, 0.12);
  border: 1px solid rgba(201, 161, 90, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #C9A15A;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px #C9A15A;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* ── Search Bar ── */
.search-container {
  animation: fadeInUp 0.8s ease 0.3s both;
  margin-bottom: 40px;
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: visible;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(20px);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.search-bar:focus-within {
  border-color: rgba(201, 161, 90, 0.5);
  box-shadow: var(--shadow-lg), var(--shadow-glow-hover);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 20px;
}

/* search-bar-top: stacked on mobile, side-by-side on desktop */
.search-bar-top {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

/* search-bar-bottom: filters + search button */
.search-bar-bottom {
  display: flex;
  flex-direction: column;
}

.location-field {
  border-bottom: 1px solid var(--border);
}

/* Neighbourhood field – same style as location field */
.neighbourhood-field {
  border-bottom: none;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-1);
  flex-shrink: 0;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.autocomplete-dropdown.open {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: rgba(201, 161, 90, 0.1);
  color: var(--text-primary);
}

.autocomplete-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-1);
  flex-shrink: 0;
}

/* Search Filters */
.search-divider {
  display: none;
}

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.filter-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.875rem;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

.filter-select:focus,
.filter-select:hover {
  border-color: rgba(201, 161, 90, 0.4);
  color: var(--text-primary);
}

.filter-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Tag Filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  transition: all var(--transition);
  white-space: nowrap;
}

.tag-btn:hover {
  border-color: rgba(201, 161, 90, 0.4);
  color: var(--text-primary);
  background: rgba(201, 161, 90, 0.1);
}

.tag-btn[aria-pressed="true"],
.tag-btn.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(201, 161, 90, 0.4);
}

/* Search Button */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px;
  padding: 14px 28px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 24px rgba(201, 161, 90, 0.4);
  white-space: nowrap;
}

/* Search button loading state */
.search-btn.loading {
  opacity: 0.75;
  pointer-events: none;
}

.search-btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

.search-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(201, 161, 90, 0.6);
}

.search-btn:active {
  transform: translateY(0);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ============================================================
   LISTINGS SECTION
   ============================================================ */
.listings-section {
  padding: 80px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Active Filters Display */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  min-height: 32px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(201, 161, 90, 0.12);
  border: 1px solid rgba(201, 161, 90, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-2);
}

.filter-chip button {
  color: var(--accent-2);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.filter-chip button:hover {
  opacity: 1;
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* ── Listing Card ── */
.listing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  will-change: transform, opacity;
}

/* Scroll pop-out: Uber Eats style */
.listing-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition), border-color var(--transition);
}

.listing-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: var(--shadow-lg), var(--shadow-glow-hover), 0 0 0 1px rgba(201, 161, 90,0.15);
  border-color: var(--border-hover);
  z-index: 2;
}

/* Active/press state */
.listing-card:active {
  transform: translateY(-4px) scale(1.01);
  transition-duration: 0.1s;
}

/* Card Image */
.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

/* Lazy load placeholder */
.card-image-wrap img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-image-wrap img.loaded {
  opacity: 1;
}

.img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F3EDE0, #E8DEC6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* Card Tags */
.card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.card-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-tag.hot {
  background: var(--gradient-hot);
  color: #fff;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.card-tag.off-market {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.card-tag.urgent {
  background: linear-gradient(135deg, #ca8a04, #d97706);
  color: #fff;
  box-shadow: 0 0 12px rgba(202, 138, 4, 0.5);
}

.card-tag.new {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}

/* Distance Badge (radius search) */
.card-distance-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(111, 162, 135, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(111, 162, 135, 0.4);
  letter-spacing: 0.2px;
  animation: fadeInUp 0.4s ease;
}

/* Boosted Badge on Card – animated shimmer + pulse */
.card-boost-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(135deg, #D97B4F, #ea580c);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  animation: boostPulse 2s ease-in-out infinite;
  box-shadow: 0 4px 14px rgba(249,115,22,0.45);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

@keyframes boostPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(249,115,22,0.45); transform: scale(1); }
  50%       { box-shadow: 0 4px 24px rgba(249,115,22,0.75); transform: scale(1.04); }
}

/* Boosted card shimmer border */
.listing-card.boosted-card {
  border-color: transparent;
  background-clip: padding-box;
  position: relative;
}

.listing-card.boosted-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(
    120deg,
    rgba(249,115,22,0.7) 0%,
    rgba(138, 109, 59,0.7) 25%,
    rgba(201, 161, 90,0.7) 50%,
    rgba(249,115,22,0.7) 75%,
    rgba(138, 109, 59,0.7) 100%
  );
  background-size: 300% 100%;
  animation: shimmerBorder 3s linear infinite;
  z-index: -1;
}

@keyframes shimmerBorder {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Favourite Button */
.card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(8, 11, 20, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}

.card-fav:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.card-fav svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: color var(--transition), fill var(--transition);
}

.card-fav.liked svg {
  color: #ef4444;
  fill: #ef4444;
}

/* Card Body */
.card-body {
  padding: 18px;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-location svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent-1);
}

/* Card Meta */
.card-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-1);
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.card-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.card-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: opacity var(--transition), transform var(--transition);
}

.card-view-btn:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.card-view-btn svg {
  width: 13px;
  height: 13px;
}

/* Load More */
.load-more-container {
  text-align: center;
  margin-top: 48px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.load-more-btn:hover {
  background: rgba(201, 161, 90, 0.1);
  color: var(--text-primary);
  border-color: rgba(201, 161, 90, 0.6);
  box-shadow: var(--shadow-glow);
}

.load-more-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.load-more-btn:hover svg {
  transform: translateY(3px);
}

/* ============================================================
   ROOTED IN THE HILLS (culture section)
   ============================================================ */
.culture-section {
  padding: 70px 20px 90px;
  max-width: 1280px;
  margin: 0 auto;
}

.culture-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.culture-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.culture-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.culture-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.culture-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.culture-tile-lg {
  aspect-ratio: 16 / 9;
}

.culture-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.culture-tile:hover img {
  transform: scale(1.05);
}

.culture-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 14px;
  background: linear-gradient(to top, rgba(20, 24, 18, 0.75), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .culture-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
      "big topright"
      "big botright";
  }
  .culture-tile-lg { grid-area: big; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 80px 20px;
  background: linear-gradient(180deg, transparent, rgba(201, 161, 90, 0.04), transparent);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.step-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: var(--border-hover);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-forest);
  border-top: 1px solid rgba(247, 246, 242, 0.1);
  padding: 60px 20px 0;
}

.footer .logo-text {
  color: var(--color-ivory);
}

.footer .logo-accent {
  background: none;
  -webkit-text-fill-color: var(--color-brass);
  color: var(--color-brass);
}

.footer .social-link {
  background: rgba(247, 246, 242, 0.06);
  border-color: rgba(247, 246, 242, 0.15);
}

.footer .social-link:hover {
  background: rgba(201, 161, 90, 0.2);
  border-color: rgba(201, 161, 90, 0.5);
}

.footer .social-link svg {
  color: rgba(247, 246, 242, 0.75);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(247, 246, 242, 0.6);
  font-style: italic;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.social-link:hover {
  background: rgba(201, 161, 90, 0.15);
  border-color: rgba(201, 161, 90, 0.4);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-brass);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(247, 246, 242, 0.65);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-ivory);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 246, 242, 0.12);
  padding: 20px 0 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(247, 246, 242, 0.55);
}

.footer-credit a {
  color: var(--color-brass);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.affiliate-disclaimer {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
}

.affiliate-disclaimer a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   FLOATING CTA BUTTONS
   ============================================================ */
.floating-ctas {
  position: fixed;
  bottom: 28px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

/* Single FAB variant (main site – Post Listing only) */
.floating-ctas--single {
  bottom: 24px;
  right: 20px;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), width var(--transition), border-radius var(--transition), padding var(--transition);
  position: relative;
  overflow: hidden;
}

.fab:hover {
  transform: scale(1.08) translateY(-2px);
}

.fab svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Post Listing FAB – pill on hover */
.fab-post-main {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 24px rgba(201, 161, 90, 0.5);
  width: auto;
  border-radius: var(--radius-full);
  padding: 0 20px;
  gap: 8px;
  height: 52px;
  animation: fabEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes fabEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fab-post-main:hover {
  box-shadow: 0 8px 36px rgba(201, 161, 90, 0.7);
  transform: translateY(-3px) scale(1.04);
}

.fab-post-label {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* Listing-page FABs (WhatsApp, Call, Post) */
.fab-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.fab-call {
  background: linear-gradient(135deg, #C9A15A, #8A6D3B);
  color: #fff;
  box-shadow: 0 4px 20px rgba(201, 161, 90, 0.4);
}

.fab-call:hover {
  box-shadow: 0 8px 30px rgba(201, 161, 90, 0.6);
}

.fab-post {
  background: linear-gradient(135deg, #6FA287, #4d7d63);
  color: #fff;
  box-shadow: 0 4px 20px rgba(111, 162, 135, 0.4);
}

/* Homepage main post-listing FAB always wins on color, regardless of source order */
.fab-post.fab-post-main {
  background: var(--gradient-btn);
  box-shadow: 0 4px 24px rgba(201, 161, 90, 0.5);
}

.fab-post.fab-post-main:hover {
  box-shadow: 0 8px 36px rgba(201, 161, 90, 0.7);
}

.fab-post:hover {
  box-shadow: 0 8px 30px rgba(111, 162, 135, 0.6);
}

/* FAB Labels (listing page) */
.fab-labels {
  position: fixed;
  bottom: 28px;
  right: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 899;
  pointer-events: none;
}

.fab-label {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(8, 11, 20, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}

.floating-ctas:hover ~ .fab-labels .fab-label,
.fab:hover ~ .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #F0E9D8 25%, #FBF8F1 50%, #F0E9D8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   RESPONSIVE – TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .filter-select {
    flex: 1;
    min-width: 140px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 2fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   RESPONSIVE – DESKTOP (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .hamburger {
    display: none;
  }

  /* ── Desktop search bar ── */
  /* Row 1: City | Neighbourhood (side by side) */
  /* Row 2: Filters + Search button */
  .search-bar {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    overflow: visible;
  }

  /* Invisible wrapper row for the two text fields */
  .search-bar-top {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
  }

  /* City field – left half */
  .location-field {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 0 24px;
    min-height: 60px;
  }

  /* Neighbourhood field – right half */
  .neighbourhood-field {
    flex: 1;
    border-bottom: none;
    padding: 0 24px;
    min-height: 60px;
  }

  /* Filters + search button row */
  .search-bar-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .search-filters {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: none;
    flex-wrap: nowrap;
    flex: 1;
  }

  .search-btn {
    margin: 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .filter-select {
    min-width: 120px;
    flex: none;
  }

  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats {
    gap: 40px;
  }
}

/* ============================================================
   RESPONSIVE – WIDE (≥ 1280px)
   ============================================================ */
@media (min-width: 1280px) {
  .listings-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   NO-JS FALLBACK
   ============================================================ */
.listing-card.no-js {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 161, 90, 0.4);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 161, 90, 0.7);
}

/* ============================================================
   FOCUS VISIBLE (Accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
