@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url("/static/fonts/assistant/assistant-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url("/static/fonts/assistant/assistant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url("/static/fonts/assistant/assistant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8fafc;
  --primary: #0f172a;
  --secondary: #d4af37;
  --link-color: #a18321;
  --accent: var(--secondary);
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --ring: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

html.scroll-smooth {
  scroll-behavior: smooth;
}

html.dark {
  --bg: #0f172a;
  --card: #0b1221;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 42px 120px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Assistant", "Segoe UI", "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--link-color);
  text-decoration: none;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 18px 12px;
}

.admin-body .container {
  max-width: 1440px;
}

main.container {
  padding-top: 6px;
  padding-bottom: 28px;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  width: 100%;
}

html.dark .site-header {
  background: rgba(15, 23, 42, 0.86);
  border-bottom-color: var(--border);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-left {
  gap: 16px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: none;
  min-width: 220px;
  max-width: 360px;
  flex: 1;
}

html.dark .search-form {
  background: rgba(255, 255, 255, 0.06);
}

.search-form input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  background: transparent;
  color: inherit;
}

.search-form button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.55);
}

html.dark .search-form button {
  color: rgba(241, 245, 249, 0.7);
}

.header-cta {
  padding: 10px 18px;
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.26);
}

.nav-links {
  display: flex;
  gap: 16px;
  font-weight: 700;
  align-items: center;
  min-width: 0;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: inherit;
}

.nav-links a:hover {
  background: rgba(212, 175, 55, 0.12);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(212, 175, 55, 0.22);
  flex: 0 0 auto;
}

.brand-text {
  font-size: 22px;
  font-weight: 900;
  color: inherit;
}

.brand-accent {
  color: var(--secondary);
  margin-inline-start: 2px;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text);
}

.brand:hover .brand-accent,
.brand:focus-visible .brand-accent {
  color: var(--secondary);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

html.dark .icon-btn {
  background: rgba(255, 255, 255, 0.06);
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.12);
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: inline;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}

.home-hero-search input[type="text"] {
  background-clip: padding-box;
}

html.dark .home-hero-search input[type="text"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(241, 245, 249, 0.96);
}

html.dark .home-hero-search input[type="text"]::placeholder {
  color: rgba(241, 245, 249, 0.78);
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-inline: calc(50% - 50vw);
}

.hero {
  margin: 16px 0 14px;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-split {
  display: block;
}

.hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h2.hero-title {
  margin: 4px 0 10px;
  font-size: 30px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.home-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0 120px;
  margin-top: -6px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at 18% 20%, rgba(212, 175, 55, 0.35), transparent 45%),
    radial-gradient(circle at 78% 80%, rgba(56, 189, 248, 0.25), transparent 45%);
}

.home-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
  text-align: center;
}

.home-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.home-hero p {
  margin: 0 auto 22px;
  max-width: 70ch;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.92);
}

.home-hero__searchbox {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.24);
}

.home-hero-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.home-hero-search input[type="text"] {
  flex: 1 1 auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(241, 245, 249, 0.96);
}

.home-hero-search input[type="text"]::placeholder {
  color: rgba(241, 245, 249, 0.78);
}

.home-hero-search input[type="text"]:focus-visible {
  box-shadow: var(--ring);
}

.home-hero-search .btn {
  padding: 14px 22px;
  font-size: 16px;
}

.home-main {
  position: relative;
  z-index: 2;
  margin-top: -86px;
}

.home-main .calc-card {
  margin-top: 0;
}

@media (max-width: 640px) {
  .home-hero {
    padding: 84px 0 112px;
    min-height: 520px;
  }
  .home-hero-search {
    flex-direction: column;
    align-items: stretch;
  }
  .home-hero-search .btn {
    width: 100%;
  }
  .home-main {
    margin-top: -72px;
  }
}

.brand-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
  font-size: 28px;
  background: #0f0f11;
  padding: 6px 10px;
  border-radius: 12px;
}

.brand-line.primary {
  color: var(--text);
}

.brand-line.accent {
  color: var(--secondary);
}

.search-panel {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(15, 23, 42, 0.05));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  width: 100%;
}

.search-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-form-large {
  max-width: 100%;
  width: 100%;
  padding: 16px 16px;
}

.search-form-large input {
  font-size: 16px;
  font-weight: 600;
}

.search-form-large button svg {
  width: 22px;
  height: 22px;
}

.search-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(212, 175, 55, 0.6);
  border-radius: 12px;
  padding: 10px 12px;
}

.search-cta .badge {
  background: var(--secondary);
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.hero-right {
  display: grid;
  gap: 12px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card.round {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  max-width: 200px;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 12px;
  }
  .stat-card.round {
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    aspect-ratio: auto;
    padding: 18px;
    text-align: start;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .stat-card {
    width: 100%;
  }
  .stat-card h4 {
    font-size: 1.05rem;
  }
  .stat-card p {
    font-size: 0.98rem;
  }
  .stat-icon {
    font-size: 30px;
    width: 56px;
    height: 56px;
  }
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.14), transparent 45%);
}

.stat-card h4 {
  margin-top: 0;
}

.stat-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.08);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: var(--card);
}

.calc-card {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.calc-highlight {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  min-width: 200px;
}

.calc-total-label {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.calc-total {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: stretch;
}

.calc-controls {
  display: grid;
  gap: 10px;
}

.calc-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.calc-controls input,
.calc-controls select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.range-value {
  font-size: 13px;
  color: var(--muted);
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.calc-chart {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

html.dark .calc-chart {
  background: rgba(15, 23, 42, 0.55);
}

.calc-chart::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.18), transparent 65%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.calc-chart::after {
  content: "";
  position: absolute;
  inset: auto -5% -30% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.16), transparent 70%);
  transform: rotate(14deg);
  pointer-events: none;
}

.chart-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-inline-end: 4px;
}

.legend-dot.labor { background: linear-gradient(90deg, var(--text), rgba(15, 23, 42, 0.5)); }
.legend-dot.materials { background: linear-gradient(90deg, var(--secondary), #f3e0a8); }
.legend-dot.extras { background: linear-gradient(90deg, #7c8cff, #b2c2ff); }

.calc-visual {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 1;
}

.calc-donut-wrap {
  width: 160px;
  height: 160px;
  position: relative;
}

.calc-donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--text) 0deg 120deg, var(--secondary) 120deg 240deg, #7c8cff 240deg 360deg);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.calc-donut-hole {
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.calc-donut-total {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.calc-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-soft {
  background: rgba(212, 175, 55, 0.14);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
}

.chart-bars {
  display: grid;
  gap: 10px;
}

.chart-bar {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  overflow: hidden;
  height: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.chart-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.chart-bar.labor .chart-fill { background: linear-gradient(90deg, var(--text), rgba(15, 23, 42, 0.65)); }
.chart-bar.materials .chart-fill { background: linear-gradient(90deg, var(--secondary), #f3e0a8); }
.chart-bar.extras .chart-fill { background: linear-gradient(90deg, #7c8cff, #a5b5ff); }

.chart-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.chart-values div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

@media (max-width: 980px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 22px 0 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 0 0 8px;
}
.list-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  align-items: stretch;
}
.media-left {
  position: relative;
}
.image-link {
  display: block;
  position: relative;
}
.media-object {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
}
.category-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(12, 104, 181, 0.9);
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  box-shadow: var(--shadow);
}
.media-heading {
  margin: 0 0 8px;
}
.entry-excerpt p {
  margin: 0 0 8px;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.add-read-more .read-more {
  font-weight: 700;
  color: var(--primary);
}
.home-articles .media-body {
  display: grid;
  gap: 8px;
  align-content: center;
}
.animate {
  opacity: 1;
  transform: none;
}
.js .animate {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}
.js .animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.no-js .animate {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.cat-swiper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 36px 4px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}
.cat-swiper-ready .cat-swiper {
  overflow-x: hidden;
}
.cat-swiper-wrap {
  position: relative;
  padding: 0 32px;
}
.cat-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.cat-nav.prev { right: 4px; }
.cat-nav.next { left: 4px; }
.cat-swiper-ready .cat-nav {
  display: flex;
}
.cat-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(15, 23, 42, 0.05));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  min-width: 220px;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.cat-slide:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cat-slide a {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.cat-slide p {
  margin: 6px 0 0;
  color: var(--muted);
}
.article-card-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: rgba(15, 23, 42, 0.03);
}

.article-hero {
  margin: 10px 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.article-hero img {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
}

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

.tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.14);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  margin: 2px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--secondary);
  color: #0f172a;
  border: 1px solid rgba(212, 175, 55, 0.45);
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #0f172a;
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
  color: #0f172a;
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

html.dark .btn.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.btn.secondary:hover,
.btn.secondary:active {
  color: var(--text);
}

.btn.danger {
  background: #c62828;
  color: #fff;
  border-color: rgba(198, 40, 40, 0.6);
  box-shadow: 0 18px 40px rgba(198, 40, 40, 0.18);
}

.btn.danger:hover,
.btn.danger:active {
  color: #fff;
}

.lead-btn {
  font-size: 18px;
}

.content {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 24px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.content a:not(.btn):not(.tag) {
  color: var(--link-color);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a:not(.btn):not(.tag):hover {
  text-decoration-thickness: 2px;
}

.content img {
  max-width: 100%;
  border-radius: 12px;
}
.content iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(212, 175, 55, 0.08);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: left;
  font-weight: 900;
  color: var(--secondary);
}
.faq-item[open] {
  background: rgba(212, 175, 55, 0.14);
}
.faq-item[open] summary::after {
  content: "–";
}

.faq-item > .muted {
  font-size: 16px;
  color: #03080e;
  line-height: 1.7;
  margin-top: 8px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.content td,
.content th {
  word-break: break-word;
  padding: 4px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  display: table;
  overflow-x: visible;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.price-table th,
.price-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  vertical-align: top;
}

.price-table th:last-child,
.price-table td:last-child {
  border-left: 0;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table thead th {
  background: rgba(212, 175, 55, 0.12);
  font-weight: 800;
}

.price-table tbody tr:nth-child(even) td {
  background: rgba(212, 175, 55, 0.05);
}

@media (max-width: 720px) {
  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table th,
  .price-table td,
  .price-table tr {
    display: block;
    width: 100%;
  }

  .price-table thead {
    display: none;
  }

  .price-table tr {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .price-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: transparent !important;
  }

  .price-table td:last-child {
    border-bottom: 0;
  }

.price-table td::before {
  content: attr(data-label);
  font-weight: 800;
  color: var(--muted);
  flex: 0 0 46%;
}
}

.hp-field {
  position: absolute !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.aside-thumb img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.two-col > * {
  min-width: 0;
}

.breadcrumbs {
  overflow-wrap: anywhere;
}

.content {
  overflow-wrap: break-word;
  word-break: break-word;
}

.content h1 {
  /* Avoid relying on deprecated UA sizing for <h1> inside <section>/<article> (Chrome: H1UserAgentFontSizeInSection). */
  font-size: 1.5em;
}

.content a,
.content p,
.content li,
.content h1,
.content h2,
.content h3,
.content h4,
.content blockquote {
  overflow-wrap: anywhere;
}

.content pre,
.content code {
  max-width: 100%;
}

.content pre {
  overflow-x: auto;
}

.admin-body textarea[name="faq_answer"] {
  min-height: 74px;
  resize: vertical;
}

.sticky-lead {
  position: sticky;
  top: 80px;
}

.biz-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.biz-thumb {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
  width: 100%;
}

.biz-title-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.biz-mobile-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.biz-mobile-cta .btn {
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: none;
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.biz-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}

.biz-headings h1 {
  margin: 0;
}

.biz-thumb h1 {
  margin: 0;
  max-width: 100%;
}

.biz-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.biz-title-row > div:not(.biz-thumb) {
  width: 100%;
}

@media (max-width: 720px) {
  .biz-thumb h1 {
    font-size: 22px;
    line-height: 1.25;
  }
}

.pill {
  background: rgba(212, 175, 55, 0.14);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-weight: 800;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px) {
  /* Admin tables: prefer horizontal scroll over squeezing columns */
  .admin-shell .content {
    max-width: 100%;
  }
  .admin-shell .table-scroll {
    max-width: 100%;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }
  .admin-shell .table-scroll > table.table {
    display: inline-table;
    width: max-content;
    min-width: 860px;
  }
  .admin-shell .table td,
  .admin-shell .table th {
    word-break: normal;
    overflow-wrap: normal;
    padding: 10px 12px;
  }
}

.admin-shell {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: calc(100vh - 180px);
  position: relative;
}

.admin-mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.admin-nav-toggle {
  margin: 0;
}

.admin-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 6, 23, 0.46);
  cursor: pointer;
  z-index: 160;
}

.admin-nav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 240px;
}

.admin-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
}

.admin-nav a:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateX(-2px);
}

.admin-nav a.logout {
  margin-top: 4px;
  background: #fbe2e2;
  color: #8b1a1a;
  border-color: #f5c4c4;
}

.admin-main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 0;
}

@media (max-width: 960px) {
  .admin-shell {
    display: block;
  }
  .admin-mobile-topbar {
    display: flex;
  }
  .admin-nav-backdrop {
    display: block;
  }
  .admin-nav-backdrop[hidden] {
    display: none;
  }
  .admin-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 320px);
    max-width: 320px;
    height: 100dvh;
    overflow-y: auto;
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--border);
    border-right: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 170;
    top: 0;
  }
  .admin-shell.admin-nav-open .admin-nav {
    transform: translateX(0);
  }
  .admin-main {
    width: 100%;
    padding: 12px;
  }
  body.admin-nav-open {
    overflow: hidden;
  }
  .admin-main .content,
  .admin-main form,
  .admin-main .form-grid,
  .admin-main .form-group {
    max-width: 100%;
    min-width: 0;
  }
  .admin-main .form-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-main input[type="text"],
  .admin-main input[type="email"],
  .admin-main input[type="tel"],
  .admin-main input[type="number"],
  .admin-main input[type="datetime-local"],
  .admin-main textarea,
  .admin-main select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .admin-main textarea {
    overflow-wrap: anywhere;
  }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-view {
  margin-top: 12px;
}

.media-view[hidden] {
  display: none !important;
}

.media-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fbff;
}

.media-view-toggle .media-view-toggle__btn {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.media-view-toggle .media-view-toggle__btn.is-active {
  background: var(--secondary);
  color: #0f172a;
  border-color: rgba(212, 175, 55, 0.55);
}

.media-table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.media-table {
  margin-top: 0;
  min-width: 980px;
}

.media-table thead th {
  background: #f8fafc;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 700;
}

.media-table td {
  vertical-align: top;
}

.media-table-thumb {
  display: inline-flex;
  width: 76px;
  height: 52px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fbff;
}

.media-table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-file-name {
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.media-file-meta {
  margin-top: 4px;
  font-size: 12px;
}

.media-url-input {
  width: 100%;
  min-width: 240px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
  font-size: 12px;
  color: #475569;
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.media-action-btn {
  margin-top: 0 !important;
  padding: 7px 10px;
  font-size: 12px;
}

#media-copy-status {
  min-height: 18px;
}

.media-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.media-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fbff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 140px;
}

.media-thumb img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.media-meta {
  display: grid;
  gap: 4px;
}

/* ---------------- Chatbot widget (public) ---------------- */
:root{
  --chatbot-brand:#124a72;
  --chatbot-shadow: 0 16px 44px rgba(0,0,0,.16);
  --chatbot-kb-offset: 0px;
  --chatbot-vv-height: 100vh;
  --chatbot-fab-offset: 84px;
  --chatbot-ui-offset: 0px;
}

#chatbot-root{
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--chatbot-kb-offset, 0px) + var(--chatbot-ui-offset, 0px));
  z-index: 2147483646;
}

#chatbot-root:not(.chatbot-ready){
  display: none;
}

#chatbot-fab{
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 18px;
  background: var(--chatbot-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--chatbot-shadow);
  cursor: pointer;
}

#chatbot-fab svg{
  width: 26px;
  height: 26px;
  fill: #fff;
}

#chatbot-fab .chatbot-fab-img{
  display: none;
  max-width: 95px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

#chatbot-fab.chatbot-fab--img{
  width: auto;
  height: auto;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
}

#chatbot-fab.chatbot-fab--img-ready svg{
  display: none;
}

#chatbot-fab.chatbot-fab--img-ready .chatbot-fab-img{
  display: block;
  filter: drop-shadow(0 16px 44px rgba(0,0,0,.16));
}

#chatbot-fab.chatbot-fab--img-ready{
  background: transparent !important;
  box-shadow: none;
}

#chatbot-panel{
  position: fixed;
  left: 16px;
  bottom: calc(var(--chatbot-fab-offset, 84px) + env(safe-area-inset-bottom, 0px) + var(--chatbot-kb-offset, 0px) + var(--chatbot-ui-offset, 0px));
  width: min(380px, calc(100vw - 32px));
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
  max-height: calc(var(--chatbot-vv-height, 100vh) - 120px);
}

html.dark #chatbot-panel{
  background: rgba(11,18,33,.98);
  border-color: rgba(148,163,184,.18);
}

#chatbot-panel[aria-hidden="true"]{
  display: none;
}

.chatbot-hd{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

html.dark .chatbot-hd{
  border-bottom-color: rgba(148,163,184,.14);
}

.chatbot-title{
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.chatbot-hd-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chatbot-subtitle{
  font-size: 13px;
  line-height: 1.4;
  color: #1f1f1f;
}

html.dark .chatbot-subtitle{
  color: #fff;
  opacity: .88;
}

.chatbot-close{
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 14px;
  background: rgba(0,0,0,.06);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 36px;
}

html.dark .chatbot-close{
  background: rgba(148,163,184,.12);
}

.chatbot-messages{
  flex: 1 1 auto;
  min-height: 160px;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chatbot-msg{
  display: flex;
}
.chatbot-msg--assistant{
  justify-content: flex-start;
}
.chatbot-msg--user{
  justify-content: flex-end;
}

.chatbot-bubble{
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.chatbot-bubble a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chatbot-msg--user .chatbot-bubble a{
  color: #fff;
}

html.dark .chatbot-bubble{
  background: rgba(15,23,42,.55);
  border-color: rgba(148,163,184,.18);
}

.chatbot-msg--user .chatbot-bubble{
  background: var(--chatbot-brand);
  border-color: rgba(0,0,0,0);
  color: #fff;
}

.chatbot-bubble--typing{
  opacity: .8;
}

.chatbot-form{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

html.dark .chatbot-form{
  border-top-color: rgba(148,163,184,.14);
}

.chatbot-input-row{
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

#chatbot-input{
  flex: 1 1 auto;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
}

.chatbot-hint{
  margin-top: 6px;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 480px){
  #chatbot-panel{
    width: min(360px, calc(100vw - 24px));
  }
}

.media-meta input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  font-family: inherit;
  font-size: 12px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7fbff;
  font-size: 14px;
}

.chip--removable {
  justify-content: space-between;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.chip--removable:hover {
  color: var(--text);
  text-decoration: none;
  border-color: rgba(107, 169, 251, 0.42);
  background: #eef5ff;
  transform: translateY(-1px);
}

html.dark .chip--removable,
html.dark .chip--removable:hover {
  color: var(--primary);
}

.chip__label {
  min-width: 0;
}

.chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(71, 100, 130, 0.12);
  color: #476482;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 18px;
}

.chip input {
  margin: 0;
}

.code-block {
  background: #0f1b2c;
  color: #e2f1ff;
  border-radius: 10px;
  border: 1px solid #1f3550;
  padding: 12px;
  margin: 10px 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  font-family: "Source Code Pro", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.code-block code {
  color: inherit;
  white-space: pre;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

form a:not(.btn):not(.tag),
.form-grid a:not(.btn):not(.tag),
.form-group a:not(.btn):not(.tag) {
  font-weight: 400;
}

/* Consent links inside <label> (e.g. privacy policy) should look like links. */
a[data-stop-label-toggle]{
  color: #0d5bd1;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a[data-stop-label-toggle]:hover{
  color: #0d5bd1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
html.dark a[data-stop-label-toggle]{
  color: #6ea8ff;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  font-family: inherit;
  color: var(--text);
}

html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark input[type="number"],
html.dark input[type="datetime-local"],
html.dark textarea,
html.dark select {
  background: rgba(255, 255, 255, 0.06);
}
input[type="tel"] {
  direction: rtl;
  text-align: right;
}

textarea {
  min-height: 120px;
}

/* Lead forms: keep the optional notes field compact (default textarea min-height is for long content). */
form[action="/lead"] textarea[name="message"] {
  min-height: 96px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.alert {
  padding: 12px 14px;
  background: rgba(212, 175, 55, 0.14);
  border-radius: 10px;
  color: var(--text);
  border: 1px solid var(--border);
}

.alert--error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

.inline-alert {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  max-width: 560px;
  width: calc(100% - 24px);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 17, 0.92);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.28);
}

.toast--error {
  border-color: rgba(220, 38, 38, 0.32);
}

#cn-toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 2147483644;
  pointer-events: none;
}

#cn-toast .cn-box {
  pointer-events: auto;
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  background: rgba(250, 250, 250, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  padding: 11px 14px 11px 46px;
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

#cn-toast.cn-toast--show .cn-box {
  opacity: 1;
  transform: translateY(0);
}

#cn-toast .cn-msg {
  font-size: 13px;
  line-height: 1.4;
  color: #1f1f1f;
}

#cn-toast .cn-tail {
  margin-right: 6px;
}

#cn-toast .cn-a {
  color: #0d5bd1;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

#cn-toast .cn-x {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.055);
  color: #101010;
  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
}

#cn-toast .cn-x:hover {
  background: rgba(0, 0, 0, 0.09);
}

html.dark #cn-toast .cn-box {
  background: rgba(15, 15, 17, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark #cn-toast .cn-msg {
  color: #fff;
}

html.dark #cn-toast .cn-x {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html.dark #cn-toast .cn-x:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 520px) {
  :root{
    /* Keep the chatbot FAB at the same bottom level on mobile so the cookie toast can overlay it. */
    --chatbot-ui-offset: 0px;
  }
  #cn-toast{
    /* Ensure the cookie consent toast stays above the chatbot on mobile. */
    z-index: 2147483647;
  }
  #cn-toast .cn-box {
    padding: 10px 12px 10px 42px;
  }
  #cn-toast .cn-msg {
    font-size: 12.6px;
  }
  #cn-toast .cn-a {
    white-space: normal;
  }
}

.site-popup {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 78px);
  left: 50%;
  z-index: 9999;
  width: min(640px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid var(--secondary);
  background: #fff;
  color: #111;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  display: grid;
  gap: 6px;
}

.site-popup--show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.site-popup__close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.site-popup__close:hover {
  background: rgba(212, 175, 55, 0.14);
}

.site-popup__label {
  font-size: 14px;
  color: var(--muted);
  padding-left: 40px;
}

.site-popup__title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  padding-left: 40px;
}

.site-popup__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding-left: 40px;
}

@media (max-width: 720px) {
  .site-popup {
    top: calc(env(safe-area-inset-top) + 124px);
    width: calc(100% - 24px);
  }
}

.site-popup .btn.secondary {
  background: var(--secondary);
  color: #111;
  border: 1px solid #e6c200;
  box-shadow: 0 10px 22px rgba(26, 26, 26, 0.14);
  font-weight: 800;
}

.site-popup .btn.secondary:hover {
  background: #ffde33;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-popup .btn.secondary:active {
  transform: translateY(0);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 8px;
  row-gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.06);
}

.captcha-box label {
  max-width: 100%;
}

.captcha-box span {
  overflow-wrap: anywhere;
}

.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 30px 0 0;
  margin-top: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.footer-title {
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 10px;
  line-height: 1.2;
}

.footer-subtitle {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 10px;
  line-height: 1.2;
}

.footer a {
  color: #e2e8f0;
  font-weight: 400;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a {
  line-height: 1.7;
}

.footer .muted {
  color: rgba(226, 232, 240, 0.8);
}

.footer-nav {
  display: block;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

.footer-legal {
  margin-top: 18px;
  background: #0b1220;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.footer-legal .container {
  padding-top: 10px;
  padding-bottom: 10px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.92rem;
  text-align: center;
}

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

.breadcrumbs {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a {
  color: #48442e;
}

.breadcrumbs .active {
  font-weight: 700;
  color: var(--text);
}

.popular-searches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.modal-open {
  overflow: hidden;
}

.filters-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: min(760px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(15, 23, 42, 0.04));
}

.modal-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  color: var(--text);
}

.modal-body {
  padding: 12px 14px 14px;
}

.ps-rows {
  display: grid;
  gap: 10px;
}

.ps-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 10px;
  align-items: center;
}

.ps-row input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .ps-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .modal-actions {
    justify-content: stretch;
    flex-direction: column;
  }
}

.crumb-sep {
  margin: 0 6px;
  color: var(--muted);
}

.filters-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}
.results-panel {
  grid-column: 2;
}
.results-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.results-count {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}

.filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  z-index: 2;
}

.filter-group {
  margin-top: 10px;
}

.filter-options {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-heading {
  padding: 4px 2px 0;
}
.filter-heading .pill {
  display: inline-block;
}

.filter-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
}

.filter-link.active {
  border-color: var(--primary);
  background: #e8f2ff;
}

.filter-link__text {
  flex: 1 1 auto;
  min-width: 0;
}

.filter-link__check {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 5px;
  border: 1px solid rgba(71, 100, 130, 0.26);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.filter-link__check::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 4px;
  margin: auto;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.filter-link.active .filter-link__check {
  border-color: #6ba9fb;
  background: linear-gradient(180deg, #7ab3ff 0%, #4d8ef0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.filter-link.active .filter-link__check::after {
  transform: rotate(-45deg) scale(1);
}

html.dark .filter-link,
html.dark .filter-link:hover,
html.dark .filter-link.active {
  color: var(--primary);
}

.filters-toggle {
  display: none;
}

.mobile-only {
  display: none;
}

.desktop-only-block {
  display: block;
}

.mobile-only-block {
  display: none;
}

.filter-toggle-btn {
  background: #6ba9fb;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.filter-options.filter-collapsible .collapsed {
  display: none;
}
.btn.small {
  padding: 8px 10px;
  font-size: 13px;
  margin-top: 10px;
}

.selected-tags {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.selected-tags-group {
  display: grid;
  gap: 6px;
}

.tag-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 10px;
  background: #f8fbff;
}
.clear-filters {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 6px;
}
.clear-filters .btn.small {
  padding: 6px 10px;
}

.results-toolbar-mobile {
  display: none;
}

.selected-tags-compact {
  min-width: 0;
}

.selected-tags-compact > summary {
  list-style: none;
}

.selected-tags-compact > summary::-webkit-details-marker {
  display: none;
}

.selected-tags-compact--desktop {
  display: block;
  flex: 1 1 auto;
}

.selected-tags-compact--desktop .selected-tags-mobile__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px 12px 46px;
}

.selected-tags-compact--desktop .selected-tags-mobile__count {
  flex: 0 0 auto;
  font-size: 13px;
  white-space: nowrap;
}

.selected-tags-compact--desktop .selected-tags-mobile__preview {
  flex: 1 1 auto;
  font-size: 14px;
}

.selected-tags-compact--desktop .selected-tags-mobile__panel {
  margin-top: 10px;
}

.selected-tags-compact--mobile {
  display: none;
}

.results-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(107, 169, 251, 0.28);
  background: #fffdf7;
  color: #476482;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.selected-tags-compact {
  flex: 1 1 auto;
  min-width: 0;
}

.selected-tags-mobile__summary {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px 10px 40px;
  border-radius: 14px;
  border: 1px solid rgba(107, 169, 251, 0.35);
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  box-shadow: 0 10px 22px rgba(64, 94, 130, 0.08);
  cursor: pointer;
}

.selected-tags-mobile__summary::after {
  content: "▾";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #476482;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.selected-tags-compact[open] .selected-tags-mobile__summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.selected-tags-mobile__count {
  font-size: 12px;
  font-weight: 800;
  color: #476482;
}

.selected-tags-mobile__preview {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.selected-tags-mobile__more {
  color: #476482;
}

.selected-tags-mobile__panel {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.selected-tags--mobile-panel {
  margin: 0;
}

.selected-tags--mobile-panel .tag-options {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  max-height: none;
}

@media (max-width: 860px) {
  .filters-wrapper {
    grid-template-columns: 1fr;
  }
  .filters {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 120;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: auto;
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 24px);
    border-radius: 0;
    border: 0;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .filter-header {
    position: sticky;
    top: 0;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 12px;
    border-bottom: 1px solid rgba(107, 169, 251, 0.16);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  }
  .filters .filter-group {
    margin-top: 0;
    padding: 12px 16px 0;
  }
  .filters .filter-group:last-child {
    padding-bottom: 10px;
  }
  .filter-header .btn.mobile-only {
    flex: 0 0 auto;
  }
  .filters.open {
    display: block;
  }
  .filters-toggle {
    display: block;
    margin: 10px 0;
    display: flex;
    justify-content: flex-start;
  }
  .mobile-only {
    display: inline-block;
  }
  .desktop-only-block {
    display: none;
  }
  .mobile-only-block {
    display: block;
  }
  .results-panel {
    grid-column: 1;
  }
  .results-panel-head {
    display: grid;
    position: relative;
    overflow: visible;
    margin-bottom: 12px;
  }
  .results-count {
    display: none;
  }
  .selected-tags-compact--desktop {
    display: none;
  }
  .results-toolbar-mobile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "filter summary count";
    gap: 10px;
    align-items: center;
    position: relative;
    overflow: visible;
  }
  .selected-tags-compact--mobile {
    display: block;
    grid-area: summary;
    width: 100%;
    position: static;
  }
  .filter-toggle-btn {
    margin: 0;
    grid-area: filter;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    white-space: nowrap;
    border-radius: 999px;
    border-color: rgba(107, 169, 251, 0.28);
    background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
    color: #23364d;
    box-shadow: 0 10px 22px rgba(64, 94, 130, 0.08);
  }
  .results-count-badge {
    grid-area: count;
    justify-self: end;
    align-self: center;
    min-height: 42px;
    padding: 0 12px;
    border-color: rgba(107, 169, 251, 0.2);
    background: linear-gradient(135deg, #fffdf7 0%, #ffffff 100%);
    box-shadow: 0 10px 22px rgba(64, 94, 130, 0.06);
  }
  .selected-tags-compact--mobile .selected-tags-mobile__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px 10px 40px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #f2f7ff 100%);
    border-color: rgba(107, 169, 251, 0.28);
  }
  .selected-tags-compact--mobile .selected-tags-mobile__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(107, 169, 251, 0.12);
    color: #476482;
    font-size: 10px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .selected-tags-compact--mobile .selected-tags-mobile__preview {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.2;
  }
  .selected-tags-compact--mobile .selected-tags-mobile__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    margin-top: 0;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(64, 94, 130, 0.12);
    z-index: 6;
  }
  .hero--category-results {
    margin: 10px 0 10px;
    padding: 18px 16px;
  }
  .hero--category-results h1 {
    margin: 4px 0 8px;
    font-size: 24px;
    line-height: 1.15;
  }
  .hero--category-results p {
    font-size: 14px;
  }
}

.biz-list {
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
}

.biz-list--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .biz-list--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .biz-list--home {
    grid-template-columns: 1fr;
  }
}

.biz-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  grid-template-areas:
    "thumb main actions"
    "thumb desc actions";
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  height: 100%;
}
.biz-list .card {
  height: 100%;
}
.biz-list .card .biz-row {
  height: 100%;
}

.biz-row-thumb { grid-area: thumb; }
.biz-row-main { grid-area: main; }
.biz-row-actions { grid-area: actions; }

.biz-row-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.biz-row-main h3 {
  margin: 0 0 4px;
}

.biz-row-main p {
  margin: 4px 0 0;
}

.biz-row-hours {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(161, 131, 33, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
}

.biz-row-hours__label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.biz-row-hours__value {
  font-size: 13px;
  color: #111827;
  white-space: pre-line;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

.biz-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.call-btn .call-number {
  display: none;
  direction: ltr;
  unicode-bidi: plaintext;
  font-variant-numeric: tabular-nums;
}

.call-btn .call-label {
  display: inline;
}

@media (min-width: 901px) {
  .call-btn .call-label {
    display: none;
  }
  .call-btn .call-number {
    display: inline;
  }
}
.biz-desc {
  grid-area: desc;
  margin: 4px 0 0;
}

@media (max-width: 700px) {
  .biz-row {
    grid-template-columns: 100px 1fr;
    grid-template-areas:
      "thumb main"
      "thumb actions"
      "desc desc";
  }
  .biz-row-hours {
    margin-top: 7px;
    padding: 7px 9px;
  }
  .biz-row-hours__value {
    -webkit-line-clamp: 3;
  }
  .biz-row-actions {
    justify-content: flex-start;
  }
  .biz-row {
    align-items: center;
  }
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 2000;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  width: min(480px, 100%);
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 8px;
  left: 8px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.category-list {
  grid-template-columns: 1fr;
}
.category-list .biz-row {
  grid-template-columns: 110px 1fr auto;
  width: 100%;
}

.biz-contact-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.biz-contact-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
}

.biz-contact-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.biz-contact-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.biz-hours-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(161, 131, 33, 0.3);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
}

.biz-hours-title {
  font-size: 13px;
  font-weight: 800;
  color: #5f4b0f;
  margin-bottom: 8px;
}

.biz-hours-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.biz-hours-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(161, 131, 33, 0.35);
  color: #1f2937;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .header-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .header-left {
    width: 100%;
    justify-content: center;
  }
  .header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hamburger {
    display: inline-flex;
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 60;
  }
  .header-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 100%;
  }

  .list-item {
    grid-template-columns: 1fr;
  }
  .media-object {
    height: 200px;
  }
  .cat-slide {
    min-width: 180px;
  }
  .cat-swiper-wrap {
    padding: 0 10px;
  }
  .list-items {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero h2.hero-title {
    font-size: 24px;
  }
  .hero-split {
    grid-template-columns: 1fr;
  }
  .search-form-large {
    max-width: 100%;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    padding: 14px;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    z-index: 70;
  }
  html.dark .nav-links {
    background: rgba(15, 23, 42, 0.98);
  }
  .nav-links.open {
    display: flex;
  }
  .search-form {
    min-width: 120px;
    max-width: 100%;
    flex: 1;
  }
}

/* Business gallery */
.biz-gallery {
  margin-top: 16px;
}
.biz-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.biz-gallery-grid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}
html.dark .biz-gallery-grid a {
  background: rgba(255, 255, 255, 0.03);
}
.biz-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
