/* ========================================
   CSS файл для MAKON — ПОЛНАЯ ВЕРСИЯ
   Тёмный режим: ЧЁРНЫЙ фон (#121212)
   Акцентный цвет: #99e43e (светло-зелёный)
   ======================================== */

/* ============================================================
   MAKON — DESIGN TOKENS (зелёный бренд #99e43e)
   Слои: primitives → semantic → legacy-алиасы (старые правила).
   Единственный источник зелёного: --brand-rgb.
   ============================================================ */
:root {
  /* --- Primitives: бренд (зелёный) --- */
  --brand-rgb: 153, 228, 62;               /* #99e43e — ЕДИНЫЙ источник зелёного */
  --brand-400: #b6ec6e;
  --brand-500: #99e43e;                     /* основной акцент */
  --brand-600: #7bc42e;                     /* hover / насыщенный */
  --brand-700: #4f8f16;                     /* тёмно-зелёный: текст на СВЕТЛОМ фоне (AA) */
  --brand-a10: rgba(var(--brand-rgb), .10);
  --brand-a20: rgba(var(--brand-rgb), .20);
  --brand-a35: rgba(var(--brand-rgb), .35);
  --brand-a40: rgba(var(--brand-rgb), .40);

  /* --- Primitives: нейтральные --- */
  --gray-50:  #f7f7fa;  --gray-100: #eef2f7; --gray-200: #e0e0e0;
  --gray-300: #dddddd;  --gray-400: #b0b0b0; --gray-500: #6b7280;
  --gray-600: #333333;  --gray-800: #1a1a1a; --gray-900: #121212; --gray-950: #0a0a0a;

  /* --- Типографика --- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

  /* --- Шкала отступов (4pt) --- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;

  /* --- Радиусы / тени / движение --- */
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.18);
  --dur-fast: .15s; --dur: .3s; --ease: cubic-bezier(.4, 0, .2, 1);

  /* --- Semantic (СВЕТЛАЯ тема) --- */
  --max-w: 1100px;
  --color-brand: var(--brand-500);
  --color-brand-hover: var(--brand-600);
  --color-brand-text: var(--brand-700);     /* бренд-текст/иконки на светлом фоне (контраст AA) */
  --on-brand: #0a0a0a;                       /* текст на зелёной заливке (контраст ~10:1) */
  --bg: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  --text: #111111;
  --text-muted: var(--gray-500);
  --surface: #ffffff;
  --surface-hover: var(--brand-a10);
  --border: var(--gray-300);
  --border-subtle: #eeeeee;
  --border-focus: var(--color-brand);
  --header-bg: rgba(250, 251, 251, .9);
  --mobile-nav-bg: rgba(255, 255, 255, .92);
  --footer-bg: transparent;
  --nav-link: var(--gray-600);
  --nav-link-hover: #000000;

  /* --- Legacy-алиасы: старые имена → новые токены (без правки call sites) --- */
  --accent: var(--color-brand);
  --accent-dark: var(--brand-700);
  --muted: var(--text-muted);
  --card-bg: var(--surface);
  --input-bg: #ffffff;
  --input-border: var(--border);
  --modal-bg: #f6f1f1;
  --modal-tabs-bg: #f1ecec;
  --colorcitylist: #111111;
  --colorbtnclose: #111111;
  --color_inputmodal: #111111;
  --logobg: #2a2a2a;
  --cardhover: var(--brand-a10);
  --cardborder: #e3e3ea;
  --catalogbghover: var(--color-brand);
  --catalogborder: #e3e3ea;
  --btnpodrobnebg: #f2f2f2;
  --textcolorbtnpodrob: #111111;
  --cardshadov: rgba(30, 30, 40, .12);
  --bordrbottomco: var(--color-brand);
  --colorcardhover: #111111;
  --colortextPlocation: var(--brand-700);
  --brandcolor: var(--color-brand);
}

/* ============================================================
   ТЁМНАЯ ТЕМА — переопределяем только semantic-значения
   (все legacy-алиасы автоматически подтягивают новые токены)
   ============================================================ */
body.dark {
  --color-brand: var(--brand-500);
  --color-brand-hover: var(--brand-400);
  --color-brand-text: var(--brand-500);     /* зелёный на чёрном ≈ 12:1, ок */
  --on-brand: #0a0a0a;
  --bg: linear-gradient(180deg, var(--gray-950), var(--gray-900));
  --text: var(--gray-200);
  --text-muted: #9aa0a6;
  --surface: var(--gray-800);
  --surface-hover: #2a2a2a;
  --border: #333333;
  --border-subtle: #2a2a2a;
  --header-bg: #0d0d0d;
  --mobile-nav-bg: #0d0d0d;
  --footer-bg: var(--gray-950);
  --nav-link: var(--gray-400);
  --nav-link-hover: #ffffff;

  /* legacy-алиасы (тёмные значения) */
  --muted: var(--text-muted);
  --card-bg: var(--surface);
  --input-bg: #1e1e1e;
  --input-border: #333333;
  --modal-bg: var(--gray-800);
  --modal-tabs-bg: #2a2a2a;
  --colorcitylist: var(--gray-200);
  --colorbtnclose: var(--gray-200);
  --color_inputmodal: var(--gray-200);
  --logobg: #2a2a2a;
  --cardhover: #2a2a2a;
  --cardborder: #2a2a2a;
  --catalogborder: #2a2a2a;
  --btnpodrobnebg: #2a2a2a;
  --textcolorbtnpodrob: var(--brand-500);
  --cardshadov: rgba(0, 0, 0, .6);
  --colorcardhover: #ffffff;
  --colortextPlocation: var(--brand-500);

  /* Карта */
  --map-filter: brightness(.7) contrast(1.2);
}

/* ---------- ГЛОБАЛЬНЫЕ СТИЛИ ---------- */
* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh; /* фикс бага 100vh в iOS Safari (адресная строка) */
}

/* ---------- КОНТЕЙНЕРЫ ---------- */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

.catalog.container,
.cards-container {
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ---------- HEADER ---------- */
.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 35px var(--cardshadov);
  z-index: 1000;
  padding: 8px 0;
}

.site-header .container {
  padding: 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
}

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

.logo-icon {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand {
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  letter-spacing: .5px;
  color: var(--color-brand-text); /* тёмно-зелёный на светлом header — контраст AA */
  white-space: nowrap;
}

/* ---------- НАВИГАЦИЯ ---------- */
.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  color: var(--nav-link);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border-top: 2px solid var(--color-brand);
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-bottom-color var(--dur) var(--ease);
}

.nav a:hover {
  border-bottom-color: var(--bordrbottomco);
  color: var(--nav-link-hover);
}

.nav a.active {
  color: var(--color-brand-text);
  font-weight: var(--fw-bold);
}

/* Правая секция */
.right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ---------- КНОПКИ ---------- */
.btn-primary {
  background: var(--btnpodrobnebg);
  color: var(--textcolorbtnpodrob);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-outline {
  background: var(--color-brand);
  border: 1px solid var(--color-brand);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--on-brand); /* тёмный текст на зелёном — контраст ~10:1 (было white ~1.6:1) */
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
}

/* Кнопка темы */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;   /* цель касания ≥44px; иконка внутри остаётся ~28px */
  height: 44px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.theme-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Кнопка локации */
.location-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: var(--space-2);
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.icon-location {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ---------- ФИЛЬТРЫ В HEADER ---------- */
.header-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 600px;
  margin: 0 12px;
}

.header-input {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text);
  transition: border 0.2s, box-shadow 0.2s;
}

.header-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-a20);
}

.header-select {
  min-width: 120px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

/* ---------- ФИЛЬТРЫ (основные) ---------- */
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
}

.input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  min-width: 120px;
}

.input-small {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  min-width: 120px;
}

/* ---------- СЕТКА КАРТОЧЕК ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.cards-container {
  margin-top: 20px;
  min-height: 320px; /* резерв высоты до JS-загрузки объявлений — меньше CLS */
}

/* Карточка */
.card {
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--cardborder);
  transition: all 0.25s ease;
  box-shadow: 0 2px 35px var(--cardshadov);
  width: 100%;
  box-sizing: border-box;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0px;
}

.card h3, .card h4 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--fs-md);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card p {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.card:hover {
  border-bottom: 2px solid var(--bordrbottomco);
  color: var(--colorcardhover);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--cardshadov);
}

.card:hover h3, .card:hover h4, .card:hover p {
  color: var(--colorcardhover);
}

/* ---------- КАТАЛОГ ---------- */
.catalog {
  padding: 24px 0;
}

.catalog h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--text);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  width: 100%;
  min-height: 112px; /* резерв под 1 ряд до JS-загрузки — меньше CLS */
}

.catalog-item {
  background: var(--card-bg);
  border: 1px solid var(--catalogborder);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px var(--cardshadov);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  cursor: pointer;
  box-sizing: border-box;
}

.catalog-item .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.catalog-item .label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.3;
  max-height: 2.6em;
  color: var(--text);
}

.catalog-item:hover {
  border-top: 2px solid var(--catalogbghover);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--cardshadov);
}

/* ========================================
   ГЕРО БАННЕР — ПОЛНОСТЬЮ АДАПТИВНЫЙ
   На мобильных: всё по центру, цвета видны
   ======================================== */

.hero-banner {
  margin: 16px 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-content {
  color: white;
  flex: 1;
  min-width: 200px;
}

.hero-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  margin: 0 0 var(--space-3) 0;
  line-height: 1.2;
}

.hero-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  display: inline-block;
}

.hero-text:nth-child(1) { animation-delay: 0.2s; }
.hero-text:nth-child(2) { animation-delay: 0.4s; }
.hero-text:nth-child(3) { animation-delay: 0.6s; }

.highlight {
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 16px;
  margin: 0 0 20px 0;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.8s forwards;
  color: rgba(255, 255, 255, 0.95);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: fadeIn 0.6s ease 1s forwards;
}

.hero-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.hero-btn-icon {
  width: 18px;
  height: 18px;
}

/* Слайдер баннеров */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Цвета слайдов */
.hero-slide:nth-child(1) { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #2196F3, #1565C0); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #FF9800, #E65100); }

/* Точки переключения */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 24px;   /* зона касания 24px */
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}

.dot::before {
  content: "";
  position: absolute;
  inset: 8px;                       /* видимая точка 8px внутри зоны касания */
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: background var(--dur) var(--ease);
}

.dot.active::before,
.dot:hover::before {
  background: #fff;
}

.dot.active {
  transform: scale(1.15);
}

/* Анимация справа — только на десктопе */
.hero-animation {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave {
  animation: waveMove 8s linear infinite;
}

.wave1 { animation-duration: 6s; }
.wave2 { animation-duration: 8s; animation-delay: -2s; }
.wave3 { animation-duration: 10s; animation-delay: -4s; }

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

.floating-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  animation: float 3s ease-in-out infinite;
}

.floating-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-8px); }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ (телефоны) ========== */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  
  .hero-content {
    text-align: center;
    width: 100%;
  }
  
  .hero-title {
    font-size: 24px;
    justify-content: center;
  }
  
  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .hero-btn {
    padding: 10px 20px;
    font-size: 13px;
    margin: 0 auto;
  }
  
  /* Анимацию скрываем на телефонах — не мешает */
  .hero-animation {
    display: none;
  }
  
  .hero-dots {
    bottom: 12px;
  }

  .dot::before {
    inset: 9px; /* точка меньше, зона касания 24px сохраняется */
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 20px 16px;
  }
  
  .hero-title {
    font-size: 20px;
  }
  
  .hero-subtitle {
    font-size: 11px;
  }
  
  .hero-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .highlight {
    padding: 2px 8px;
  }
}
/* ---------- КАРТА ---------- */
.map-section {
  margin: 30px 0;
}

.divmap {
  border-radius: var(--radius-md);
  margin: var(--space-5) 0;
}

#mapView {
  display: none;
  width: 100%;
  height: clamp(320px, 60vh, 560px);
  height: clamp(320px, 60dvh, 560px); /* dvh — без бага 100vh в iOS */
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-3);
}

.map-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* FINAL HOME POLISH: auth modal, listing cards, premium, verification, splash */
.modal-content {
  padding: 30px 20px 20px !important;
  border-radius: 20px !important;
  overflow: visible;
}

.modal-close {
  top: -18px !important;
  right: 10px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  background: var(--modal-bg) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  z-index: 3;
}

.auth-role-links {
  margin: 14px 0 12px !important;
}

.auth-agreement {
  margin-top: 10px !important;
}

.listing-card-home {
  border: 0 !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .1) !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

.listing-card-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 62px rgba(15, 23, 42, .14) !important;
}

.listing-card-home > img,
.listing-card-home .no-image {
  border: 0 !important;
  box-shadow: none !important;
}

.listing-card-home.is-premium {
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 255, 244, .94)),
    radial-gradient(circle at top right, rgba(153, 228, 62, .24), transparent 36%) !important;
  box-shadow: 0 24px 66px rgba(62, 112, 20, .2) !important;
}

.premium-listing-badge {
  width: auto !important;
  min-width: 52px;
  min-height: 30px;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #111827 0%, #243127 48%, #99e43e 160%) !important;
  color: #dfff7f !important;
  font-size: 0 !important;
  letter-spacing: .08em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.premium-listing-badge::before {
  content: "TOP";
  font-size: 11px;
  font-weight: 950;
}

.promo-listing-badge {
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .94) !important;
  color: #17340b !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.verified-company-chip {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(25, 135, 84, .1);
  color: #147448;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.verified-company-chip img,
.verified-company-chip span {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.verified-company-chip img {
  object-fit: contain;
}

.verified-company-chip span {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #147448;
  color: #fff;
  font-size: 11px;
}

.catalog-subtype-grid {
  width: min(1180px, calc(100% - 24px));
  margin: 14px auto 0;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(128px, max-content));
  justify-content: center;
  gap: 10px;
}

.catalog-subtype-grid.is-visible {
  display: grid;
}

.catalog-subtype-chip {
  border: 0;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .09);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  overflow-wrap: anywhere;
}

.catalog-subtype-chip:hover,
.catalog-subtype-chip.is-active {
  transform: translateY(-1px);
  background: rgba(var(--brand-rgb), .18);
  box-shadow: 0 12px 30px rgba(var(--brand-rgb), .16);
}

body.dark .catalog-subtype-chip,
body.dark-theme .catalog-subtype-chip {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

body.dark .catalog-subtype-chip:hover,
body.dark .catalog-subtype-chip.is-active,
body.dark-theme .catalog-subtype-chip:hover,
body.dark-theme .catalog-subtype-chip.is-active {
  background: rgba(var(--brand-rgb), .22);
}

/* FINAL HOTFIX: dark cards + edge-to-edge listing photos */
.listing-card-home {
  overflow: hidden !important;
  padding: 0 !important;
}

.listing-card-home > img,
.listing-card-home > .no-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.listing-card-home > img {
  height: clamp(188px, 18vw, 240px) !important;
  object-fit: cover !important;
}

.listing-card-home > .no-image {
  min-height: clamp(188px, 18vw, 240px);
  display: grid !important;
  place-items: center;
}

.listing-card-home .home-card-body {
  padding: 14px 15px 12px !important;
  background: transparent !important;
}

.listing-card-home .card-actions {
  padding: 0 15px 15px !important;
  background: transparent !important;
}

body.dark .listing-card-home,
body.dark-theme .listing-card-home {
  background: rgba(28, 31, 28, .96) !important;
  color: #f4f7f2 !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .36) !important;
}

body.dark .listing-card-home:not(.is-premium),
body.dark-theme .listing-card-home:not(.is-premium) {
  background:
    linear-gradient(180deg, rgba(31, 34, 31, .98), rgba(22, 24, 22, .96)) !important;
}

body.dark .listing-card-home .home-card-body,
body.dark-theme .listing-card-home .home-card-body,
body.dark .listing-card-home .card-actions,
body.dark-theme .listing-card-home .card-actions {
  background: transparent !important;
}

body.dark .listing-card-home h4,
body.dark-theme .listing-card-home h4 {
  color: #f8faf7 !important;
}

body.dark .listing-card-home p,
body.dark-theme .listing-card-home p,
body.dark .listing-card-home .home-card-meta,
body.dark-theme .listing-card-home .home-card-meta,
body.dark .listing-card-home .home-rating-pill small,
body.dark-theme .listing-card-home .home-rating-pill small {
  color: #cdd8cc !important;
}

body.dark .verified-company-chip,
body.dark-theme .verified-company-chip {
  background: rgba(153, 228, 62, .12);
  color: #bdf27b;
}

.verified-company-chip {
  min-height: 28px;
  align-items: center !important;
  line-height: 1.1 !important;
}

.verified-company-chip img,
.verified-company-chip span {
  width: 20px !important;
  height: 20px !important;
  flex-basis: 20px !important;
  display: block;
  align-self: center;
}

.verified-company-chip span {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  line-height: 20px !important;
}

.verified-company-chip b {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
}

/* Promotion final polish */
.listing-badges-row {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.listing-card-home {
  position: relative;
}

.listing-card-home.is-premium {
  outline: 0 !important;
}

.premium-listing-badge,
.promo-listing-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  backdrop-filter: blur(10px);
}

.promo-listing-badge {
  border-radius: 999px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .02em;
}

.listing-card-home .verified-company-chip {
  padding: 0 !important;
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: rgba(22, 163, 74, .12) !important;
  border: 1px solid rgba(22, 163, 74, .16);
}

.listing-card-home .verified-company-chip img,
.listing-card-home .verified-company-chip span {
  margin: 0 !important;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
}

body.dark .listing-card-home.is-premium,
body.dark-theme .listing-card-home.is-premium {
  background:
    linear-gradient(180deg, rgba(30, 34, 29, .98), rgba(20, 23, 20, .98)),
    radial-gradient(circle at top right, rgba(153, 228, 62, .18), transparent 36%) !important;
  color: #f4f7f2 !important;
}

.makon-splash {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 14%, rgba(153, 228, 62, .28), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(25, 135, 84, .2), transparent 30%),
    linear-gradient(135deg, #101510, #172117 55%, #0f120f);
  transition: opacity .55s ease, visibility .55s ease;
}

.makon-splash.is-hiding {
  opacity: 0;
  visibility: hidden;
}

.makon-splash-card {
  width: min(480px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(22px, 6vw, 42px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 34px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .38);
  backdrop-filter: blur(22px);
  animation: splashCardIn .55s ease both;
}

.makon-splash-orbit {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(153, 228, 62, .34), transparent 62%),
    rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 1px rgba(153, 228, 62, .18), 0 0 42px rgba(153, 228, 62, .28);
  animation: splashPulse 1.6s ease-in-out infinite;
}

.makon-splash-orbit img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.makon-splash-copy {
  text-align: center;
  color: #f8fff6;
}

.makon-splash-copy span {
  color: #99e43e;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .18em;
}

.makon-splash-copy strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1;
}

.makon-splash-copy p {
  margin: 12px auto 0;
  max-width: 340px;
  color: rgba(248, 255, 246, .78);
  line-height: 1.55;
}

.makon-splash-progress {
  width: min(280px, 84%);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.makon-splash-progress i {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #99e43e, #22c55e);
  animation: splashProgress 1.15s ease-in-out infinite;
}

@keyframes splashCardIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splashPulse {
  50% { transform: scale(1.045); box-shadow: 0 0 0 10px rgba(153, 228, 62, .07), 0 0 54px rgba(153, 228, 62, .34); }
}

@keyframes splashProgress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(240%); }
}

@media (max-width: 560px) {
  .modal-content {
    width: calc(100% - 22px) !important;
    padding-inline: 14px !important;
  }

  .makon-splash-card {
    border-radius: 26px;
  }
}

.map-section {
  position: relative;
}

.map-open #mapView,
.map-section.map-open #mapView {
  display: block;
}

.makon-map-pin span {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 4px;
  background: var(--pin, #198754);
  transform: rotate(-45deg);
  box-shadow: 0 10px 24px rgba(25,135,84,.28);
  border: 3px solid #fff;
}

.makon-map-pin span::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.map-popup-card {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.map-popup-card strong {
  color: #0f172a;
  font-size: 15px;
}

.map-popup-card small,
.map-popup-card p {
  color: #475569;
  margin: 0;
}

.map-popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.map-popup-actions a,
.map-popup-actions button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #198754;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.main-map-route-panel {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 450;
  width: min(520px, calc(100% - 28px));
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  color: #111827;
  box-shadow: 0 16px 46px rgba(15,23,42,.18);
  backdrop-filter: blur(14px);
}

.main-map-route-panel span {
  color: #334155;
  font-size: 14px;
}

.floating-map-btn {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 7000;
  border: 1px solid rgba(25,135,84,.20);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.86);
  color: #198754;
  box-shadow: 0 14px 36px rgba(15,23,42,.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.floating-map-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.floating-map-btn span {
  display: none !important;
}

.floating-voice-btn {
  position: fixed;
  right: 18px;
  bottom: 156px;
  z-index: 7000;
  border: 1px solid rgba(25,135,84,.20);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.88);
  color: #198754;
  box-shadow: 0 14px 36px rgba(15,23,42,.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.floating-voice-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.floating-voice-btn.is-listening {
  outline: 4px solid rgba(153, 228, 62, .32);
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

body.dark .floating-map-btn,
body.dark .floating-voice-btn,
body.dark .main-map-route-panel {
  background: rgba(24,24,24,.90);
  color: #f8fafc;
  border-color: rgba(153,228,62,.22);
}

body.dark .main-map-route-panel span {
  color: #d1d5db;
}

.leaflet-routing-container {
  background: #1c1c1c !important;
  color: #eee !important;
  border-radius: 10px !important;
}

/* Тёмная карта */
body.dark .leaflet-container {
  background: #1a1a1a;
}

body.dark .leaflet-tile-pane {
  filter: brightness(0.7) contrast(1.2);
}

body.dark .leaflet-popup-content-wrapper {
  background: #1a1a1a;
  color: #e0e0e0;
}
/* Дополнительная адаптация для всех экранов */
@media (max-width: 768px) {
  /* Баннер не должен быть фиксированной высоты */
  .hero-banner {
    height: auto !important;
    min-height: auto !important;
  }
  
  /* Текст не должен вылезать */
  .hero-content {
    max-width: 100%;
    word-wrap: break-word;
  }
  
  /* Кнопка не должна быть слишком широкой */
  .hero-btn {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ---------- ФУТЕР ---------- */
.site-footer {
  margin-top: 40px;
  padding: 20px 0;
  color: var(--muted);
  border-top: 1px solid #eeeeee;
  background: var(--footer-bg);
  text-align: center;
}

/* ---------- МОДАЛЬНЫЕ ОКНА ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: var(--modal-bg);
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--colorbtnclose);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease);
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: var(--modal-tabs-bg);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text);
}

.modal-tabs button.active {
  background: var(--bordrbottomco);
  color: #0a0a0a;
  font-weight: bold;
}

/* Формы в модалке */
.auth-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
}

.auth-form input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--color_inputmodal);
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--bordrbottomco);
}

.modal input {
  color: var(--color_inputmodal);
}

/* Список городов */
.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--colorcitylist);
}

.city-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eeeeee;
  transition: background 0.2s;
}

.city-item:hover {
  background: var(--cardhover);
}

.Plocationmod {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: var(--colortextPlocation);
}

.Slocationmod {
  color: red;
}

/* ---------- ALERT ---------- */
.alert {
  padding: 12px 16px;
  margin: 10px auto;
  max-width: 600px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.alert-success {
  background: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

body.dark .alert-error {
  background: #2a1a1a;
  color: #ff8888;
  border-color: #cc4444;
}

body.dark .alert-success {
  background: #1a2a1a;
  color: #88ff88;
  border-color: #44cc44;
}

/* ---------- МОБИЛЬНАЯ НАВИГАЦИЯ ---------- */
.mobile-nav {
  display: none;
}

/* ---------- АДАПТАЦИЯ (планшеты + телефоны, ≤1024px) ----------
   Было max-width:1400px — из-за этого на ноутбуках 1025–1400px
   пропадала И верхняя, И нижняя навигация. Теперь порог = 1024px
   (десктоп ≥1025px сохраняет горизонтальную навигацию). */
@media (max-width: 1024px) {
  .container {
    padding: 0 12px;
  }
  
  .catalog.container,
  .cards-container {
    padding: 0 12px;
  }
  
  .site-header .container {
    padding: 0 12px;
  }
  
  .header-inner {
    gap: 8px;
    min-height: 44px;
    flex-wrap: wrap;
  }
  
  /* Скрываем навигацию на мобильных */
  .nav {
    display: none;
  }
  
  .brand {
    font-size: 16px;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  /* Кнопка входа скрыта на мобильных (есть в нижней навигации) */
  .right .btn-outline {
    display: none;
  }
  
  /* Фильтры на мобильных */
  .header-filters {
    order: 3;
    width: 100%;
    margin: 10px 0 0;
  }
  
  .filters {
    flex-direction: column;
    gap: 12px;
  }
  
  .input, .input-small {
    width: 100%;
    min-width: auto;
  }
  

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .catalog-item {
    padding: 10px;
    min-height: 80px;
  }
  
  .catalog-item .icon {
    font-size: 22px;
    margin-bottom: 6px;
  }
  
  .catalog-item .label {
    font-size: 11px;
  }
  
  /* Герой баннер */
  .hero-banner {
    height: auto;
    min-height: 200px;
  }
  
  .hero-inner {
    flex-direction: column;
    padding: 16px;
  }
  
  .hero-content {
    text-align: center;
    padding: 0;
  }
  
  .hero-title {
    font-size: 22px;
    justify-content: center;
  }
  
  .hero-subtitle {
    font-size: 13px;
  }
  
  .hero-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .hero-animation {
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: 10px;
  }
  
  .hero-dots {
    bottom: 8px;
  }

  .dot::before {
    inset: 8px;
  }
  
  /* Карточки */
  .card {
    padding: 12px;
  }
  
  .card img {
    height: 300px;
  }
  
  /* Мобильная навигация */
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)); /* вырез/индикатор iPhone */
    z-index: 1000;
    backdrop-filter: blur(4px);
  }
  
  .mobile-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #333333;
    font-size: 12px;
    padding: 4px;
    transition: all 0.3s ease;
  }
  
  .mobile-nav a .icon {
    display: block;
    margin-bottom: 2px;
  }
  
  .mobile-nav a .icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(71%) sepia(62%) saturate(748%) hue-rotate(76deg) brightness(95%) contrast(92%);
    transition: filter 0.3s ease, transform 0.2s;
  }
  
  .mobile-nav a:hover .icon img,
  .mobile-nav a.active .icon img {
    filter: brightness(0) saturate(100%) invert(78%) sepia(83%) saturate(648%) hue-rotate(76deg) brightness(98%) contrast(98%);
    transform: scale(1.1);
  }
  
  .mobile-nav a .label {
    font-size: 10px;
    font-weight: 500;
    color: #333333;
  }
  
  .mobile-nav a.active .label {
    color: var(--color-brand-text);
    font-weight: var(--fw-bold);
  }
  
  /* Отступ снизу всей страницы, чтобы фикс. нижняя навигация
     не перекрывала контент И футер (+ вырез экрана) */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .header-filters {
    max-width: 400px;
  }
}
@media (max-width: 550px) {
      .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* Десктоп */
@media (min-width: 1025px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .catalog-item {
    padding: 8px;
  }
  
  .catalog-item .label {
    font-size: 10px;
  }
  
  .hero-title {
    font-size: 18px;
  }
  
  .hero-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .card img {
    height: 260px;
  }
}

/* Дополнительные классы */
.card-image-container img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.nav a.active,
.mobile-nav a.active {
  color: var(--color-brand-text);
  font-weight: var(--fw-bold);
}

/* Стили для тёмного режима героя */
body.dark .hero-banner {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

body.dark .hero-slide:nth-child(1) { background: linear-gradient(135deg, #1a3d2e, #2d6a4f); }
body.dark .hero-slide:nth-child(2) { background: linear-gradient(135deg, #1a2a4a, #1e3a5f); }
body.dark .hero-slide:nth-child(3) { background: linear-gradient(135deg, #2a2a1a, #4a4a2a); }

body.dark .hero-btn {
  background: rgba(153, 228, 62, 0.2);
  border-color: rgba(153, 228, 62, 0.4);
  color: #e0e0e0;
}

body.dark .hero-btn:hover {
  background: rgba(153, 228, 62, 0.35);
}

body.dark .wave {
  fill: rgba(153, 228, 62, 0.1);
}

body.dark .mobile-nav a .label {
  color: var(--text);
}

body.dark .mobile-nav a:hover .label,
body.dark .mobile-nav a.active .label {
  color: var(--bordrbottomco);
}

body.dark .mobile-nav {
  border-top: 1px solid #2a2a2a;
}

/* ============================================================
   A11Y / УТИЛИТЫ / КОМПОНЕНТЫ (добавлено при аудите)
   ============================================================ */

/* Скрыто визуально, доступно скринридерам */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ссылка «перейти к содержимому» (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -60px;
  z-index: 10000;
  padding: var(--space-2) var(--space-4);
  background: var(--color-brand);
  color: var(--on-brand);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-2); }

/* Единый видимый фокус для клавиатуры (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* Действия внутри карточки (замена инлайн-стиля из JS) */
.card-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* Переключатель языка */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.lang-switch:hover { border-color: var(--color-brand); }

/* Кнопка паузы карусели (WCAG 2.2.2) */
.hero-pause {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 11;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero-pause:hover { background: rgba(0,0,0,.42); }

/* Секция «О сервисе» */
.about-section { padding: var(--space-8) 0; }
.about-section > h2 {
  font-size: var(--fs-xl);
  margin: 0 0 var(--space-3);
  color: var(--text);
}
.about-lead {
  color: var(--text-muted);
  max-width: 68ch;
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--cardborder);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-md);
  color: var(--color-brand-text);
}
.about-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.about-cta {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  font-weight: var(--fw-semibold);
  min-height: 44px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-telegram:hover { transform: translateY(-2px); background: #1c8dc4; }

/* Большие экраны (≥1440px): центрируем и ограничиваем ширину контента */
@media (min-width: 1440px) {
  .container,
  .catalog.container,
  .cards-container,
  .site-header .container {
    max-width: 1320px;
    margin-inline: auto;
  }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Уважение к prefers-reduced-motion (WCAG 2.3.3): гасим движение,
   но контент, который появлялся через анимацию, остаётся видимым */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-text,
  .hero-subtitle,
  .hero-btn {
    opacity: 1 !important;
    transform: none !important;
  }
  .wave,
  .floating-icon { animation: none !important; }
}

/* ========================================
   FINAL HOME UX FIXES
   ======================================== */
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.catalog-head h2 {
  margin: 0;
}

.catalog-toggle-btn,
.favorite-heart-btn,
.page-jump-btn {
  border: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.catalog-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.catalog-toggle-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform .2s ease;
}

.catalog-toggle-btn.is-collapsed img {
  transform: rotate(180deg);
}

.catalog-grid {
  transition: max-height .28s ease, opacity .2s ease, transform .2s ease;
  overflow: hidden;
}

.catalog-grid.is-collapsed {
  max-height: 0 !important;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.favorite-heart-btn {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  transition: transform .18s ease, filter .18s ease;
}

.favorite-heart-btn img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(73%) sepia(83%) saturate(493%) hue-rotate(35deg) brightness(103%) contrast(91%);
}

.favorite-heart-btn.is-active {
  background: transparent;
  box-shadow: none;
}

.favorite-heart-btn.is-active img {
  filter: brightness(0) saturate(100%) invert(73%) sepia(83%) saturate(493%) hue-rotate(35deg) brightness(103%) contrast(91%) drop-shadow(0 4px 8px rgba(var(--brand-rgb), .28));
}

.favorite-heart-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.page-jump-btn {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(18px, 3vh, 32px);
  z-index: 1500;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  font-size: 24px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
  backdrop-filter: blur(12px);
}

.page-jump-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(74%) sepia(98%) saturate(466%) hue-rotate(36deg) brightness(99%) contrast(92%);
}

body.dark .page-jump-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cards-container {
  display: grid;
  justify-content: stretch;
  align-items: stretch;
}

.cards-container .card {
  width: 100%;
  max-width: none;
}

@media (max-width: 699px) {
  .cards-container {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1100px) and (max-width: 1699px) {
  .cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch;
  }
}

@media (min-width: 1700px) {
  .cards-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: stretch;
  }
}

body.dark {
  --bg: #141414;
  --surface: #202020;
  --surface-hover: #282828;
  --card-bg: #202020;
  --header-bg: #181818;
  --footer-bg: #181818;
}

body.dark .hero-slide:nth-child(1),
body.dark .hero-slide:nth-child(2),
body.dark .hero-slide:nth-child(3) {
  background: linear-gradient(135deg, #181818, #242424) !important;
}

body.dark .hero-banner {
  background: #181818 !important;
  border: 1px solid #2a2a2a;
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 260px !important;
    border-radius: 18px;
  }

  .hero-inner {
    min-height: 260px;
    justify-content: center;
    align-items: center;
    padding: 38px 20px 52px;
  }

  .hero-content {
    display: grid;
    justify-items: center;
    gap: 12px;
  }

  .hero-title {
    font-size: 25px;
    line-height: 1.18;
    max-width: 310px;
    margin-bottom: 0;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.45;
    max-width: 280px;
    margin-bottom: 0;
  }

  .hero-btn {
    margin-top: 2px;
  }

  .page-jump-btn {
    bottom: 82px;
    right: 16px;
    margin: 0;
  }
}

@media (min-width: 769px) {
  .hero-banner {
    min-height: 240px;
  }

  .hero-inner {
    min-height: 240px;
    align-items: center;
    justify-content: center;
    padding-block: 36px 46px;
  }

  .hero-content {
    align-self: center;
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: 0;
  }
}

/* Final shared bottom navigation: same floating panel as detail. */
.mobile-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 14px !important;
  transform: translateX(-50%);
  z-index: 1300;
  width: min(calc(100% - 24px), 520px);
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px !important;
  padding-bottom: 8px !important;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.9) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  display: grid !important;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 4px !important;
  border-radius: 16px;
  color: #1f2937 !important;
  text-decoration: none;
  font-size: 11px !important;
  font-weight: 800;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(153, 228, 62, 0.2);
  color: #155724 !important;
}

.mobile-nav a .icon {
  display: grid !important;
  place-items: center;
  margin: 0 !important;
}

.mobile-nav a .icon img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
}

.mobile-nav a .label {
  color: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1;
}

body.dark .mobile-nav {
  background: rgba(32, 32, 32, 0.9) !important;
  border-color: #333;
}

body.dark .mobile-nav a {
  color: #e8edf8 !important;
}

@media (max-width: 420px) {
  .hero-banner,
  .hero-inner {
    min-height: 285px !important;
  }

  .hero-title {
    font-size: 23px;
  }
}

/* Match home bottom navigation icons with detail page green icon language. */
.mobile-nav a .icon img {
  filter: brightness(0) saturate(100%) invert(71%) sepia(62%) saturate(748%) hue-rotate(76deg) brightness(95%) contrast(92%) !important;
  transition: filter .2s ease, transform .2s ease;
}

.mobile-nav a:hover .icon img,
.mobile-nav a.active .icon img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(83%) saturate(648%) hue-rotate(76deg) brightness(98%) contrast(98%) drop-shadow(0 4px 8px rgba(153, 228, 62, .28)) !important;
  transform: scale(1.08);
}

/* Конец файла */

/* HOME REFRESH: header controls, city modal, banner and listing actions */
.site-header .right {
  gap: 10px;
}

.site-header .header-theme-control {
  flex: 0 0 auto;
}

.city-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  max-height: min(420px, 62vh);
  overflow: auto;
}

.city-country-title {
  list-style: none;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-item small {
  color: var(--muted);
  font-size: 12px;
}

.city-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(153, 228, 62, 0.08);
  border: 1px solid rgba(153, 228, 62, 0.16);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.city-item:hover,
.city-item-all {
  background: rgba(153, 228, 62, 0.22);
  border-color: rgba(153, 228, 62, 0.42);
}

.hero-banner {
  min-height: 292px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 14%, rgba(153, 228, 62, .34), transparent 34%),
    linear-gradient(135deg, #172115 0%, #23351d 48%, #101510 100%) !important;
  border: 1px solid rgba(153, 228, 62, .24);
  box-shadow: 0 22px 60px rgba(14, 20, 12, .22);
}

.hero-inner {
  min-height: 292px;
  align-items: center;
  justify-content: flex-start;
  padding: 46px clamp(22px, 5vw, 72px) 58px;
}

.hero-slide {
  background: transparent !important;
}

.hero-content {
  max-width: 610px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: .98;
  margin: 0;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 1.7vw, 19px);
}

.highlight {
  color: #99e43e;
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.hero-btn {
  width: max-content;
  background: #99e43e;
  color: #101510;
  border: 0;
  box-shadow: 0 14px 28px rgba(153, 228, 62, .24);
}

.hero-btn:hover {
  background: #b6ec6e;
  color: #101510;
}

.hero-animation {
  opacity: .45;
}

.hero-dots {
  left: clamp(28px, 5vw, 78px);
  right: auto;
  transform: none;
  bottom: 24px;
}

.hero-pause {
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .12);
}

.catalog-item {
  border: 0;
}

.catalog-item.active {
  background: rgba(153, 228, 62, .2);
  box-shadow: inset 0 0 0 2px rgba(153, 228, 62, .55), 0 10px 22px rgba(31, 41, 55, .12);
}

.listing-card-home .no-image {
  min-height: 230px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 12px;
}

.home-card-body {
  min-height: 132px;
}

.home-rating-pill {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 251, 235, .96);
  border: 1px solid rgba(245, 158, 11, .20);
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
}

.home-open-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 2px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.home-open-pill.is-open {
  background: rgba(34, 197, 94, .13);
  color: #15803d;
}

.home-open-pill.is-closed {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
}

.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 16%, transparent);
}

.home-rating-pill span {
  color: #f6b51e;
}

.home-rating-pill strong {
  color: #111827;
}

.home-rating-pill small {
  color: #64748b;
  font-weight: 800;
}

.home-card-meta {
  color: var(--color-brand-text) !important;
  font-weight: 700;
}

.list-empty-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
}

.list-empty-state span {
  font-size: 32px;
}

body.dark .city-item,
body.dark .list-empty-state,
body.dark .listing-card-home .no-image {
  background: #202020;
  border-color: #333;
  color: #e8edf8;
}

body.dark .hero-banner {
  background:
    radial-gradient(circle at 14% 14%, rgba(153, 228, 62, .22), transparent 34%),
    linear-gradient(135deg, #141414 0%, #202020 54%, #101010 100%) !important;
  border-color: #333;
}

body.dark .home-rating-pill {
  background: rgba(24, 24, 24, .90);
  border-color: rgba(255, 255, 255, .12);
  color: #f8fafc;
}

body.dark .home-open-pill.is-open {
  color: #86efac;
  background: rgba(34, 197, 94, .16);
}

body.dark .home-open-pill.is-closed {
  color: #fca5a5;
  background: rgba(239, 68, 68, .16);
}

body.dark .home-rating-pill strong {
  color: #f8fafc;
}

@media (max-width: 1024px) {
  .site-header .right {
    margin-left: auto;
  }

  .site-header .header-theme-control {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 330px !important;
    border-radius: 24px;
  }

  .hero-inner {
    min-height: 330px !important;
    padding: 42px 24px 62px;
    justify-content: center;
  }

  .hero-content {
    justify-items: start;
    text-align: left;
    width: 100%;
  }

  .hero-title {
    max-width: 10ch;
    font-size: clamp(36px, 12vw, 48px);
  }

  .hero-dots {
    left: 24px;
    bottom: 22px;
  }
}

/* PHASE 3: unified UI polish, skeleton loading, compact catalog */
.site-header .nav {
  display: none;
}

body:not(.dark):not(.dark-theme) {
  background: #f5f1e8;
  color: #1f2937;
}

body.dark,
body.dark-theme {
  background: #161616;
  color: #e8edf8;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.catalog-item {
  min-height: 82px;
  padding: 10px 8px;
  border-radius: 16px;
}

.catalog-item .icon {
  width: 38px;
  height: 38px;
}

.catalog-item .icon img {
  max-width: 24px;
  max-height: 24px;
}

.catalog-item .label {
  font-size: 12px;
  line-height: 1.2;
}

.cards-container,
#list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  align-items: stretch;
}

.listing-card-home {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.skeleton-card {
  pointer-events: none;
}

.listing-card-home.is-premium {
  border-color: transparent !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 252, 244, .9)) !important;
  box-shadow: 0 22px 56px rgba(60, 120, 25, .18), 0 0 0 1px rgba(153, 228, 62, .18) !important;
}

.listing-card-home.is-premium > img {
  width: calc(100% + 2px);
  max-width: calc(100% + 2px);
  margin: -1px -1px 0;
  border-radius: 20px 20px 0 0;
  box-shadow: none;
  object-fit: cover;
}

.listing-card-home.is-premium .home-card-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 252, 244, .96));
}

.listing-card-home.is-premium .card-actions {
  border-top: 1px solid rgba(153, 228, 62, .18);
  background: rgba(255, 255, 255, .7);
}

.listing-badges-row {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.premium-listing-badge,
.promo-listing-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(153, 228, 62, .95);
  color: #101510;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.premium-listing-badge {
  width: 30px;
  padding: 0;
}

.promo-listing-badge {
  background: rgba(255, 255, 255, .94);
}

.skeleton-line {
  position: relative;
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: makonSkeleton 1.25s infinite;
}

.skeleton-image {
  height: 210px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.skeleton-title {
  width: 72%;
  height: 22px;
  margin-bottom: 12px;
}

.skeleton-pill {
  width: 44%;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 60%;
  margin-top: 10px;
}

.skeleton-button {
  width: 120px;
  height: 38px;
}

.skeleton-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

@keyframes makonSkeleton {
  to { transform: translateX(100%); }
}

.hero-banner {
  isolation: isolate;
}

.makon-temporary-hidden {
  display: none !important;
}

.auth-helper-text {
  margin: -4px 0 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-agreement {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(153, 228, 62, .09);
  border: 1px solid rgba(153, 228, 62, .22);
  font-size: 13px;
  line-height: 1.45;
}

.auth-agreement input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #99e43e;
}

.auth-verification-step {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(18, 184, 134, 0.24);
  border-radius: 14px;
  background: rgba(18, 184, 134, 0.08);
}

.auth-verification-step[hidden] {
  display: none !important;
}

.auth-verification-step input[name="verification_code"] {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-bot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #047857;
  background: rgba(18, 184, 134, 0.14);
  text-decoration: none;
  font-weight: 800;
}

.auth-status-text {
  min-height: 18px;
  margin-top: 2px;
}

.auth-status-text.is-error {
  color: #dc2626;
}

.auth-role-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(22, 163, 74, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(153, 228, 62, .2), transparent 42%),
    rgba(153, 228, 62, .07);
}

.auth-role-links span {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-role-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 135, 84, .18);
  border-radius: 14px;
  color: #17340b;
  background: rgba(255, 255, 255, .72);
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.auth-role-links a:hover {
  color: #10210f;
  background: linear-gradient(135deg, #99e43e, #22c55e);
  text-decoration: none;
}

.role-register-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(153, 228, 62, .22), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(25, 135, 84, .18), transparent 28%),
    linear-gradient(135deg, #f8faf7, #edf5eb);
  color: #111827;
}

.role-register-shell {
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  padding: clamp(22px, 5vw, 64px) 0;
}

.role-register-hero,
.role-register-card {
  min-width: 0;
}

.role-register-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: #198754;
  font-weight: 900;
  text-decoration: none;
}

.role-register-badge {
  width: max-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111827;
  color: #99e43e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.role-register-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: .95;
}

.role-register-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #425046;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.role-register-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.role-register-points span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(17, 24, 39, .08);
  font-size: 13px;
  font-weight: 850;
}

.role-register-card {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 28px 70px rgba(17, 24, 39, .14);
  backdrop-filter: blur(16px);
}

.role-register-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.role-login-card {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .94), rgba(17, 24, 39, .88)),
    radial-gradient(circle at top right, rgba(153, 228, 62, .16), transparent 38%);
  color: #f8faf7;
}

.role-login-card h2,
.role-login-card label {
  color: #f8faf7;
}

.role-login-card .role-register-note {
  background: rgba(153, 228, 62, .12);
  color: #dce8d9;
}

.role-register-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.role-register-card form {
  display: grid;
  gap: 14px;
}

.role-register-card label {
  display: grid;
  gap: 7px;
  color: #2f3a32;
  font-size: 13px;
  font-weight: 850;
}

.role-login-card label {
  color: #f8faf7;
}

.role-register-card input[type="text"],
.role-register-card input[type="tel"],
.role-register-card input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 16px;
  padding: 13px 14px;
  background: #f8fbf7;
  color: #111827;
  font: inherit;
}

.role-register-card input:focus {
  outline: none;
  border-color: #198754;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, .13);
}

.role-register-note {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(153, 228, 62, .13);
  color: #354335;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .role-register-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.role-auth-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 34px;
  padding: clamp(16px, 2.2vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .72)),
    radial-gradient(circle at 18% 8%, rgba(153, 228, 62, .28), transparent 30%);
  box-shadow: 0 34px 90px rgba(17, 24, 39, .18);
  backdrop-filter: blur(22px);
}

.role-auth-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -64px;
  top: 58px;
  border-radius: 50%;
  background: rgba(153, 228, 62, .38);
  filter: blur(42px);
  pointer-events: none;
}

.role-auth-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-auth-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(17, 24, 39, .08);
}

.role-auth-tabs label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  color: #465246;
  font-weight: 950;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#roleAuthLogin:checked ~ .role-auth-tabs label[for="roleAuthLogin"],
#roleAuthRegister:checked ~ .role-auth-tabs label[for="roleAuthRegister"] {
  color: #10210f;
  background: linear-gradient(135deg, #99e43e, #22c55e);
  box-shadow: 0 14px 30px rgba(34, 197, 94, .24);
}

.role-auth-panel {
  position: relative;
  z-index: 1;
  display: none;
  margin-top: 18px;
  animation: roleAuthPanelIn .22s ease both;
}

#roleAuthLogin:checked ~ .role-auth-login-panel,
#roleAuthRegister:checked ~ .role-auth-register-panel {
  display: block;
}

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

.role-auth-heading {
  margin-bottom: 16px;
}

.role-auth-heading span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(25, 135, 84, .11);
  color: #198754;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.role-auth-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
}

.role-auth-heading p {
  margin: 10px 0 0;
  color: #536052;
  line-height: 1.55;
}

.role-auth-panel form {
  display: grid;
  gap: 13px;
}

.role-auth-panel label:not(.auth-agreement) {
  display: grid;
  gap: 7px;
  color: #2f3a32;
  font-size: 13px;
  font-weight: 900;
}

.role-auth-panel input[type="text"],
.role-auth-panel input[type="tel"],
.role-auth-panel input[type="password"] {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 17px;
  padding: 12px 14px;
  background: rgba(248, 251, 247, .92);
  color: #111827;
  font: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.role-auth-panel input:focus {
  border-color: rgba(25, 135, 84, .64);
  box-shadow: 0 0 0 4px rgba(25, 135, 84, .13);
  background: #fff;
}

.role-auth-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 17px;
  margin: 4px 0 0;
}

.role-auth-agreement {
  margin: 0;
}

@media (max-width: 560px) {
  .auth-role-links {
    grid-template-columns: 1fr;
  }

  .role-auth-card {
    border-radius: 24px;
    padding: 14px;
  }

  .role-auth-tabs {
    gap: 6px;
  }

  .role-auth-tabs label {
    min-height: 42px;
    font-size: 14px;
  }
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .36), transparent 72%),
    url("/icons/maklogo-512.png");
  background-size: auto, min(42vw, 420px);
  background-position: center, right clamp(18px, 6vw, 80px) center;
  background-repeat: no-repeat;
  opacity: .18;
  pointer-events: none;
}

.hero-inner,
.hero-slide,
.hero-content,
.hero-pause,
.hero-dots {
  position: relative;
  z-index: 1;
}

.site-footer {
  margin-top: 44px;
  padding: 28px 0 92px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

body.dark .skeleton-line {
  background: rgba(255, 255, 255, 0.09);
}

body.dark .skeleton-line::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
}

body.dark .listing-card-home.is-premium,
body.dark-theme .listing-card-home.is-premium {
  background: linear-gradient(180deg, #20251c, #191d17) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .36), 0 0 0 1px rgba(153, 228, 62, .22) !important;
}

body.dark .listing-card-home.is-premium .home-card-body,
body.dark-theme .listing-card-home.is-premium .home-card-body,
body.dark .listing-card-home.is-premium .card-actions,
body.dark-theme .listing-card-home.is-premium .card-actions {
  background: rgba(24, 28, 22, .92);
}

@media (min-width: 1300px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1299px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 620px) and (max-width: 899px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 619px) {
  .cards-container,
  #list {
    grid-template-columns: 1fr;
  }
}

.city-country-title button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(153, 228, 62, .16);
  color: #198754;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.city-country-title button:hover {
  background: rgba(153, 228, 62, .28);
}

.location-filter-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 0 8px;
  background: var(--surface, #fff);
}

.location-filter-tabs button {
  min-height: 38px;
  border: 1px solid rgba(153, 228, 62, .28);
  border-radius: 999px;
  background: rgba(153, 228, 62, .08);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.location-filter-tabs button.active,
.location-filter-tabs button:hover {
  background: #99e43e;
  border-color: #99e43e;
  color: #10210c;
}

.city-country-option {
  background: rgba(25, 135, 84, .08);
}

body.dark .location-filter-tabs {
  background: var(--bg, #141414);
}

/* FINAL HOME POLISH OVERRIDE - keep this at EOF */
.modal-content {
  padding: 30px 20px 20px !important;
  border-radius: 20px !important;
  overflow: visible !important;
}

.modal-close {
  top: -18px !important;
  right: 10px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  background: var(--modal-bg) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18) !important;
  z-index: 3 !important;
}

.auth-role-links {
  margin: 14px 0 12px !important;
}

.auth-agreement {
  margin-top: 10px !important;
}

.listing-card-home {
  border: 0 !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .1) !important;
}

.listing-card-home.is-premium {
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 255, 244, .94)),
    radial-gradient(circle at top right, rgba(153, 228, 62, .24), transparent 36%) !important;
  box-shadow: 0 24px 66px rgba(62, 112, 20, .2) !important;
}

.premium-listing-badge {
  width: auto !important;
  min-width: 52px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #111827 0%, #243127 48%, #99e43e 160%) !important;
  color: #dfff7f !important;
  font-size: 0 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.premium-listing-badge::before {
  content: "TOP";
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.verified-company-chip {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(25, 135, 84, .1);
  color: #147448;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.verified-company-chip img,
.verified-company-chip span {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.verified-company-chip img {
  object-fit: contain;
}

.verified-company-chip span {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #147448;
  color: #fff;
  font-size: 11px;
}
/* Verified company badge: icon-only, centered. */
.listing-card-home .verified-company-chip {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  gap: 0 !important;
  border-radius: 50% !important;
  vertical-align: middle !important;
}

.listing-card-home .verified-company-chip img,
.listing-card-home .verified-company-chip span {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  margin: 0 !important;
  object-fit: contain !important;
  align-self: center !important;
  justify-self: center !important;
}

.listing-card-home .verified-company-chip b {
  display: none !important;
}

/* MAKON HOME REFERENCE REDESIGN - desktop/mobile shell, real data stays in JS. */
:root {
  --makon-primary: #65c92c;
  --makon-primary-hover: #55b522;
  --makon-primary-soft: #eef9e7;
  --makon-page: #f7f7f4;
  --makon-surface: #ffffff;
  --makon-surface-soft: #fbfbf8;
  --makon-text: #18202d;
  --makon-muted: #6f7785;
  --makon-border: #e8eae5;
  --makon-shadow: 0 18px 48px rgba(24, 32, 45, .09);
  --makon-shadow-soft: 0 10px 26px rgba(24, 32, 45, .08);
  --makon-radius-lg: 28px;
  --makon-radius-md: 18px;
}

body:not(.dark):not(.dark-theme) {
  background: var(--makon-page) !important;
  color: var(--makon-text) !important;
}

body.dark,
body.dark-theme {
  --makon-page: #151715;
  --makon-surface: #20231f;
  --makon-surface-soft: #191c18;
  --makon-text: #f3f6f0;
  --makon-muted: #b4bead;
  --makon-border: rgba(255,255,255,.09);
  --makon-shadow: 0 18px 48px rgba(0,0,0,.34);
  background: #151715 !important;
  color: var(--makon-text) !important;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1200;
  padding: 14px 0 !important;
  border: 0 !important;
  background: rgba(247, 247, 244, .82) !important;
  box-shadow: none !important;
  backdrop-filter: blur(20px);
}

body.dark .site-header,
body.dark-theme .site-header {
  background: rgba(21, 23, 21, .86) !important;
}

.site-header .container,
#main.container {
  width: min(100% - 32px, 1380px);
  max-width: 1380px;
  padding: 0 !important;
}

.header-inner {
  min-height: 70px !important;
  padding: 0 22px;
  gap: 18px;
  border: 1px solid rgba(24, 32, 45, .06);
  border-radius: 28px;
  background: var(--makon-surface);
  box-shadow: var(--makon-shadow-soft);
}

body.dark .header-inner,
body.dark-theme .header-inner {
  border-color: rgba(255,255,255,.08);
}

.left {
  gap: 12px !important;
}

.logo-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}

.brand {
  color: #3d9624 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.location-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--makon-border);
  background: transparent;
  color: var(--makon-text);
  font-weight: 800;
  cursor: pointer;
}

.location-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: saturate(1.2);
}

.location-chevron,
.profile-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .7;
}

.header-filters {
  position: relative;
  flex: 1 1 420px !important;
  max-width: 520px !important;
  margin: 0 !important;
}

.header-input {
  width: 100%;
  min-height: 46px;
  padding: 0 48px 0 18px !important;
  border: 1px solid var(--makon-border) !important;
  border-radius: 12px !important;
  background: var(--makon-surface-soft) !important;
  color: var(--makon-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.header-input::placeholder {
  color: #9aa1ad;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #6f7785;
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: #6f7785;
  transform: rotate(45deg);
}

.home-filter-btn {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  position: relative;
  border: 0;
  border-radius: 12px;
  background: var(--makon-primary-soft);
  color: #3d9624;
  cursor: pointer;
}

.home-filter-btn span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.home-filter-btn span:nth-child(1) {
  transform: translateY(-7px);
}

.home-filter-btn span:nth-child(2) {
  width: 12px;
}

.home-filter-btn span:nth-child(3) {
  transform: translateY(7px);
  width: 15px;
}

.right {
  gap: 14px !important;
}

.header-action {
  color: var(--makon-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header-action:hover {
  color: #3d9624;
}

.header-favorite::before {
  content: "☆";
  margin-right: 6px;
  color: #3d9624;
}

.header-add-company {
  padding-left: 14px;
  border-left: 1px solid var(--makon-border);
}

.header-login-btn,
.header-profile-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--makon-primary-soft);
  color: #2f7f18;
  padding: 0 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.header-profile-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.home-hero {
  min-height: 285px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  align-items: center;
  gap: 24px;
  padding: 44px 32px 34px;
  border-radius: 0 0 var(--makon-radius-lg) var(--makon-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78)),
    linear-gradient(135deg, #ffffff, #f3f8ef);
  box-shadow: var(--makon-shadow-soft);
  overflow: hidden;
}

body.dark .home-hero,
body.dark-theme .home-hero {
  background:
    linear-gradient(180deg, rgba(32,35,31,.96), rgba(25,28,24,.9)),
    linear-gradient(135deg, #20231f, #182016);
}

.home-hero h2 {
  margin: 0;
  color: var(--makon-text);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 950;
}

.home-hero h2 span {
  color: #65b72c;
  position: relative;
}

.home-hero h2 span::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -8px;
  height: 10px;
  border-bottom: 4px solid rgba(101, 201, 44, .55);
  border-radius: 50%;
}

.home-hero p {
  max-width: 360px;
  margin: 24px 0 0;
  color: var(--makon-muted);
  font-size: 17px;
  line-height: 1.45;
}

.home-hero-visual {
  position: relative;
  min-height: 245px;
  transform: rotate(-2deg);
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 12px 4px 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 40%, rgba(101,201,44,.22), transparent 8%),
    radial-gradient(circle at 86% 36%, rgba(255,184,0,.18), transparent 8%),
    linear-gradient(135deg, rgba(146, 196, 220, .24), rgba(101,201,44,.08));
  transform: skewX(-12deg);
}

.home-hero-visual::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 10px;
  top: 26px;
  height: 130px;
  border-top: 2px dashed rgba(101,201,44,.26);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.city-card {
  position: absolute;
  bottom: 44px;
  width: 126px;
  height: 102px;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px) 0 0 / 24px 28px,
    linear-gradient(180deg, #dfe9f0, #b8cbd7);
  box-shadow: 0 22px 38px rgba(30, 64, 90, .14);
}

.city-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: -28px;
  height: 34px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #f8d48c, #cf9a4f);
}

.city-card-a { left: 48px; height: 92px; }
.city-card-b { left: 185px; height: 132px; background-color: #cfe2d0; }
.city-card-c { right: 48px; height: 112px; }

.city-road {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 24px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #dfe8ed, #c8d4d8);
  transform: skewX(-14deg);
}

.city-pin {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 90px;
  height: 90px;
  border-radius: 50% 50% 50% 6px;
  background: linear-gradient(135deg, #80d23c, #52a91f);
  transform: translateX(-50%) rotate(-45deg);
  box-shadow: 0 18px 34px rgba(82, 169, 31, .35);
}

.city-pin::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #fff;
}

.city-mini {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--makon-shadow-soft);
}

.city-mini::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 6px;
  border: 2px solid #65c92c;
}

.city-mini-food::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 12px;
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: #65c92c;
  box-shadow: 8px 0 0 #65c92c;
}

.city-mini-shop::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  width: 17px;
  height: 15px;
  border: 2px solid #65c92c;
  border-radius: 4px;
}

.city-mini-car::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 20px;
  height: 10px;
  border-radius: 7px 7px 4px 4px;
  background: #65c92c;
}

.city-mini-food { left: 20px; top: 88px; }
.city-mini-shop { right: 8px; top: 82px; }
.city-mini-car { left: 6px; bottom: 56px; }

.catalog {
  padding: 32px 0 18px !important;
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.catalog-head h2,
.nearby-title-row h2,
.promo-strip h2 {
  margin: 0;
  color: var(--makon-text);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 950;
}

.catalog-toggle-btn {
  display: none !important;
}

.catalog-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  min-height: 0 !important;
  overflow-x: auto;
  padding: 2px 4px 12px;
  scroll-snap-type: x proximity;
}

.catalog-grid::-webkit-scrollbar {
  height: 0;
}

.catalog-item {
  flex: 0 0 auto;
  min-width: 132px !important;
  min-height: 66px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  padding: 12px 16px !important;
  border: 1px solid var(--makon-border) !important;
  border-radius: 16px !important;
  background: var(--makon-surface) !important;
  box-shadow: var(--makon-shadow-soft) !important;
  scroll-snap-align: start;
}

.catalog-item.catalog-extra-item {
  display: none !important;
}

.catalog-grid.show-all {
  flex-wrap: wrap;
  overflow-x: visible;
}

.catalog-grid.show-all .catalog-extra-item {
  display: inline-flex !important;
}

.catalog-item .icon {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(101, 201, 44, .1);
}

.catalog-item .icon img {
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain;
  filter: hue-rotate(48deg) saturate(1.2);
}

.catalog-item .label {
  display: block !important;
  max-height: none !important;
  color: var(--makon-text) !important;
  font-size: 13px !important;
  font-weight: 850;
  line-height: 1.15;
}

.catalog-item:hover,
.catalog-item.active {
  border-color: rgba(101, 201, 44, .35) !important;
  background: #f4fbef !important;
  transform: translateY(-2px);
}

body.dark .catalog-item:hover,
body.dark .catalog-item.active,
body.dark-theme .catalog-item:hover,
body.dark-theme .catalog-item.active {
  background: rgba(101, 201, 44, .12) !important;
}

.catalog-subtype-grid {
  margin-top: 6px;
}

.nearby-toolbar {
  margin-top: 6px;
  border-radius: 20px;
  transition: background .22s ease, box-shadow .22s ease;
}

.nearby-toolbar.is-highlighted {
  background: rgba(101, 201, 44, .08);
  box-shadow: 0 0 0 10px rgba(101, 201, 44, .08);
}

.nearby-title-row,
.nearby-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nearby-title-row a {
  color: #4f9d25;
  font-weight: 900;
  text-decoration: none;
}

.nearby-controls-row {
  margin-top: 14px;
}

.nearby-chips,
.view-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nearby-chip,
.view-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #efefec;
  color: var(--makon-text);
  font-weight: 850;
  cursor: pointer;
}

.nearby-chip.active,
.nearby-chip:hover,
.view-switch button.active {
  background: var(--makon-primary);
  color: #10210f;
}

.view-switch {
  padding: 4px;
  border: 1px solid var(--makon-border);
  border-radius: 14px;
  background: var(--makon-surface);
}

.view-switch button {
  min-height: 34px;
  border-radius: 10px;
  background: transparent;
}

.cards-container,
#list {
  margin-top: 18px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.listing-card-home {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--makon-surface) !important;
  box-shadow: var(--makon-shadow) !important;
  overflow: hidden;
}

.home-card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.home-card-media > img,
.listing-card-home > img,
.home-card-media .no-image {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.home-card-media .no-image {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2e8, #dfe8d8);
  color: var(--makon-muted);
  font-weight: 900;
}

.home-card-media .favorite-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.home-card-media .home-open-pill {
  position: absolute;
  left: 14px;
  bottom: 12px;
}

.home-open-pill {
  width: max-content;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.home-open-pill.is-open {
  background: #e5f7eb !important;
  color: #159447 !important;
}

.home-open-pill.is-closed {
  background: #fde9eb !important;
  color: #dc3038 !important;
}

.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255,255,255,.55);
}

.home-card-body {
  flex: 1;
  padding: 16px 16px 8px !important;
}

.home-card-body h4 {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px !important;
  color: var(--makon-text) !important;
  font-size: 17px !important;
  font-weight: 950;
  line-height: 1.2;
}

.home-card-body h4 > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-rating-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  margin-bottom: 9px;
  color: var(--makon-muted);
  font-size: 13px;
}

.rating-star {
  color: #ffb800;
}

.home-rating-pill strong {
  color: var(--makon-text);
}

.home-rating-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b7bdc7;
}

.home-card-category,
.home-card-address,
.home-card-description {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--makon-muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: initial !important;
  line-clamp: initial !important;
}

.home-card-category {
  color: #5f6774 !important;
  font-weight: 800;
}

.home-card-address {
  min-height: 36px;
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px 16px !important;
  background: transparent !important;
}

.btn-route {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  border: 1px solid var(--makon-border);
  border-radius: 10px;
  background: #f9faf8;
  color: #4f9d25;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.btn-route span {
  width: 13px;
  height: 13px;
  display: inline-block;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.btn-call {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid var(--makon-border);
  border-radius: 12px;
  background: #f9faf8;
  text-decoration: none;
}

.btn-call::before {
  content: "";
  width: 23px;
  height: 23px;
  display: block;
  border: 0;
  border-radius: 0;
  background: url("/icons/phone-call.png") center / contain no-repeat;
  transform: none;
}

.favorite-heart-btn {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.favorite-heart-btn img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%);
}

.favorite-heart-btn.is-active img {
  filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%);
}

.listing-badges-row {
  top: 12px !important;
  left: 12px !important;
}

.verified-company-chip {
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  background: rgba(101,201,44,.14) !important;
}

.verified-company-chip img,
.verified-company-chip span {
  width: 16px !important;
  height: 16px !important;
}

.promo-strip {
  min-height: 114px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto 70px;
  align-items: center;
  gap: 22px;
  margin: 34px 0 18px;
  padding: 18px 24px;
  border: 1px solid rgba(101,201,44,.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #f3fbe9, #ffffff);
  box-shadow: var(--makon-shadow-soft);
}

body.dark .promo-strip,
body.dark-theme .promo-strip {
  background: linear-gradient(135deg, #1c2418, #20231f);
}

.promo-strip p {
  margin: 8px 0 0;
  color: var(--makon-muted);
}

.promo-strip a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 10px;
  background: #4f9d25;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.promo-gift {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255,255,255,.85) 42% 58%, transparent 58%),
    linear-gradient(#58b427, #3f9b1d);
  box-shadow: 0 12px 22px rgba(79,157,37,.24);
}

.promo-percent {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #65c92c;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  transform: rotate(-14deg);
}

.map-section {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: var(--makon-surface);
  box-shadow: var(--makon-shadow-soft);
}

.mobile-nav {
  display: none !important;
}

.page-jump-btn {
  right: max(16px, calc((100vw - 1380px) / 2 + 18px)) !important;
  bottom: 86px !important;
  background: rgba(255,255,255,.86) !important;
  border: 1px solid rgba(101,201,44,.24) !important;
}

.home-map-fab {
  position: fixed;
  right: max(16px, calc((100vw - 1380px) / 2 + 18px));
  bottom: 154px;
  z-index: 8800;
  min-width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(101, 201, 44, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #3d9624;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(36, 55, 28, .16);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.home-map-fab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body.dark .home-map-fab,
body.dark-theme .home-map-fab {
  background: rgba(32, 35, 31, .9);
  color: #99e43e;
}

@media (max-width: 1180px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .header-add-company {
    display: none;
  }
}

@media (max-width: 920px) {
  .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    min-height: auto !important;
    padding: 14px !important;
    border-radius: 0 0 24px 24px;
  }

  .header-filters {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
  }

  .header-action,
  .header-login-btn,
  .header-theme-control {
    display: none !important;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px 4px 6px;
    background: transparent;
    box-shadow: none;
  }

  .home-hero-copy {
    display: none;
  }

  .home-hero-visual {
    display: none;
  }

  .catalog {
    padding-top: 18px !important;
  }

  .catalog-head h2 {
    display: none;
  }

  .catalog-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 6px 12px;
    scroll-padding-inline: 6px;
  }

  .catalog-item {
    flex: 0 0 74px;
    min-width: 74px !important;
    min-height: 74px !important;
    flex-direction: column !important;
    gap: 7px;
    padding: 9px 6px !important;
    border-radius: 22px !important;
  }

  .catalog-item:nth-of-type(n+6):not(.catalog-more-item) {
    display: none !important;
  }

  .catalog-grid.show-all .catalog-item:nth-of-type(n+6) {
    display: inline-flex !important;
  }

  .catalog-more-item {
    display: inline-flex !important;
  }

  .catalog-item .label {
    font-size: 11px !important;
    text-align: center;
  }

  .catalog-item .icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
  }

  .catalog-item .icon img {
    max-width: 21px !important;
    max-height: 21px !important;
  }

  .nearby-controls-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-switch {
    display: none;
  }

  .cards-container,
  #list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-bottom: 96px;
  }

  .listing-card-home {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 34px;
    grid-template-areas:
      "media body fav"
      "media body fav";
    min-height: 132px;
    border-radius: 18px !important;
  }

  .home-card-media {
    grid-area: media;
    height: 100%;
    min-height: 132px;
  }

  .home-card-media .home-open-pill {
    left: 8px;
    bottom: 8px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .home-card-media .favorite-heart-btn {
    display: block;
    top: 8px;
    right: 8px;
  }

  .home-card-body {
    grid-area: body;
    padding: 12px 10px !important;
  }

  .home-card-body h4 {
    font-size: 15px !important;
    margin-bottom: 7px !important;
  }

  .home-card-address {
    min-height: 0;
  }

  .home-card-description {
    display: none !important;
  }

  .card-actions {
    grid-area: fav;
    padding: 10px 8px 10px 0 !important;
    align-items: flex-start;
    justify-content: center;
  }

  .card-actions .btn-route,
  .card-actions .btn-call {
    display: none;
  }

  .listing-card-home .card-actions::after {
    content: none;
    width: 27px;
    height: 27px;
    background: url("/icons/favorite.png") center / contain no-repeat;
    filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%);
  }

  .promo-strip {
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .promo-strip a,
  .promo-percent {
    display: none;
  }

  .promo-gift {
    width: 48px;
    height: 48px;
  }

  .mobile-nav {
    display: flex !important;
  }

  .page-jump-btn {
    bottom: 92px !important;
    right: 18px !important;
  }

  .home-map-fab {
    right: 18px;
    bottom: 156px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
  }

  .home-map-fab span {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header .container,
  #main.container {
    width: 100%;
    padding: 0 8px !important;
  }

  .header-inner {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    box-shadow: 0 8px 24px rgba(24,32,45,.08);
  }

  .logo-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .brand {
    font-size: 18px !important;
  }

  .location-pill {
    justify-self: center;
    padding: 0 8px;
    border-left: 0;
    font-size: 13px;
  }

  .right {
    justify-self: end;
  }

  .header-profile-chip {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .header-profile-chip .profile-chevron {
    display: none;
  }

  .catalog-item {
    min-height: 86px !important;
  }

  .nearby-title-row {
    padding: 0 6px;
  }

  .nearby-chips {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding: 0 6px 4px;
  }

  .nearby-chip {
    flex: 0 0 auto;
    padding: 0 14px;
  }

  .listing-card-home {
    grid-template-columns: 126px minmax(0, 1fr) 34px;
  }
}

/* HOME REFERENCE PHASE 2: states and mobile fine tuning. */
.list-empty-state {
  grid-column: 1 / -1 !important;
  min-height: 260px !important;
  display: grid !important;
  place-items: center !important;
  gap: 10px !important;
  padding: 34px !important;
  border: 1px dashed rgba(101, 201, 44, .34) !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--makon-surface) 88%, rgba(101, 201, 44, .08)) !important;
  color: var(--makon-muted) !important;
  text-align: center !important;
  font-weight: 850 !important;
}

.skeleton-card {
  min-height: 360px;
}

.skeleton-card .home-card-body {
  padding: 16px !important;
}

@media (max-width: 920px) {
  .search-icon {
    right: 64px;
  }

  .home-filter-btn {
    display: grid;
  }

  .header-input {
    min-width: 0;
  }

  .home-rating-pill {
    font-size: 12px;
    gap: 5px;
    margin-bottom: 6px;
  }

  .home-card-category,
  .home-card-address {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }

  .map-section {
    margin-bottom: 96px;
  }
}

@media (max-width: 560px) {
  .catalog-item {
    min-height: 76px !important;
  }

  .catalog-item:nth-of-type(n+6):not(.catalog-more-item) {
    display: none !important;
  }

  .catalog-grid.show-all .catalog-item:nth-of-type(n+6) {
    display: inline-flex !important;
  }
}

/* HOME PHASE 5: listing cards closer to the visual reference. */
@media (min-width: 921px) {
  .listing-card-home {
    border-radius: 18px !important;
    box-shadow: 0 16px 42px rgba(24, 32, 45, .09) !important;
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .listing-card-home:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(24, 32, 45, .13) !important;
  }

  .home-card-media {
    height: 185px;
  }

  .cards-container,
  #list {
    align-items: stretch;
  }

  .home-card-body {
    min-height: 162px;
  }

  .home-card-address {
    min-height: 34px;
  }
}

.home-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 42%, rgba(0,0,0,.14));
  pointer-events: none;
}

.home-card-media .favorite-heart-btn {
  display: grid !important;
  place-items: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .18) !important;
  backdrop-filter: blur(8px);
}

.home-card-media .favorite-heart-btn img {
  width: 29px !important;
  height: 29px !important;
  filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(0%) hue-rotate(20deg) brightness(106%) contrast(104%) drop-shadow(0 2px 8px rgba(0,0,0,.42));
}

.home-card-media .favorite-heart-btn.is-active img {
  filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%) drop-shadow(0 2px 8px rgba(0,0,0,.26));
}

.home-open-pill {
  z-index: 2;
}

.home-card-body h4 {
  justify-content: space-between;
}

.home-card-category {
  color: #687180 !important;
}

.home-card-address {
  color: #7a8391 !important;
}

body.dark .home-card-category,
body.dark-theme .home-card-category,
body.dark .home-card-address,
body.dark-theme .home-card-address {
  color: #b7c0b3 !important;
}

.btn-route:hover,
.btn-call:hover {
  border-color: rgba(101, 201, 44, .42);
  background: #f0fae8;
}

body.dark .btn-route,
body.dark-theme .btn-route,
body.dark .btn-call,
body.dark-theme .btn-call {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .10);
}

.listing-badges-row {
  z-index: 4 !important;
}

.premium-listing-badge {
  min-width: 42px !important;
  height: 28px !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #3d9624 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.18) !important;
}

.premium-listing-badge::before {
  content: "PRO" !important;
  color: #3d9624;
}

@media (min-width: 1181px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 920px) {
  .listing-card-home {
    grid-template-columns: 130px minmax(0, 1fr) 40px !important;
    min-height: 138px !important;
    box-shadow: 0 12px 28px rgba(24, 32, 45, .08) !important;
  }

  .home-card-media {
    min-height: 138px !important;
  }

  .home-card-media .favorite-heart-btn {
    top: 10px !important;
    right: -252px !important;
    width: 34px !important;
    height: 34px !important;
    background: transparent !important;
    backdrop-filter: none;
  }

  .home-card-media .favorite-heart-btn img {
    width: 27px !important;
    height: 27px !important;
    filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%);
  }

  .home-card-media::after {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.12));
  }

  .home-card-body h4 {
    padding-right: 2px;
  }

  .home-card-category {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 560px) {
  .listing-card-home {
    grid-template-columns: 124px minmax(0, 1fr) 36px !important;
  }

  .home-card-media .favorite-heart-btn {
    right: -244px !important;
  }
}

@media (max-width: 420px) {
  .listing-card-home {
    grid-template-columns: 116px minmax(0, 1fr) 34px !important;
  }

  .home-card-media .favorite-heart-btn {
    right: -226px !important;
  }
}

/* Correct favorite placement after Phase 5 DOM update. */
.listing-card-home > .favorite-heart-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 5;
  display: grid !important;
  place-items: center;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .18) !important;
  backdrop-filter: blur(8px);
}

.listing-card-home > .favorite-heart-btn img {
  width: 29px !important;
  height: 29px !important;
  filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(0%) hue-rotate(20deg) brightness(106%) contrast(104%) drop-shadow(0 2px 8px rgba(0,0,0,.42));
}

.listing-card-home > .favorite-heart-btn.is-active img {
  filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%) drop-shadow(0 2px 8px rgba(0,0,0,.26));
}

@media (max-width: 920px) {
  .listing-card-home > .favorite-heart-btn {
    position: static !important;
    grid-area: fav;
    align-self: start;
    justify-self: center;
    width: 34px !important;
    height: 34px !important;
    margin-top: 10px;
    background: transparent !important;
    backdrop-filter: none;
  }

  .listing-card-home > .favorite-heart-btn img,
  .listing-card-home > .favorite-heart-btn.is-active img {
    width: 27px !important;
    height: 27px !important;
    filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%);
  }

  .home-card-media .favorite-heart-btn {
    position: static !important;
    right: auto !important;
    top: auto !important;
  }
}

/* HOME PHASE 7: polished loading, empty and error states. */
.list-empty-state {
  grid-column: 1 / -1;
  width: min(100%, 680px);
  min-height: 220px;
  margin: 8px auto 28px;
  padding: 34px 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  border: 1px solid rgba(74, 167, 38, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(245,250,238,.92));
  box-shadow: 0 18px 48px rgba(24, 32, 45, .08);
}

.list-state-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #effadc;
  box-shadow: inset 0 0 0 1px rgba(74, 167, 38, .16);
}

.list-state-mark::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #4aa726;
  border-radius: 50%;
  box-shadow: 12px 12px 0 -9px #4aa726;
  transform: rotate(-12deg);
}

.list-empty-state.is-error .list-state-mark::before {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 44%, #d94848 45%, #d94848 56%, transparent 57%),
    linear-gradient(-45deg, transparent 44%, #d94848 45%, #d94848 56%, transparent 57%);
  box-shadow: none;
  transform: none;
}

.list-empty-state h3 {
  margin: 0;
  color: #172033;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.12;
  font-weight: 900;
}

.list-empty-state p {
  max-width: 420px;
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.55;
}

.list-state-action,
.catalog-retry-state {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.list-state-action {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #7bdc31;
  color: #18320d;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(74, 167, 38, .22);
}

body.dark .list-empty-state,
body.dark-theme .list-empty-state {
  background: linear-gradient(145deg, rgba(34, 38, 32, .96), rgba(25, 29, 24, .94));
  border-color: rgba(153, 228, 62, .16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

body.dark .list-empty-state h3,
body.dark-theme .list-empty-state h3 {
  color: #f1f7ed;
}

body.dark .list-empty-state p,
body.dark-theme .list-empty-state p {
  color: #bcc8b8;
}

.catalog-skeleton {
  pointer-events: none;
  overflow: hidden;
}

.catalog-skeleton .icon,
.catalog-skeleton .label,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(227,232,221,.72), rgba(247,250,242,.94), rgba(227,232,221,.72));
  background-size: 220% 100%;
  animation: makonSkeleton 1.15s ease-in-out infinite;
}

.catalog-skeleton .label {
  width: 76px;
  height: 12px;
  border-radius: 999px;
}

.catalog-retry-state {
  min-height: 72px;
  padding: 14px 18px;
  display: grid;
  gap: 4px;
  justify-items: start;
  border-radius: 20px;
  background: #fff;
  color: #172033;
  box-shadow: 0 14px 34px rgba(24, 32, 45, .1);
}

.catalog-retry-state span {
  color: #4aa726;
  font-size: 13px;
  font-weight: 900;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-card .skeleton-media {
  background: transparent;
}

.skeleton-card .skeleton-image {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.skeleton-card .skeleton-heart {
  background: rgba(235, 242, 229, .92) !important;
}

.skeleton-title {
  width: 72%;
  height: 18px;
  border-radius: 999px;
}

.skeleton-pill {
  width: 46%;
  height: 22px;
  border-radius: 999px;
}

.skeleton-line {
  width: 100%;
  height: 13px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 58%;
}

.skeleton-button {
  height: 42px;
}

.skeleton-icon {
  width: 46px;
  height: 42px;
}

@keyframes makonSkeleton {
  0% { background-position: 110% 0; }
  100% { background-position: -110% 0; }
}

.home-card-media.has-fallback-image img {
  padding: 30px !important;
  object-fit: contain !important;
  background: linear-gradient(145deg, #f7fbf1, #eef6e5);
}

.home-card-media .no-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #6c7a62;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(145deg, #f7fbf1, #eef6e5);
}

.home-card-media .no-image::before {
  content: "";
  width: 34px;
  height: 28px;
  border: 3px solid #8ccf55;
  border-radius: 10px;
  box-shadow: inset 0 0 0 5px rgba(140, 207, 85, .12);
}

.home-card-body h4 > span:first-child,
.home-card-address,
.home-card-description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.home-card-body h4 > span:first-child {
  -webkit-line-clamp: 2;
}

.home-card-address,
.home-card-description {
  -webkit-line-clamp: 2;
}

body.dark .catalog-skeleton .icon,
body.dark .catalog-skeleton .label,
body.dark .skeleton-line,
body.dark-theme .catalog-skeleton .icon,
body.dark-theme .catalog-skeleton .label,
body.dark-theme .skeleton-line {
  background: linear-gradient(90deg, rgba(55,62,50,.72), rgba(77,86,70,.92), rgba(55,62,50,.72));
  background-size: 220% 100%;
}

body.dark .catalog-retry-state,
body.dark-theme .catalog-retry-state {
  background: #232821;
  color: #f1f7ed;
}

body.dark .home-card-media.has-fallback-image img,
body.dark .home-card-media .no-image,
body.dark-theme .home-card-media.has-fallback-image img,
body.dark-theme .home-card-media .no-image {
  background: linear-gradient(145deg, #242a21, #1c211a);
  color: #dce8d6;
}

@media (max-width: 920px) {
  .list-empty-state {
    min-height: 190px;
    margin: 6px 0 18px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .list-state-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .skeleton-card {
    min-height: 138px !important;
  }

  .skeleton-card .skeleton-heart {
    margin-top: 10px;
  }
}

/* HOME PHASE 6: navigation and floating actions layout. */
@media (min-width: 921px) {
  .mobile-nav {
    display: none !important;
  }

  .home-map-fab {
    bottom: 154px !important;
  }

  .page-jump-btn {
    bottom: 86px !important;
  }
}

@media (max-width: 920px) {
  body {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    z-index: 8900 !important;
    width: min(calc(100% - 24px), 430px) !important;
    height: 72px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 7px !important;
    border: 1px solid rgba(24, 32, 45, .08) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 18px 46px rgba(24, 32, 45, .18) !important;
    backdrop-filter: blur(18px);
  }

  body.dark .mobile-nav,
  body.dark-theme .mobile-nav {
    background: rgba(32, 35, 31, .9) !important;
    border-color: rgba(255, 255, 255, .1) !important;
  }

  .mobile-nav a {
    min-width: 0;
    min-height: 58px;
    display: grid !important;
    place-items: center;
    gap: 2px !important;
    padding: 6px 4px !important;
    border-radius: 18px !important;
    color: #5f6774 !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 850 !important;
  }

  .mobile-nav a.active,
  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: #e7f8d9 !important;
    color: #3d9624 !important;
  }

  body.dark .mobile-nav a,
  body.dark-theme .mobile-nav a {
    color: #c8d2c5 !important;
  }

  body.dark .mobile-nav a.active,
  body.dark-theme .mobile-nav a.active,
  body.dark .mobile-nav a:hover,
  body.dark-theme .mobile-nav a:hover {
    background: rgba(153, 228, 62, .16) !important;
    color: #99e43e !important;
  }

  .mobile-nav a .icon {
    width: 26px;
    height: 26px;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
  }

  .mobile-nav a .icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(47%) sepia(86%) saturate(520%) hue-rotate(54deg) brightness(92%) contrast(88%) !important;
  }

  .mobile-nav a .label {
    max-width: 100%;
    color: inherit !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    font-weight: 850 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-map-fab {
    left: 18px !important;
    right: auto !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    z-index: 8850 !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .home-map-fab span {
    display: none !important;
  }

  .page-jump-btn {
    display: none !important;
  }
}

/* HOME PHASE 8: final responsive polish against the reference layout. */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(153, 228, 62, .08), transparent 28%),
    linear-gradient(180deg, #f4f0e8 0%, #f7f4ee 42%, #f5f1e9 100%) !important;
}

body.dark,
body.dark-theme {
  background:
    radial-gradient(circle at 12% 0%, rgba(153, 228, 62, .11), transparent 28%),
    linear-gradient(180deg, #191b17 0%, #151713 100%) !important;
}

.site-header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.header-inner,
#main.container {
  max-width: 1320px !important;
}

#main.container {
  position: relative;
  margin-top: 0 !important;
  padding: 0 28px 42px !important;
  border-radius: 0 0 34px 34px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 28px 80px rgba(24, 32, 45, .07);
  backdrop-filter: blur(18px);
}

body.dark #main.container,
body.dark-theme #main.container {
  background: rgba(28, 31, 25, .76);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

.header-inner {
  min-height: 76px !important;
  margin-top: 18px !important;
  border-radius: 28px 28px 0 0 !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 18px 50px rgba(24, 32, 45, .08) !important;
  backdrop-filter: blur(20px);
}

body.dark .header-inner,
body.dark-theme .header-inner {
  background: rgba(28, 31, 25, .9) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24) !important;
}

.home-hero {
  min-height: clamp(280px, 28vw, 385px) !important;
  margin: 0 -4px 8px !important;
  padding: clamp(34px, 4vw, 58px) clamp(26px, 4vw, 62px) !important;
  border-radius: 0 0 30px 30px !important;
  background:
    radial-gradient(circle at 64% 42%, rgba(153, 228, 62, .16), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.96), rgba(248,250,244,.86)) !important;
  overflow: hidden;
}

body.dark .home-hero,
body.dark-theme .home-hero {
  background:
    radial-gradient(circle at 64% 42%, rgba(153, 228, 62, .13), transparent 30%),
    linear-gradient(120deg, rgba(33, 37, 30, .96), rgba(25, 28, 23, .9)) !important;
}

.home-hero h2 {
  max-width: 560px;
  font-size: clamp(34px, 4vw, 54px) !important;
  letter-spacing: 0 !important;
}

.home-hero p {
  max-width: 360px;
  font-size: clamp(16px, 1.3vw, 19px) !important;
}

.home-hero-visual {
  transform: scale(1.04);
  transform-origin: center;
}

.catalog {
  padding-top: 28px !important;
}

.catalog-grid {
  gap: 14px !important;
}

.catalog-item {
  min-width: 140px !important;
  min-height: 64px !important;
  border-radius: 17px !important;
}

.catalog-item .label,
.nearby-chip,
.view-switch button {
  letter-spacing: 0 !important;
}

.nearby-toolbar {
  margin-top: 12px !important;
}

.nearby-title-row {
  align-items: flex-end !important;
}

.nearby-chips {
  gap: 9px !important;
}

.nearby-chip {
  min-height: 36px !important;
  background: #f1f1ee !important;
  color: #4f5663 !important;
}

.nearby-chip.active,
.nearby-chip:hover {
  background: #62bd2d !important;
  color: #fff !important;
}

.view-switch {
  border-radius: 13px !important;
  background: rgba(255,255,255,.86) !important;
}

.cards-container,
#list {
  align-items: stretch !important;
}

.listing-card-home {
  min-height: 405px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 18px 42px rgba(24, 32, 45, .09) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card-home:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(24, 32, 45, .13) !important;
}

body.dark .listing-card-home,
body.dark-theme .listing-card-home {
  background: rgba(36, 40, 32, .94) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

.home-card-media {
  height: 188px !important;
  background: #edf3e9;
}

.home-card-body {
  padding: 16px 16px 6px !important;
}

.home-card-category {
  color: #53606d !important;
}

.home-card-address {
  color: #667085 !important;
}

body.dark .home-card-category,
body.dark-theme .home-card-category,
body.dark .home-card-address,
body.dark-theme .home-card-address {
  color: #c7d1c1 !important;
}

.card-actions {
  margin-top: auto !important;
}

.btn-route,
.btn-call {
  background: #fbfcf8 !important;
}

.btn-route:hover,
.btn-call:hover {
  border-color: rgba(101, 201, 44, .42) !important;
  background: #f1fae8 !important;
}

body.dark .btn-route,
body.dark-theme .btn-route,
body.dark .btn-call,
body.dark-theme .btn-call {
  background: rgba(255, 255, 255, .06) !important;
}

.promo-strip {
  max-width: 100%;
  margin: 28px 0 18px !important;
  border-radius: 18px !important;
}

.map-section,
.about-section {
  margin-top: 28px !important;
}

@media (min-width: 1500px) {
  .header-inner,
  #main.container {
    max-width: 1400px !important;
  }
}

@media (min-width: 1280px) and (max-width: 1599px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1600px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 921px) and (max-width: 1279px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-hero {
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr) !important;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: sticky !important;
    top: 0;
    z-index: 8800;
  }

  .header-inner {
    min-height: 70px !important;
    margin: 0 !important;
    border-radius: 0 0 22px 22px !important;
  }

  #main.container {
    width: 100% !important;
    padding: 0 14px 118px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-hero {
    min-height: 0 !important;
    margin: 14px 0 12px !important;
    padding: 22px 18px !important;
    border-radius: 24px !important;
    display: block !important;
  }

  .home-hero h2 {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .home-hero p {
    margin-top: 10px !important;
  }

  .home-hero-visual {
    display: none !important;
  }

  .catalog {
    padding: 8px 0 12px !important;
  }

  .catalog-grid {
    margin-inline: -2px;
    gap: 10px !important;
    padding-bottom: 10px !important;
  }

  .catalog-item {
    flex-basis: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 26px rgba(24, 32, 45, .08) !important;
  }

  .nearby-toolbar {
    margin-top: 8px !important;
  }

  .nearby-title-row {
    padding: 0 !important;
  }

  .nearby-title-row h2 {
    font-size: 21px !important;
  }

  .nearby-controls-row {
    margin-top: 12px !important;
  }

  .nearby-chips {
    gap: 8px !important;
    padding: 0 0 2px !important;
  }

  .nearby-chip {
    min-height: 34px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }

  .listing-card-home {
    min-height: 132px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 14px 34px rgba(24, 32, 45, .1) !important;
  }

  body.dark .listing-card-home,
  body.dark-theme .listing-card-home {
    background: rgba(35, 39, 32, .95) !important;
  }

  .home-card-media {
    height: 100% !important;
  }

  .home-card-body h4 {
    line-height: 1.15 !important;
  }

  .home-rating-pill {
    margin-bottom: 7px !important;
    gap: 5px !important;
    font-size: 12px !important;
  }

  .home-card-category,
  .home-card-address {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
  }

  .promo-strip,
  .map-section,
  .about-section {
    display: none !important;
  }
}

@media (max-width: 420px) {
  #main.container {
    padding-inline: 10px !important;
  }

  .listing-card-home {
    grid-template-columns: 118px minmax(0, 1fr) 32px !important;
  }

  .home-card-body {
    padding: 10px 8px !important;
  }

  .home-card-body h4 {
    font-size: 14px !important;
  }
}

/* HOME PHASE 9: second visual pass, real card actions and responsive cleanup. */
:root {
  --makon-green: #55b92d;
  --makon-green-soft: #eaf8df;
  --makon-ink: #172033;
  --makon-subtle: #667085;
  --makon-card-shadow: 0 14px 34px rgba(24, 32, 45, .08);
}

html,
body {
  overflow-x: hidden;
}

[hidden],
#homeMapFab,
#pageJumpBtn,
.map-section[hidden],
.about-section[hidden],
#homeMapViewBtn[hidden] {
  display: none !important;
}

body {
  color: var(--makon-ink);
  font-weight: 500;
}

.header-inner,
#main.container {
  max-width: 1340px !important;
}

.header-inner {
  display: grid !important;
  grid-template-columns: auto auto minmax(280px, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 0 24px !important;
}

.brand {
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.header-action,
.header-login-btn,
.location-pill,
.nearby-chip,
.catalog-item .label,
.mobile-nav a .label {
  font-weight: 650 !important;
}

.header-input {
  font-weight: 450 !important;
}

.right {
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.header-profile-chip {
  flex: 0 0 auto;
}

.home-hero {
  min-height: 336px !important;
  grid-template-columns: minmax(0, .42fr) minmax(420px, .58fr) !important;
  align-items: center !important;
  padding: 48px 56px !important;
}

.home-hero h2 {
  max-width: 520px !important;
  font-size: clamp(42px, 3.25vw, 54px) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
}

.home-hero p {
  font-weight: 450 !important;
}

.home-hero-visual {
  width: min(100%, 650px) !important;
  min-height: 245px !important;
  justify-self: end !important;
  transform: scale(.96) !important;
  filter: drop-shadow(0 24px 30px rgba(74, 167, 38, .16));
}

.city-card {
  box-shadow: 0 18px 32px rgba(24, 32, 45, .12) !important;
}

.catalog-grid {
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-inline: 6px;
}

.catalog-grid::-webkit-scrollbar {
  display: none;
}

.catalog-item {
  min-width: 138px !important;
  max-width: 178px !important;
  min-height: 62px !important;
  padding: 10px 14px !important;
}

.catalog-item .icon {
  color: var(--makon-green) !important;
  background: rgba(85, 185, 45, .11) !important;
}

.catalog-item .icon img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(73%) saturate(742%) hue-rotate(56deg) brightness(92%) contrast(87%) !important;
  opacity: .96;
}

.catalog-item .label {
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  font-size: 13px !important;
}

.nearby-title-row h2,
.catalog-head h2,
.promo-strip h2 {
  font-weight: 750 !important;
}

.nearby-chip {
  min-height: 34px !important;
  padding: 0 15px !important;
  color: #59616d !important;
}

.nearby-chip.active,
.nearby-chip:hover {
  background: var(--makon-green) !important;
}

.view-switch {
  display: none !important;
}

.cards-container,
#list {
  gap: 16px !important;
  margin-top: 16px !important;
}

.listing-card-home {
  min-height: 0 !important;
  cursor: pointer;
  border-radius: 16px !important;
  box-shadow: var(--makon-card-shadow) !important;
}

.listing-card-home:focus-visible {
  outline: 3px solid rgba(85, 185, 45, .36);
  outline-offset: 3px;
}

.listing-card-home:hover {
  transform: translateY(-3px) !important;
}

.home-card-media {
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
}

.home-card-media > img,
.home-card-media .no-image {
  border-radius: 0 !important;
}

.home-open-pill {
  min-height: 25px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.home-card-body {
  padding: 14px 14px 6px !important;
}

.home-card-body h4 {
  min-height: 0 !important;
  margin-bottom: 9px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.home-rating-pill {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin-bottom: 8px !important;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-weight: 500 !important;
}

.home-rating-pill.is-empty {
  width: auto;
  color: var(--makon-subtle) !important;
  font-size: 13px;
}

.home-rating-pill.is-empty i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b7bdc7;
}

.home-card-category,
.home-card-address,
.home-card-description {
  font-weight: 450 !important;
}

.home-card-category {
  font-weight: 600 !important;
}

.home-card-address {
  min-height: 0 !important;
}

.card-actions {
  min-height: 0 !important;
  padding: 9px 14px 14px !important;
}

.btn-route,
.btn-call {
  min-height: 40px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

.btn-call {
  width: 42px !important;
  height: 40px !important;
  flex-basis: 42px !important;
}

.listing-card-home > .favorite-heart-btn {
  width: 44px !important;
  height: 44px !important;
  top: 8px !important;
  right: 8px !important;
}

.listing-card-home > .favorite-heart-btn img {
  width: 30px !important;
  height: 30px !important;
}

.promo-strip {
  min-height: 100px !important;
  grid-template-columns: 68px 1fr auto 70px !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 18px 24px !important;
  background: linear-gradient(100deg, #f4fbec, #fbfef7) !important;
  border: 1px solid rgba(85, 185, 45, .2) !important;
  box-shadow: 0 18px 42px rgba(24, 32, 45, .06) !important;
}

.promo-strip p {
  font-weight: 450 !important;
}

.promo-strip a {
  min-height: 42px !important;
  padding: 0 22px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

.floating-voice-btn,
.makon-assistant-launcher {
  right: 28px !important;
  bottom: 28px !important;
}

@media (min-width: 1360px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1359px) {
  .cards-container,
  #list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner {
    grid-template-columns: auto auto minmax(220px, 1fr) auto !important;
    gap: 12px !important;
    padding: 0 18px !important;
  }

  .header-action,
  .header-add-company,
  .header-favorite,
  .header-theme-control {
    display: none !important;
  }

  .home-hero {
    min-height: 285px !important;
    grid-template-columns: minmax(0, .5fr) minmax(300px, .5fr) !important;
    padding: 34px 32px !important;
  }

  .home-hero h2 {
    font-size: 38px !important;
  }

  .home-hero-visual {
    transform: scale(.82) !important;
  }

  .cards-container,
  #list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }

  .site-header .container {
    padding: 0 12px !important;
  }

  .header-inner {
    min-height: 126px !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand city profile"
      "search search search" !important;
    gap: 10px 8px !important;
    padding: 10px 0 12px !important;
    border-radius: 0 0 20px 20px !important;
  }

  .left {
    grid-area: brand;
  }

  .location-pill {
    grid-area: city;
    justify-self: start !important;
    min-width: 0;
    max-width: 140px;
  }

  .header-filters {
    grid-area: search;
    width: 100% !important;
  }

  .right {
    grid-area: profile;
    justify-self: end !important;
  }

  .header-action,
  .header-add-company,
  .header-favorite,
  .header-theme-control {
    display: none !important;
  }

  .header-profile-chip,
  .header-login-btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .header-login-btn {
    font-size: 0 !important;
  }

  .header-login-btn::before {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    margin: auto;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 13px 0 -5px currentColor;
  }

  .header-input::placeholder {
    font-size: 13px;
  }

  .home-hero,
  .home-hero::before,
  .home-hero::after,
  .home-hero-visual {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  .catalog {
    padding-top: 12px !important;
  }

  .catalog-grid {
    gap: 10px !important;
    padding: 4px 2px 12px !important;
  }

  .catalog-item {
    flex: 0 0 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    min-height: 82px !important;
    padding: 8px 6px !important;
  }

  .catalog-item .label {
    font-size: 11px !important;
    line-height: 1.08 !important;
  }

  .nearby-title-row h2 {
    font-size: 21px !important;
    font-weight: 750 !important;
  }

  .cards-container,
  #list {
    gap: 11px !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  .listing-card-home {
    display: grid !important;
    grid-template-columns: 128px minmax(0, 1fr) 46px !important;
    grid-template-areas: "media body fav" !important;
    min-height: 132px !important;
    border-radius: 16px !important;
  }

  .home-card-media {
    grid-area: media;
    height: 132px !important;
    aspect-ratio: auto !important;
  }

  .home-card-media > img,
  .home-card-media .no-image {
    border-radius: 16px 0 0 16px !important;
  }

  .home-open-pill {
    left: 8px !important;
    bottom: 8px !important;
    min-height: 23px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  .home-card-body {
    grid-area: body;
    padding: 13px 8px 10px 12px !important;
  }

  .home-card-body h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
  }

  .home-rating-pill {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  .home-card-description {
    display: none !important;
  }

  .listing-card-home > .favorite-heart-btn {
    position: static !important;
    grid-area: fav;
    align-self: start;
    justify-self: center;
    width: 44px !important;
    height: 44px !important;
    margin-top: 6px !important;
  }

  .card-actions {
    display: none !important;
  }

  .promo-strip {
    display: none !important;
  }

  .mobile-nav {
    display: grid !important;
    width: min(calc(100% - 24px), 430px) !important;
    height: 72px !important;
  }

  .floating-voice-btn,
  .makon-assistant-launcher {
    right: 16px !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 56px !important;
  }
}

@media (max-width: 360px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) 44px !important;
  }

  .brand {
    font-size: 16px !important;
  }

  .location-pill {
    max-width: 116px;
  }

  .header-input {
    padding-left: 14px !important;
    padding-right: 48px !important;
  }

  .header-input::placeholder {
    color: transparent;
  }

  .listing-card-home {
    grid-template-columns: 116px minmax(0, 1fr) 44px !important;
  }

  .home-card-media {
    height: 128px !important;
  }
}

/* HOME PHASE 10: sticky header and clean hero join. */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9500 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  background: rgba(247, 244, 238, 0.96) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.site-header .container {
  padding-top: 0 !important;
}

.header-inner {
  margin-top: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 8px 22px rgba(21, 30, 45, 0.05) !important;
}

#main.container {
  margin-top: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.home-hero {
  margin-top: 0 !important;
}

@media (min-width: 768px) {
  .site-header {
    background: linear-gradient(180deg, rgba(247, 244, 238, 0.98), rgba(247, 244, 238, 0.94)) !important;
  }

  .header-inner {
    border-radius: 28px 28px 0 0 !important;
  }

  #main.container {
    border-radius: 0 0 34px 34px !important;
  }

  .home-hero {
    border-radius: 0 0 28px 28px !important;
  }
}

@media (max-width: 767px) {
  .site-header {
    background: rgba(247, 244, 238, 0.98) !important;
  }

  .header-inner {
    box-shadow: 0 6px 18px rgba(21, 30, 45, 0.06) !important;
  }
}

/* HOME PHASE 11: fixed home header with a single connected app shell. */
body.home-page {
  --home-header-height: 70px;
}

body.home-page .site-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 12000 !important;
  height: var(--home-header-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: rgba(247, 244, 238, 0.98) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.home-page .site-header .container {
  width: min(100% - 32px, 1340px) !important;
  max-width: 1340px !important;
  height: var(--home-header-height) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.home-page .header-inner {
  min-height: var(--home-header-height) !important;
  height: var(--home-header-height) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  border-radius: 28px 28px 0 0 !important;
  border-bottom-color: transparent !important;
  background: rgba(255, 255, 255, 0.96) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.home-page #main.container {
  width: min(100% - 32px, 1340px) !important;
  max-width: 1340px !important;
  margin: 0 auto !important;
  padding-top: var(--home-header-height) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 28px 28px 34px 34px !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.home-page .home-hero {
  margin-top: 0 !important;
  border-radius: 0 0 28px 28px !important;
  box-shadow: 0 18px 42px rgba(21, 30, 45, 0.06) !important;
}

body.home-page .home-hero::before,
body.home-page .home-hero::after {
  display: none !important;
}

body.dark.home-page .site-header,
body.dark-theme.home-page .site-header {
  background: rgba(21, 23, 21, 0.98) !important;
}

body.dark.home-page .header-inner,
body.dark-theme.home-page .header-inner,
body.dark.home-page #main.container,
body.dark-theme.home-page #main.container {
  background: rgba(31, 34, 29, 0.96) !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.home-page {
    --home-header-height: 70px;
  }

  body.home-page .site-header .container,
  body.home-page #main.container {
    width: min(100% - 24px, 1340px) !important;
  }
}

@media (max-width: 767px) {
  body.home-page {
    --home-header-height: 126px;
  }

  body.home-page .site-header .container,
  body.home-page #main.container {
    width: 100% !important;
  }

  body.home-page .header-inner {
    padding: 10px 12px 12px !important;
    border-radius: 0 0 20px 20px !important;
    background: rgba(247, 244, 238, 0.99) !important;
    box-shadow: 0 6px 18px rgba(21, 30, 45, 0.05) !important;
  }

  body.home-page #main.container {
    padding-top: var(--home-header-height) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

body.dark.home-page .header-inner,
body.dark-theme.home-page .header-inner {
    background: rgba(31, 34, 29, 0.99) !important;
  }
}

/* Mobile catalog/detail polish: compact full catalog, readable nav, no clipped content. */
@media (max-width: 767px) {
  body.home-page,
  body.home-page * {
    -webkit-tap-highlight-color: transparent !important;
  }

  body.home-page button,
  body.home-page a,
  body.home-page input,
  body.home-page [role="button"] {
    -webkit-tap-highlight-color: transparent !important;
  }

  body.home-page button:focus,
  body.home-page a:focus,
  body.home-page input:focus {
    outline-color: rgba(101, 201, 44, 0.45) !important;
  }

  body.home-page {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }

  body.home-page .catalog {
    padding: 14px 12px 8px !important;
  }

  body.home-page .catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 4px 4px 10px !important;
  }

  body.home-page .catalog-grid:not(.show-all) .catalog-item:nth-of-type(n+9):not(.catalog-more-item) {
    display: none !important;
  }

  body.home-page .catalog-grid.show-all .catalog-item {
    display: inline-flex !important;
  }

  body.home-page .catalog-item {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 88px !important;
    height: 88px !important;
    padding: 9px 5px 8px !important;
    border-radius: 22px !important;
    gap: 7px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 10px 24px rgba(26, 39, 24, 0.08) !important;
  }

  body.home-page .catalog-item .icon {
    width: 40px !important;
    height: 40px !important;
    background: rgba(101, 201, 44, 0.12) !important;
  }

  body.home-page .catalog-item .icon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(42%) sepia(75%) saturate(686%) hue-rotate(63deg) brightness(89%) contrast(88%) !important;
  }

  body.home-page .catalog-item .label {
    min-height: 28px !important;
    max-width: 100% !important;
    color: #111827 !important;
    font-size: 11.5px !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.home-page .catalog-item.active,
  body.home-page .catalog-item:hover {
    background: rgba(232, 255, 218, 0.98) !important;
    border-color: rgba(101, 201, 44, 0.35) !important;
  }

  body.home-page .mobile-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 24px), 560px) !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    height: 76px !important;
    padding: 8px 10px !important;
    border-radius: 24px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    z-index: 12500 !important;
  }

  body.home-page .mobile-nav a {
    min-width: 0 !important;
    height: 58px !important;
    padding: 6px 4px !important;
  }

  body.home-page .mobile-nav a .icon {
    width: 25px !important;
    height: 25px !important;
    display: grid !important;
    place-items: center !important;
  }

  body.home-page .mobile-nav a .icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(42%) sepia(75%) saturate(686%) hue-rotate(63deg) brightness(89%) contrast(88%) !important;
  }

  body.home-page .mobile-nav a .label {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body.home-page .floating-voice-btn,
  body.home-page .makon-assistant-launcher {
    right: 16px !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    width: 54px !important;
    height: 54px !important;
    z-index: 12400 !important;
  }
}

@media (max-width: 767px) {
  html,
  body.home-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.home-page .site-header,
  body.home-page .site-header .container,
  body.home-page .header-inner,
  body.home-page #main.container,
  body.home-page .catalog,
  body.home-page .nearby-section,
  body.home-page .listings-section,
  body.home-page .listing-grid {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.home-page .filters {
    max-width: 100%;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  body.home-page .filters::-webkit-scrollbar {
    display: none;
  }
}

/* Shared browser interaction reset for auth/legacy pages that only load css.css. */
:where(a, button, input, textarea, select, summary, label, [role="button"], [tabindex]) {
  -webkit-tap-highlight-color: transparent !important;
}

:where(a, button, summary, label, [role="button"]) {
  touch-action: manipulation;
}

:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid rgba(46, 185, 57, 0.34) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(46, 185, 57, 0.12) !important;
}

@media (max-width: 374px) {
  body.home-page .catalog-grid {
    gap: 9px !important;
  }

  body.home-page .catalog-item {
    height: 82px !important;
    min-height: 82px !important;
    border-radius: 19px !important;
  }

  body.home-page .catalog-item .icon {
    width: 36px !important;
    height: 36px !important;
  }

  body.home-page .catalog-item .label {
    font-size: 10.5px !important;
  }
}

/* Unified public/client mobile navigation */
@media (max-width: 920px) {
  body.home-page .mobile-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 24px), 560px) !important;
    height: auto !important;
    min-height: 72px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16) !important;
    backdrop-filter: blur(18px) !important;
    z-index: 12500 !important;
  }

  body.home-page .mobile-nav a {
    min-width: 0 !important;
    height: 56px !important;
    display: grid !important;
    place-items: center !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    border-radius: 18px !important;
    color: #647084 !important;
    font-size: 10.5px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    line-height: 1.1 !important;
  }

  body.home-page .mobile-nav a.active,
  body.home-page .mobile-nav a:hover,
  body.home-page .mobile-nav a:focus-visible {
    background: #dcf8c9 !important;
    color: #169c35 !important;
  }

  body.home-page .mobile-nav a .icon,
  body.home-page .mobile-nav .overview-nav-icon {
    position: relative !important;
    width: 25px !important;
    height: 25px !important;
    display: grid !important;
    place-items: center !important;
  }

  body.home-page .mobile-nav a .icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(48%) sepia(13%) saturate(823%) hue-rotate(178deg) brightness(88%) contrast(87%) !important;
    transition: filter .18s ease, opacity .18s ease, transform .18s ease !important;
  }

  body.home-page .mobile-nav a.active .icon img,
  body.home-page .mobile-nav a:hover .icon img,
  body.home-page .mobile-nav a:focus-visible .icon img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(81%) saturate(2041%) hue-rotate(105deg) brightness(93%) contrast(83%) !important;
    transform: none !important;
  }

  body.home-page .mobile-nav .overview-nav-icon img {
    position: absolute !important;
    inset: 0 !important;
  }

  body.home-page .mobile-nav .overview-nav-icon .nav-icon-active {
    opacity: 0 !important;
  }

  body.home-page .mobile-nav a.active .overview-nav-icon .nav-icon-default,
  body.home-page .mobile-nav a:hover .overview-nav-icon .nav-icon-default,
  body.home-page .mobile-nav a:focus-visible .overview-nav-icon .nav-icon-default {
    opacity: 0 !important;
  }

  body.home-page .mobile-nav a.active .overview-nav-icon .nav-icon-active,
  body.home-page .mobile-nav a:hover .overview-nav-icon .nav-icon-active,
  body.home-page .mobile-nav a:focus-visible .overview-nav-icon .nav-icon-active {
    opacity: 1 !important;
  }
}

/* Home listings: professional vertical cards on phones and tablets. */
@media (max-width: 920px) {
  body.home-page .cards-container,
  body.home-page #list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
  }

  body.home-page .listing-card-home {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .10) !important;
  }

  body.home-page .home-card-media {
    width: 100% !important;
    height: clamp(210px, 45vw, 300px) !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }

  body.home-page .home-card-media > img,
  body.home-page .home-card-media .no-image {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }

  body.home-page .home-card-body {
    padding: 18px 20px 14px !important;
  }

  body.home-page .home-card-body h4 {
    min-height: 0 !important;
    margin-bottom: 10px !important;
    font-size: 19px !important;
    line-height: 1.18 !important;
  }

  body.home-page .home-card-category,
  body.home-page .home-card-address {
    margin-top: 8px !important;
    font-size: 15px !important;
  }

  body.home-page .home-open-pill {
    position: absolute !important;
    left: 18px !important;
    bottom: 14px !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
  }

  body.home-page .listing-card-home > .favorite-heart-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 5 !important;
    grid-area: auto !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, .72) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16) !important;
  }

  body.home-page .listing-card-home > .favorite-heart-btn img {
    width: 34px !important;
    height: 34px !important;
  }

  body.home-page .card-actions {
    display: flex !important;
    gap: 12px !important;
    padding: 12px 20px 20px !important;
  }

  body.home-page .listing-card-home .card-actions::after {
    display: none !important;
  }

  body.home-page .card-actions .btn-route {
    flex: 1 1 auto !important;
    min-height: 48px !important;
    border-radius: 12px !important;
  }

  body.home-page .card-actions .btn-call {
    display: grid !important;
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 48px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 540px) {
  body.home-page .cards-container,
  body.home-page #list {
    grid-template-columns: 1fr !important;
  }

  body.home-page .home-card-media {
    height: clamp(215px, 58vw, 285px) !important;
  }
}
/* ============================================================
   MAKON AUTH — MOBILE REGISTRATION BOTTOM SHEET
   2026-08-16
   Scoped ONLY to #authModal so city modal and other UI stay intact.
   ============================================================ */
@media (max-width: 767px) {
  body.home-page #authModal {
    z-index: 16000 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 10px 8px 0 !important;
    background: rgba(10, 14, 18, .58) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    backdrop-filter: blur(7px) !important;
  }

  body.home-page #authModal .modal-content {
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    max-height: calc(100dvh - 10px) !important;
    margin: 0 auto !important;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    border-bottom: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    background:
      radial-gradient(circle at 88% 8%, rgba(153, 228, 62, .12), transparent 25%),
      rgba(255, 253, 249, .985) !important;
    box-shadow: 0 -22px 70px rgba(15, 23, 42, .24) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.home-page #authModal .modal-content::-webkit-scrollbar {
    display: none;
  }

  /* Small drag handle — visual language of a native bottom sheet. */
  body.home-page #authModal .modal-content::before {
    content: "";
    display: block;
    width: 46px;
    height: 5px;
    margin: 1px auto 9px;
    border-radius: 999px;
    background: rgba(100, 110, 120, .24);
  }

  /* Keep close button inside the sheet; the old global rule puts it outside. */
  body.home-page #authModal .modal-close {
    position: absolute !important;
    top: 11px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(15, 23, 42, .07) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .82) !important;
    color: #667085 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important;
    font-size: 21px !important;
    z-index: 5 !important;
  }

  body.home-page #authModal .modal-tabs {
    position: sticky;
    top: -10px;
    z-index: 4;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px !important;
    margin: 0 36px 12px 0 !important;
    padding: 4px !important;
    border-radius: 16px !important;
    background: rgba(247, 245, 241, .94) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  body.home-page #authModal .modal-tabs button {
    min-height: 40px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #5f6774 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    box-shadow: none !important;
  }

  body.home-page #authModal .modal-tabs button.active {
    background: rgba(255, 255, 255, .95) !important;
    color: #237d20 !important;
    box-shadow:
      inset 0 -2px 0 #55b92d,
      0 4px 14px rgba(15, 23, 42, .06) !important;
  }

  /* Compact form shell. */
  body.home-page #authModal .auth-form form {
    margin: 0 !important;
  }

  body.home-page #authModal #registerForm > form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px 10px !important;
  }

  body.home-page #authModal #loginForm > form {
    display: grid !important;
    gap: 10px !important;
  }

  body.home-page #authModal .auth-form label {
    min-width: 0;
    margin: 0 !important;
    color: #1f2937 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.home-page #authModal .auth-form label > span:first-child {
    display: block;
    margin: 0 0 5px !important;
    line-height: 1.15;
  }

  /* Password and phone occupy a full row; name/surname stay side by side. */
  body.home-page #authModal #registerForm > form > label:has(input[name="password"]),
  body.home-page #authModal #registerForm > form > label:has(input[name="phone"]),
  body.home-page #authModal #registerForm > form > .auth-helper-text,
  body.home-page #authModal #registerForm > form > .auth-role-links,
  body.home-page #authModal #registerForm > form > .auth-agreement,
  body.home-page #authModal #registerForm > form > .auth-verification-step,
  body.home-page #authModal #registerForm > form > .auth-status-text,
  body.home-page #authModal #registerForm > form > button[type="submit"] {
    grid-column: 1 / -1 !important;
  }

  body.home-page #authModal .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #dfe3dc !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #172033 !important;
    font-size: 15px !important;
    line-height: 44px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
  }

  body.home-page #authModal .auth-form input:not([type="checkbox"]):not([type="hidden"]):focus {
    border-color: rgba(85, 185, 45, .72) !important;
    box-shadow: 0 0 0 3px rgba(85, 185, 45, .12) !important;
  }

  body.home-page #authModal .auth-helper-text {
    margin: -1px 2px 1px !important;
    color: #77808f !important;
    font-size: 11.5px !important;
    line-height: 1.34 !important;
  }

  /* Professional account choice — two compact cards like the reference. */
  body.home-page #authModal .auth-role-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 1px 0 !important;
    padding: 9px !important;
    border: 1px solid rgba(85, 185, 45, .18) !important;
    border-radius: 17px !important;
    background:
      radial-gradient(circle at 86% 8%, rgba(153, 228, 62, .18), transparent 34%),
      rgba(241, 248, 235, .78) !important;
  }

  body.home-page #authModal .auth-role-links > span {
    grid-column: 1 / -1 !important;
    margin: 0 1px -1px !important;
    color: #667085 !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
  }

  body.home-page #authModal .auth-role-links a {
    position: relative;
    min-width: 0;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 8px 28px 8px 10px !important;
    border: 1px solid rgba(25, 135, 84, .15) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .86) !important;
    color: #17340b !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .045) !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    text-align: left !important;
  }

  body.home-page #authModal .auth-role-links a::before {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(85, 185, 45, .12);
    color: #2c8f24;
    font-size: 15px;
    font-weight: 900;
  }

  body.home-page #authModal .auth-role-links a:first-of-type::before {
    content: "▣";
  }

  body.home-page #authModal .auth-role-links a:last-of-type::before {
    content: "➜";
  }

  body.home-page #authModal .auth-role-links a::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-52%);
    color: #7d8794;
    font-size: 22px;
    font-weight: 500;
  }

  body.home-page #authModal .auth-role-links a:active {
    transform: scale(.985);
  }

  /* Agreement is compact but still comfortably tappable. */
  body.home-page #authModal .auth-agreement {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: start !important;
    margin: 1px 0 0 !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(85, 185, 45, .18) !important;
    border-radius: 14px !important;
    background: rgba(238, 248, 229, .72) !important;
    color: #384152 !important;
    font-size: 11.7px !important;
    line-height: 1.35 !important;
    font-weight: 550 !important;
  }

  body.home-page #authModal .auth-agreement input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    margin: 0 !important;
    accent-color: #55b92d;
  }

  body.home-page #authModal .auth-agreement > span {
    margin: 0 !important;
  }

  body.home-page #authModal .auth-verification-step {
    gap: 7px !important;
    padding: 9px !important;
    border-radius: 14px !important;
  }

  body.home-page #authModal .auth-status-text {
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.home-page #authModal .auth-status-text:empty {
    display: none !important;
  }

  /* Primary action — visible, strong, and compact. */
  body.home-page #authModal .auth-form button[type="submit"].btn-primary {
    width: 100% !important;
    min-height: 46px !important;
    margin: 1px 0 0 !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #66cd32, #43b92c) !important;
    color: #10210f !important;
    box-shadow: 0 10px 24px rgba(67, 185, 44, .22) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    transform: none !important;
  }

  body.home-page #authModal .auth-form button[type="submit"].btn-primary:active {
    transform: scale(.99) !important;
  }

  body.home-page #authModal .auth-form button[type="submit"].btn-primary:disabled {
    opacity: .62 !important;
    cursor: wait !important;
  }

  /* Login view gets the same polished proportions. */
body.home-page #authModal #loginForm {
    padding: 2px 0 4px !important;
  }

  /* Dark theme: same component, no light-text visibility bugs. */
  body.dark.home-page #authModal .modal-content,
  body.dark-theme.home-page #authModal .modal-content {
    border-color: rgba(255, 255, 255, .08) !important;
    background:
      radial-gradient(circle at 88% 8%, rgba(153, 228, 62, .10), transparent 25%),
      rgba(29, 32, 28, .985) !important;
    box-shadow: 0 -22px 70px rgba(0, 0, 0, .42) !important;
  }

  body.dark.home-page #authModal .modal-close,
  body.dark-theme.home-page #authModal .modal-close {
    border-color: rgba(255, 255, 255, .08) !important;
    background: rgba(255, 255, 255, .07) !important;
    color: #dce5da !important;
  }

  body.dark.home-page #authModal .modal-tabs,
  body.dark-theme.home-page #authModal .modal-tabs {
    background: rgba(20, 23, 20, .94) !important;
  }

  body.dark.home-page #authModal .modal-tabs button,
  body.dark-theme.home-page #authModal .modal-tabs button {
    color: #b8c3b5 !important;
  }

  body.dark.home-page #authModal .modal-tabs button.active,
  body.dark-theme.home-page #authModal .modal-tabs button.active {
    background: rgba(153, 228, 62, .11) !important;
    color: #b8f181 !important;
  }

  body.dark.home-page #authModal .auth-form label,
  body.dark-theme.home-page #authModal .auth-form label {
    color: #edf3e9 !important;
  }

  body.dark.home-page #authModal .auth-form input:not([type="checkbox"]):not([type="hidden"]),
  body.dark-theme.home-page #authModal .auth-form input:not([type="checkbox"]):not([type="hidden"]) {
    border-color: rgba(255, 255, 255, .10) !important;
    background: rgba(255, 255, 255, .055) !important;
    color: #f4f7f2 !important;
    box-shadow: none !important;
  }

  body.dark.home-page #authModal .auth-helper-text,
  body.dark-theme.home-page #authModal .auth-helper-text {
    color: #aeb9aa !important;
  }

  body.dark.home-page #authModal .auth-role-links,
  body.dark-theme.home-page #authModal .auth-role-links,
  body.dark.home-page #authModal .auth-agreement,
  body.dark-theme.home-page #authModal .auth-agreement {
    border-color: rgba(153, 228, 62, .13) !important;
    background: rgba(153, 228, 62, .065) !important;
  }

  body.dark.home-page #authModal .auth-role-links > span,
  body.dark-theme.home-page #authModal .auth-role-links > span {
    color: #aeb9aa !important;
  }

  body.dark.home-page #authModal .auth-role-links a,
  body.dark-theme.home-page #authModal .auth-role-links a {
    border-color: rgba(255, 255, 255, .08) !important;
    background: rgba(255, 255, 255, .055) !important;
    color: #e9f2e5 !important;
  }

  body.dark.home-page #authModal .auth-agreement,
  body.dark-theme.home-page #authModal .auth-agreement {
    color: #d6dfd2 !important;
  }
}

/* Very narrow devices: stack name and surname so nothing gets squeezed. */
@media (max-width: 340px) {
  body.home-page #authModal #registerForm > form {
    grid-template-columns: 1fr !important;
  }

  body.home-page #authModal #registerForm > form > * {
    grid-column: 1 !important;
  }

  body.home-page #authModal .auth-role-links {
    grid-template-columns: 1fr !important;
  }

  body.home-page #authModal .auth-role-links > span {
    grid-column: 1 !important;
  }
}
/* ============================================================
   MAKON — HEART + FLOATING ACTIONS FIX
   ============================================================ */

/* Сердечко карточки — БЕЗ круглого белого фона */
body.home-page .listing-card-home > .favorite-heart-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;

  width: 48px !important;
  height: 48px !important;
  padding: 7px !important;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;

  z-index: 6 !important;
}

body.home-page .listing-card-home > .favorite-heart-btn:hover,
body.home-page .listing-card-home > .favorite-heart-btn:active {
  background: transparent !important;
  box-shadow: none !important;
  transform: scale(1.06);
}

body.home-page .listing-card-home > .favorite-heart-btn img {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

/* В dark mode тоже никакого круга */
body.dark.home-page .listing-card-home > .favorite-heart-btn,
body.dark-theme.home-page .listing-card-home > .favorite-heart-btn {
  background: transparent !important;
  box-shadow: none !important;
}


/* ============================================================
   FLOATING BUTTONS
   Desktop:
   карта сверху
   ассистент снизу
   ============================================================ */

@media (min-width: 921px) {
  body.home-page .floating-map-btn {
    position: fixed !important;
    left: auto !important;
    right: 18px !important;
    bottom: 92px !important;

    width: 54px !important;
    height: 54px !important;

    z-index: 12390 !important;
  }
}


/* ============================================================
   Mobile / tablet:
   карта СЛЕВА
   ассистент СПРАВА
   обе над нижней навигацией
   ============================================================ */

@media (max-width: 920px) {
  body.home-page .floating-map-btn,
  body.home-page .home-map-fab {
    position: fixed !important;

    left: 16px !important;
    right: auto !important;

    bottom: calc(
      96px + env(safe-area-inset-bottom, 0px)
    ) !important;

    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;

    padding: 0 !important;
    border-radius: 50% !important;

    z-index: 12390 !important;
  }

  /* Сердце немного компактнее на телефоне */
  body.home-page .listing-card-home > .favorite-heart-btn {
    top: 12px !important;
    right: 12px !important;

    width: 46px !important;
    height: 46px !important;
    padding: 6px !important;

    background: transparent !important;
    box-shadow: none !important;
  }

  body.home-page .listing-card-home > .favorite-heart-btn img {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ============================================================
   MAKON HOME — DARK MODE + ORIGINAL ICONS + ROUTE + FULL MAP
   FINAL PATCH 2026-08-17
   ============================================================ */

/* Category images must preserve their own original artwork/colors. */
body.home-page .catalog-item .icon img,
body.home-page .catalog-more-item .icon img {
  filter: none !important;
  opacity: 1 !important;
}

/* Remove the green tint from the icon well itself. */
body.home-page .catalog-item .icon {
  background: rgba(255, 255, 255, .76) !important;
}

body.dark.home-page .catalog-item .icon,
body.dark-theme.home-page .catalog-item .icon {
  background: rgba(255, 255, 255, .08) !important;
}

/* Dark mode: catalog cards must not stay white. */
body.dark.home-page .catalog-item,
body.dark-theme.home-page .catalog-item {
  background: #22251f !important;
  border-color: rgba(255, 255, 255, .10) !important;
  color: #eef2e8 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24) !important;
}

body.dark.home-page .catalog-item .label,
body.dark-theme.home-page .catalog-item .label {
  color: #f3f6ef !important;
}

body.dark.home-page .catalog-item:is(.active, :hover),
body.dark-theme.home-page .catalog-item:is(.active, :hover) {
  background: #2c3527 !important;
  border-color: rgba(153, 228, 62, .34) !important;
}

/* Listing cards: explicit dark surface wins over old mobile white rules. */
body.dark.home-page .listing-card-home,
body.dark-theme.home-page .listing-card-home {
  background: #20231f !important;
  border-color: rgba(255, 255, 255, .09) !important;
  color: #f4f6f1 !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28) !important;
}

body.dark.home-page .listing-card-home .home-card-body,
body.dark-theme.home-page .listing-card-home .home-card-body,
body.dark.home-page .listing-card-home .card-actions,
body.dark-theme.home-page .listing-card-home .card-actions {
  background: #20231f !important;
}

body.dark.home-page .listing-card-home h4,
body.dark-theme.home-page .listing-card-home h4 {
  color: #f7f8f5 !important;
}

body.dark.home-page .listing-card-home :where(.home-card-category, .home-card-address, .home-card-description),
body.dark-theme.home-page .listing-card-home :where(.home-card-category, .home-card-address, .home-card-description) {
  color: #b9c1b5 !important;
}

/* Heart is WHITE in both modes and in both favorite states. */
body.home-page .listing-card-home > .favorite-heart-btn img,
body.home-page .listing-card-home > .favorite-heart-btn.is-active img,
body.dark.home-page .listing-card-home > .favorite-heart-btn img,
body.dark-theme.home-page .listing-card-home > .favorite-heart-btn img {
  filter: brightness(0) saturate(100%) invert(100%) drop-shadow(0 2px 7px rgba(0, 0, 0, .58)) !important;
  opacity: 1 !important;
}

/* Route controls: never disappear on phone/tablet when rendered. */
@media (max-width: 920px) {
  body.home-page .card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.home-page .card-actions .btn-route {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 46px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.home-page .card-actions .btn-call {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 46px !important;
  }
}

/* Floating map icon: show the PNG exactly as supplied, no color filter/tint. */
body.home-page .floating-map-btn img,
body.home-page .home-map-fab img {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Home bottom navigation: dark mode must actually be dark. */
@media (max-width: 920px) {
  body.dark.home-page .mobile-nav,
  body.dark-theme.home-page .mobile-nav {
    background: rgba(24, 26, 23, .96) !important;
    border-color: rgba(255, 255, 255, .09) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34) !important;
  }

  body.dark.home-page .mobile-nav a,
  body.dark-theme.home-page .mobile-nav a {
    color: #aeb8c6 !important;
    background: transparent !important;
  }

  body.dark.home-page .mobile-nav a:is(.active, :hover, :focus-visible),
  body.dark-theme.home-page .mobile-nav a:is(.active, :hover, :focus-visible) {
    background: rgba(87, 135, 53, .40) !important;
    color: #a8ed63 !important;
  }
}

/* ------------------------------------------------------------
   Full-screen main map
   ------------------------------------------------------------ */
body.home-map-fullscreen-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.home-page .map-section.map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 16000 !important;
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #eef1eb !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.home-page .map-section.map-fullscreen > h2 {
  display: none !important;
}

body.home-page .map-section.map-fullscreen #mapView {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.home-page .map-section.map-fullscreen .map-controls {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1000 !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: min(620px, calc(100% - 28px)) !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .90) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .18) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

body.home-page .map-section.map-fullscreen .map-controls .btn-primary {
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  background: #198754 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.main-map-close-btn {
  position: absolute !important;
  top: calc(14px + env(safe-area-inset-top, 0px)) !important;
  right: 14px !important;
  z-index: 1200 !important;
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #172033 !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .18) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
  cursor: pointer !important;
}

.main-map-close-btn span {
  display: block;
  margin-top: -2px;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

body.home-page .map-section.map-fullscreen .main-map-route-panel {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1000 !important;
  transform: translateX(-50%) !important;
  width: min(620px, calc(100% - 28px)) !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #172033 !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .15) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  backdrop-filter: blur(14px) !important;
}

body.home-page .map-section.map-fullscreen .main-map-route-panel span {
  color: #5f6b7a !important;
}

body.dark.home-page .map-section.map-fullscreen,
body.dark-theme.home-page .map-section.map-fullscreen {
  background: #171917 !important;
}

body.dark.home-page .map-section.map-fullscreen .map-controls,
body.dark-theme.home-page .map-section.map-fullscreen .map-controls,
body.dark.home-page .map-section.map-fullscreen .main-map-route-panel,
body.dark-theme.home-page .map-section.map-fullscreen .main-map-route-panel,
body.dark.home-page .main-map-close-btn,
body.dark-theme.home-page .main-map-close-btn {
  background: rgba(27, 29, 26, .93) !important;
  border-color: rgba(255, 255, 255, .09) !important;
  color: #f4f6f1 !important;
}

body.dark.home-page .map-section.map-fullscreen .main-map-route-panel span,
body.dark-theme.home-page .map-section.map-fullscreen .main-map-route-panel span {
  color: #b9c2b5 !important;
}

/* Hide floating controls while the full-screen map is open. */
body.home-map-fullscreen-open .floating-map-btn,
body.home-map-fullscreen-open .home-map-fab,
body.home-map-fullscreen-open .floating-voice-btn,
body.home-map-fullscreen-open .makon-assistant-launcher,
body.home-map-fullscreen-open .mobile-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Leaflet controls stay reachable above our bottom panel. */
body.home-page .map-section.map-fullscreen .leaflet-bottom.leaflet-right {
  bottom: 150px !important;
}

@media (max-width: 600px) {
  body.home-page .map-section.map-fullscreen .map-controls {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 1fr 1fr !important;
    width: calc(100% - 20px) !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 16px !important;
  }

  body.home-page .map-section.map-fullscreen .map-controls .btn-primary {
    min-height: 42px !important;
    padding-inline: 6px !important;
    font-size: 11.5px !important;
    white-space: normal !important;
    line-height: 1.12 !important;
  }

  body.home-page .map-section.map-fullscreen .main-map-route-panel {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 20px) !important;
    padding: 9px 11px !important;
    font-size: 12px !important;
  }

  .main-map-close-btn {
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    right: 10px !important;
    width: 44px !important;
    height: 44px !important;
  }

  body.home-page .map-section.map-fullscreen .leaflet-bottom.leaflet-right {
    bottom: 132px !important;
  }
}

/* ============================================================
   MAKON HOME — RESPONSIVE HERO + CATALOG + PHOTO MAP MARKERS
   + CAR / BIKE / FOOT ROUTING
   FINAL PASS 2026-08-17
   ============================================================ */

/* "Ещё" is a branded utility item, not a raw black catalog glyph. */
body.home-page .catalog-more-item .icon img {
  filter: none !important;
  opacity: 1 !important;
}

/* Keep category PNG artwork untouched. */
body.home-page .catalog-item:not(.catalog-more-item) .icon img {
  filter: none !important;
  opacity: 1 !important;
}

/* ------------------------------------------------------------
   Responsive hero.
   Old rules hid .home-hero-copy at <=920 and the whole hero at <=767.
   This final override restores it for every phone/tablet size.
   ------------------------------------------------------------ */
@media (max-width: 920px) {
  body.home-page .home-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(180px, .92fr) !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 220px !important;
    height: auto !important;
    margin: 12px 0 16px !important;
    padding: 24px 22px !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 72% 42%, rgba(153, 228, 62, .18), transparent 30%),
      linear-gradient(120deg, rgba(255,255,255,.97), rgba(248,250,244,.90)) !important;
    box-shadow: 0 16px 42px rgba(24, 32, 45, .08) !important;
    overflow: hidden !important;
  }

  body.dark.home-page .home-hero,
  body.dark-theme.home-page .home-hero {
    background:
      radial-gradient(circle at 72% 42%, rgba(153, 228, 62, .14), transparent 31%),
      linear-gradient(120deg, rgba(34, 38, 31, .98), rgba(24, 27, 23, .95)) !important;
  }

  body.home-page .home-hero::before,
  body.home-page .home-hero::after {
    display: none !important;
  }

  body.home-page .home-hero-copy {
    display: block !important;
    min-width: 0 !important;
  }

  body.home-page .home-hero h2 {
    display: block !important;
    max-width: 390px !important;
    margin: 0 !important;
    font-size: clamp(30px, 5.4vw, 39px) !important;
    line-height: 1.03 !important;
    font-weight: 850 !important;
    letter-spacing: -.02em !important;
  }

  body.home-page .home-hero p {
    display: block !important;
    max-width: 330px !important;
    margin: 14px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  body.home-page .home-hero-visual {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 168px !important;
    height: 168px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    filter: drop-shadow(0 18px 24px rgba(74, 167, 38, .13)) !important;
    background: transparent !important;
    overflow: visible !important;
  }

  body.home-page .home-hero-visual::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    inset: 12px 0 14px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background:
      radial-gradient(circle at 26% 42%, rgba(101,201,44,.18), transparent 10%),
      radial-gradient(circle at 83% 34%, rgba(255,184,0,.14), transparent 11%),
      linear-gradient(135deg, rgba(146,196,220,.20), rgba(101,201,44,.08)) !important;
    transform: skewX(-8deg) !important;
  }

  body.home-page .home-hero-visual::after {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    left: 10px !important;
    right: 4px !important;
    top: 25px !important;
    width: auto !important;
    height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1.5px dashed rgba(101,201,44,.28) !important;
    border-radius: 50% !important;
    background: none !important;
    transform: rotate(-4deg) !important;
  }

  body.home-page .home-hero .city-card {
    display: block !important;
    bottom: 34px !important;
    width: 72px !important;
    height: 62px !important;
    border-radius: 12px 12px 8px 8px !important;
  }

  body.home-page .home-hero .city-card::before {
    left: 9px !important;
    right: 9px !important;
    top: -17px !important;
    height: 21px !important;
    border-radius: 7px 7px 3px 3px !important;
  }

  body.home-page .home-hero .city-card-a {
    left: 3% !important;
    height: 56px !important;
  }

  body.home-page .home-hero .city-card-b {
    left: 37% !important;
    height: 79px !important;
  }

  body.home-page .home-hero .city-card-c {
    left: auto !important;
    right: 1% !important;
    height: 67px !important;
  }

  body.home-page .home-hero .city-road {
    display: block !important;
    left: 1% !important;
    right: 1% !important;
    bottom: 19px !important;
    height: 35px !important;
  }

  body.home-page .home-hero .city-pin {
    display: block !important;
    left: 52% !important;
    top: 19px !important;
    width: 56px !important;
    height: 56px !important;
  }

  body.home-page .home-hero .city-pin::after {
    inset: 15px !important;
  }

  body.home-page .home-hero .city-mini {
    display: block !important;
    width: 29px !important;
    height: 29px !important;
  }

  body.home-page .home-hero .city-mini::before {
    inset: 8px !important;
    border-width: 1.5px !important;
    border-radius: 4px !important;
  }

  body.home-page .home-hero .city-mini-food {
    left: 0 !important;
    top: 55px !important;
  }

  body.home-page .home-hero .city-mini-shop {
    right: 0 !important;
    top: 52px !important;
  }

  body.home-page .home-hero .city-mini-car {
    left: 2px !important;
    bottom: 42px !important;
  }

  body.home-page .home-hero .city-mini-food::after,
  body.home-page .home-hero .city-mini-shop::after,
  body.home-page .home-hero .city-mini-car::after {
    transform: scale(.62) !important;
    transform-origin: center !important;
  }

  /* Mobile category row: one clean line at 622/636/642px,
     horizontal scroll only on narrower phones. */
  body.home-page .catalog {
    padding: 4px 0 14px !important;
  }

  body.home-page .catalog-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 2px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
  }

  body.home-page .catalog-grid::-webkit-scrollbar {
    display: none !important;
  }

  body.home-page .catalog-item {
    flex: 0 0 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    min-height: 96px !important;
    height: 96px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9px 7px !important;
    border-radius: 21px !important;
    scroll-snap-align: start !important;
  }

  body.home-page .catalog-item .icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    border-radius: 50% !important;
  }

  body.home-page .catalog-item .icon img {
    width: auto !important;
    height: auto !important;
    max-width: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  body.home-page .catalog-item .label {
    width: 100% !important;
    min-height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
    font-size: 11px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    text-align: center !important;
    overflow: visible !important;
  }

  body.home-page .catalog-item:nth-of-type(n+6):not(.catalog-more-item) {
    display: none !important;
  }

  body.home-page .catalog-grid.show-all {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  body.home-page .catalog-grid.show-all .catalog-item:nth-of-type(n+6) {
    display: inline-flex !important;
  }

  body.home-page .catalog-more-item {
    display: inline-flex !important;
  }
}

@media (max-width: 680px) {
  body.home-page .home-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(160px, .92fr) !important;
    min-height: 205px !important;
    padding: 20px 18px !important;
  }

  body.home-page .home-hero h2 {
    font-size: clamp(27px, 6vw, 34px) !important;
  }

  body.home-page .home-hero p {
    margin-top: 11px !important;
    font-size: 13px !important;
  }

  body.home-page .catalog-item {
    flex-basis: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    height: 94px !important;
    min-height: 94px !important;
  }
}

@media (max-width: 480px) {
  body.home-page .home-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(118px, .88fr) !important;
    gap: 8px !important;
    min-height: 184px !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
  }

  body.home-page .home-hero h2 {
    font-size: clamp(23px, 7vw, 29px) !important;
  }

  body.home-page .home-hero p {
    max-width: 210px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  body.home-page .home-hero-visual {
    min-height: 138px !important;
    height: 138px !important;
  }

  body.home-page .home-hero .city-card {
    width: 55px !important;
    height: 50px !important;
  }

  body.home-page .home-hero .city-card-b {
    height: 68px !important;
  }

  body.home-page .home-hero .city-card-c {
    height: 56px !important;
  }

  body.home-page .home-hero .city-pin {
    width: 46px !important;
    height: 46px !important;
    top: 18px !important;
  }

  body.home-page .home-hero .city-pin::after {
    inset: 13px !important;
  }

  body.home-page .catalog-item {
    flex-basis: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 90px !important;
    min-height: 90px !important;
  }
}

/* ------------------------------------------------------------
   Company photo markers
   ------------------------------------------------------------ */
.makon-map-photo-marker {
  border: 0 !important;
  background: transparent !important;
}

.map-company-marker {
  position: relative;
  width: 48px;
  height: 56px;
  display: block;
}

.map-company-photo {
  position: absolute;
  left: 50%;
  top: 0;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  display: block;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, .24),
    0 0 0 2px rgba(47, 158, 68, .22);
}

.map-company-photo img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.map-company-tip {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 13px;
  height: 13px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 2px;
  background: #2f9e44;
  box-shadow: 4px 4px 8px rgba(15,23,42,.10);
  z-index: -1;
}

.makon-map-photo-marker.selected .map-company-marker {
  width: 54px;
  height: 62px;
}

.makon-map-photo-marker.selected .map-company-photo {
  width: 50px;
  height: 50px;
  border-color: #a2eb57;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, .28),
    0 0 0 4px rgba(153, 228, 62, .28);
}

.makon-map-photo-marker.selected .map-company-tip {
  background: #89d83f;
}

/* Popup becomes a compact company overview card. */
.map-popup-card {
  min-width: 220px !important;
  max-width: 280px !important;
  gap: 9px !important;
}

.map-popup-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.map-popup-photo {
  width: 52px !important;
  height: 52px !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  background: #eef5ea;
}

.map-popup-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.map-popup-copy strong {
  overflow: hidden;
  color: #172033 !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-popup-copy small {
  color: #667085 !important;
  font-size: 12px !important;
}

.map-popup-card > p {
  padding-top: 2px;
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.map-popup-actions {
  gap: 7px !important;
  margin-top: 2px !important;
}

.map-popup-actions a,
.map-popup-actions button {
  min-height: 38px !important;
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 10px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
}

/* ------------------------------------------------------------
   Route mode switch
   ------------------------------------------------------------ */
.main-map-route-modes {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(154px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1100 !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: min(520px, calc(100% - 28px)) !important;
  padding: 6px !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 17px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 14px 38px rgba(15,23,42,.16) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

.main-map-route-modes button {
  min-width: 0 !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 9px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #566273 !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.main-map-route-modes button.active {
  background: #e9f8df !important;
  color: #23823b !important;
  box-shadow: inset 0 0 0 1px rgba(47,158,68,.14) !important;
}

.route-mode-icon {
  font-size: 16px !important;
  line-height: 1 !important;
}

/* Route info remains between mode switch and bottom actions. */
body.home-page .map-section.map-fullscreen .main-map-route-panel {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  width: min(520px, calc(100% - 28px)) !important;
}

body.home-page .map-section.map-fullscreen .map-controls {
  width: min(620px, calc(100% - 28px)) !important;
}

/* Map popup dark theme. */
body.dark.home-page .leaflet-popup-content-wrapper,
body.dark-theme.home-page .leaflet-popup-content-wrapper {
  background: #22251f !important;
  color: #f2f5ef !important;
}

body.dark.home-page .leaflet-popup-tip,
body.dark-theme.home-page .leaflet-popup-tip {
  background: #22251f !important;
}

body.dark.home-page .map-popup-copy strong,
body.dark-theme.home-page .map-popup-copy strong {
  color: #f5f7f2 !important;
}

body.dark.home-page .map-popup-copy small,
body.dark-theme.home-page .map-popup-copy small,
body.dark.home-page .map-popup-card > p,
body.dark-theme.home-page .map-popup-card > p {
  color: #b7c0b3 !important;
}

body.dark.home-page .main-map-route-modes,
body.dark-theme.home-page .main-map-route-modes {
  border-color: rgba(255,255,255,.09) !important;
  background: rgba(27,29,26,.93) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.28) !important;
}

body.dark.home-page .main-map-route-modes button,
body.dark-theme.home-page .main-map-route-modes button {
  color: #bdc6ba !important;
}

body.dark.home-page .main-map-route-modes button.active,
body.dark-theme.home-page .main-map-route-modes button.active {
  background: rgba(92, 145, 57, .34) !important;
  color: #b6f36a !important;
  box-shadow: inset 0 0 0 1px rgba(182,243,106,.14) !important;
}

/* Zoom controls stay above all three bottom panels. */
body.home-page .map-section.map-fullscreen .leaflet-bottom.leaflet-right {
  bottom: 218px !important;
}

@media (max-width: 600px) {
  .main-map-route-modes {
    bottom: calc(137px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 20px) !important;
    gap: 4px !important;
    padding: 5px !important;
    border-radius: 15px !important;
  }

  .main-map-route-modes button {
    min-height: 40px !important;
    gap: 4px !important;
    padding-inline: 5px !important;
    font-size: 10.5px !important;
  }

  .route-mode-icon {
    font-size: 14px !important;
  }

  body.home-page .map-section.map-fullscreen .main-map-route-panel {
    bottom: calc(73px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100% - 20px) !important;
    min-height: 56px !important;
    padding: 8px 11px !important;
  }

  body.home-page .map-section.map-fullscreen .main-map-route-panel strong {
    font-size: 12px !important;
  }

  body.home-page .map-section.map-fullscreen .main-map-route-panel span {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body.home-page .map-section.map-fullscreen .leaflet-bottom.leaflet-right {
    bottom: 200px !important;
  }

  .map-popup-card {
    min-width: 205px !important;
  }
}


/* MAKON PHONE ICON — use one replaceable PNG on cards. */
.btn-call::before {
  content: none !important;
  display: none !important;
}

.btn-call .makon-phone-call-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

/* ============================================================
   MAKON HOME — CATALOG "MORE" BRAND COLOR
   2026-08-18
   Keep real category artwork untouched; only the utility "Ещё"
   glyph is converted to the MAKON green.
   ============================================================ */
body.home-page .catalog-more-item .icon img {
  filter: brightness(0) saturate(100%)
          invert(53%) sepia(84%) saturate(448%)
          hue-rotate(63deg) brightness(96%) contrast(91%) !important;
  opacity: 1 !important;
}

body.home-page .catalog-more-item:hover .icon img,
body.home-page .catalog-more-item.active .icon img,
body.home-page .catalog-more-item:focus-visible .icon img {
  filter: brightness(0) saturate(100%)
          invert(48%) sepia(81%) saturate(850%)
          hue-rotate(72deg) brightness(90%) contrast(92%) !important;
}

body.home-page .catalog-more-item .icon {
  background: rgba(101, 201, 44, .11) !important;
}


/* ============================================================
   VERIFIED CHECK V15 — HOME
   Return the original PNG icon and remove only background/ring around it.
   ============================================================ */
body.home-page .home-card-body h4 {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  column-gap: 7px !important;
}

/* Campaign badge belongs to the listing information, never over the photo. */
body.home-page .home-info-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 7px 0 2px;
  padding: 5px 9px;
  border: 1px solid rgba(28, 166, 69, .22);
  border-radius: 999px;
  background: #effbea;
  color: #157f37;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}
body.home-page .home-info-promo-badge span { text-transform: uppercase; letter-spacing: .04em; }
body.home-page .home-info-promo-badge b { color: #0c6e31; }
body.dark.home-page .home-info-promo-badge,
body.dark-theme.home-page .home-info-promo-badge { background: #1b3020; border-color: #376c43; color: #a5e5af; }
body.dark.home-page .home-info-promo-badge b,
body.dark-theme.home-page .home-info-promo-badge b { color: #baf0c0; }

body.home-page .listing-card-home .verified-company-chip {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.home-page .listing-card-home .verified-company-chip::before,
body.home-page .listing-card-home .verified-company-chip::after {
  content: none !important;
  display: none !important;
}

body.home-page .listing-card-home .verified-company-chip img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page .listing-card-home .verified-company-chip > span {
  display: none !important;
}

/* ============================================================
   V22 — HOME CATALOG: fill mobile width without empty right gap
   ============================================================ */
@media (max-width: 920px) {
  body.home-page .catalog-grid.show-all {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 8px 4px 14px !important;
    overflow: visible !important;
  }

  body.home-page .catalog-grid.show-all .catalog-item,
  body.home-page .catalog-grid.show-all .catalog-more-item {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 116px !important;
    height: auto !important;
    padding: 12px 8px !important;
    border-radius: 22px !important;
  }

  body.home-page .catalog-grid.show-all .catalog-item .icon {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }

  body.home-page .catalog-grid.show-all .catalog-item .icon img {
    max-width: 30px !important;
    max-height: 30px !important;
  }

  body.home-page .catalog-grid.show-all .catalog-item .label {
    min-height: 30px !important;
    font-size: 12px !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 430px) {
  body.home-page .catalog-grid.show-all {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.home-page .catalog-grid.show-all .catalog-item,
  body.home-page .catalog-grid.show-all .catalog-more-item {
    min-height: 108px !important;
    padding: 10px 6px !important;
  }
}


/* ============================================================
   MAKON V33 — ADMIN-CONTROLLED HOME HERO AD
   ============================================================ */
body.home-page .home-hero.home-hero-ad {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%) !important;
  min-height: 330px !important;
  height: 330px !important;
  margin: 20px 0 28px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(23, 97, 48, .10) !important;
  border-radius: 28px !important;
  background: #fff !important;
  color: #15251b !important;
  text-decoration: none !important;
  box-shadow: 0 24px 70px rgba(18, 48, 29, .10) !important;
  isolation: isolate;
}

body.home-page .home-hero.home-hero-ad::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255,255,255,.99) 0%,
    rgba(255,255,255,.97) 36%,
    rgba(255,255,255,.76) 47%,
    rgba(255,255,255,.12) 64%,
    rgba(255,255,255,0) 78%);
}

body.home-page .home-hero-ad-media {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 35%;
  display: block;
  overflow: hidden;
}

body.home-page .home-hero-ad-media img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.home-page .home-hero-ad-copy {
  position: relative;
  z-index: 3;
  grid-column: 1 / 2;
  width: 100%;
  min-width: 0;
  padding: 34px 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

body.home-page .home-hero-ad-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(20, 132, 63, .22);
  border-radius: 999px;
  background: rgba(153, 228, 62, .11);
  color: #14763a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}

body.home-page .home-hero-ad-company {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 1px 0 2px;
}

body.home-page .home-hero-ad-company > img {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  margin: 0 !important;
  padding: 3px;
  object-fit: cover !important;
  border: 1px solid rgba(23, 97, 48, .12) !important;
  border-radius: 13px !important;
  background: #fff;
  box-shadow: 0 7px 18px rgba(17, 58, 31, .09);
}

body.home-page .home-hero-ad-company > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.home-page .home-hero-ad-company b {
  color: #193222;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-page .home-hero-ad-company small {
  color: #6d7c72;
  font-size: 11px;
  font-weight: 700;
}

body.home-page .home-hero.home-hero-ad h2 {
  max-width: 520px;
  margin: 1px 0 0 !important;
  color: #14341f !important;
  font-size: clamp(34px, 3.1vw, 52px) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
}

body.home-page .home-hero.home-hero-ad p {
  max-width: 500px;
  margin: 0 !important;
  color: #65736a !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.home-page .home-hero-ad-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 5px;
  padding: 10px 18px;
  border-radius: 14px;
  background: #159447;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(21, 148, 71, .22);
}

body.home-page .home-hero.home-hero-ad:hover .home-hero-ad-button {
  transform: translateY(-1px);
  background: #117f3c;
}

body.dark.home-page .home-hero.home-hero-ad,
body.dark-theme.home-page .home-hero.home-hero-ad {
  border-color: rgba(255,255,255,.08) !important;
  background: #171b18 !important;
  color: #eff8ef !important;
}

body.dark.home-page .home-hero.home-hero-ad::before,
body.dark-theme.home-page .home-hero.home-hero-ad::before {
  background: linear-gradient(90deg,
    rgba(23,27,24,.99) 0%,
    rgba(23,27,24,.96) 36%,
    rgba(23,27,24,.74) 48%,
    rgba(23,27,24,.08) 68%,
    rgba(23,27,24,0) 82%);
}

body.dark.home-page .home-hero-ad-company b,
body.dark-theme.home-page .home-hero-ad-company b,
body.dark.home-page .home-hero.home-hero-ad h2,
body.dark-theme.home-page .home-hero.home-hero-ad h2 {
  color: #eff8ef !important;
}

body.dark.home-page .home-hero-ad-company small,
body.dark-theme.home-page .home-hero-ad-company small,
body.dark.home-page .home-hero.home-hero-ad p,
body.dark-theme.home-page .home-hero.home-hero-ad p {
  color: #abb9ae !important;
}

@media (max-width: 900px) {
  body.home-page .home-hero.home-hero-ad {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%) !important;
    height: 310px !important;
    min-height: 310px !important;
  }

  body.home-page .home-hero-ad-copy {
    padding: 26px 28px;
  }

  body.home-page .home-hero.home-hero-ad h2 {
    font-size: clamp(29px, 4.2vw, 40px) !important;
  }
}

@media (max-width: 767px) {
  body.home-page .home-hero.home-hero-ad {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 12px auto 22px !important;
    border-radius: 22px !important;
  }

  body.home-page .home-hero.home-hero-ad::before {
    display: none !important;
  }

  body.home-page .home-hero-ad-media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    aspect-ratio: 3 / 2;
  }

  body.home-page .home-hero-ad-media img {
    object-fit: cover !important;
  }

  body.home-page .home-hero-ad-copy {
    width: 100%;
    padding: 20px 20px 22px;
    gap: 9px;
    background:
      radial-gradient(circle at 100% 0, rgba(153,228,62,.13), transparent 34%),
      #fff;
  }

  body.home-page .home-hero.home-hero-ad h2 {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.02 !important;
  }

  body.home-page .home-hero.home-hero-ad p {
    font-size: 13px !important;
  }

  body.dark.home-page .home-hero-ad-copy,
  body.dark-theme.home-page .home-hero-ad-copy {
    background:
      radial-gradient(circle at 100% 0, rgba(153,228,62,.11), transparent 34%),
      #171b18;
  }
}

/* MAKON V38 — non-clickable home ad + real-brand fallback */
body.home-page .home-hero.home-hero-ad.is-non-clickable { cursor: default; }
body.home-page .home-hero-ad-company > .home-hero-ad-logo-initial {
  display:grid; place-items:center; width:46px; height:46px; flex:0 0 46px;
  border-radius:50%; background:#fff; color:#079447; font-weight:900; font-size:18px;
  box-shadow:0 4px 14px rgba(28,70,41,.10);
}
body.home-page .home-hero.home-hero-ad.is-non-clickable:hover { transform:none; }

/* ============================================================
   MAKON V42 — PREMIUM HOME HERO CAROUSEL
   Large premium advertising banner for the homepage.
   ============================================================ */
body.home-page .home-premium-carousel {
  position: relative;
  margin: 22px 0 26px;
}

body.home-page .home-premium-stage {
  position: relative;
  min-height: 640px;
}

body.home-page .home-premium-slide {
  --hero-border: rgba(255,255,255,.14);
  position: relative;
  display: block;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #0d100f;
  box-shadow: 0 26px 70px rgba(8, 16, 11, .16);
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(10px) scale(.99);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}

body.home-page .home-premium-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.home-page .home-premium-photo,
body.home-page .home-premium-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

body.home-page .home-premium-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.home-page .home-premium-photo img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

body.home-page .home-premium-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(6, 8, 7, .90) 0%, rgba(9, 12, 10, .72) 28%, rgba(10, 13, 11, .28) 58%, rgba(10, 13, 11, .56) 100%),
    radial-gradient(circle at 18% 28%, rgba(121, 214, 77, .16), transparent 30%),
    linear-gradient(180deg, rgba(6, 8, 7, .00) 0%, rgba(6, 8, 7, .14) 55%, rgba(6, 8, 7, .80) 100%);
}

body.home-page .home-premium-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  padding: 44px 52px 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.home-page .home-premium-copy-wrap {
  display: flex;
  align-items: stretch;
  width: min(100%, 560px);
}

body.home-page .home-premium-panel {
  width: 100%;
  min-height: 420px;
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--hero-border);
  border-radius: 30px;
  background: color-mix(in srgb, var(--hero-panel) var(--hero-panel-opacity, 85%), transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .22);
}

body.home-page .home-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--hero-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
}

body.home-page .home-premium-company {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

body.home-page .home-premium-company-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.86);
  background: rgba(6, 8, 7, .62);
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  overflow: hidden;
}

body.home-page .home-premium-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-page .home-premium-company-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

body.home-page .home-premium-company-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.home-page .home-premium-company-text b {
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.15;
}

body.home-page .home-premium-company-text small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 700;
}

body.home-page .home-premium-slide h2 {
  margin: 2px 0 0 !important;
  color: var(--hero-heading) !important;
  font-size: clamp(48px, 4.4vw, 72px) !important;
  line-height: .96 !important;
  letter-spacing: -.05em !important;
  text-wrap: balance;
}

body.home-page .home-premium-slide p {
  max-width: 480px;
  margin: 0 !important;
  color: var(--hero-text) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
}

body.home-page .home-premium-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 100%);
}

body.home-page .home-premium-benefit {
  min-height: 74px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.94);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

body.home-page .home-premium-benefit-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(121, 214, 77, .14);
  color: var(--hero-icon);
  font-size: 17px;
  font-weight: 900;
}
body.home-page .home-premium-benefit-icon-leaf::before { content: '✿'; }
body.home-page .home-premium-benefit-icon-bolt::before { content: '⚡'; }
body.home-page .home-premium-benefit-icon-shield::before { content: '✓'; }
body.home-page .home-premium-benefit-icon-star::before { content: '★'; }
body.home-page .home-premium-benefit-icon-clock::before { content: '⏱'; }
body.home-page .home-premium-benefit-icon-truck::before { content: '🚚'; }

body.home-page .home-premium-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  margin-top: 4px;
  padding: 0 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hero-button) 92%, #6cff6e 8%) 0%, var(--hero-button) 100%);
  color: var(--hero-button-text);
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--hero-button) 34%, transparent);
}

body.home-page .home-premium-slide:hover .home-premium-button {
  transform: translateY(-1px);
}

body.home-page .home-premium-partner {
  position: absolute;
  top: 0;
  right: 34px;
  z-index: 3;
  min-width: 118px;
  padding: 20px 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hero-partner) 92%, #23c763 8%) 0%, color-mix(in srgb, var(--hero-partner) 72%, #000 28%) 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(0,0,0,.18);
}

body.home-page .home-premium-partner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid color-mix(in srgb, var(--hero-partner) 72%, #000 28%);
}

body.home-page .home-premium-partner-star {
  font-size: 32px;
  line-height: 1;
}

body.home-page .home-premium-partner small {
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.home-page .home-premium-partner b {
  font-size: 24px;
  line-height: 1;
}

body.home-page .home-premium-gallery-shell {
  margin-top: auto;
}

body.home-page .home-premium-gallery {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding: 0 4px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
body.home-page .home-premium-gallery::-webkit-scrollbar { display: none; }

body.home-page .home-premium-gallery-card {
  min-width: 244px;
  width: 244px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(10, 14, 11, .70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

body.home-page .home-premium-gallery-card.is-highlighted {
  border-color: color-mix(in srgb, var(--hero-accent) 90%, #ffffff 10%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hero-accent) 68%, transparent), inset 0 1px 0 rgba(255,255,255,.05);
}

body.home-page .home-premium-gallery-media {
  width: 116px;
  flex: 0 0 116px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

body.home-page .home-premium-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-page .home-premium-gallery-body {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: center;
}

body.home-page .home-premium-gallery-body small {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
}

body.home-page .home-premium-gallery-body b {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

body.home-page .home-premium-gallery-body strong {
  color: rgba(255,255,255,.84);
  font-size: 14px;
  font-weight: 700;
}

body.home-page .home-premium-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 26px;
  z-index: 4;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

body.home-page .home-premium-nav {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19, 117, 54, .14);
  border-radius: 50%;
  background: #fff;
  color: #166c38;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(10, 32, 18, .08);
}

body.home-page .home-premium-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

body.home-page .home-premium-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

body.home-page .home-premium-dots button span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(18, 90, 44, .22);
  transition: all .22s ease;
}

body.home-page .home-premium-dots button.active span {
  width: 30px;
  border-radius: 999px;
  background: #2eac47;
}

body.home-page .home-premium-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 86px;
  z-index: 4;
  display: block;
  width: min(100%, 320px);
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(18, 90, 44, .10);
  overflow: hidden;
}

body.home-page .home-premium-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79d64d 0%, #159447 100%);
}

body.home-page .home-premium-slide.is-non-clickable { cursor: default; }
body.home-page .home-premium-slide.is-non-clickable:hover { transform: translateY(0) scale(1); }

@media (max-width: 1279px) {
  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    min-height: 580px;
  }

  body.home-page .home-premium-inner {
    padding: 36px 34px 98px;
  }

  body.home-page .home-premium-copy-wrap {
    width: min(100%, 500px);
  }

  body.home-page .home-premium-panel {
    min-height: 388px;
    padding: 24px 26px 26px;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(42px, 4.8vw, 60px) !important;
  }

  body.home-page .home-premium-gallery-card {
    min-width: 220px;
    width: 220px;
  }

  body.home-page .home-premium-gallery-media {
    width: 104px;
    flex-basis: 104px;
  }
}

@media (max-width: 960px) {
  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    min-height: 540px;
  }

  body.home-page .home-premium-inner {
    padding: 26px 24px 92px;
  }

  body.home-page .home-premium-copy-wrap {
    width: min(100%, 420px);
  }

  body.home-page .home-premium-panel {
    min-height: 366px;
    gap: 14px;
  }

  body.home-page .home-premium-company-logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(34px, 5vw, 52px) !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 15px !important;
  }

  body.home-page .home-premium-benefits {
    grid-template-columns: 1fr;
  }

  body.home-page .home-premium-benefit {
    min-height: 62px;
  }

  body.home-page .home-premium-partner {
    right: 24px;
    min-width: 100px;
    padding: 16px 12px 20px;
  }

  body.home-page .home-premium-partner b {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  body.home-page .home-premium-carousel {
    margin: 16px 0 22px;
  }

  body.home-page .home-premium-stage {
    min-height: 0;
  }

  body.home-page .home-premium-slide {
    min-height: 0;
    border-radius: 26px;
  }

  body.home-page .home-premium-photo {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  body.home-page .home-premium-backdrop {
    background: linear-gradient(180deg, rgba(8,10,9,.06) 0%, rgba(7,9,8,.18) 54%, rgba(7,9,8,.92) 100%);
  }

  body.home-page .home-premium-inner {
    min-height: 0;
    padding: 0 16px 18px;
    display: block;
  }

  body.home-page .home-premium-copy-wrap {
    width: 100%;
    margin-top: -22px;
  }

  body.home-page .home-premium-panel {
    min-height: 0;
    padding: 18px 18px 20px;
    gap: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8,12,10,.92) 0%, rgba(10,14,11,.90) 100%);
  }

  body.home-page .home-premium-badge {
    min-height: 32px;
    padding: 6px 13px;
    font-size: 12px;
  }

  body.home-page .home-premium-company {
    gap: 12px;
  }

  body.home-page .home-premium-company-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  body.home-page .home-premium-company-text b {
    font-size: 16px;
  }

  body.home-page .home-premium-company-text small {
    font-size: 12px;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(32px, 10vw, 44px) !important;
    line-height: .98 !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 14px !important;
  }

  body.home-page .home-premium-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.home-page .home-premium-benefit {
    min-height: 56px;
    padding: 11px 12px;
    font-size: 13px;
  }

  body.home-page .home-premium-button {
    min-height: 52px;
    padding: 0 22px;
    font-size: 15px;
  }

  body.home-page .home-premium-partner {
    top: 6px;
    right: 22px;
    min-width: 62px;
    padding: 5px 8px 8px;
    border-radius: 18px 18px 18px 18px;
    gap: 4px;
  }
  body.home-page .home-premium-partner::after { display: none; }
  body.home-page .home-premium-partner-star { font-size: 14px; }
  body.home-page .home-premium-partner small { font-size: 8px; }
  body.home-page .home-premium-partner b { font-size: 7px; }

  body.home-page .home-premium-gallery-shell {
    margin-top: 12px;
  }

  body.home-page .home-premium-gallery {
    gap: 10px;
    padding: 0 2px 2px;
  }

  body.home-page .home-premium-gallery-card {
    min-width: 166px;
    width: 166px;
    padding: 8px;
    gap: 8px;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  body.home-page .home-premium-gallery-media {
    width: 100%;
    flex-basis: auto;
    border-radius: 12px;
  }

  body.home-page .home-premium-gallery-body {
    gap: 4px;
  }

  body.home-page .home-premium-gallery-body small {
    font-size: 11px;
  }

  body.home-page .home-premium-gallery-body b {
    font-size: 13px;
  }

  body.home-page .home-premium-gallery-body strong {
    font-size: 12px;
  }

  body.home-page .home-premium-controls {
    position: static;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    pointer-events: auto;
  }

  body.home-page .home-premium-nav {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  body.home-page .home-premium-progress {
    position: static;
    width: min(100%, 220px);
    margin-top: 10px;
  }
}

body.dark.home-page .home-premium-nav,
body.dark-theme.home-page .home-premium-nav {
  background: #1b231e;
  border-color: rgba(255,255,255,.08);
  color: #dbf8df;
}

body.dark.home-page .home-premium-dots button span,
body.dark-theme.home-page .home-premium-dots button span {
  background: rgba(255,255,255,.22);
}

/* ============================================================
   MAKON V42.1 — COMPACT PREMIUM HERO (DESKTOP / TABLET ONLY)
   Keeps the V42 design, carousel and mobile layout intact.
   Desktop target stays close to the premium 1800×600 proportion.
   ============================================================ */
@media (min-width: 1280px) {
  body.home-page .home-premium-carousel {
    margin-top: 18px;
    margin-bottom: 22px;
  }

  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    min-height: 0 !important;
    height: clamp(460px, 31vw, 525px) !important;
  }

  body.home-page .home-premium-slide {
    border-radius: 30px;
  }

  body.home-page .home-premium-inner {
    padding: 30px 40px 88px !important;
  }

  body.home-page .home-premium-copy-wrap {
    width: min(100%, 500px) !important;
  }

  body.home-page .home-premium-panel {
    min-height: 0 !important;
    padding: 22px 24px 24px !important;
    gap: 12px !important;
    border-radius: 24px !important;
  }

  body.home-page .home-premium-badge {
    min-height: 31px;
    padding: 5px 13px;
    font-size: 12px;
  }

  body.home-page .home-premium-company {
    gap: 12px;
  }

  body.home-page .home-premium-company-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  body.home-page .home-premium-company-text b {
    font-size: 17px;
  }

  body.home-page .home-premium-company-text small {
    font-size: 12px;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(42px, 3.35vw, 56px) !important;
    line-height: .98 !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  body.home-page .home-premium-benefits {
    gap: 9px;
  }

  body.home-page .home-premium-benefit {
    min-height: 58px;
    padding: 9px 10px;
    gap: 9px;
    border-radius: 15px;
    font-size: 12px;
  }

  body.home-page .home-premium-benefit-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: 14px;
  }

  body.home-page .home-premium-button {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 15px;
    font-size: 15px;
  }

  body.home-page .home-premium-partner {
    right: 28px;
    min-width: 102px;
    padding: 15px 12px 18px;
  }

  body.home-page .home-premium-partner-star {
    font-size: 26px;
  }

  body.home-page .home-premium-partner b {
    font-size: 19px;
  }

  body.home-page .home-premium-gallery {
    gap: 12px;
  }

  body.home-page .home-premium-gallery-card {
    min-width: 208px;
    width: 208px;
    padding: 8px 9px;
    gap: 10px;
    border-radius: 18px;
  }

  body.home-page .home-premium-gallery-media {
    width: 92px;
    flex-basis: 92px;
    border-radius: 13px;
  }

  body.home-page .home-premium-gallery-body {
    gap: 4px;
  }

  body.home-page .home-premium-gallery-body small {
    font-size: 10px;
  }

  body.home-page .home-premium-gallery-body b {
    font-size: 13px;
  }

  body.home-page .home-premium-gallery-body strong {
    font-size: 12px;
  }

  body.home-page .home-premium-controls {
    bottom: 18px;
    grid-template-columns: 46px 1fr 46px;
  }

  body.home-page .home-premium-nav {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }

  body.home-page .home-premium-progress {
    bottom: 68px;
    width: min(100%, 270px);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.home-page .home-premium-carousel {
    margin-top: 16px;
    margin-bottom: 20px;
  }

  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    min-height: 0 !important;
    height: clamp(430px, 48vw, 500px) !important;
  }

  body.home-page .home-premium-slide {
    border-radius: 26px;
  }

  body.home-page .home-premium-inner {
    padding: 24px 24px 82px !important;
  }

  body.home-page .home-premium-copy-wrap {
    width: min(100%, 430px) !important;
  }

  body.home-page .home-premium-panel {
    min-height: 0 !important;
    padding: 18px 20px 20px !important;
    gap: 10px !important;
    border-radius: 22px !important;
  }

  body.home-page .home-premium-badge {
    min-height: 29px;
    padding: 5px 11px;
    font-size: 11px;
  }

  body.home-page .home-premium-company {
    gap: 10px;
  }

  body.home-page .home-premium-company-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  body.home-page .home-premium-company-text b {
    font-size: 16px;
  }

  body.home-page .home-premium-company-text small {
    font-size: 11px;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(34px, 4.4vw, 46px) !important;
    line-height: .98 !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 13px !important;
  }

  body.home-page .home-premium-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body.home-page .home-premium-benefit {
    min-height: 50px !important;
    padding: 8px !important;
    gap: 7px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
  }

  body.home-page .home-premium-benefit-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 12px;
  }

  body.home-page .home-premium-button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 14px;
  }

  body.home-page .home-premium-partner {
    top: 0;
    right: 20px;
    min-width: 88px;
    padding: 12px 9px 16px;
  }

  body.home-page .home-premium-partner-star {
    font-size: 22px;
  }

  body.home-page .home-premium-partner small {
    font-size: 9px;
  }

  body.home-page .home-premium-partner b {
    font-size: 16px;
  }

  body.home-page .home-premium-gallery {
    gap: 9px;
  }

  body.home-page .home-premium-gallery-card {
    min-width: 176px !important;
    width: 176px !important;
    padding: 7px 8px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  body.home-page .home-premium-gallery-media {
    width: 78px !important;
    flex-basis: 78px !important;
    border-radius: 11px !important;
  }

  body.home-page .home-premium-gallery-body small {
    font-size: 9px !important;
  }

  body.home-page .home-premium-gallery-body b {
    font-size: 11px !important;
  }

  body.home-page .home-premium-gallery-body strong {
    font-size: 10px !important;
  }

  body.home-page .home-premium-controls {
    bottom: 15px !important;
    grid-template-columns: 42px 1fr 42px !important;
  }

  body.home-page .home-premium-nav {
    width: 40px !important;
    height: 40px !important;
    font-size: 22px !important;
  }

  body.home-page .home-premium-progress {
    bottom: 61px !important;
    width: min(100%, 230px) !important;
  }
}

/* ============================================================
   MAKON V42.2 — CAROUSEL STACK FIX
   Every premium ad occupies exactly the same hero slot.
   Prevents the next active campaign from appearing lower on the page.
   ============================================================ */
body.home-page .home-premium-stage {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

body.home-page .home-premium-stage > .home-premium-slide {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  z-index: 0 !important;
}

body.home-page .home-premium-stage > .home-premium-slide.is-active {
  z-index: 2 !important;
}

body.home-page .home-premium-stage > .home-premium-slide:not(.is-active) {
  z-index: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Compact premium controls: keep all navigation in one centered cluster. */
@media (min-width: 768px) {
  body.home-page .home-premium-controls {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 16px !important;
    z-index: 8 !important;
    width: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 7px 9px !important;
    border: 1px solid rgba(18, 90, 44, .10) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 10px 28px rgba(10, 32, 18, .10) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    pointer-events: auto !important;
  }

  body.home-page .home-premium-nav {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #f1fbf3 !important;
    font-size: 22px !important;
  }

  body.home-page .home-premium-dots {
    min-width: 58px !important;
    gap: 7px !important;
  }

  body.home-page .home-premium-dots button {
    width: 10px !important;
    height: 10px !important;
  }

  body.home-page .home-premium-dots button span {
    width: 8px !important;
    height: 8px !important;
  }

  body.home-page .home-premium-dots button.active {
    width: 26px !important;
  }

  body.home-page .home-premium-dots button.active span {
    width: 26px !important;
    height: 8px !important;
  }

  body.home-page .home-premium-progress {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 67px !important;
    z-index: 7 !important;
    width: 210px !important;
    height: 3px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }
}

/* Mobile also overlays all campaigns in the same grid cell. The grid itself
   keeps the height of the tallest slide, so the page never collapses. */
@media (max-width: 767px) {
  body.home-page .home-premium-stage {
    grid-template-rows: auto !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide {
    align-self: start !important;
  }
}


/* ============================================================
   MAKON V42.3 — HOME PREMIUM HERO FINAL RESPONSIVE POLISH
   Scope: homepage premium hero + homepage mobile header only.
   ============================================================ */

/* --- Desktop: compact panel, gallery fully visible, controls below hero. --- */
@media (min-width: 1280px) {
  body.home-page .home-premium-carousel {
    margin: 18px 0 22px !important;
  }

  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    height: 486px !important;
    min-height: 486px !important;
    max-height: 486px !important;
  }

  body.home-page .home-premium-slide {
    border-radius: 28px !important;
  }

  body.home-page .home-premium-inner {
    position: relative !important;
    padding: 24px 34px 18px !important;
  }

  body.home-page .home-premium-copy-wrap {
    width: min(100%, 500px) !important;
  }

  body.home-page .home-premium-panel {
    width: 100% !important;
    min-height: 0 !important;
    max-height: 318px !important;
    padding: 20px 22px !important;
    gap: 10px !important;
    border-radius: 24px !important;
  }

  body.home-page .home-premium-badge {
    min-height: 29px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
  }

  body.home-page .home-premium-company {
    gap: 11px !important;
  }

  body.home-page .home-premium-company-logo {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }

  body.home-page .home-premium-company-text b {
    font-size: 16px !important;
  }

  body.home-page .home-premium-company-text small {
    font-size: 10px !important;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(37px, 3vw, 49px) !important;
    line-height: .96 !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.home-page .home-premium-benefits {
    gap: 7px !important;
  }

  body.home-page .home-premium-benefit {
    min-height: 48px !important;
    padding: 7px 9px !important;
    gap: 7px !important;
    border-radius: 13px !important;
    font-size: 10.5px !important;
  }

  body.home-page .home-premium-benefit-icon {
    width: 25px !important;
    height: 25px !important;
    flex-basis: 25px !important;
    font-size: 12px !important;
  }

  body.home-page .home-premium-button {
    min-height: 44px !important;
    padding: 0 19px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }

  body.home-page .home-premium-partner {
    right: 26px !important;
    min-width: 94px !important;
    padding: 13px 10px 16px !important;
  }

  body.home-page .home-premium-partner-star {
    font-size: 23px !important;
  }

  body.home-page .home-premium-partner small {
    font-size: 9px !important;
  }

  body.home-page .home-premium-partner b {
    font-size: 17px !important;
  }

  body.home-page .home-premium-gallery-shell {
    position: absolute !important;
    left: 34px !important;
    right: 34px !important;
    bottom: 16px !important;
    margin: 0 !important;
  }

  body.home-page .home-premium-gallery {
    gap: 10px !important;
    padding: 0 !important;
  }

  body.home-page .home-premium-gallery-card {
    min-width: 184px !important;
    width: 184px !important;
    min-height: 82px !important;
    padding: 7px 8px !important;
    gap: 8px !important;
    border-radius: 16px !important;
  }

  body.home-page .home-premium-gallery-media {
    width: 78px !important;
    flex-basis: 78px !important;
    border-radius: 11px !important;
  }

  body.home-page .home-premium-gallery-body {
    gap: 3px !important;
  }

  body.home-page .home-premium-gallery-body small {
    font-size: 9px !important;
  }

  body.home-page .home-premium-gallery-body b {
    font-size: 11px !important;
  }

  body.home-page .home-premium-gallery-body strong {
    font-size: 10px !important;
  }
}

/* Navigation belongs BELOW the banner, never on top of gallery/photo. */
body.home-page .home-premium-controls {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: max-content !important;
  margin: 12px auto 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
  border: 1px solid rgba(18, 90, 44, .10) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 8px 22px rgba(10,32,18,.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  pointer-events: auto !important;
}

body.home-page .home-premium-nav {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border: 0 !important;
  background: #f1fbf3 !important;
  box-shadow: none !important;
  font-size: 20px !important;
}

body.home-page .home-premium-dots {
  min-width: 54px !important;
  gap: 6px !important;
}

body.home-page .home-premium-dots button,
body.home-page .home-premium-dots button span {
  width: 8px !important;
  height: 8px !important;
}

body.home-page .home-premium-dots button.active {
  width: 24px !important;
}

body.home-page .home-premium-dots button.active span {
  width: 24px !important;
  height: 8px !important;
}

body.home-page .home-premium-progress {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 190px !important;
  height: 3px !important;
  margin: 7px auto 0 !important;
  transform: none !important;
}

/* --- Tablet: dedicated layout. No giant panel and no clipped gallery. --- */
@media (min-width: 768px) and (max-width: 1279px) {
  body.home-page .home-premium-carousel {
    margin: 14px 0 20px !important;
  }

  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    height: clamp(410px, 50vw, 455px) !important;
    min-height: 0 !important;
    max-height: 455px !important;
  }

  body.home-page .home-premium-stage {
    overflow: hidden !important;
  }

  body.home-page .home-premium-slide {
    border-radius: 24px !important;
  }

  body.home-page .home-premium-inner {
    position: relative !important;
    padding: 18px 20px 14px !important;
  }

  body.home-page .home-premium-copy-wrap {
    width: min(43%, 390px) !important;
  }

  body.home-page .home-premium-panel {
    min-height: 0 !important;
    max-height: 286px !important;
    padding: 15px 16px !important;
    gap: 8px !important;
    border-radius: 20px !important;
  }

  body.home-page .home-premium-badge {
    min-height: 27px !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
  }

  body.home-page .home-premium-company {
    gap: 9px !important;
  }

  body.home-page .home-premium-company-logo {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
  }

  body.home-page .home-premium-company-text b {
    font-size: 14px !important;
  }

  body.home-page .home-premium-company-text small {
    font-size: 9px !important;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(27px, 3.6vw, 38px) !important;
    line-height: .98 !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  body.home-page .home-premium-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  body.home-page .home-premium-benefit {
    min-height: 42px !important;
    padding: 6px !important;
    gap: 5px !important;
    border-radius: 11px !important;
    font-size: 9px !important;
  }

  body.home-page .home-premium-benefit-icon {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
    font-size: 11px !important;
  }

  body.home-page .home-premium-button {
    min-height: 40px !important;
    padding: 0 15px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  body.home-page .home-premium-partner {
    top: 0 !important;
    right: 16px !important;
    min-width: 78px !important;
    padding: 10px 8px 13px !important;
  }

  body.home-page .home-premium-partner-star {
    font-size: 20px !important;
  }

  body.home-page .home-premium-partner small {
    font-size: 8px !important;
  }

  body.home-page .home-premium-partner b {
    font-size: 14px !important;
  }

  body.home-page .home-premium-gallery-shell {
    position: absolute !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 14px !important;
    margin: 0 !important;
  }

  body.home-page .home-premium-gallery {
    gap: 7px !important;
    padding: 0 !important;
  }

  body.home-page .home-premium-gallery-card {
    min-width: 148px !important;
    width: 148px !important;
    min-height: 72px !important;
    padding: 6px !important;
    gap: 6px !important;
    border-radius: 14px !important;
  }

  body.home-page .home-premium-gallery-media {
    width: 62px !important;
    flex-basis: 62px !important;
    border-radius: 10px !important;
  }

  body.home-page .home-premium-gallery-body small {
    font-size: 8px !important;
  }

  body.home-page .home-premium-gallery-body b {
    font-size: 10px !important;
  }

  body.home-page .home-premium-gallery-body strong {
    font-size: 9px !important;
  }
}

/* --- Homepage mobile header: search hidden until the search icon is tapped. --- */
.home-mobile-search-toggle {
  display: none;
}

@media (max-width: 767px) {
  body.home-page .site-header {
    background: #fff !important;
  }

  body.home-page .site-header .container {
    padding: 0 12px !important;
  }

  body.home-page .header-inner {
    min-height: 76px !important;
    grid-template-columns: auto minmax(0, 1fr) 44px auto !important;
    grid-template-areas: "brand city search-toggle profile" !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 0 !important;
    border-radius: 0 0 18px 18px !important;
    background: #fff !important;
  }

  body.home-page .left {
    grid-area: brand !important;
    gap: 6px !important;
  }

  body.home-page .logo-icon {
    width: 38px !important;
    height: 38px !important;
  }

  body.home-page .brand {
    font-size: 20px !important;
  }

  body.home-page .location-pill {
    grid-area: city !important;
    max-width: 100px !important;
    min-width: 0 !important;
    padding: 0 3px !important;
  }

  body.home-page .location-pill img {
    width: 19px !important;
    height: 19px !important;
  }

  body.home-page .location-pill #currentCityLabel {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.home-page .home-mobile-search-toggle {
    grid-area: search-toggle !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #f1f8ed !important;
    color: #118c3b !important;
  }

  body.home-page .home-mobile-search-toggle svg {
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
  }

  body.home-page .header-filters {
    display: none !important;
    grid-area: filters !important;
    width: 100% !important;
  }

  body.home-page .right {
    grid-area: profile !important;
    justify-self: end !important;
  }

  body.home-page .header-profile-chip,
  body.home-page .header-login-btn {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  body.home-page .site-header.is-search-open .header-inner {
    min-height: 132px !important;
    grid-template-columns: auto minmax(0,1fr) 44px auto !important;
    grid-template-areas:
      "brand city search-toggle profile"
      "filters filters filters filters" !important;
    grid-template-rows: 50px 54px !important;
    row-gap: 6px !important;
  }

  body.home-page .site-header.is-search-open .header-filters {
    display: flex !important;
  }

  body.home-page .site-header.is-search-open .home-mobile-search-toggle {
    background: #0f9a45 !important;
    color: #fff !important;
  }

  body.home-page .site-header.is-search-open .header-input {
    width: 100% !important;
    min-height: 50px !important;
  }

  body.home-page .site-header.is-search-open #homeFilterBtn {
    display: flex !important;
  }

  /* Mobile premium hero: admin-selected palette, no forced black panel. */
  body.home-page .home-premium-carousel {
    margin: 14px 0 20px !important;
  }

  body.home-page .home-premium-slide {
    border-radius: 24px !important;
  }

  body.home-page .home-premium-backdrop {
    background:
      linear-gradient(180deg,
        transparent 0%,
        color-mix(in srgb, var(--hero-panel) 18%, transparent) 48%,
        color-mix(in srgb, var(--hero-panel) 74%, transparent) 100%) !important;
  }

  body.home-page .home-premium-inner {
    padding: 0 12px 14px !important;
  }

  body.home-page .home-premium-copy-wrap {
    margin-top: -18px !important;
  }

  body.home-page .home-premium-panel {
    min-height: 0 !important;
    padding: 16px 16px 18px !important;
    gap: 9px !important;
    border: 1px solid color-mix(in srgb, var(--hero-accent) 18%, transparent) !important;
    border-radius: 22px !important;
    background: color-mix(in srgb, var(--hero-panel) 90%, transparent) !important;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--hero-panel) 25%, transparent) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  body.home-page .home-premium-benefits {
    display: none !important;
  }

  body.home-page .home-premium-company-logo {
    width: 50px !important;
    height: 50px !important;
    flex-basis: 50px !important;
  }

  body.home-page .home-premium-company-text b {
    color: var(--hero-heading) !important;
    font-size: 16px !important;
  }

  body.home-page .home-premium-company-text small {
    color: var(--hero-text) !important;
    font-size: 11px !important;
  }

  body.home-page .home-premium-slide h2 {
    color: var(--hero-heading) !important;
    font-size: clamp(29px, 9vw, 39px) !important;
    line-height: .98 !important;
  }

  body.home-page .home-premium-slide p {
    color: var(--hero-text) !important;
    font-size: 13px !important;
  }

  body.home-page .home-premium-button {
    min-height: 46px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  body.home-page .home-premium-gallery-shell {
    margin-top: 10px !important;
  }

  body.home-page .home-premium-gallery-card {
    min-width: 154px !important;
    width: 154px !important;
  }

  body.home-page .home-premium-controls {
    margin-top: 10px !important;
  }
}

@media (max-width: 410px) {
  body.home-page .header-inner {
    grid-template-columns: auto minmax(0, 1fr) 42px auto !important;
    gap: 5px !important;
  }

  body.home-page .brand {
    font-size: 18px !important;
  }

  body.home-page .location-pill {
    max-width: 82px !important;
  }

  body.home-page .home-mobile-search-toggle {
    width: 42px !important;
    height: 42px !important;
  }
}

/* ============================================================
   MAKON V42.4 — COMPACT PUBLIC HEADER + DOCKED BOTTOM NAV
   Scope: Home only. Premium banner is intentionally untouched.
   ============================================================ */
.mobile-header-assistant-btn {
  display: none;
}

@media (max-width: 1023px) {
  body.home-page {
    --home-header-height: 66px !important;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.home-page .site-header,
  body.home-page .site-header .container,
  body.home-page .header-inner {
    height: var(--home-header-height) !important;
    min-height: var(--home-header-height) !important;
    max-height: var(--home-header-height) !important;
  }

  body.home-page .site-header {
    background: #fff !important;
  }

  body.home-page .site-header .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  body.home-page .header-inner {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) 42px 42px !important;
    grid-template-areas: "brand city search-toggle assistant" !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 8px !important;
    border-radius: 0 0 16px 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 13px rgba(20, 28, 43, .035) !important;
  }

  body.home-page .left {
    grid-area: brand !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  body.home-page .logo-icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }

  body.home-page .brand {
    font-size: 19px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.home-page .location-pill {
    grid-area: city !important;
    min-width: 0 !important;
    max-width: 170px !important;
    height: 42px !important;
    justify-self: start !important;
    padding: 0 4px 0 8px !important;
    gap: 6px !important;
  }

  body.home-page .location-pill img {
    width: 18px !important;
    height: 18px !important;
  }

  body.home-page .location-pill #currentCityLabel {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
  }

  body.home-page .home-mobile-search-toggle,
  body.home-page .mobile-header-assistant-btn {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #f1f8ed !important;
    color: #118c3b !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  body.home-page .home-mobile-search-toggle {
    grid-area: search-toggle !important;
  }

  body.home-page .mobile-header-assistant-btn {
    grid-area: assistant !important;
  }

  body.home-page .home-mobile-search-toggle svg,
  body.home-page .mobile-header-assistant-btn svg {
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  body.home-page .mobile-header-assistant-btn .assistant-spark {
    fill: currentColor !important;
    stroke: none !important;
  }

  /* Desktop actions/profile are replaced by Search + Assistant on phone/tablet. */
  body.home-page .right {
    display: none !important;
  }

  body.home-page .header-filters {
    display: none !important;
    grid-area: filters !important;
    width: 100% !important;
    height: 46px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* Search opens in the SAME compact row; header never gets taller. */
  body.home-page .site-header.is-search-open .header-inner {
    height: var(--home-header-height) !important;
    min-height: var(--home-header-height) !important;
    max-height: var(--home-header-height) !important;
    grid-template-columns: minmax(0, 1fr) 42px 42px !important;
    grid-template-areas: "filters search-toggle assistant" !important;
    grid-template-rows: 1fr !important;
    row-gap: 0 !important;
  }

  body.home-page .site-header.is-search-open .left,
  body.home-page .site-header.is-search-open .location-pill {
    display: none !important;
  }

  body.home-page .site-header.is-search-open .header-filters {
    display: flex !important;
  }

  body.home-page .site-header.is-search-open .header-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding-right: 42px !important;
    border-radius: 14px !important;
  }

  body.home-page .site-header.is-search-open #homeFilterBtn {
    display: none !important;
  }

  body.home-page .site-header.is-search-open .home-mobile-search-toggle {
    background: #0f9a45 !important;
    color: #fff !important;
  }

  body.home-page #main.container {
    padding-top: var(--home-header-height) !important;
  }

  /* Original floating assistant is now represented by the header proxy. */
  body.home-page .floating-voice-btn,
  body.home-page .makon-assistant-launcher,
  body.home-page [data-assistant-launcher] {
    display: none !important;
  }
}

@media (max-width: 899px) {
  body.home-page .mobile-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 5px 7px max(5px, env(safe-area-inset-bottom, 0px)) !important;
    gap: 4px !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 0 !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 -8px 28px rgba(15,23,42,.11) !important;
    backdrop-filter: blur(18px) !important;
    z-index: 12500 !important;
  }

  body.home-page .mobile-nav a {
    height: 52px !important;
    min-height: 52px !important;
    padding: 4px 3px !important;
    border-radius: 15px !important;
    gap: 2px !important;
  }

  body.home-page .mobile-nav a .icon,
  body.home-page .mobile-nav .overview-nav-icon {
    width: 23px !important;
    height: 23px !important;
  }

  body.home-page .mobile-nav a .icon img {
    width: 22px !important;
    height: 22px !important;
  }

  body.home-page .mobile-nav a .label {
    font-size: 9.5px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 430px) {
  body.home-page .header-inner {
    grid-template-columns: auto minmax(0, 1fr) 40px 40px !important;
    gap: 5px !important;
    padding-inline: 6px !important;
  }

  body.home-page .brand {
    font-size: 18px !important;
  }

  body.home-page .location-pill {
    max-width: 92px !important;
  }

  body.home-page .home-mobile-search-toggle,
  body.home-page .mobile-header-assistant-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
}


/* ============================================================
   MAKON V42.5 — HOMEPAGE BANNER PANEL OPACITY CONTRACT
   Admin controls the premium panel density from 0% to 100%.
   ============================================================ */
body.home-page .home-premium-panel {
  background: color-mix(in srgb, var(--hero-panel) var(--hero-panel-opacity, 85%), transparent) !important;
}
@media (max-width: 767px) {
  body.home-page .home-premium-panel {
    background: color-mix(in srgb, var(--hero-panel) var(--hero-panel-opacity, 85%), transparent) !important;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--hero-panel) 25%, transparent) !important;
  }
}


/* ============================================================
   MAKON V46.1 — HOME DARK SURFACES + TABLET NAV + HERO GAP FIX
   ============================================================ */
@media (min-width: 541px) and (max-width: 1023px) {
  body.home-page .header-inner {
    grid-template-columns: auto minmax(72px, 140px) auto 42px 42px !important;
    grid-template-areas: "brand city tablet-nav search-toggle assistant" !important;
    gap: 5px !important;
  }
  body.home-page .makon-tablet-header-nav {
    grid-area: tablet-nav !important;
    justify-self: end !important;
  }
  body.home-page .location-pill {
    max-width: 140px !important;
  }
  body.home-page .site-header.is-search-open .makon-tablet-header-nav {
    display: none !important;
  }
}

@media (max-width: 540px) {
  body.home-page .makon-tablet-header-nav { display: none !important; }
}

body.dark.home-page .site-header,
body.dark-theme.home-page .site-header,
body.dark.home-page .header-inner,
body.dark-theme.home-page .header-inner {
  background: #1b1f1b !important;
  border-color: rgba(255,255,255,.07) !important;
}


body.dark.home-page :is(.home-mobile-search-toggle, .mobile-header-assistant-btn),
body.dark-theme.home-page :is(.home-mobile-search-toggle, .mobile-header-assistant-btn) {
  background: #272d27 !important;
  color: #8fe56e !important;
}

body.dark.home-page .nearby-chip,
body.dark-theme.home-page .nearby-chip {
  background: #2a2f2a !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #d9e0d9 !important;
}
body.dark.home-page .nearby-chip.active,
body.dark-theme.home-page .nearby-chip.active,
body.dark.home-page .nearby-chip:hover,
body.dark-theme.home-page .nearby-chip:hover {
  background: #2f6f34 !important;
  color: #efffe9 !important;
}

body.dark.home-page .catalog-subtype-chip,
body.dark-theme.home-page .catalog-subtype-chip {
  background: #292e29 !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #edf2ed !important;
}
body.dark.home-page .catalog-subtype-chip.is-active,
body.dark-theme.home-page .catalog-subtype-chip.is-active {
  background: #365b27 !important;
  color: #f3ffed !important;
}

body.dark.home-page .mobile-nav,
body.dark-theme.home-page .mobile-nav {
  background: rgba(24,27,24,.97) !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* No running progress line in advertising carousels. */
body.home-page .home-premium-progress { display: none !important; }

/* On phones, hidden slides must not reserve the height of a campaign that has
   a gallery. Only the active campaign defines the hero height. */
@media (max-width: 540px) {
  body.home-page .home-premium-stage {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }
  body.home-page .home-premium-stage > .home-premium-slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  body.home-page .home-premium-stage > .home-premium-slide:not(.is-active) {
    position: absolute !important;
    inset: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  body.home-page .home-premium-stage > .home-premium-slide.is-active {
    position: relative !important;
    visibility: visible !important;
  }
  body.home-page .home-premium-controls {
    margin: 10px auto 0 !important;
  }
  body.home-page .home-premium-carousel {
    margin-bottom: 12px !important;
  }
}


/* ============================================================
   MAKON V47.2 — public search breakpoint contract
   <=719px: search icon. >=720px: full search field.
   ============================================================ */
@media (min-width:720px) and (max-width:1023px) {
  body.home-page .header-inner,
  body.home-page .site-header.is-search-open .header-inner {
    grid-template-columns:auto minmax(72px,120px) auto minmax(190px,1fr) 42px !important;
    grid-template-areas:"brand city tablet-nav filters assistant" !important;
    grid-template-rows:1fr !important;
  }
  body.home-page .site-header.is-search-open .left,
  body.home-page .site-header.is-search-open .location-pill,
  body.home-page .site-header.is-search-open .makon-tablet-header-nav { display:flex !important; }
  body.home-page .site-header.is-search-open .makon-tablet-header-nav { display:inline-flex !important; }
  body.home-page .header-filters,
  body.home-page .site-header.is-search-open .header-filters {
    grid-area:filters !important;
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    height:42px !important;
  }
  body.home-page .header-input,
  body.home-page .site-header.is-search-open .header-input {
    width:100% !important;
    min-width:0 !important;
    height:42px !important;
    min-height:42px !important;
  }
  body.home-page .home-mobile-search-toggle { display:none !important; }
  body.home-page #homeFilterBtn { display:none !important; }
}
@media (max-width:719px) {
  body.home-page .header-filters { display:none !important; }
  body.home-page .home-mobile-search-toggle { display:grid !important; }
}

/* Strong dark-mode surfaces for compact phone navigation and search controls. */
@media (max-width:540px) {
  body.dark.home-page .mobile-nav,
  body.dark-theme.home-page .mobile-nav {
    background:#1b1f1b !important;
    border-color:rgba(255,255,255,.09) !important;
    box-shadow:0 -8px 28px rgba(0,0,0,.34) !important;
  }
  body.dark.home-page .mobile-nav a,
  body.dark-theme.home-page .mobile-nav a { background:transparent !important; color:#c9d2dc !important; }
  body.dark.home-page .mobile-nav a.active,
  body.dark-theme.home-page .mobile-nav a.active { background:#31542a !important; color:#b8f178 !important; }
}
body.dark.home-page .header-filters,
body.dark-theme.home-page .header-filters {
  background:#171a17 !important;
  border-color:rgba(255,255,255,.09) !important;
}
body.dark.home-page .header-input,
body.dark-theme.home-page .header-input { color:#eef3ee !important; background:transparent !important; }

/* ============================================================
   MAKON V48 — TABLET HERO USES THE PHONE COMPOSITION
   Tablets get the mobile campaign art + stacked, non-clipping layout.
   It intentionally overrides the older side-by-side tablet hero.
   ============================================================ */
@media (min-width: 768px) and (max-width: 1279px) {
  body.home-page .home-premium-carousel {
    margin: 14px 0 18px !important;
  }

  body.home-page .home-premium-stage {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide:not(.is-active) {
    position: absolute !important;
    inset: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide.is-active {
    position: relative !important;
    visibility: visible !important;
  }

  body.home-page .home-premium-photo {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: clamp(390px, 50vw, 560px) !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  body.home-page .home-premium-backdrop {
    background: linear-gradient(180deg,
      rgba(8,10,9,.02) 0%,
      color-mix(in srgb, var(--hero-panel) 16%, transparent) 58%,
      color-mix(in srgb, var(--hero-panel) 74%, transparent) 100%) !important;
  }

  body.home-page .home-premium-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 clamp(16px, 3vw, 28px) 20px !important;
  }

  body.home-page .home-premium-copy-wrap {
    position: relative !important;
    z-index: 3 !important;
    width: min(92%, 720px) !important;
    margin: -30px auto 0 !important;
  }

  body.home-page .home-premium-panel {
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: clamp(17px, 2.4vw, 24px) !important;
    gap: 10px !important;
    border: 1px solid color-mix(in srgb, var(--hero-accent) 18%, transparent) !important;
    border-radius: 24px !important;
    background: color-mix(in srgb, var(--hero-panel) var(--hero-panel-opacity, 85%), transparent) !important;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--hero-panel) 22%, transparent) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  body.home-page .home-premium-badge {
    min-height: 29px !important;
    padding: 5px 11px !important;
    font-size: 10.5px !important;
  }

  body.home-page .home-premium-company-logo {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }

  body.home-page .home-premium-company-text b {
    font-size: 16px !important;
  }

  body.home-page .home-premium-company-text small {
    font-size: 10px !important;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(31px, 5.2vw, 48px) !important;
    line-height: .98 !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.home-page .home-premium-benefits {
    display: none !important;
  }

  body.home-page .home-premium-button {
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }

  body.home-page .home-premium-partner {
    top: 10px !important;
    right: clamp(18px, 3vw, 30px) !important;
    min-width: 70px !important;
    padding: 7px 9px 10px !important;
    border-radius: 18px !important;
  }

  body.home-page .home-premium-partner::after {
    display: none !important;
  }

  body.home-page .home-premium-partner-star { font-size: 16px !important; }
  body.home-page .home-premium-partner small { font-size: 8px !important; }
  body.home-page .home-premium-partner b { font-size: 10px !important; }

  body.home-page .home-premium-gallery-shell {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
  }

  body.home-page .home-premium-gallery {
    display: flex !important;
    width: 100% !important;
    gap: 9px !important;
    padding: 0 1px 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
  }

  body.home-page .home-premium-gallery-card {
    flex: 0 0 166px !important;
    width: 166px !important;
    min-width: 166px !important;
    min-height: 0 !important;
    padding: 8px !important;
    gap: 7px !important;
    border-radius: 17px !important;
    scroll-snap-align: start;
  }

  body.home-page .home-premium-gallery-media {
    width: 100% !important;
    height: 104px !important;
    flex-basis: auto !important;
    border-radius: 12px !important;
  }

  body.home-page .home-premium-gallery-body small { font-size: 9px !important; }
  body.home-page .home-premium-gallery-body b { font-size: 11px !important; }
  body.home-page .home-premium-gallery-body strong { font-size: 10px !important; }

  body.home-page .home-premium-controls {
    margin: 10px auto 0 !important;
  }
}

/* ============================================================
   MAKON V48.1 — HOME PREMIUM HERO BREAKPOINT + DARK CONTROLS
   One stable tablet contract from 541px through 1279px.
   ============================================================ */
body.dark.home-page .home-premium-controls,
body.dark-theme.home-page .home-premium-controls {
  border-color: rgba(255,255,255,.09) !important;
  background: rgba(35,40,35,.96) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.28) !important;
}

body.dark.home-page .home-premium-nav,
body.dark-theme.home-page .home-premium-nav {
  background: #303730 !important;
  color: #a8ef83 !important;
}

body.dark.home-page .home-premium-dots button span,
body.dark-theme.home-page .home-premium-dots button span {
  background: rgba(220,231,220,.32) !important;
}

body.dark.home-page .home-premium-dots button.active span,
body.dark-theme.home-page .home-premium-dots button.active span {
  background: #75d34d !important;
}

@media (min-width: 541px) and (max-width: 1279px) {
  body.home-page .home-premium-carousel {
    margin: 14px 0 18px !important;
  }

  body.home-page .home-premium-stage {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 26px !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide:not(.is-active) {
    position: absolute !important;
    inset: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide.is-active {
    position: relative !important;
    visibility: visible !important;
  }

  body.home-page .home-premium-photo {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: clamp(320px, 45vw, 500px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  body.home-page .home-premium-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 clamp(14px, 2.7vw, 28px) 20px !important;
  }

  body.home-page .home-premium-copy-wrap {
    position: relative !important;
    z-index: 3 !important;
    width: min(92%, 720px) !important;
    margin: -30px auto 0 !important;
  }

  body.home-page .home-premium-panel {
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: clamp(17px, 2.3vw, 24px) !important;
    gap: 10px !important;
    border-radius: 24px !important;
  }

  body.home-page .home-premium-benefits {
    display: none !important;
  }

  body.home-page .home-premium-slide h2 {
    font-size: clamp(30px, 5vw, 48px) !important;
    line-height: .98 !important;
  }

  body.home-page .home-premium-slide p {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.home-page .home-premium-gallery-shell {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
  }

  body.home-page .home-premium-gallery {
    display: flex !important;
    width: 100% !important;
    gap: 10px !important;
    padding: 0 1px 3px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none !important;
  }

  body.home-page .home-premium-gallery-card {
    flex: 0 0 166px !important;
    width: 166px !important;
    min-width: 166px !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 17px !important;
    overflow: hidden !important;
    scroll-snap-align: start;
  }

  body.home-page .home-premium-gallery-media {
    width: 100% !important;
    height: 104px !important;
    flex: 0 0 104px !important;
    border-radius: 12px !important;
  }

  body.home-page .home-premium-gallery-body {
    width: 100% !important;
    min-width: 0 !important;
    gap: 3px !important;
  }

  body.home-page .home-premium-gallery-body small,
  body.home-page .home-premium-gallery-body b,
  body.home-page .home-premium-gallery-body strong {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.home-page .home-premium-gallery-body small {
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  body.home-page .home-premium-gallery-body b {
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.home-page .home-premium-gallery-body strong {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  body.home-page .home-premium-controls {
    margin: 10px auto 0 !important;
  }
}

/* ============================================================
   MAKON V48.2 — ONE HEADER TOOLBAR CONTRACT
   Home: Map + Assistant live in the header on every viewport.
   Desktop theme is also anchored inside the header grid.
   ============================================================ */
body.home-page .home-header-map-btn {
  display: none;
}

body.home-page :is(.home-header-map-btn, .mobile-header-assistant-btn) {
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(24, 44, 29, .08);
  background: #f1f8ed;
  color: #118c3b;
  box-shadow: none;
  cursor: pointer;
}

body.home-page :is(.home-header-map-btn, .mobile-header-assistant-btn) svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header tools replace the old floating duplicates. The DOM nodes stay alive so
   the existing map/assistant controllers keep working. */
body.home-page :is(#homeMapFab, .floating-map-btn, .floating-voice-btn, .makon-assistant-launcher, [data-assistant-launcher]) {
  display: none !important;
}

/* Theme must never escape below the desktop header. */
body.home-page .home-header-theme {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  justify-self: end !important;
  align-self: center !important;
}

@media (min-width: 1024px) {
  body.home-page .header-inner {
    display: grid !important;
    grid-template-columns: auto minmax(92px, 132px) max-content minmax(190px, 1fr) 42px 42px 66px !important;
    grid-template-areas: "brand city tablet-nav filters map assistant theme" !important;
    column-gap: 7px !important;
    align-items: center !important;
  }

  body.home-page .left { grid-area: brand !important; min-width: 0 !important; }
  body.home-page .location-pill { grid-area: city !important; min-width: 0 !important; max-width: 132px !important; }
  body.home-page .makon-tablet-header-nav { grid-area: tablet-nav !important; justify-self: center !important; }
  body.home-page .header-filters {
    grid-area: filters !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body.home-page .home-mobile-search-toggle { display: none !important; }
  body.home-page .home-header-map-btn,
  body.home-page .mobile-header-assistant-btn {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 13px !important;
  }
  body.home-page .home-header-map-btn { grid-area: map !important; }
  body.home-page .mobile-header-assistant-btn { grid-area: assistant !important; }
  body.home-page .home-header-theme { grid-area: theme !important; display: inline-flex !important; padding: 4px !important; }
  body.home-page .home-header-theme .global-theme-switch {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    flex-basis: 54px !important;
    height: 34px !important;
  }
  body.home-page .home-header-theme .global-theme-slider::before {
    width: 26px !important;
    height: 26px !important;
    top: 3px !important;
    left: 3px !important;
  }
  body.home-page .home-header-theme .global-theme-toggle:checked + .global-theme-slider::before {
    transform: translateX(20px) !important;
  }
  body.home-page .right { display: none !important; }
}

/* Tablet: search/map/assistant are independent fixed-size slots; none may sit
   on top of the navigation when the viewport crosses 540 -> 541. */
@media (min-width: 541px) and (max-width: 899px) {
  body.home-page .header-inner,
  body.home-page .site-header.is-search-open .header-inner {
    display: grid !important;
    grid-template-columns: auto minmax(70px, 100px) max-content 38px 38px 38px !important;
    grid-template-areas: "brand city tablet-nav search-toggle map assistant" !important;
    grid-template-rows: 1fr !important;
    column-gap: 5px !important;
    align-items: center !important;
  }
  body.home-page .left { grid-area: brand !important; min-width: 0 !important; }
  body.home-page .location-pill { grid-area: city !important; min-width: 0 !important; max-width: 100px !important; }
  body.home-page .makon-tablet-header-nav { grid-area: tablet-nav !important; justify-self: center !important; }
  body.home-page .home-mobile-search-toggle { grid-area: search-toggle !important; }
  body.home-page .home-header-map-btn { grid-area: map !important; }
  body.home-page .mobile-header-assistant-btn { grid-area: assistant !important; }
  body.home-page .home-header-map-btn,
  body.home-page .home-mobile-search-toggle,
  body.home-page .mobile-header-assistant-btn {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }
  body.home-page .home-header-theme,
  body.home-page .right,
  body.home-page .header-filters { display: none !important; }

  body.home-page .site-header.is-search-open .header-inner {
    grid-template-columns: minmax(0, 1fr) 38px 38px 38px !important;
    grid-template-areas: "filters search-toggle map assistant" !important;
  }
  body.home-page .site-header.is-search-open :is(.left, .location-pill, .makon-tablet-header-nav) { display: none !important; }
  body.home-page .site-header.is-search-open .header-filters {
    display: flex !important;
    grid-area: filters !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
}

@media (min-width: 541px) and (max-width: 639px) {
  body.home-page .brand { display: none !important; }
  body.home-page .left { width: 36px !important; min-width: 36px !important; }
  body.home-page .location-pill { max-width: 82px !important; padding-inline: 4px !important; }
  body.home-page .makon-tablet-header-nav { gap: 2px !important; padding: 2px 3px !important; }
  body.home-page .makon-tablet-header-nav a {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
  body.home-page .makon-tablet-header-nav .makon-nav-icon,
  body.home-page .makon-tablet-header-nav img {
    width: 21px !important;
    height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
  }
}

@media (min-width: 900px) and (max-width: 1023px) {
  body.home-page .header-inner,
  body.home-page .site-header.is-search-open .header-inner {
    display: grid !important;
    grid-template-columns: auto minmax(82px, 112px) max-content minmax(150px, 1fr) 40px 40px !important;
    grid-template-areas: "brand city tablet-nav filters map assistant" !important;
    grid-template-rows: 1fr !important;
    column-gap: 6px !important;
    align-items: center !important;
  }
  body.home-page .left { grid-area: brand !important; }
  body.home-page .location-pill { grid-area: city !important; max-width: 112px !important; }
  body.home-page .makon-tablet-header-nav { grid-area: tablet-nav !important; justify-self: center !important; }
  body.home-page .header-filters,
  body.home-page .site-header.is-search-open .header-filters {
    grid-area: filters !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body.home-page .home-mobile-search-toggle { display: none !important; }
  body.home-page .home-header-map-btn,
  body.home-page .mobile-header-assistant-btn {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }
  body.home-page .home-header-map-btn { grid-area: map !important; }
  body.home-page .mobile-header-assistant-btn { grid-area: assistant !important; }
  body.home-page .home-header-theme,
  body.home-page .right { display: none !important; }
}

@media (max-width: 540px) {
  body.home-page .header-inner,
  body.home-page .site-header.is-search-open .header-inner {
    display: grid !important;
    grid-template-columns: auto minmax(62px, 1fr) 38px 38px 38px !important;
    grid-template-areas: "brand city search-toggle map assistant" !important;
    grid-template-rows: 1fr !important;
    column-gap: 5px !important;
    align-items: center !important;
  }
  body.home-page .left { grid-area: brand !important; min-width: 0 !important; }
  body.home-page .location-pill { grid-area: city !important; min-width: 0 !important; max-width: 104px !important; }
  body.home-page .home-mobile-search-toggle { grid-area: search-toggle !important; }
  body.home-page .home-header-map-btn { grid-area: map !important; }
  body.home-page .mobile-header-assistant-btn { grid-area: assistant !important; }
  body.home-page .home-header-map-btn,
  body.home-page .home-mobile-search-toggle,
  body.home-page .mobile-header-assistant-btn {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }
  body.home-page .home-header-theme,
  body.home-page .right { display: none !important; }

  body.home-page .site-header.is-search-open .header-inner {
    grid-template-columns: minmax(0, 1fr) 38px 38px 38px !important;
    grid-template-areas: "filters search-toggle map assistant" !important;
  }
  body.home-page .site-header.is-search-open :is(.left, .location-pill) { display: none !important; }
  body.home-page .site-header.is-search-open .header-filters {
    display: flex !important;
    grid-area: filters !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 390px) {
  body.home-page .brand { display: none !important; }
  body.home-page .left { width: 36px !important; min-width: 36px !important; }
  body.home-page .location-pill { max-width: 82px !important; padding-inline: 3px !important; }
}

body.dark.home-page :is(.home-header-map-btn, .mobile-header-assistant-btn),
body.dark-theme.home-page :is(.home-header-map-btn, .mobile-header-assistant-btn) {
  background: #272d27 !important;
  color: #8fe56e !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* ============================================================
   MAKON V49 — HOME LISTING CARD ACTIONS + MEDIA RATING
   The card geometry stays intact. Only the overlay/action controls are
   reorganized: compact Route, wide Call, green Favorite, rating on photo.
   ============================================================ */
body.home-page .listing-card-home .home-card-media {
  position: relative !important;
  overflow: hidden !important;
}

body.home-page .listing-card-home .home-card-gallery,
body.home-page .listing-card-home .home-card-gallery-track {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body.home-page .listing-card-home .home-card-gallery-track img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0 !important;
  transform: scale(1.015) !important;
  transition: opacity .22s ease, transform .28s ease !important;
}

body.home-page .listing-card-home .home-card-gallery-track img.is-active {
  opacity: 1 !important;
  transform: scale(1) !important;
}

body.home-page .listing-card-home .home-gallery-nav {
  position: absolute !important;
  top: 50% !important;
  z-index: 7 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 999px !important;
  background: rgba(18,25,22,.45) !important;
  color: #fff !important;
  font-size: 25px !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

body.home-page .listing-card-home:hover .home-gallery-nav,
body.home-page .listing-card-home:focus-within .home-gallery-nav {
  opacity: 1 !important;
}

body.home-page .listing-card-home .home-gallery-nav.prev { left: 10px !important; }
body.home-page .listing-card-home .home-gallery-nav.next { right: 10px !important; }

body.home-page .listing-card-home .home-gallery-dots {
  position: absolute !important;
  left: 50% !important;
  bottom: 10px !important;
  z-index: 7 !important;
  display: inline-flex !important;
  gap: 5px !important;
  max-width: calc(100% - 24px) !important;
  transform: translateX(-50%) !important;
}

body.home-page .listing-card-home .home-gallery-dots button {
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.64) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.22) !important;
  cursor: pointer !important;
}

body.home-page .listing-card-home .home-gallery-dots button.active {
  width: 18px !important;
  background: #8ee63d !important;
}

body.home-page .listing-card-home .home-media-rating {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: max-content !important;
  max-width: calc(100% - 24px) !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(255,255,255,.92) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.90) !important;
  color: #243128 !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.16) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

body.home-page .listing-card-home .home-media-rating-icon,
body.home-page .listing-card-home .home-media-rating-fallback {
  flex: 0 0 auto !important;
  width: 17px !important;
  height: 17px !important;
  object-fit: contain !important;
}

body.home-page .listing-card-home .home-media-rating-fallback {
  width: auto !important;
  height: auto !important;
  color: #f4ad14 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

body.home-page .listing-card-home .home-media-rating-text {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.home-page .listing-card-home .home-card-distance {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #5d8c28 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.home-page .listing-card-home .home-card-actions-v49 {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

body.home-page .listing-card-home .home-card-actions-v49.no-route {
  grid-template-columns: minmax(0, 1fr) 48px !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .btn-route-placeholder {
  display: none !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .btn-route,
body.home-page .listing-card-home .home-card-actions-v49 .btn-call,
body.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite {
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  transform: none !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .btn-route {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0px !important;
  width: 48px !important;
  padding: 0 1px !important;
  border: 1px solid #dfe8dc !important;
  background: #fbfdf9 !important;
  color: #358f24 !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .home-route-map-icon,
body.home-page .listing-card-home .home-card-actions-v49 .home-route-map-fallback {
  flex: 0 0 auto !important;
  width: 19px !important;
  height: 19px !important;
  object-fit: contain !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .home-route-map-fallback {
  width: auto !important;
  height: auto !important;
  color: #279b27 !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .btn-call {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 14px !important;
  border: 1px solid #23ac68 !important;
  background: #08b86b !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(8,184,107,.16) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .btn-call img {
  display: block !important;
  flex: 0 0 auto !important;
  width: 21px !important;
  height: 21px !important;
  max-width: 21px !important;
  max-height: 21px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .btn-call-disabled {
  border-color: #e3e7e2 !important;
  background: #f3f5f2 !important;
  color: #8c968d !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .btn-call-disabled img {
  opacity: .46 !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  border: 1px solid #dbe8d9 !important;
  background: #f7fbf4 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite img {
  display: block !important;
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  margin: 0 !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(43%) sepia(83%) saturate(1173%) hue-rotate(94deg) brightness(91%) contrast(91%) !important;
  opacity: .94 !important;
}

body.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite.is-active {
  border-color: rgba(24,158,67,.38) !important;
  background: #edf9e8 !important;
}

body.home-page .listing-card-home .home-card-actions-v49 :is(.btn-route,.btn-call,.card-action-favorite):hover,
body.home-page .listing-card-home .home-card-actions-v49 :is(.btn-route,.btn-call,.card-action-favorite):active {
  transform: none !important;
}

body.dark.home-page .listing-card-home .home-media-rating,
body.dark-theme.home-page .listing-card-home .home-media-rating {
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(27,31,28,.88) !important;
  color: #f3f6f2 !important;
}

body.dark.home-page .listing-card-home .home-card-actions-v49 .btn-route,
body.dark-theme.home-page .listing-card-home .home-card-actions-v49 .btn-route,
body.dark.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite,
body.dark-theme.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite {
  border-color: rgba(255,255,255,.10) !important;
  background: #252a25 !important;
}

body.dark.home-page .listing-card-home .home-card-actions-v49 .btn-call-disabled,
body.dark-theme.home-page .listing-card-home .home-card-actions-v49 .btn-call-disabled {
  border-color: rgba(255,255,255,.08) !important;
  background: #252825 !important;
  color: #9da69e !important;
}

@media (max-width: 540px) {
  body.home-page .listing-card-home .home-media-rating {
    top: 10px !important;
    right: 10px !important;
    min-height: 32px !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49 {
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
    gap: 7px !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49.no-route {
    grid-template-columns: minmax(0, 1fr) 46px !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49 .btn-route {
    width: 46px !important;
    padding-inline: 7px !important;
    font-size: 11px !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49 .btn-call {
    padding-inline: 10px !important;
    font-size: 12.5px !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite {
    width: 46px !important;
    min-width: 46px !important;
  }
}

@media (max-width: 360px) {
  body.home-page .listing-card-home .home-card-actions-v49 {
    grid-template-columns: 48px minmax(0, 1fr) 44px !important;
    gap: 6px !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49.no-route {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49 .btn-route {
    width: 48px !important;
    padding: 0 !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49 .btn-route .home-action-label {
    display: none !important;
  }

  body.home-page .listing-card-home .home-card-actions-v49 .card-action-favorite {
    width: 44px !important;
    min-width: 44px !important;
  }
}

/* V49 route label/icon must not inherit the legacy chevron drawn on every span. */
body.home-page .listing-card-home .home-card-actions-v49 .btn-route > :is(.home-action-label,.home-route-map-fallback) {
  width: auto !important;
  height: auto !important;
  display: inline !important;
  border: 0 !important;
  transform: none !important;
}


/* ============================================================
   MAKON V50.1 — HOME MEDIA RATING QUICK FIX
   compact rounded golden translucent badge with aligned star + value.
   ============================================================ */
body.home-page .listing-card-home .home-media-rating {
  gap: 5px !important;
  min-height: 28px !important;
  padding: 4px 9px !important;
  border: 1px solid rgba(227, 226, 224, .62) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(22, 21, 20, .67) 0%, #99e43e45 100%) !important;
  color: #fffaf0 !important;
  box-shadow: 0 8px 18px rgba(146, 102, 9, .18) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  backdrop-filter: blur(6px) !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.home-page .listing-card-home .home-media-rating-icon,
body.home-page .listing-card-home .home-media-rating-fallback {
  width: 14px !important;
  height: 14px !important;
}

body.home-page .listing-card-home .home-media-rating-fallback {
  width: auto !important;
  height: auto !important;
  color: #fff5c5 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.home-page .listing-card-home .home-media-rating-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 8px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: translateY(-0.5px) !important;
}

body.dark.home-page .listing-card-home .home-media-rating,
body.dark-theme.home-page .listing-card-home .home-media-rating {
  border-color: rgba(255, 216, 104, .40) !important;
  background: linear-gradient(180deg, rgba(222, 165, 24, .84) 0%, rgba(176, 122, 10, .76) 100%) !important;
  color: #fffaf0 !important;
}

@media (max-width: 540px) {
  body.home-page .listing-card-home .home-media-rating {
    min-height: 26px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
  }

  body.home-page .listing-card-home .home-media-rating-icon,
  body.home-page .listing-card-home .home-media-rating-fallback {
    width: 13px !important;
    height: 13px !important;
  }

  body.home-page .listing-card-home .home-media-rating-fallback {
    font-size: 13px !important;
  }
}


/* ============================================================
   MAKON V53 — HOME CARD TOUCH GALLERY + STABLE OPTIONAL ACTIONS
   Scoped only to public Home listing cards.
   ============================================================ */
body.home-page .listing-card-home .home-card-gallery {
  touch-action: pan-y pinch-zoom !important;
  overscroll-behavior-inline: contain;
  -webkit-user-select: none;
  user-select: none;
}

body.home-page .listing-card-home .home-card-actions-v49 {
  margin-top: auto !important;
  align-self: stretch !important;
}

/* Both controls exist: compact route + wide call + favorite. */
body.home-page .listing-card-home .home-card-actions-v49.has-route.has-phone {
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  justify-content: stretch !important;
}

/* Route exists but phone does not: no ghost/disabled call button. */
body.home-page .listing-card-home .home-card-actions-v49.has-route.no-phone {
  grid-template-columns: 48px 48px !important;
  justify-content: space-between !important;
}

/* Phone exists but coordinates do not: call gets the useful width. */
body.home-page .listing-card-home .home-card-actions-v49.no-route.has-phone {
  grid-template-columns: minmax(0, 1fr) 48px !important;
  justify-content: stretch !important;
}

/* Neither phone nor coordinates exist: favorite remains neatly right-aligned. */
body.home-page .listing-card-home .home-card-actions-v49.no-route.no-phone {
  grid-template-columns: 48px !important;
  justify-content: end !important;
}

body.home-page .listing-card-home .home-card-actions-v49.has-route.no-phone .btn-route {
  width: 48px !important;
}

@media (hover: none), (pointer: coarse) {
  /* Desktop keeps the existing selectors; touch devices use swipe + dots. */
  body.home-page .listing-card-home .home-gallery-nav {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 540px) {
  body.home-page .listing-card-home .home-card-actions-v49.has-route.has-phone {
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  }
  body.home-page .listing-card-home .home-card-actions-v49.has-route.no-phone {
    grid-template-columns: 46px 46px !important;
  }
  body.home-page .listing-card-home .home-card-actions-v49.no-route.has-phone {
    grid-template-columns: minmax(0, 1fr) 46px !important;
  }
  body.home-page .listing-card-home .home-card-actions-v49.no-route.no-phone {
    grid-template-columns: 46px !important;
  }
  body.home-page .listing-card-home .home-card-actions-v49.has-route.no-phone .btn-route {
    width: 46px !important;
  }
}


/* ============================================================
   MAKON_HOME_BANNER_MEDIA_CONTRACT_V56
   Exact editor-to-home media contract:
   Desktop 1800x600 = 3:1
   Mobile 1080x720 = 3:2
   No crop, no forced zoom, no photo darkening.
   ============================================================ */

/* The creative must keep its original brightness. */
body.home-page .home-premium-backdrop {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

/* Never crop or enlarge the uploaded creative. */
body.home-page .home-premium-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
}

/* Desktop creative: 1800x600 (3:1). */
@media (min-width: 1280px) {
  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide {
    width: 100% !important;
    aspect-ratio: 3 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.home-page .home-premium-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .home-premium-inner {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* Tablet uses the dedicated mobile 1080x720 creative. */
@media (min-width: 768px) and (max-width: 1279px) {
  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.home-page .home-premium-photo {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .home-premium-photo img {
    position: absolute !important;
    inset: 0 !important;
  }

  body.home-page .home-premium-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* Phone creative: exact 1080x720 (3:2) editor composition. */
@media (max-width: 767px) {
  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.home-page .home-premium-photo {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .home-premium-photo img {
    position: absolute !important;
    inset: 0 !important;
  }

  body.home-page .home-premium-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* ============================================================
   MAKON_HOME_BANNER_LAYOUT_V57
   1) Phone/tablet continuation uses the campaign panel palette, never black.
   2) MAKON Partner badge stays inside the information-panel bounds.
   3) Desktop keeps the 3:1 creative unobstructed by the large info panel.
   ============================================================ */

/* Phone + tablet: the area below the 3:2 creative belongs to the campaign
   palette. The old #0d100f slide fallback must never show through here. */
@media (max-width: 1279px) {
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    background: var(--hero-panel, #0b0f0d) !important;
  }
}

/* Phone: the partner ribbon is contained by the same horizontal box as the
   information panel instead of hanging outside the card. */
@media (max-width: 540px) {
  body.home-page .home-premium-partner {
    top: 4px !important;
    right: 14px !important;
    left: auto !important;
    max-width: calc(100% - 28px) !important;
  }
}

/* Large phones + tablets: copy-wrap is min(92%, 720px) and centered. Align
   the partner ribbon to that exact right edge with an inset, so it remains
   inside the panel at every width from 541 through 1279px. */
@media (min-width: 541px) and (max-width: 1279px) {
  body.home-page .home-premium-partner {
    top: 4px !important;
    right: max(calc(4% + 14px), calc(50% - 346px)) !important;
    left: auto !important;
    max-width: min(96px, calc(min(92%, 720px) - 28px)) !important;
  }
}

/* Desktop: the uploaded 1800x600 artwork is the hero. Do not cover it with
   the large campaign information panel. The whole banner remains clickable;
   partner badge and showcase strip stay available. */
@media (min-width: 1280px) {
  body.home-page .home-premium-copy-wrap {
    display: none !important;
  }

  body.home-page .home-premium-inner {
    justify-content: flex-end !important;
  }
}



/* ============================================================
   MAKON V58 — DESKTOP GALLERY BELOW BANNER
   Desktop: move showcase gallery out of the hero image.
   Keep tablet/mobile inline layout.
   Selector stays below the gallery.
   ============================================================ */
body.home-page .home-premium-gallery-zone {
  display: none;
}

body.home-page .home-premium-gallery-shell--external {
  display: none;
}

body.home-page .home-premium-gallery-shell--external.is-empty {
  display: none !important;
}

@media (min-width: 1280px) {
  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide,
  body.home-page .home-premium-inner {
    height: 486px !important;
    min-height: 486px !important;
    max-height: 486px !important;
  }

  body.home-page .home-premium-inner {
    padding: 24px 34px 24px !important;
  }

  body.home-page .home-premium-gallery-shell--inline {
    display: none !important;
  }

  body.home-page .home-premium-gallery-zone {
    display: block !important;
    margin: 14px 0 0 !important;
  }

  body.home-page .home-premium-gallery-shell--external {
    display: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(18, 90, 44, .10) !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(10, 32, 18, .08) !important;
  }

  body.home-page .home-premium-gallery-shell--external.is-active:not(.is-empty) {
    display: block !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery {
    gap: 12px !important;
    padding: 0 2px 2px !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-card {
    min-width: 208px !important;
    width: 208px !important;
    min-height: 90px !important;
    padding: 9px !important;
    gap: 10px !important;
    border: 1px solid rgba(18, 90, 44, .10) !important;
    border-radius: 18px !important;
    background: #f6fbf7 !important;
    box-shadow: none !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-card.is-highlighted {
    border-color: color-mix(in srgb, var(--hero-accent) 72%, #a5d9a9 28%) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--hero-accent) 28%, transparent) !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-media {
    width: 92px !important;
    flex-basis: 92px !important;
    border-radius: 13px !important;
    background: rgba(18, 90, 44, .06) !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-body {
    gap: 4px !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-body small {
    color: #64816a !important;
    font-size: 10px !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-body b {
    color: #14341f !important;
    font-size: 13px !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-body strong {
    color: #204f2d !important;
    font-size: 12px !important;
  }

  body.home-page .home-premium-controls {
    margin-top: 12px !important;
  }

  body.home-page .home-premium-progress {
    margin-top: 8px !important;
  }
}

@media (max-width: 1279px) {
  body.home-page .home-premium-gallery-zone {
    display: none !important;
  }
}

body.dark.home-page .home-premium-gallery-shell--external,
body.dark-theme.home-page .home-premium-gallery-shell--external {
  background: #151c17 !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18) !important;
}

body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-card,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-card {
  background: #1c2520 !important;
  border-color: rgba(255,255,255,.08) !important;
}

body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-body small,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-body small {
  color: rgba(219, 248, 223, .66) !important;
}

body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-body b,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-body b {
  color: #eff8ef !important;
}

body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-body strong,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-body strong {
  color: #cde8d2 !important;
}


/* ============================================================
   MAKON_HOME_BANNER_LAYOUT_V59
   Mobile + tablet continuation must inherit the admin panel palette,
   but the info panel itself must stay visually separated.
   Also lower the floating panel slightly so it touches less of the photo.
   ============================================================ */
@media (max-width: 1279px) {
  /* Cancel the old solid fill under the card. Keep only a palette-based
     continuation surface, not the same flat color as the panel itself. */
  body.home-page .home-premium-slide {
    background:
      linear-gradient(180deg,
        rgba(8, 10, 9, 0) 0%,
        color-mix(in srgb, var(--hero-panel) 10%, transparent) 52%,
        color-mix(in srgb, var(--hero-panel) 54%, #08100b 46%) 100%) !important;
  }

  body.home-page .home-premium-inner {
    background: transparent !important;
  }
}

@media (max-width: 767px) {
  body.home-page .home-premium-backdrop {
    display: block !important;
    opacity: 1 !important;
    background:
      linear-gradient(180deg,
        rgba(8,10,9,0) 0%,
        color-mix(in srgb, var(--hero-panel) 6%, transparent) 58%,
        color-mix(in srgb, var(--hero-panel) 28%, transparent) 76%,
        color-mix(in srgb, var(--hero-panel) 70%, #08100b 30%) 100%) !important;
  }

  body.home-page .home-premium-inner {
    padding: 0 12px 16px !important;
  }

  body.home-page .home-premium-copy-wrap {
    margin-top: -10px !important;
  }

  body.home-page .home-premium-panel {
    background: color-mix(in srgb, var(--hero-panel) var(--hero-panel-opacity, 85%), transparent) !important;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--hero-panel) 24%, transparent) !important;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.home-page .home-premium-backdrop {
    display: block !important;
    opacity: 1 !important;
    background:
      linear-gradient(180deg,
        rgba(8,10,9,0) 0%,
        color-mix(in srgb, var(--hero-panel) 6%, transparent) 60%,
        color-mix(in srgb, var(--hero-panel) 24%, transparent) 76%,
        color-mix(in srgb, var(--hero-panel) 68%, #08100b 32%) 100%) !important;
  }

  body.home-page .home-premium-copy-wrap {
    margin: -18px auto 0 !important;
  }

  body.home-page .home-premium-panel {
    background: color-mix(in srgb, var(--hero-panel) var(--hero-panel-opacity, 85%), transparent) !important;
    box-shadow: 0 18px 36px color-mix(in srgb, var(--hero-panel) 22%, transparent) !important;
  }
}


/* ============================================================
   MAKON_HOME_BANNER_LAYOUT_V60 — FINAL STRUCTURE CONTRACT
   1) Desktop creative is always the authored 1800x600 frame (3:1).
      No fixed pixel height => no black bars / detached photo.
   2) Desktop showcase gallery lives in normal document flow BELOW hero.
      Carousel selector stays below that gallery.
   3) Phone/tablet keep the authored 1080x720 frame (3:2), followed by
      campaign continuation + translucent admin-controlled info panel.
   4) The creative itself is never darkened by a backdrop.
   ============================================================ */

/* The creative remains the exact uploaded artwork on every breakpoint. */
body.home-page .home-premium-backdrop {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

/* ---------- DESKTOP: one fixed 3:1 hero frame, no pixel-height override ---------- */
@media (min-width: 1280px) {
  body.home-page .home-premium-stage,
  body.home-page .home-premium-slide {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 3 / 1 !important;
  }

  body.home-page .home-premium-stage {
    overflow: hidden !important;
  }

  body.home-page .home-premium-slide {
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .home-premium-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .home-premium-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }

  body.home-page .home-premium-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Desktop photo stays clean: no big text panel and no inline gallery. */
  body.home-page .home-premium-copy-wrap,
  body.home-page .home-premium-gallery-shell--inline {
    display: none !important;
  }

  /* Gallery is a true block BELOW the hero, not absolute and not inside it. */
  body.home-page .home-premium-gallery-zone {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.home-page .home-premium-gallery-shell--external {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(18, 90, 44, .10) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(10, 32, 18, .07) !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.home-page .home-premium-gallery-shell--external:not(.is-active),
  body.home-page .home-premium-gallery-shell--external.is-empty {
    display: none !important;
  }

  body.home-page .home-premium-gallery-shell--external.is-active:not(.is-empty) {
    display: block !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    gap: 12px !important;
    padding: 0 2px 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-card {
    flex: 0 0 210px !important;
    width: 210px !important;
    min-width: 210px !important;
    min-height: 88px !important;
    padding: 9px !important;
    gap: 10px !important;
    border-radius: 17px !important;
    border: 1px solid color-mix(in srgb, var(--hero-accent, #79d64d) 32%, rgba(18,90,44,.08)) !important;
    background: color-mix(in srgb, var(--hero-panel, #0b0f0d) 5%, #ffffff 95%) !important;
    box-shadow: none !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-media {
    width: 92px !important;
    flex: 0 0 92px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 12px !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-body small {
    color: #6b7e70 !important;
    font-size: 10px !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-body b {
    color: #17351f !important;
    font-size: 13px !important;
  }

  body.home-page .home-premium-gallery-shell--external .home-premium-gallery-body strong {
    color: #204f2d !important;
    font-size: 12px !important;
  }

  /* Selector belongs after gallery in normal flow. */
  body.home-page .home-premium-controls {
    position: static !important;
    inset: auto !important;
    width: max-content !important;
    margin: 12px auto 0 !important;
    transform: none !important;
  }
}

/* ---------- PHONE + TABLET: authored 3:2 creative, then campaign surface ---------- */
@media (max-width: 1279px) {
  body.home-page .home-premium-stage {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body.home-page .home-premium-stage > .home-premium-slide {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: color-mix(
      in srgb,
      var(--hero-panel, #0b0f0d) var(--hero-panel-opacity, 85%),
      #0b120e
    ) !important;
  }

  body.home-page .home-premium-photo {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  body.home-page .home-premium-photo img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }

  body.home-page .home-premium-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
  }

  body.home-page .home-premium-panel {
    background: color-mix(
      in srgb,
      var(--hero-panel, #0b0f0d) var(--hero-panel-opacity, 85%),
      transparent
    ) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  /* Desktop-only duplicate gallery must never participate here. */
  body.home-page .home-premium-gallery-zone {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.home-page .home-premium-inner {
    padding: 0 12px 16px !important;
  }

  body.home-page .home-premium-copy-wrap {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    margin: -18px 0 0 !important;
  }

  body.home-page .home-premium-partner {
    top: 6px !important;
    right: 14px !important;
    left: auto !important;
  }

  body.home-page .home-premium-gallery-shell--inline {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.home-page .home-premium-inner {
    padding: 0 clamp(16px, 3vw, 28px) 20px !important;
  }

  body.home-page .home-premium-copy-wrap {
    position: relative !important;
    z-index: 3 !important;
    width: min(92%, 720px) !important;
    margin: -22px auto 0 !important;
  }

  body.home-page .home-premium-gallery-shell--inline {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
  }
}

body.dark.home-page .home-premium-gallery-shell--external,
body.dark-theme.home-page .home-premium-gallery-shell--external {
  background: #171c18 !important;
  border-color: rgba(255,255,255,.08) !important;
}

body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-card,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-card {
  background: #202722 !important;
  border-color: rgba(255,255,255,.09) !important;
}

body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-body b,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-body b {
  color: #eff8ef !important;
}

body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-body small,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-body small,
body.dark.home-page .home-premium-gallery-shell--external .home-premium-gallery-body strong,
body.dark-theme.home-page .home-premium-gallery-shell--external .home-premium-gallery-body strong {
  color: #c8d7cb !important;
}

/* MAKON RATING V61 — homepage rating states */
body.home-page .listing-card-home .home-media-rating.is-new {
  min-width: 62px !important;
  background: rgba(30, 35, 31, .64) !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow: 0 7px 16px rgba(0,0,0,.13) !important;
}

body.home-page .listing-card-home .home-media-rating.is-new .home-media-rating-text {
  font-size: 10.5px !important;
  font-weight: 850 !important;
}

body.home-page .listing-card-home .home-media-rating.is-new .home-media-rating-icon,
body.home-page .listing-card-home .home-media-rating.is-new .home-media-rating-fallback {
  opacity: .72;
}


/* ============================================================
   MAKON V77 — HOME MAP PERFORMANCE + LOCATION ONBOARDING
   Final layer: intentionally loaded last in css.css.
   ============================================================ */
.home-location-onboarding[hidden]{display:none!important}
.home-location-onboarding{position:fixed;inset:0;z-index:2147482000;display:grid;place-items:center;padding:20px;background:rgba(12,24,16,.34);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;transition:opacity .18s ease}
.home-location-onboarding.is-open{opacity:1}
.home-location-onboarding__card{width:min(430px,100%);padding:26px;border:1px solid rgba(28,128,59,.13);border-radius:28px;background:rgba(250,253,248,.98);box-shadow:0 28px 90px rgba(21,46,28,.22);color:#17321f;text-align:center}
.home-location-onboarding__mark{width:68px;height:68px;margin:0 auto 14px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#e7f9dc,#f8fff4);box-shadow:inset 0 0 0 1px rgba(40,168,73,.12),0 12px 32px rgba(44,150,70,.12);color:#169a43}
.home-location-onboarding__mark svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.home-location-onboarding__eyebrow{display:block;margin-bottom:7px;color:#15863b;font-size:12px;font-weight:900;letter-spacing:.075em;text-transform:uppercase}
.home-location-onboarding h2{margin:0;color:#17221b;font-size:clamp(25px,6vw,32px);line-height:1.08}
.home-location-onboarding p{margin:11px auto 0;max-width:340px;color:#657168;font-size:14px;line-height:1.5}
.home-location-onboarding__status{position:relative;margin:15px 0 0;padding:11px 12px 11px 38px;border-radius:14px;background:#edf8e8;color:#26703a;font-size:13px;font-weight:750;text-align:left}
.home-location-onboarding.is-loading .home-location-onboarding__status:before{content:"";position:absolute;left:13px;top:50%;width:15px;height:15px;margin-top:-8px;border:2px solid rgba(31,148,65,.2);border-top-color:#1f9441;border-radius:50%;animation:makon-v77-spin .7s linear infinite}
.home-location-onboarding__actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
.home-location-onboarding__actions button{min-height:48px;margin:0!important;padding:0 14px!important;border-radius:15px!important;font:inherit;font-size:14px;font-weight:900;cursor:pointer}
.home-location-onboarding__accept{border:0!important;background:linear-gradient(135deg,#79dd3f,#1ebd58)!important;color:#102315!important;box-shadow:0 12px 28px rgba(38,185,81,.22)}
.home-location-onboarding__skip{border:1px solid rgba(24,56,34,.09)!important;background:#f0f3ef!important;color:#536057!important}
.home-location-onboarding__actions button:disabled{opacity:.58;cursor:wait}
body.home-location-onboarding-open{overflow:hidden!important}
body.dark .home-location-onboarding__card,body.dark-theme .home-location-onboarding__card{background:rgba(24,31,26,.98);border-color:rgba(153,228,62,.15);color:#f1f6f1}
body.dark .home-location-onboarding h2,body.dark-theme .home-location-onboarding h2{color:#f3f7f3}
body.dark .home-location-onboarding p,body.dark-theme .home-location-onboarding p{color:#aab4ac}
body.dark .home-location-onboarding__mark,body.dark-theme .home-location-onboarding__mark{background:#213125;color:#99e43e}
body.dark .home-location-onboarding__status,body.dark-theme .home-location-onboarding__status{background:#203127;color:#a8ed9b}
body.dark .home-location-onboarding__skip,body.dark-theme .home-location-onboarding__skip{background:#2a302b!important;border-color:rgba(255,255,255,.08)!important;color:#d5ddd6!important}

/* Full viewport on Android/PWA: no page-colored bands above or below Leaflet. */
html:has(body.home-map-fullscreen-open),body.home-map-fullscreen-open{width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important;overscroll-behavior:none!important;background:#d9ebef!important}
body.home-page .map-section.map-fullscreen{position:fixed!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;max-width:none!important;height:100vh!important;height:100svh!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;z-index:20000!important;background:#d9ebef!important;contain:layout paint}
body.home-page .map-section.map-fullscreen>h2{display:none!important}
body.home-page .map-section.map-fullscreen #mapView{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;margin:0!important;border:0!important;border-radius:0!important;touch-action:none;overscroll-behavior:none;background:#d9ebef!important}
body.home-page .map-section.map-fullscreen .leaflet-container{width:100%!important;height:100%!important;background:#d9ebef!important;font-family:inherit}
body.home-page .map-section.map-fullscreen .leaflet-pane,body.home-page .map-section.map-fullscreen .leaflet-tile-container{will-change:transform}

.main-map-loading{position:absolute;inset:0;z-index:24000;display:grid;place-items:center;padding:24px;background:rgba(241,248,240,.72);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease}
.main-map-loading.is-visible{opacity:1;visibility:visible;pointer-events:auto}
.main-map-loading__card{display:grid;place-items:center;gap:8px;width:min(290px,calc(100% - 32px));padding:22px;border:1px solid rgba(31,148,65,.12);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 20px 55px rgba(22,50,29,.16);color:#17331f;text-align:center}
.main-map-loading__card strong{font-size:15px}.main-map-loading__card small{color:#708076;font-size:12px;line-height:1.35}
.main-map-loading__spinner{width:34px;height:34px;border:3px solid rgba(31,148,65,.16);border-top-color:#1eaa4d;border-radius:50%;animation:makon-v77-spin .72s linear infinite}
body.dark .main-map-loading,body.dark-theme .main-map-loading{background:rgba(12,18,14,.66)}
body.dark .main-map-loading__card,body.dark-theme .main-map-loading__card{background:rgba(27,34,29,.96);border-color:rgba(153,228,62,.13);color:#eff6f0}
body.dark .main-map-loading__card small,body.dark-theme .main-map-loading__card small{color:#aab6ad}
@keyframes makon-v77-spin{to{transform:rotate(360deg)}}

/* Cleaner bottom controls and zoom controls. */
body.home-page .map-section.map-fullscreen .map-controls{bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;width:min(590px,calc(100% - 24px))!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:7px!important;border:1px solid rgba(18,54,29,.09)!important;border-radius:20px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 16px 45px rgba(17,44,25,.16)!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important}
body.home-page .map-section.map-fullscreen .map-controls .btn-primary{min-height:48px!important;margin:0!important;border:0!important;border-radius:14px!important;background:#f1f6ef!important;color:#234c30!important;box-shadow:none!important;font-size:13px!important;font-weight:900!important}
body.home-page .map-section.map-fullscreen .map-controls #buildRouteBtn{background:linear-gradient(135deg,#79dd3f,#1fbd57)!important;color:#102415!important}
body.home-page .map-section.map-fullscreen .leaflet-control-zoom{margin:0!important;border:1px solid rgba(22,54,30,.12)!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 10px 30px rgba(18,44,25,.13)!important}
body.home-page .map-section.map-fullscreen .leaflet-control-zoom a{width:39px!important;height:39px!important;line-height:39px!important;border:0!important;border-bottom:1px solid rgba(20,50,28,.08)!important;background:rgba(255,255,255,.96)!important;color:#183822!important;font-weight:600!important}
body.home-page .map-section.map-fullscreen .leaflet-control-zoom a:last-child{border-bottom:0!important}
body.dark.home-page .map-section.map-fullscreen .map-controls,body.dark-theme.home-page .map-section.map-fullscreen .map-controls{background:rgba(27,32,28,.94)!important;border-color:rgba(255,255,255,.08)!important}
body.dark.home-page .map-section.map-fullscreen .map-controls .btn-primary,body.dark-theme.home-page .map-section.map-fullscreen .map-controls .btn-primary{background:#252c27!important;color:#e5ece6!important}
body.dark.home-page .map-section.map-fullscreen .map-controls #buildRouteBtn,body.dark-theme.home-page .map-section.map-fullscreen .map-controls #buildRouteBtn{background:linear-gradient(135deg,#7bd946,#25b855)!important;color:#102415!important}

@media(max-width:760px),(pointer:coarse){
  body.home-page .map-section.map-fullscreen .leaflet-zoom-animated{transition:none!important}
  body.home-page .map-section.map-fullscreen .map-company-marker{filter:none!important}
  body.home-page .map-section.map-fullscreen .map-company-photo{box-shadow:0 5px 13px rgba(18,44,25,.18)!important}
}
@media(max-width:600px){
  .home-location-onboarding{padding:12px;align-items:end}
  .home-location-onboarding__card{padding:22px 18px calc(18px + env(safe-area-inset-bottom,0px));border-radius:26px 26px 20px 20px}
  .home-location-onboarding__actions{grid-template-columns:1fr}
  .home-location-onboarding__accept{order:0}.home-location-onboarding__skip{order:1}
  body.home-page .map-section.map-fullscreen .map-controls{bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;width:calc(100% - 20px)!important;padding:6px!important;border-radius:18px!important}
  body.home-page .map-section.map-fullscreen .map-controls .btn-primary{min-height:46px!important;font-size:11.5px!important;padding:0 7px!important;line-height:1.15!important}
  body.home-page .map-section.map-fullscreen .leaflet-bottom.leaflet-right{bottom:198px!important;right:10px!important}
  .main-map-route-modes{width:calc(100% - 20px)!important}
}
@media(prefers-reduced-motion:reduce){.home-location-onboarding,.main-map-loading{transition:none!important}.main-map-loading__spinner,.home-location-onboarding.is-loading .home-location-onboarding__status:before{animation-duration:1.3s}}

/* V77 map loader never traps the user. */
body.home-page .map-section.map-fullscreen .main-map-close-btn{z-index:25010!important}


/* ============================================================
   MAKON V89 — COMPACT MAP PROFILE MARKERS
   Small round profile, real triangular pointer, listing name only.
   ============================================================ */
.makon-map-photo-marker{
  background:transparent!important;
  border:0!important;
  overflow:visible!important;
}
.makon-map-photo-marker .map-company-marker{
  position:relative!important;
  display:block!important;
  width:40px!important;
  height:48px!important;
  overflow:visible!important;
  filter:drop-shadow(0 6px 12px rgba(15,23,42,.16));
}
.makon-map-photo-marker .map-company-photo{
  position:absolute!important;
  left:50%!important;
  top:1px!important;
  width:36px!important;
  height:36px!important;
  transform:translateX(-50%)!important;
  box-sizing:border-box!important;
  padding:2px!important;
  border:2px solid #fff!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 0 0 2px rgba(47,158,68,.78),0 5px 12px rgba(15,23,42,.18)!important;
  overflow:hidden!important;
  z-index:3!important;
}
.makon-map-photo-marker .map-company-photo img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
.makon-map-photo-marker .map-company-tip{
  position:absolute!important;
  left:50%!important;
  top:35px!important;
  width:0!important;
  height:0!important;
  transform:translateX(-50%)!important;
  border-left:7px solid transparent!important;
  border-right:7px solid transparent!important;
  border-top:11px solid #fff!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  z-index:1!important;
}
.makon-map-photo-marker .map-company-tip::after{
  content:""!important;
  position:absolute!important;
  left:-5px!important;
  top:-11px!important;
  width:0!important;
  height:0!important;
  border-left:5px solid transparent!important;
  border-right:5px solid transparent!important;
  border-top:8px solid #2f9e44!important;
}
.makon-map-photo-marker .map-company-name{
  position:absolute!important;
  left:37px!important;
  top:7px!important;
  z-index:5!important;
  max-width:112px!important;
  padding:4px 7px!important;
  border:1px solid rgba(19,63,31,.10)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 4px 12px rgba(15,23,42,.11)!important;
  color:#17301e!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  pointer-events:none!important;
}
.makon-map-photo-marker.selected .map-company-marker{
  width:46px!important;
  height:54px!important;
}
.makon-map-photo-marker.selected .map-company-photo{
  width:42px!important;
  height:42px!important;
  box-shadow:0 0 0 3px rgba(137,216,63,.80),0 7px 16px rgba(15,23,42,.20)!important;
}
.makon-map-photo-marker.selected .map-company-tip{
  top:41px!important;
}
.makon-map-photo-marker.selected .map-company-tip::after{
  border-top-color:#78c83f!important;
}
.makon-map-photo-marker.selected .map-company-name{
  left:43px!important;
  top:9px!important;
}
body.dark .makon-map-photo-marker .map-company-name,
body.dark-theme .makon-map-photo-marker .map-company-name{
  background:rgba(23,29,25,.95)!important;
  border-color:rgba(255,255,255,.08)!important;
  color:#edf5ef!important;
}
@media(max-width:640px){
  .makon-map-photo-marker .map-company-name{
    max-width:96px!important;
    padding:3px 6px!important;
    font-size:9.5px!important;
  }
}

/* ============================================================
   MAKON PWA PHASE 1 — dedicated Business / Courier auth surfaces
   Backend/auth logic stays shared; only product shell is separated.
   ============================================================ */
.role-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(18, 93, 45, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 30px rgba(18, 55, 28, .07);
  backdrop-filter: blur(14px);
}

.role-app-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #9be84c, #20b957);
  color: #12351d;
  font-size: 20px;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(31, 185, 87, .20);
}

.role-app-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.role-app-brand-copy strong {
  color: #17251b;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .02em;
}

.role-app-brand-copy small {
  color: #5f7265;
  font-size: 11px;
  font-weight: 850;
}

.role-register-page-courier {
  background:
    radial-gradient(circle at 14% 12%, rgba(31, 192, 155, .18), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(16, 118, 110, .16), transparent 28%),
    linear-gradient(135deg, #f7fbf9, #edf6f2);
}

.role-register-page-courier .role-register-badge {
  color: #9af1d2;
}

.role-register-page-courier .role-app-brand-mark,
.role-register-page-courier #roleAuthLogin:checked ~ .role-auth-tabs label[for="roleAuthLogin"],
.role-register-page-courier #roleAuthRegister:checked ~ .role-auth-tabs label[for="roleAuthRegister"] {
  background: linear-gradient(135deg, #7be6bf, #0f9c83);
  color: #0c2d26;
}

.role-register-page-courier .role-auth-heading span {
  background: rgba(15, 118, 110, .11);
  color: #0f766e;
}

.role-register-page-courier .role-auth-panel input:focus {
  border-color: rgba(15, 118, 110, .64);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.role-auth-status {
  min-height: 18px;
  margin: 2px 0 0;
  color: #4f6355;
  font-size: 12px;
  line-height: 1.45;
}

.role-auth-status.is-error {
  color: #b42318;
}

@media (max-width: 820px) {
  .role-register-shell {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .role-register-hero h1 {
    font-size: clamp(34px, 10vw, 58px);
  }
}

@media (max-width: 560px) {
  .role-app-brand {
    margin-bottom: 16px;
  }

  .role-app-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}


/* MAKON v175 — client bottom navigation has five actions:
   Home / Favorites / Scanner / Overview / Profile.
   Explicit class avoids changing Business and Courier navigation. */
@media (max-width: 1024px) {
  .mobile-nav.client-mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .mobile-nav.client-mobile-nav > a {
    min-width: 0 !important;
  }
}
@media (max-width: 899px) {
  body.home-page .mobile-nav.client-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* MAKON V191 — final five-action public mobile dock override. */
@media (max-width: 920px) {
  .mobile-nav.makon-bottom-nav,
  .mobile-nav.client-mobile-nav,
  .mobile-nav.events-mobile-nav,
  .mobile-nav.detail-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .mobile-nav.makon-bottom-nav > a,
  .mobile-nav.client-mobile-nav > a,
  .mobile-nav.events-mobile-nav > a,
  .mobile-nav.detail-mobile-nav > a {
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
/* Password reset and commission state controls */
.auth-link-button { border: 0; background: transparent; color: #168b45; cursor: pointer; padding: .55rem 0; font: inherit; }
.auth-link-button:hover { text-decoration: underline; }
.role-auth-forgot-panel:not([hidden]) { display: block; }
.admin-password-section { grid-column: 1 / -1; display: grid; gap: .55rem; padding: 1rem; border: 1px solid rgba(25, 135, 84, .2); border-radius: 1rem; background: rgba(25, 135, 84, .04); }
.admin-password-control { display: flex; gap: .5rem; align-items: center; }
.admin-password-control input { flex: 1; min-width: 0; }
.admin-password-toggle { border: 1px solid rgba(25, 135, 84, .3); border-radius: .7rem; background: #fff; color: #168b45; padding: .65rem .8rem; cursor: pointer; }
.business-commission-disabled-state { margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid rgba(120, 180, 120, .35); border-radius: 1rem; background: rgba(220, 250, 220, .55); color: #245c35; }
