/* =============================================
   EVNET.AZ – DESIGN SYSTEM & GLOBAL STYLES
   Tiffany Blue Color Palette
   ============================================= */

:root {
  /* Tiffany Blue Palette — authentic robin's-egg blue */
  --tiffany-50:  #f0fdfb;
  --tiffany-100: #d5f5f2;
  --tiffany-200: #a8e8e3;
  --tiffany-300: #81D8D0;   /* TRUE Tiffany Blue — use for decoration/accents  */
  --tiffany-400: #6DCAC2;
  --tiffany-500: #5BBDB7;   /* PRIMARY — buttons, links (darker = readable)     */
  --tiffany-600: #4AADA6;
  --tiffany-700: #37918A;
  --tiffany-800: #2A706A;
  --tiffany-900: #1C4E4B;
  --tiffany-dark: #0a1628;

  /* Neutrals */
  --gray-50:  #ffffff;
  --gray-100: #f5f6f5;
  --gray-200: #e6e6e6;
  --gray-300: #cccccc;
  --gray-400: #999999;
  --gray-500: #666666;
  --gray-600: #444444;
  --gray-700: #333333;
  --gray-800: #1a1a1a;
  --gray-900: #111111;

  /* Accent */
  --gold: #ffbe1a;
  --danger: #e53e3e;
  --success: #5BBDB7;

  /* Semantic */
  --color-primary:      var(--tiffany-500);   /* #5BBDB7 — buttons/links     */
  --color-primary-light: var(--tiffany-300);  /* #81D8D0 — hero accents      */
  --color-primary-dark:  var(--tiffany-700);  /* #37918A — dark mode/hover   */
  --color-primary-light-bg: var(--tiffany-50);
  --color-text:      var(--gray-900);
  --color-text-muted: var(--gray-600);
  --color-bg:        #f5f6f5;
  --color-bg-subtle: #ffffff;
  --color-border:    var(--gray-200);
  --color-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --color-card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow-x: hidden;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { 
  font-family: inherit; 
  -webkit-appearance: none; 
  appearance: none; 
}
input[type="checkbox"] { 
  -webkit-appearance: auto !important; 
  appearance: auto !important; 
}

/* Hide scrollbars for horizontal lists but keep touch functionality */
::-webkit-scrollbar {
  display: none;
}
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
}
.section-sub {
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  font-size: 0.95rem;
}
.text-center { text-align: center; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--color-primary);
  color: #0a3d3a;
  font-weight: 800;
}
.btn-primary:hover {
  background: var(--tiffany-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(129,216,208,0.45);
  color: #0a3d3a;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-white {
  background: #fff;
  color: var(--tiffany-700);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-white:hover {
  background: var(--tiffany-50);
  transform: translateY(-1px);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}
.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 20px rgba(129,216,208,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 64px;
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header-inner::-webkit-scrollbar {
  display: none;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.logo-dot { color: var(--color-primary); }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-dot { color: var(--tiffany-300); }
.logo-light .logo-icon { color: var(--tiffany-300); }

/* Main Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
}
.nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.nav-link:hover {
  background: var(--tiffany-50);
  color: var(--color-primary);
}
.nav-link.active {
  color: var(--color-primary);
  background: var(--tiffany-50);
}
.nav-link.btn-nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--tiffany-700));
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(129,216,208,0.25);
  margin-left: 4px;
}
.nav-link.btn-nav-cta:hover {
  color: white;
  background: linear-gradient(135deg, var(--color-primary), var(--tiffany-700));
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(129,216,208,0.4);
}
.nav-link.btn-nav-cta.active {
  background: linear-gradient(135deg, var(--tiffany-700), var(--tiffany-800));
  color: white;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.dashboard-header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Switcher */
.lang-switcher {
  display: flex; /* Visible on desktop, overridden per breakpoint */
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: all var(--transition-fast);
}
.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
}
.lang-btn:hover:not(.active) { color: var(--color-primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* =============================================
   HERO SECTION — Premium Gradient Style
   ============================================= */
.hero {
  position: relative;
  background: linear-gradient(165deg, #0a1628 0%, #0f2b3c 35%, #164e4a 65%, #1a5c56 100%);
  color: #fff;
  min-height: auto;
  padding-top: 88px;
  padding-bottom: 32px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(129,216,208,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 20%, rgba(91,189,183,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Hero headline */
.hero-headline {
  text-align: center;
  margin-bottom: 28px;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-headline h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero-headline p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Search Bar (Glassmorphism) ── */
.search-bar {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 20px 14px;
  animation: searchFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
@keyframes searchFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Override search inputs for dark hero */
.hero .search-select,
.hero .search-price-input,
.hero .search-location-wrap .location-input {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.3);
  color: var(--gray-800);
}
.hero .stab {
  color: rgba(255,255,255,0.6);
}
.hero .stab.active {
  color: #fff;
  border-bottom-color: var(--tiffany-300);
}
.hero .stab:hover {
  color: #fff;
}

/* ── Skeleton Loader ── */
.skeleton-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
}
.skeleton-body {
  padding: 16px;
}
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite ease-in-out;
  margin-bottom: 10px;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.price { height: 20px; width: 45%; margin-bottom: 12px; }
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Infinite Scroll ── */
.infinite-scroll-trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 80px;
}
.infinite-scroll-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}
@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}
.infinite-scroll-end {
  text-align: center;
  padding: 32px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ── Section Dividers ── */
.section { position: relative; }
.section + .section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 0 auto;
  max-width: 80%;
}

/* ── How-it-works cards upgrade ── */
.how-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.how-icon-wrap.blue { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #2563eb; }
.how-icon-wrap.rose { background: linear-gradient(135deg, #fce7f3, #fdf2f8); color: #e11d48; }
.how-icon-wrap.amber { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #d97706; }
.how-icon-wrap.teal { background: linear-gradient(135deg, var(--tiffany-100), var(--tiffany-50)); color: var(--tiffany-700); }

.how-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--tiffany-200);
}

/* Card stagger animation */
.listing-card.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: cardStaggerIn 0.5s ease forwards;
}
@keyframes cardStaggerIn {
  to { opacity: 1; transform: translateY(0); }
}
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
.search-bar-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Tabs: Satış / Kirayə — animated underline */
.search-tabs-inline {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  position: relative;
}
.stab {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.3s ease, transform 0.15s ease;
  white-space: nowrap;
  position: relative;
}
.stab:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}
.stab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}
.stab:active {
  transform: scale(0.97);
}

/* Dropdown: Otaq sayı */
.search-dropdown {
  flex-shrink: 0;
}
.search-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  min-width: 130px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.search-select:hover {
  border-color: var(--gray-300);
  transform: translateY(-1px);
}
.search-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 189, 183, 0.12);
}

/* Price inputs */
.search-price-group {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 10px;
  flex-shrink: 0;
}
.search-price-input {
  width: 110px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.search-price-input:first-child {
  border-radius: 8px 0 0 8px;
  border-right: none;
}
.search-price-input:last-child {
  border-radius: 0 8px 8px 0;
}
.search-price-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 189, 183, 0.12);
  background: #fafffe;
  z-index: 1;
  position: relative;
}
.search-price-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}
/* Remove spinners */
.search-price-input::-webkit-outer-spin-button,
.search-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.search-price-input[type=number] {
  -moz-appearance: textfield;
}

/* Location wrap */
.search-location-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  margin-left: 10px;
}
.search-loc-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.search-location-wrap:focus-within .search-loc-icon {
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.15);
  animation: pinBounce 0.4s ease;
}
@keyframes pinBounce {
  0% { transform: translateY(-50%) scale(1); }
  40% { transform: translateY(-60%) scale(1.2); }
  70% { transform: translateY(-48%) scale(1.1); }
  100% { transform: translateY(-50%) scale(1.15); }
}
.search-location-wrap .location-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.search-location-wrap .location-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 189, 183, 0.12);
  background: #fafffe;
}
.search-location-wrap .location-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

/* Search go button — premium feel */
.search-go-btn {
  margin-left: 12px;
  padding: 10px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.search-go-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.search-go-btn:hover {
  background: var(--tiffany-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 189, 183, 0.3);
}
.search-go-btn:hover::after {
  opacity: 1;
}
.search-go-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(91, 189, 183, 0.2);
}

/* ── Row 2: Property type pills + stats ── */
.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 14px;
  gap: 16px;
}

/* Property type pills — clean, Bina.az style */
.prop-types {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.prop-types::-webkit-scrollbar {
  display: none;
}
.prop-type-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  background: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.prop-type-btn:hover {
  border-color: var(--color-primary);
  color: var(--tiffany-700);
  background: var(--tiffany-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 189, 183, 0.12);
}
.prop-type-btn:active {
  transform: translateY(0) scale(0.95);
}
.prop-type-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(91, 189, 183, 0.25);
}

/* Inline stats */
.hero-stats-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-stats-inline strong {
  color: var(--color-text);
  font-weight: 700;
}
.hsi-sep {
  color: var(--gray-300);
}
.hsi-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}

/* ── Legacy compatibility (hidden) ── */
.hero-center { display: flex; flex-direction: column; align-items: center; }
.hero-stats, .stat, .stat-num, .stat-label, .stat-divider { display: none; }
#hero-advanced-toggle-wrap { display: none; }
.hidden-filters { display: none !important; }

/* ── Ad Slots (legacy, kept for mobile) ── */
.hero-ad-slot {
  display: none;
}

/* Hero headings (legacy) */
.hero-title {
  display: none;
}
.hero-subtitle {
  display: none;
}

/* Search Card (legacy compat) */
.search-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

/* Search tabs (legacy) */
.search-tabs {
  display: none;
}

/* Search Button (legacy) */
.btn-search {
  display: none;
}

/* ── Legacy ad-slot keyframes (kept for mobile banners) ── */
@keyframes adPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(129,216,208,0.12); }
  50% { box-shadow: 0 0 35px rgba(129,216,208,0.30); }
}
@keyframes adShimmer {
  0% { transform: translateX(-100%) rotate(15deg); }
  100% { transform: translateX(100%) rotate(15deg); }
}

/* Location Input */
.search-inputs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.location-input-wrap {
  position: relative;
  flex: 1;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  pointer-events: none;
}
.location-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--gray-50);
  color: var(--color-text);
  transition: all var(--transition-fast);
  outline: none;
}
.location-input::placeholder { color: var(--gray-400); }
.location-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(129,216,208,0.12);
}

.radius-select {
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--gray-50);
  color: var(--color-text);
  outline: none;
  cursor: pointer;
  min-width: 90px;
}
.radius-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(129,216,208,0.12);
}

/* Location Suggestions */
.location-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--color-border);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.location-suggestions.visible { display: block; }
.suggestion-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}
.suggestion-item:hover { background: var(--tiffany-50); }
.suggestion-icon { color: var(--color-primary); flex-shrink: 0; }
.suggestion-label { font-weight: 500; color: var(--gray-800); }
.suggestion-sub { font-size: 0.8rem; color: var(--gray-400); }

/* Quick Filters */
.quick-filters {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}
.filter-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.filter-label { font-size: 0.78rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.filter-inputs { display: flex; align-items: center; gap: var(--space-xs); }
.filter-input {
  width: 90px;
  padding: 8px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--gray-50);
  outline: none;
  transition: all var(--transition-fast);
}
.filter-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(129,216,208,0.12);
}
.filter-sep { color: var(--gray-400); font-weight: 500; }

.room-btns { display: flex; gap: 4px; }
.room-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}
.room-btn.active,
.room-btn:hover {
  border-color: var(--color-primary);
  background: var(--tiffany-50);
  color: var(--tiffany-700);
}
.room-btn.active {
  background: var(--color-primary);
  color: #fff;
}

/* Search Button */
.btn-search {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all var(--transition-base);
}
.btn-search:hover {
  background: var(--tiffany-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(129,216,208,0.4);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}
.stat { 
  display: flex; 
  flex-direction: row; 
  align-items: baseline; 
  gap: 6px; 
}
.stat-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.stat-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

/* =============================================
   SECTIONS & LAYOUT
   ============================================= */
.section {
  padding: var(--space-3xl) 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

/* =============================================
   LISTING CARDS (Homepage Featured)
   ============================================= */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
  align-content: start;
}
.listing-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
  transition: opacity var(--transition-fast);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  height: 100%;
}
.listing-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.listing-card:hover .card-image-wrap {
  opacity: 0.95;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background: linear-gradient(110deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 12px;
  transition: opacity var(--transition-fast);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-image.loaded {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.badge-new { background: var(--color-primary); color: #fff; }
.badge-hot { background: #ff6b35; color: #fff; }
.badge-premium { background: var(--gold); color: #fff; }

.card-agent-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--gray-400);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.card-fav:hover,
.card-fav.active {
  background: #ffffff;
  color: #e53e3e;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-body {
  padding: 10px 4px 0 4px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 2px 0;
  line-height: 1.2;
}
.card-price span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
}
.card-address {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.card-specs {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-agency {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
  padding-top: 4px;
}

/* ── Watermark overlay on card images ── */
.card-image-wrap::after {
  content: 'evnet.az';
  position: absolute;
  bottom: 36px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── Photo count chip on card images ── */
.card-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}
.card-photo-count svg {
  width: 10px;
  height: 10px;
  fill: #fff;
}

/* ── Listing metadata bar (date, views, ID) ── */
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--gray-400);
  margin-top: 2px;
  padding-top: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.card-meta-sep {
  color: var(--gray-300);
}
.card-meta-views {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.card-meta-views svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--gray-400);
  stroke-width: 2;
}

/* ── Agent footer with initials avatar ── */
.card-agent-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--gray-100);
}
.card-agent-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.card-agent-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Random placeholder images */
.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--tiffany-50), var(--tiffany-100));
}

/* =============================================
   NEW BUILDS SECTION
   ============================================= */
.new-builds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.new-build-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  background: var(--gray-200);
  transition: transform var(--transition-base);
}
.new-build-card:hover { transform: translateY(-4px); }
.new-build-card:hover .new-build-img { transform: scale(1.06); }
.new-build-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.new-build-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,76,72,0.9) 0%, rgba(4,76,72,0.1) 60%, transparent 100%);
}
.new-build-info {
  position: relative;
  z-index: 1;
  padding: var(--space-md) var(--space-lg);
  color: #fff;
}
.new-build-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.new-build-location {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-sm);
}
.new-build-price {
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.2);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* =========================================
   AGENTS PAGE (VASİTƏÇİ TAP)
   ========================================= */

.agents-hero {
  background-color: var(--color-surface);
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.agents-hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.agents-hero-sub {
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.agents-search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.agent-search-input-wrap {
  position: relative;
  flex: 1;
}

.agent-search-input-wrap .input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--color-text-light);
  width: 20px;
  height: 20px;
}

.agent-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: all 0.2s ease;
}

.agent-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(129, 216, 208, 0.15);
}

.agents-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.results-count {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-main);
}

.results-count span {
  color: var(--color-primary);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.agent-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: white;
  position: relative;
  flex-shrink: 0;
}

.verified-badge {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 24px;
  height: 24px;
  background-color: var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.verified-badge svg {
  fill: var(--color-primary);
  stroke: var(--color-surface);
}

.agent-info {
  flex: 1;
  min-width: 0;
}

.agent-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.agent-company {
  font-size: 14px;
  color: var(--color-text-muted);
}

.agent-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.astat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.astat-val {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-main);
}

.astat-lbl {
  font-size: 12px;
  color: var(--color-text-muted);
}

.agent-areas {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-main);
  margin-bottom: 24px;
  flex: 1;
}

.agent-areas svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-card-footer {
  margin-top: auto;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
  font-size: 18px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

@media (max-width: 768px) {
  .agents-search-box {
    flex-direction: column;
  }
}

.hidden {
  display: none !important;
}

/* =========================================
   SELL PAGE (SATIS)
   ========================================= */

.sell-hero {
  padding: 64px 0 80px 0;
  background-color: var(--color-bg);
}

.sell-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}

.sell-hero-text .page-title {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--color-text-main);
  margin-bottom: 16px;
  line-height: 1.2;
}

.sell-hero-text .page-sub {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
}

.sell-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.sell-form-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.sell-form .form-group {
  margin-bottom: 20px;
}

.sell-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.sell-form .form-row {
  display: flex;
  gap: 16px;
}

.sell-form .form-row .form-group {
  margin-bottom: 20px;
}

.sell-success {
  animation: fadeIn 0.4s ease forwards;
}

.sell-stats-box {
  background: linear-gradient(135deg, var(--color-surface) 0%, #e6faf9 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(129, 216, 208, 0.2);
}

.sell-stats-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-text-main);
  margin-bottom: 32px;
}

.sell-stats-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sell-stats-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ss-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ss-icon svg {
  width: 24px;
  height: 24px;
}

.ss-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.ss-text p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .sell-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.how-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}
.how-card:hover {
  border-color: var(--tiffany-200);
  background: var(--tiffany-50);
  transform: translateY(-3px);
  box-shadow: var(--color-card-shadow);
}
.how-icon { font-size: 2.5rem; margin-bottom: var(--space-md); }
.how-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}
.how-desc { font-size: 0.9rem; color: var(--gray-500); line-height: 1.5; }

/* =============================================
   NEIGHBORHOODS
   ============================================= */
.neighborhoods-section { background: var(--gray-50); }
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.neighborhood-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform var(--transition-base);
}
.neighborhood-card:hover { transform: scale(1.02); }
.neighborhood-card:hover .neighborhood-img { transform: scale(1.08); }
.neighborhood-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.neighborhood-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,38,36,0.85) 0%, rgba(2,38,36,0.1) 70%, transparent 100%);
}
.neighborhood-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  z-index: 1;
  color: #fff;
}
.neighborhood-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.neighborhood-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}
/* Colored placeholder backgrounds */
.neighborhood-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* =============================================
   MARKET BANNER
   ============================================= */
.market-banner {
  background: linear-gradient(135deg, var(--tiffany-dark) 0%, var(--tiffany-700) 100%);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.market-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.market-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}
.market-banner-text { max-width: 480px; }
.market-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}
.market-sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
}

.market-stats-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.market-stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  min-width: 340px;
}
.ms-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); flex: 1; }
.ms-value { font-size: 1.2rem; font-weight: 800; color: #fff; }
.ms-change {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.ms-change.up { background: rgba(56,161,105,0.25); color: #68d391; }
.ms-change.down { background: rgba(229,62,62,0.2); color: #fc8181; }

/* =============================================
   NEWS SECTION
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--color-card-shadow-hover);
  border-color: var(--tiffany-200);
}
.news-img-wrap {
  aspect-ratio: 16/9;
  background: var(--gray-100);
  overflow: hidden;
}
.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.news-card:hover .news-img { transform: scale(1.04); }
.news-body { padding: var(--space-md) var(--space-lg); }
.news-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}
.news-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}
.news-meta { font-size: 0.78rem; color: var(--gray-400); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--tiffany-dark);
  padding-top: var(--space-3xl);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: var(--space-sm); }
.footer-social { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-fast);
}
.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
}
.footer-link {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--tiffany-300); }
.footer-soon-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(129,216,208,0.18);
  color: var(--tiffany-300);
  border: 1px solid rgba(129,216,208,0.3);
  border-radius: 30px;
  padding: 1px 6px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  position: relative;
  top: -1px;
}
.app-store-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding: var(--space-lg) 0;
}
@media (max-width: 768px) {
  .footer-bottom {
    padding-bottom: 12px;
  }
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal-link {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}
.footer-legal-link:hover { color: rgba(255,255,255,0.7); }

/* =============================================
   LISTINGS PAGE
   ============================================= */
.listings-page-header {
  background: var(--tiffany-dark);
  padding: 100px 0 var(--space-xl);
}
.listings-page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
}
.listings-page-sub { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 4px; }

.listings-page-search {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}
.listings-page-search .location-input-wrap { flex: 1; max-width: 500px; }

/* Listings Layout */
.listings-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: 80px;
}
.filter-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-clear-btn {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
}
.filter-clear-btn:hover { text-decoration: underline; }

.filter-section {
  border-top: 1px solid var(--gray-100);
  padding: var(--space-md) 0;
}
.filter-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: var(--space-md);
}

.sidebar-proptype-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}
.sidebar-proptype-btn {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  text-align: center;
  transition: all var(--transition-fast);
}
.sidebar-proptype-btn.active {
  border-color: var(--color-primary);
  background: var(--tiffany-50);
  color: var(--tiffany-700);
}

.sidebar-price-inputs { display: flex; align-items: center; gap: 8px; }
.sidebar-input {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--gray-50);
  outline: none;
  transition: all var(--transition-fast);
}
.sidebar-input:focus {
  border-color: var(--color-primary);
  background: #fff;
}

.sidebar-rooms { display: flex; flex-wrap: wrap; gap: 4px; }
.sidebar-room-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}
.sidebar-room-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.sidebar-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--gray-700);
  padding: 4px 0;
}
.sidebar-checkbox { appearance: auto; -webkit-appearance: auto; accent-color: var(--color-primary); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }

.apply-filters-btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-md);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  flex: none;
}

/* Listings Results */
.listings-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
  min-width: 0;
}
.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.listings-count {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}
.listings-count strong { color: var(--gray-900); }
.toolbar-right { display: flex; align-items: center; gap: var(--space-md); }
.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  outline: none;
  color: var(--gray-700);
}
.view-toggle { display: flex; gap: 4px; }
.view-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}
.view-toggle-btn.active {
  border-color: var(--color-primary);
  background: var(--tiffany-50);
  color: var(--color-primary);
}

/* List view listing cards */
.listing-list-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  transition: opacity var(--transition-fast);
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  gap: var(--space-md);
}
.listing-list-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.listing-list-card:hover .list-card-image {
  opacity: 0.95;
}
.list-card-image {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-100);
  transition: opacity var(--transition-fast);
}
.list-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-card-body {
  padding: 4px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.list-card-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gray-900);
}
.list-card-price-per {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-left: 4px;
}
.list-card-address {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 2px;
}
.list-card-neighborhood {
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.list-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.list-card-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
}


/* MAP AREA */
.map-placeholder {
  background: linear-gradient(135deg, var(--tiffany-50) 0%, var(--tiffany-100) 100%);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--tiffany-300);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.map-placeholder:hover { border-color: var(--color-primary); background: var(--tiffany-100); }

/* PROPERTY DETAIL PAGE */
.property-header {
  padding: 80px 0 0;
}
.property-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
}
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-link { color: var(--color-primary); }

.property-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.property-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
}
.property-price-block {
  text-align: right;
  flex-shrink: 0;
}
.property-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gray-900);
}
.property-price-per { font-size: 0.9rem; color: var(--gray-400); }

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: var(--space-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item {
  background: var(--gray-200);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item:first-child {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.05); }

/* Property Content Layout */
.property-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.property-info-section { margin-bottom: var(--space-xl); }
.property-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--tiffany-100);
}
.property-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.spec-item {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--gray-100);
}
.spec-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 4px;
}
.spec-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}

.property-description {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Contact Card (Sidebar) */
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: sticky;
  top: 80px;
  box-shadow: var(--color-card-shadow);
}
.contact-card-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}
.contact-card-address {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
}
.agent-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tiffany-400), var(--tiffany-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.agent-name { font-weight: 700; font-size: 0.95rem; color: var(--gray-900); }
.agent-company { font-size: 0.82rem; color: var(--gray-400); }
.agent-rating { font-size: 0.8rem; color: var(--gold); margin-top: 2px; }

.contact-form { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
  background: var(--gray-50);
  resize: none;
}
.contact-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(129,216,208,0.12);
}
.contact-phone-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.contact-phone-btn:hover {
  background: var(--tiffany-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(129,216,208,0.35);
}
.contact-msg-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-msg-btn:hover {
  background: var(--tiffany-50);
}
.kupca-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tiffany-50);
  border: 1px solid var(--tiffany-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--tiffany-700);
  font-weight: 500;
  margin-top: var(--space-md);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .new-builds-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-layout { grid-template-columns: 260px 1fr; }
  .property-content { grid-template-columns: 1fr 320px; }
  /* .dashboard-header-tools stays visible */
  
  /* Hero: 2-column grid layout on tablet/mobile with Center spanning full width */
  .hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-center { grid-column: span 2; width: 100%; max-width: 680px; margin: 0 auto; order: 1; margin-bottom: 8px; }
  
  /* Convert tall Hero Ad slots to symmetrical square cards under search */
  .hero-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    order: 2;
    padding: 20px 12px;
    height: auto;
    text-align: center;
    border-radius: var(--radius-lg);
  }
  .hero-ad-slot .ad-orbit-ring { display: none !important; }
  .hero-ad-slot .ad-slot-badge { position: static; margin-bottom: 12px; transform: none; font-size: 0.55rem; padding: 4px 8px; }
  .hero-ad-slot .ad-slot-icon { display: block; margin-bottom: 8px; font-size: 1.6rem; }
  .hero-ad-slot .ad-slot-title { font-size: 0.8rem; margin-bottom: 0; line-height: 1.3; }
  .hero-ad-slot .ad-slot-title br { display: block; }
  .hero-ad-slot .ad-slot-sub { display: none !important; }
  .hero-ad-slot .ad-slot-btn { display: none !important; } /* Hide the button to keep it clean. Whole card remains clickable */
  
  /* Reset previous horizontal specific rules */
  .hero-ad-slot > div:not(.ad-slot-btn):not(.ad-orbit-ring) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-ad-slot > div:first-of-type {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { 
    display: flex; 
    padding: 12px; 
    margin-right: -12px; 
    flex-shrink: 0;
  }
  .header-inner {
    gap: 12px;
    padding: 0 16px;
    justify-content: flex-start; /* Required for scroll to work properly */
  }
  .header-inner > * {
    flex-shrink: 0;
  }
  .section-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 8px; 
  }
  
  .dashboard-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 12px;
  }
  .mh-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.1s;
  }
  .mh-icon:active { transform: scale(0.9); }

  .listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-builds-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Ensure exactly 4 rows (8 items) on mobile for these grids */
  .listings-grid > .listing-card:nth-child(n+9) {
    display: none !important;
  }
  
  .how-grid { grid-template-columns: 1fr 1fr; }
  .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .property-content { grid-template-columns: 1fr; gap: var(--space-md); padding-top: var(--space-md); padding-bottom: var(--space-md); }
  .market-banner-inner { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .search-card { padding: var(--space-md); }
  .quick-filters { flex-direction: column; gap: var(--space-md); }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-row: span 1; }
  .gallery-item:not(:first-child) { display: none; }
  .hero-stats { gap: var(--space-lg); }
  .news-grid { grid-template-columns: 1fr; }
  .property-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom-inner { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .market-stat-card { min-width: unset; }
}

@media (max-width: 480px) {
  .prop-types { gap: 4px; }
  .prop-type-btn { padding: 5px 10px; font-size: 0.78rem; }
  .search-inputs { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .listings-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 100svh; padding-top: 80px; padding-bottom: 24px; }
  .hero-title { font-size: 1.7rem; }
  /* Property page: more compact on small phones */
  .property-info-section { margin-bottom: 20px; }
  .minimal-spec-row { padding: 10px 0; }
  .trust-banner { padding: 14px 12px; gap: 12px; }
  .trust-banner-icon { font-size: 22px; }
  
  /* Fix header and search scrolling on mobile */
  .header-inner { padding: 0 12px; gap: 8px; justify-content: flex-start; }
  
  .search-meta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .prop-types {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px; /* for safe touch area */
  }
  .hero-stats-inline {
    align-self: flex-start;
  }
  .search-bar-row {
    padding-bottom: 4px;
  }
  .search-bar {
    padding: 8px 0 10px;
  }
  .stab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .search-select {
    padding: 8px 30px 8px 12px;
    font-size: 0.85rem;
    min-width: 110px;
  }
  .search-price-input {
    width: 90px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .search-location-wrap .location-input {
    padding: 8px 12px 8px 32px;
    font-size: 0.85rem;
  }
  .search-go-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
  }

  .mobile-add-listing-icon span { display: none; }
  .mobile-add-listing-icon { width: 36px; padding: 0; margin-left: 4px; }
  .lang-switcher { transform: scale(0.85); transform-origin: left center; }
  .logo-text { font-size: 1.1rem; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ──────────────────────────────────────────────
   TRUST & SAFETY SYSTEM (REPORTS & BANNERS)
────────────────────────────────────────────── */
.trust-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.trust-banner-icon {
  font-size: 28px;
  margin-top: -4px;
}
.trust-banner-content h3 {
  margin: 0 0 8px 0;
  color: #991b1b;
  font-size: 1.05rem;
  font-weight: 700;
}
.trust-banner-content p {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.9rem;
  line-height: 1.6;
}

.report-modal-overlay {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5); 
  z-index: 99999;
  display: flex !important; 
  align-items: center; 
  justify-content: center;
  opacity: 0; 
  visibility: hidden;
  pointer-events: none; 
  transition: opacity 0.2s, visibility 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 20px;
}
.report-modal-overlay.active {
  opacity: 1; 
  visibility: visible;
  pointer-events: auto;
}
.report-modal {
  position: relative;
  z-index: 100000;
  background: white; 
  width: 100%; 
  max-width: 440px;
  border-radius: 16px; 
  padding: 24px;
  margin: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  transform: translateY(20px); 
  transition: transform 0.2s;
}
.report-modal-overlay.active .report-modal {
  transform: translateY(0);
}
.report-radio {
  display: flex; 
  align-items: center; 
  justify-content: flex-start;
  margin-bottom: 10px; 
  cursor: pointer;
  padding: 14px 16px; 
  border: 1.5px solid #e2e8f0;
  border-radius: 12px; 
  background: #f8fafc;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.report-radio:hover { 
  border-color: #cbd5e1; 
  background: #f1f5f9; 
  transform: translateY(-1px);
}
.report-radio:has(input:checked) {
  border-color: #ef4444;
  background: #fef2f2;
}
.report-radio:has(input:checked) span {
  color: #b91c1c;
  font-weight: 700;
}
.report-radio input { 
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.report-radio span { 
  font-size: 0.9rem; 
  color: #0f172a; 
  font-weight: 600;
}

/* ──────────────────────────────────────────────
   TRUST & SAFETY INFO CARDS (Homepage)
────────────────────────────────────────────── */

/* ──────────────────────────────────────────────
   TRUST & SAFETY PREMIUM CARDS (Homepage)
────────────────────────────────────────────── */
.trust-section {
  background: #f1f5f9;
  padding-top: 64px;
  padding-bottom: 72px;
}

.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}
@media (max-width: 1000px) { .trust-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .trust-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.trust-card {
  border-radius: 24px;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  cursor: default;
  border: none;
}
@media (max-width: 540px) {
  .trust-card {
    padding: 20px 14px 18px;
    border-radius: 16px;
  }
  .trust-card-icon-wrap {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  .trust-card-title {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  .trust-card-list li {
    font-size: 0.75rem;
    gap: 7px;
  }
  .trust-card-list li::before {
    width: 16px;
    height: 16px;
    background-size: 10px;
    flex-shrink: 0;
  }
  .trust-card-list { gap: 7px; }
}
.trust-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.trust-card--yellow { background: #fef9c3; }
.trust-card--red    { background: #fee2e2; }
.trust-card--green  { background: #dcfce7; }
.trust-card--blue   { background: #dbeafe; }

.trust-card-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.trust-card--yellow .trust-card-icon-wrap { background: rgba(255,255,255,0.7); }
.trust-card--red    .trust-card-icon-wrap { background: rgba(255,255,255,0.7); }
.trust-card--green  .trust-card-icon-wrap { background: rgba(255,255,255,0.7); }
.trust-card--blue   .trust-card-icon-wrap { background: rgba(255,255,255,0.7); }

.trust-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 18px 0;
  letter-spacing: -0.2px;
}
.trust-card--yellow .trust-card-title { color: #b45309; }
.trust-card--red    .trust-card-title { color: #b91c1c; }
.trust-card--green  .trust-card-title { color: #15803d; }
.trust-card--blue   .trust-card-title { color: #1d4ed8; }

.trust-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}
.trust-card--yellow .trust-card-list li { color: #92400e; }
.trust-card--red    .trust-card-list li { color: #991b1b; }
.trust-card--green  .trust-card-list li { color: #166534; }
.trust-card--blue   .trust-card-list li { color: #1e40af; }

.trust-card-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  margin-top: 1px;
}
.trust-card--yellow .trust-card-list li::before { background-color: #f59e0b; }
.trust-card--red    .trust-card-list li::before { background-color: #ef4444; }
.trust-card--green  .trust-card-list li::before { background-color: #22c55e; }
.trust-card--blue   .trust-card-list li::before { background-color: #3b82f6; }

/* =============================================
   MOBILE RESPONSIVENESS FIXES (GLOBAL)
   ============================================= */
@media (max-width: 768px) {
  /* Global Nav */
  .nav { display: none; }
  .lang-switcher {
    display: flex !important;
    position: static;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  .mobile-login-icon {
    margin: 0;
  }
  /* When both exist, only login-icon needs margin-left:auto */
  .mobile-login-icon + .lang-switcher {
    margin-left: 0;
  }
  .header-actions { display: none; margin: 0; }
  #mobile-header-icons { display: flex !important; }
  
  .nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .header-actions.nav-open {
    display: flex;
    position: absolute;
    top: 320px; /* push below the nav items */
    left: 16px; right: 16px;
    margin: 0;
    background: white;
  }
  .header-actions.nav-open .btn { display: flex; width: 100%; justify-content: center; }
  .hamburger { display: flex; }
  
  /* Hero */
  .hero { padding-top: 80px; min-height: auto; padding-bottom: 32px; }
  .hero-content { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-stats { flex-wrap: nowrap; justify-content: space-between; gap: 8px; margin-top: 24px; align-items: flex-start; }
  .stat { padding: 0 4px; }
  .stat-label { font-size: 0.75rem; word-wrap: break-word; line-height: 1.2; margin-top: 4px; }
  .stat-divider { display: none; }
  .hero-ad-slot { margin: 0 16px; }

  /* Search Card */
  .search-card { padding: 20px; border-radius: 12px; margin: 0 16px; }
  .search-tabs { background: var(--gray-100); padding: 4px; border-radius: 8px; justify-content: space-between; gap: 0; margin-bottom: 24px; border-bottom: none; overflow: hidden; display: flex; }
  .search-tab { flex: 1; border: none; background: transparent; border-radius: 6px; padding: 8px 4px; font-size: 0.75rem; white-space: normal; text-align: center; color: var(--gray-600); margin-bottom: 0; transition: all 0.2s ease; line-height: 1.2; word-break: break-word; }
  .search-tab.active { background: white; color: var(--gray-900); border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.1); font-weight: 700; width: auto; }
  
  #hero-advanced-toggle-wrap { display: block !important; margin-top: 16px; margin-bottom: 8px; }
  .search-inputs { flex-direction: column; }
  .quick-filters { flex-direction: column; gap: 16px; }
  
  /* Layout Padding */
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  
  /* Listings Page */
  .listings-layout { display: flex; flex-direction: column; }
  
  /* Modern Bottom Sheet Filter */
  .filter-sidebar { 
    position: fixed; 
    bottom: -100%; 
    left: 0; 
    width: 100%; 
    height: 85vh; 
    background: #fff; 
    z-index: 1000; 
    border-radius: 20px 20px 0 0; 
    padding: 24px 16px; 
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15); 
    transition: bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .filter-sidebar.active { bottom: 0; }
  .filter-sidebar::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    border-radius: 4px;
    background: var(--gray-300);
  }
  .filter-sections-scroll {
    overflow-y: auto;
    flex: 1;
    padding-bottom: 80px; 
  }
  .apply-filters-btn {
    position: absolute;
    bottom: 24px;
    left: 16px;
    width: calc(100% - 32px);
    z-index: 10;
  }
  .listings-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  
  /* Property Page */
  .prop-hero { padding-top: 80px; padding-bottom: 24px; }
  .prop-hero-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .prop-hero-right { align-items: flex-start; }
  .prop-container { grid-template-columns: 1fr; gap: 24px; }
  .prop-sidebar { position: static; margin-top: 16px; }
  .similar-grid { grid-template-columns: 1fr; }
  .gallery-main, .swiper-slide { height: 280px !important; border-radius: 12px; }
  .gallery-thumb-container { display: none; }
  .gallery-fullscreen-btn { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 1rem; }

  /* Property detail: pull contact card to top on mobile */
  .property-content > div:first-child { order: 2; }
  .property-content > div:last-child  { order: 1; }

  /* Compact contact card on mobile — cleaner vertical layout */
  .contact-card {
    position: static;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
  }
  .contact-card-price { font-size: 1.3rem; margin-bottom: 0; }
  .contact-card-address { display: none; }
  .premium-agent-block { display: none; }
  .contact-card hr.contact-card-divider { display: none; }
  .contact-form {
    flex-direction: row;
    gap: 8px;
  }
  .btn-premium-phone {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.85rem;
    justify-content: center;
  }
  .btn-premium-whatsapp {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    padding: 12px;
    font-size: 0.85rem;
    justify-content: center;
    border-radius: 12px;
  }
  .btn-premium-phone svg { display: none; }
  .btn-premium-whatsapp span { display: none; }
  .btn-premium-whatsapp svg { display: block !important; width: 22px; height: 22px; }

  
  /* VIP button: full width below, not inline */
  #vip-upgrade-wrapper {
    width: 100%;
    margin-top: 0;
  }
  .vip-upgrade-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Add Listing Form */
  .form-container { padding: 20px 16px; margin: 80px 16px 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .step-head { flex-wrap: wrap; }
  .st-line { display: none; }
  .st-step { width: 100%; justify-content: flex-start; margin-bottom: 8px; }
}

/* Base styles for Mobile Filter Toggle Button */
.mobile-filter-btn {
  display: none;
  width: 100%;
  padding: 12px;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Base styles for Mobile Quick Filters */
.mobile-quick-filters {
  display: none;
  padding: 0 0 12px;
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; /* Hide scrollbar */
  scrollbar-width: none;
}
.mobile-quick-filters::-webkit-scrollbar { display: none; }

.quick-filter-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.quick-filter-chip.active { background: var(--tiffany-50); border-color: var(--color-primary); color: var(--color-primary); }

/* Native Bottom Action Bar (Property Details / Nav) */
.bottom-nav-bar, .sticky-property-bar { 
  display: none; 
  position: fixed; 
  bottom: 0; left: 0; width: 100%; 
  background: rgba(255, 255, 255, 0.92); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
  border-top: 1px solid rgba(0,0,0,0.06); 
  z-index: 100; 
  padding: 12px 16px; 
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 12px)); 
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}
.bottom-nav-bar { justify-content: space-around; align-items: center; }
.nav-bar-item { 
  display: flex; flex-direction: column; align-items: center; 
  font-size: 0.72rem; color: var(--gray-500); font-weight: 600; text-decoration: none; gap: 4px;
  transition: transform 0.1s ease, color 0.15s ease;
}
.nav-bar-item.active { color: var(--tiffany-700); }
.nav-bar-item:active { transform: scale(0.92); }
.nav-bar-item svg { width: 22px; height: 22px; stroke-width: 2px; }

.sticky-property-bar { display: none; justify-content: space-between; align-items: center; gap: 12px; }

/* Floating mobile map CTA */
.mobile-map-float-btn { display: none; }
/* Premium Toasts */
.evnet-toast {
  position: fixed;
  bottom: 0; 
  left: 50%;
  transform: translate(-50%, 100%);
  background: var(--tiffany-900);
  color: white;
  padding: 14px 24px;
  border-radius: 100px;
  z-index: 9999;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.evnet-toast.show {
  transform: translate(-50%, calc(-100px - env(safe-area-inset-bottom, 20px)));
  opacity: 1;
}

@media (max-width: 768px) {
  .mobile-filter-btn { display: block; }
  .mobile-quick-filters { display: flex; }
  .bottom-nav-bar { display: none; } /* Old bottom nav removed */
  

  
  .listings-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .listings-toolbar > div:first-child {
    width: 100%; 
    justify-content: space-between;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
  }
}

/* =============================================
   MAP SEARCH – PHASE 10
   ============================================= */

/* ── Split Layout (Desktop) ── */
.map-split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  height: calc(100vh - 130px);
  min-height: 580px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

.map-split-map {
  position: relative;
  height: 100%;
  background: #e8ede9;
}

/* Leaflet container fill */
.map-split-map .leaflet-container { height: 100% !important; width: 100% !important; }

/* Controls overlay on top of map */
.map-controls-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}
.map-controls-overlay > * { pointer-events: all; }

/* Search this area CTA */
.map-search-area-btn {
  background: #fff;
  border: 1.5px solid var(--color-primary);
  color: var(--tiffany-700);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  animation: float-in 0.2s ease;
}
.map-search-area-btn:hover {
  background: var(--tiffany-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,189,183,0.25);
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Auto-search toggle */
.map-auto-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.map-auto-toggle input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 14px; height: 14px;
}

/* ── Synced List Panel ── */
.map-split-list {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-left: 1px solid var(--color-border);
  height: 100%;
  overflow: hidden;
}

.map-list-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.map-list-panel {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-list-panel::-webkit-scrollbar { width: 4px; }
.map-list-panel::-webkit-scrollbar-track { background: transparent; }
.map-list-panel::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

/* List Card */
.map-list-card {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid transparent;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.map-list-card:hover,
.map-list-card--hovered {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91,189,183,0.12);
  transform: translateX(2px);
}

.map-list-card-img {
  width: 72px;
  flex-shrink: 0;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}
.map-list-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.map-list-card-no-img {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 1.5rem;
}

.map-list-card-body {
  padding: 8px 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}
.map-list-card-price {
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
}
.map-list-card-loc {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.map-list-card-approx {
  font-size: 0.65rem;
  color: #b45309;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}

/* ── Pin Styles ── */
.map-pin-wrapper {
  background: transparent !important;
  border: none !important;
}
.map-pin {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-primary);
  color: var(--tiffany-800);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-primary);
}
.map-pin:hover,
.map-pin--hover,
.map-pin--selected {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 16px rgba(91,189,183,0.4);
  z-index: 1000;
}
.map-pin--selected {
  border-color: var(--tiffany-700);
}

/* Approximate pin – softer, dotted border */
.map-pin--approx {
  border-style: dashed;
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}
.map-pin--approx::after {
  border-top-color: #f59e0b;
}
.map-pin--approx:hover {
  background: #f59e0b;
  color: #fff;
}

/* Approximate ring overlay */
.map-pin-approx-ring {
  position: absolute;
  width: 48px; height: 48px;
  border: 2px dashed rgba(245,158,11,0.35);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: approxPulse 2s ease-in-out infinite;
}
@keyframes approxPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* Stale pin */
.map-pin--stale {
  border-color: var(--gray-300);
  color: var(--gray-400);
  background: var(--gray-50);
  opacity: 0.75;
}
.map-pin--stale::after { border-top-color: var(--gray-300); }

/* Duplicate count badge on pin */
.map-pin-badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 100px;
  min-width: 14px;
  text-align: center;
}
.map-pin--selected .map-pin-badge,
.map-pin:hover .map-pin-badge { background: rgba(255,255,255,0.3); }

/* ── Cluster Bubble ── */
.map-cluster-wrapper {
  background: transparent !important;
  border: none !important;
}
.map-cluster {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(91,189,183,0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.map-cluster:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(91,189,183,0.55);
}
.map-cluster-count {
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}
.map-cluster-range {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 2px;
}

/* ── Map Popup ── */
.map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  border: none;
}
.map-popup .leaflet-popup-content { margin: 0; width: 260px !important; }
.map-popup .leaflet-popup-tip { background: #fff; }
.map-popup-inner { font-family: var(--font-sans); }

/* ── Mobile Map ── */
.map-mobile-layout { display: none; }

/* Mobile bottom sheet */
.mobile-map-bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  z-index: 800;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.mobile-map-bottom-sheet.open { transform: translateY(0); }

.mobile-map-sheet-handle {
  width: 40px; height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  margin: 10px auto 0;
  cursor: pointer;
}
.mobile-map-sheet-header {
  display: flex;
  align-items: center;
  padding: 12px 16px 8px;
  font-size: 0.9rem;
  color: #0f172a;
  border-bottom: 1px solid var(--color-border);
}

/* Mobile sheet toggle button (floating on map) */
.mobile-map-sheet-toggle {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .map-split-layout { grid-template-columns: 1fr; display: grid !important; height: calc(100vh - 64px); min-height: 0; border: none; border-radius: 0; margin-left:-16px; margin-right:-16px; width:calc(100vw); }
  .map-split-list { display: none; }
  .map-split-map { height: 100%; border-radius: 0; }
  .map-mobile-layout { display: none; }
  .mobile-map-sheet-toggle {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--color-primary);
    color: var(--tiffany-700);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 600;
    white-space: nowrap;
    margin-top: 4px;
    pointer-events: auto;
  }

  .mobile-map-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .mobile-map-float-btn:active {
    transform: translateX(-50%) scale(0.95);
    background: #000;
  }
}


/* =============================================
   MOBILE OVERHAUL (Bina.az / Hemnet style)
   ============================================= */
@media (max-width: 768px) {
  /* 2-Column Dense Grid */
  .listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 4px;
  }
  
  /* Compact Card Adjustments */
  .listing-card {
    border-radius: var(--radius-md) !important;
  }
  .card-body {
    padding: 8px !important;
    gap: 2px !important;
  }
  .card-price {
    font-size: 1.05rem !important;
    margin-bottom: 2px !important;
  }
  .listing-title {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .specs, .card-location {
    font-size: 0.75rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-image-wrap {
    aspect-ratio: 1/1 !important; /* Squarish image for 2-col saves vertical space */
  }
  .card-badge {
    top: 6px !important;
    left: 6px !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }
  
  /* Position the like icon over the image to save header area space */
  .card-fav {
    top: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  
  /* Hide the agent info block inside cards on mobile to reduce bulk */
  .listing-card .agent-row {
    display: none !important;
  }
  
  .hide-on-mobile {
    display: none !important;
  }

  /* Fix for Mobile Header — keep visible so injected icons show */
  .header-actions {
    display: none !important;
  }

  /* Bottom Sticky Nav */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 9999;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.70rem;
    font-weight: 500;
    text-decoration: none;
    gap: 4px;
    flex: 1;
  }
  .mobile-nav-item.active {
    color: var(--tiffany-600);
  }
  .mobile-nav-icon {
    font-size: 1.3rem;
  }
  .mobile-nav-main-action {
    background: var(--tiffany-600);
    color: white !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -16px;
    box-shadow: 0 4px 12px rgba(11,180,166,0.3);
  }
  .mobile-nav-main-action .mobile-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  
  /* Make the filter container on listings.html collapsible */
  .mobile-filter-container {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-md);
  }
  .mobile-filter-btn {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--tiffany-200);
    color: var(--tiffany-700);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
  }
  /* The original huge sidebar filter */
  #filter-sidebar {
    display: none; /* hidden on mobile initially */
  }
  #filter-sidebar.active {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
  }
}
.mobile-bottom-nav {
  display: none; /* hidden on desktop */
}
.mobile-filter-btn {
  display: none; /* hidden on desktop */
}

/* Special tabs for dark backgrounds (e.g. listings hero) */
.dark-theme-tabs.search-tabs {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.dark-theme-tabs .search-tab {
  color: rgba(255, 255, 255, 0.7);
}
.dark-theme-tabs .search-tab:hover:not(.active) {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.dark-theme-tabs .search-tab.active {
  background: white;
  color: var(--gray-900);
}

/* NEW OVERRIDE FOR MICROINTERACTION SENIOR TABS */
.dark-theme-tabs.search-tabs {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 4px !important;
  border-radius: 100px !important; 
  display: inline-flex !important;
  align-items: center !important;
  height: 48px !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin-right: auto !important;
  gap: 4px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}

.dark-theme-tabs .search-tab {
  flex: none !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-radius: 100px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 0 24px !important;
  font-weight: 500 !important;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.dark-theme-tabs .search-tab:hover:not(.active) {
  color: white !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.dark-theme-tabs .search-tab.active {
  background: white !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* =============================================
   DESKTOP STICKY AD BANNERS (Homepage Margins)
   ============================================= */
.desktop-ad-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1700px;
  margin: 0 auto;
  gap: 24px;
}

.center-content-wrapper {
  flex: 1;
  min-width: 0; 
  /* Limits center to container size to not stretch too wide */
  max-width: var(--container-max);
}

.side-premium-banner {
  display: none;
  position: sticky;
  top: 100px;
  width: 240px;
  height: 900px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: white; /* Fallback */
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.6);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

.side-premium-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Light premium styling for left */
.spb-left {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

/* Vibrant warm styling for right */
.spb-right {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.spb-badge {
  display: inline-block;
  background: var(--tiffany-500);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.spb-right .spb-badge {
  background: #f59e0b;
}

.spb-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spb-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.spb-sub {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: auto;
  line-height: 1.5;
}

.spb-btn {
  background: var(--gray-900);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  width: 100%;
  transition: background 0.2s;
}

.spb-left .spb-btn { background: var(--tiffany-500); }
.spb-left .spb-btn:hover { background: var(--tiffany-600); }

.spb-right .spb-btn { background: #f59e0b; }
.spb-right .spb-btn:hover { background: #d97706; }

.spb-illustration {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
}

/* Background graphics */
.spb-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
}

.spb-left .spb-bg-circle {
  width: 200px; height: 200px;
  background: var(--tiffany-100);
  top: -50px; left: -50px;
}

.spb-right .spb-bg-circle {
  width: 200px; height: 200px;
  background: #fef3c7;
  bottom: -50px; right: -50px;
}

@media (min-width: 1500px) {
  .side-premium-banner {
    display: block; /* Show only on huge screens */
  }
}

@media (min-width: 1650px) {
  .desktop-ad-layout {
    gap: 40px; /* larger gap on extremely huge screens */
  }
}

/* =============================================
   MOBILE BANNERS (after VIP, mobile only)
   ============================================= */
.mobile-banners-row {
  display: none; /* Hidden on desktop */
}

@media (max-width: 1200px) {
  .mobile-banners-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 24px;
  }
  .mobile-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .mobile-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mb-left {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
  }
  .mb-right {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
  }
  .mb-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }
  .mb-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  .mb-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
  }
  .mb-sub {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
  }
  .mb-cta {
    display: inline-block;
    width: fit-content;
    margin-top: 4px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
  }
  .mb-cta-teal { background: var(--tiffany-500); }
  .mb-cta-amber { background: #f59e0b; }
  .mb-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    opacity: 0.7;
  }
}

/* =============================================
   MARKET SOON INFO CARDS
   ============================================= */
.market-soon-infographic {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  width: 100%;
}

.market-soon-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: left;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.market-soon-card h4 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
}
.market-soon-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .market-soon-infographic {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .market-soon-card {
    width: 100% !important; /* expand to fill column */
    padding: 14px !important;
  }
  .market-soon-card h4 {
    font-size: 1.05rem !important;
  }
  .market-soon-card p {
    font-size: 0.85rem !important;
  }
  /* Make the 3rd card span the entire bottom row for aesthetic balance */
  .market-soon-card:nth-child(3) {
    grid-column: span 2;
  }
}

/* =============================================
   MOBILE IN-FEED AD BANNERS
   ============================================= */
.mobile-feed-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
  margin-bottom: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Hide on large screens, show on mobile/tablet */
@media (min-width: 1500px) {
  .mobile-feed-banner {
    display: none;
  }
}

.mfb-left {
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(240,253,250,1) 100%);
  border: 1px solid rgba(129, 216, 208, 0.3);
}

.mfb-right {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.mfb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.mfb-badge {
  background: var(--tiffany-500);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.mfb-right .mfb-badge {
  background: #f59e0b;
}

.mfb-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.mfb-sub {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.4;
}

.mfb-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  color: white;
}

.mfb-left .mfb-btn { background: var(--tiffany-500); }
.mfb-right .mfb-btn { background: #f59e0b; }

.mfb-icon {
  width: 60px;
  height: 60px;
  margin-left: 12px;
  z-index: 2;
  flex-shrink: 0;
}

.mfb-bg {
  position: absolute;
  width: 120px; 
  height: 120px;
  border-radius: 50%;
  filter: blur(25px);
  z-index: 1;
}

.mfb-left .mfb-bg { background: var(--tiffany-100); right: -20px; top: -20px; }
.mfb-right .mfb-bg { background: #fef3c7; right: -20px; top: -20px; }


/* ── Mobile Login Icon (direct HTML injection) ── */
.mobile-login-icon, .mobile-add-listing-icon {
  display: none; /* hidden on desktop */
}
@media (max-width: 900px) {
  .mobile-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(129,216,208,0.12);
    border: 1.5px solid #81D8D0;
    color: #4AADA6;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .mobile-login-icon svg {
    width: 18px;
    height: 18px;
    stroke: #4AADA6;
  }
  .mobile-login-icon:active {
    background: rgba(129,216,208,0.25);
  }

  .mobile-add-listing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 14px;
    height: 36px;
    border-radius: 18px;
    background: var(--tiffany-500);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 6px;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
    margin-right: 8px;
    margin-left: auto;
  }
  .mobile-add-listing-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
  }
  .mobile-add-listing-icon:active {
    background: var(--tiffany-600);
    transform: scale(0.95);
  }
  
  /* Reset logic to let add-listing push naturally */
  .mobile-login-icon {
    margin-left: 0 !important;
  }
}


/* ── PREMIUM AD MODAL (Glassmorphism & B2B styling) ── */
.ad-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ad-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.ad-modal {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 32px;
  width: calc(100% - 32px);
  max-width: 440px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.ad-modal-overlay.active .ad-modal {
  transform: translateY(0) scale(1);
}
.ad-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: background 0.2s;
}
.ad-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--gray-900);
}
.ad-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.ad-modal-header h3 {
  font-size: 1.5rem;
  color: var(--gray-900);
  font-weight: 800;
  margin-bottom: 6px;
}
.ad-modal-header p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.ad-form-group {
  margin-bottom: 16px;
  text-align: left;
}
.ad-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.ad-form-group input, 
.ad-form-group select, 
.ad-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-900);
  transition: all 0.2s;
}
.ad-form-group input:focus, 
.ad-form-group select:focus, 
.ad-form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(129, 216, 208, 0.2);
}
.ad-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--tiffany-600));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 16px rgba(129, 216, 208, 0.3);
}
.ad-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(129, 216, 208, 0.4);
}
.ad-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Hide News Links Globally */
a[href="news.html"] {
  display: none !important;
}

/* --- PREMIUM LISTINGS SECTION --- */
.premium-card {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.15), 0 4px 8px -4px rgba(0,0,0,0.05) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Static VIP Badge in top left */
.premium-card .card-badge {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.08);
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.premium-card .card-badge::before {
  content: "👑 ";
}

/* Desktop-only hover shimmer and lift */
@media (min-width: 769px) {
  .premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.25), 0 8px 12px -6px rgba(0,0,0,0.05) !important;
    border-color: #cbd5e1 !important;
  }
  
  .premium-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
  }
  
  .premium-card:hover::after {
    animation: premiumShimmer 1.5s ease-out;
  }
}

@keyframes premiumShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-premium-cta:hover {
  background: #d97706 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}


/* =============================================
   SKELETON LOADERS — Search Results
   ============================================= */
@keyframes skelPulse {
  0%, 100% { background-position: 200% 0; }
  50%       { background-position: -200% 0; }
}
.skel-pulse {
  background: linear-gradient(90deg, #f1f5f9 25%, #e8eef4 50%, #f1f5f9 75%);
  background-size: 400% 100%;
  animation: skelPulse 1.6s ease-in-out infinite;
  border-radius: 8px;
}
.skel-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 4px 0;
}
.skel-grid-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.skel-grid-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
.skel-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}
.skel-list-card {
  display: flex;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  height: 140px;
}
.skel-list-img {
  width: 220px;
  flex-shrink: 0;
  height: 100%;
  border-radius: 0;
}
.skel-list-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.skel-line {
  border-radius: 6px;
}
@media (max-width: 768px) {
  .skel-grid-wrap { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .skel-list-img { width: 130px; }
}
@media (max-width: 480px) {
  .skel-grid-wrap { grid-template-columns: 1fr; }
}
