:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --header-bg: #ffffff;
  --footer-bg: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
  --radius: 10px;
  --radius-lg: 14px;
  --transition: .18s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }
a, p, h1, h2, h3, h4, h5, h6, span, small { overflow-wrap: anywhere; }

main.main-content {
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ──────────── HEADER ──────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.brand:hover { opacity: .8; }

.brand-logo {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }

.nav-link-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  flex-shrink: 0;
}

/* ── Dropdown Regions ── */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  border: none;
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.dropdown-trigger:hover { background: var(--primary-dark); box-shadow: var(--shadow); }

.dropdown-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 200;
}
.dropdown.open .dropdown-panel { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: .875rem;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--primary-light); }

.dropdown-item-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dropdown-item-keyword {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-item-sub {
  font-size: .78rem;
  color: var(--muted);
}

.dropdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── Auth buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
  max-width: 100%;
  min-width: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 7px 10px;
}
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }

.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Mobile hamburger ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--text);
  transition: background var(--transition);
}
.hamburger:hover { background: #f1f5f9; }
.hamburger svg { display: block; width: 22px; height: 22px; }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.4);
  backdrop-filter: blur(4px);
  z-index: 300;
}
.mobile-overlay.open { display: block; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  z-index: 310;
  transition: right .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 20px;
}
.mobile-drawer.open { right: 0; }

.mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  margin-left: auto;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.1rem;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--primary-light); }

.mobile-section-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 16px 14px 6px;
}

.mobile-auth { display: flex; gap: 8px; padding: 16px 14px 0; }
.mobile-auth .btn { flex: 1; justify-content: center; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
}

/* ──────────── MAIN CONTENT ──────────── */
h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--text);
}
h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
p { margin: 0 0 14px; }

.page-header { margin-bottom: 24px; }
.page-header p { color: var(--text-secondary); margin: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }

.card-flat { box-shadow: none; }
.card-flat:hover { box-shadow: none; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Forms ── */
label {
  display: block;
  margin-bottom: 5px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font: inherit;
  font-size: .925rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

input[readonly] {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
}

textarea { min-height: 130px; resize: vertical; }

.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }

button, .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: .925rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
button:active { transform: translateY(0); }

.small { color: var(--muted); font-size: .85rem; }

/* ── Lists ── */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list li:last-child { border-bottom: none; }
.list li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.list li a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── Cities grid ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.city-grid li {
  padding: 0;
  border: none;
}
.city-grid a {
  display: block;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.city-grid a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.city-grid .city-cp {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ── Alerts ── */
.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
}
.alert-error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid #fecaca;
}

.inline-meta {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.auth-wrapper { max-width: 520px; margin: 0 auto; }
.auth-card { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ──── Registration popup ──── */
.reg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(8px);
  z-index: 600;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.reg-overlay.open { display: flex; }
.reg-modal {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  animation: scaleIn .2s ease forwards;
}
.reg-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: background .15s;
  padding: 0;
}
.reg-close:hover { background: #f1f5f9; }
.reg-steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}
.reg-dot {
  width: 28px; height: 6px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: background .2s;
}
.reg-dot.active { background: var(--primary); }
.reg-title {
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px;
}
.reg-sub {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 22px;
}
.reg-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.reg-btn:hover { background: var(--primary-dark); }
.reg-btn:active { transform: scale(.98); }
.reg-email-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  font-size: .9rem;
}
.reg-edit {
  color: var(--primary);
  font-weight: 600;
  font-size: .82rem;
  text-decoration: none;
}
.reg-edit:hover { text-decoration: underline; }
.reg-role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reg-role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.reg-role-option input { display: none; }
.reg-role-option:hover { border-color: var(--primary); color: var(--text); }
.reg-role-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.reg-role-option.active svg { stroke: var(--primary); }
@media (max-width: 480px) {
  .reg-modal { padding: 28px 20px; border-radius: 14px; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--primary-dark); }

/* ── Region stat card ── */
.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.stat-box {
  flex: 1;
  min-width: 120px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
}
.stat-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}
.stat-box span {
  font-size: .8rem;
  color: var(--muted);
}

/* ──────────── FOOTER ──────────── */
.site-footer {
  background: var(--footer-bg);
  color: #94a3b8;
  margin-top: auto;
}

.footer-inner {
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #e2e8f0; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: .82rem;
  color: #475569;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: .82rem;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: #e2e8f0; }

/* ──────────── BUSINESS CARDS ──────────── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.biz-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.biz-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.biz-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.biz-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.biz-card-body { min-width: 0; flex: 1; }

.biz-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-company {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.biz-address, .biz-phone {
  font-size: .82rem;
  color: var(--text-secondary);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ──────────── BUSINESS MODAL ──────────── */
.biz-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(6px);
  z-index: 500;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.biz-modal-overlay.open {
  display: flex;
}

.biz-modal {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
}

.biz-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  padding: 0;
}
.biz-modal-close:hover { background: #e2e8f0; transform: none; box-shadow: none; }

.biz-modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 14px;
  background: #f1f5f9;
}

.biz-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 14px;
  padding-right: 40px;
}

.biz-modal-row {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  line-height: 1.5;
}
.biz-modal-row:last-child { border-bottom: none; }

.biz-modal-label {
  flex-shrink: 0;
  width: 100px;
  font-weight: 600;
  color: var(--muted);
  font-size: .82rem;
}

.biz-modal-row a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}
.biz-modal-row a:hover { text-decoration: underline; }

.biz-hours div {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.biz-modal-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f1f5f9;
}
.biz-modal-map .leaflet-control-attribution { font-size: .65rem; }
.biz-map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: .85rem;
}
.hp-biz-card[onclick] { cursor: pointer; transition: all .2s ease; }
.hp-biz-card[onclick]:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* ──── Popup fields toggles (admin) ──── */
.popup-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.popup-field-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
  background: var(--card);
}
.popup-field-toggle:hover { border-color: var(--primary); background: var(--primary-light); }
.popup-field-toggle input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.popup-field-label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
}

/* ──── Business Cards - Grid (ameliore) ──── */
.biz-tpl-grid .biz-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.biz-tpl-grid .biz-card {
  flex-direction: column;
  gap: 0;
}
.biz-tpl-grid .biz-card-top {
  margin-bottom: 12px;
}
.biz-tpl-grid .biz-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--primary);
  font-weight: 500;
}
.biz-tpl-grid .biz-phone svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* ──── Business Cards - List ──── */
.biz-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}
.biz-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: none;
  cursor: pointer;
  transition: all var(--transition);
}
.biz-list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.biz-list-item:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.biz-list-item:only-child { border-radius: var(--radius); border-bottom: 1px solid var(--border); }
.biz-list-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  z-index: 1;
  position: relative;
}
.biz-list-item:hover + .biz-list-item { border-top-color: var(--primary); }
.biz-list-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.biz-list-logo {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.biz-list-logo-ph {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.biz-list-info { min-width: 0; flex: 1; }
.biz-list-name {
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-list-company {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-list-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.biz-list-addr {
  font-size: .8rem;
  color: var(--text-secondary);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-list-phone {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* ──── Business Cards - Detailed ──── */
.biz-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.biz-detail-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.biz-detail-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.biz-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 14px;
  min-width: 0;
}
.biz-detail-header > div {
  min-width: 0;
  flex: 1;
}
.biz-detail-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.biz-detail-logo-ph {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.biz-detail-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-detail-company {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 2px;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.biz-detail-sector {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}
.biz-detail-body {
  padding: 10px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  border-top: 1px solid var(--border);
}
.biz-detail-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: .84rem;
  color: var(--text-secondary);
  line-height: 1.4;
  text-align: left;
  width: 100%;
  min-height: 20px;
}
.biz-detail-row svg { flex-shrink: 0; margin-top: 1px; }
.biz-detail-row span,
.biz-detail-row a {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.biz-detail-row a {
  color: var(--primary);
  text-decoration: none;
}
.biz-detail-row a:hover { text-decoration: underline; }
.biz-detail-header,
.biz-detail-body,
.biz-detail-footer,
.biz-detail-row,
.biz-detail-row span,
.biz-detail-row a {
  max-width: 100%;
}
.biz-detail-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.biz-detail-cta {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
}

/* ──── Modal Sidebar variant ──── */
.biz-sidebar-overlay {
  justify-content: flex-end;
  padding: 0;
}
.biz-modal-sidebar {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  max-width: 480px;
  height: 100vh;
  max-height: 100vh;
  animation: slideInRight .25s ease forwards;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ──── Modal Full variant ──── */
.biz-full-overlay {
  padding: 24px;
}
.biz-modal-full {
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  animation: scaleIn .2s ease forwards;
}
.biz-modal-full .biz-modal-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
}
.biz-modal-full .biz-modal-title {
  font-size: 1.5rem;
}
.biz-modal-full .biz-modal-row {
  font-size: .95rem;
  padding: 12px 0;
}
.biz-modal-full .biz-modal-label {
  width: 120px;
  font-size: .85rem;
}
@keyframes scaleIn {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ──────────── FOLDER GRID ──────────── */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: all .18s ease;
  cursor: pointer;
}
.folder-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.folder-active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.folder-icon { font-size: 1.6rem; }
.folder-name { font-weight: 700; font-size: .95rem; }
.folder-count { font-size: .78rem; color: var(--muted); }

/* ──────────── CSV TABLE ──────────── */
.csv-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}
.csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.csv-table th {
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.csv-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.csv-table tbody tr:hover {
  background: var(--primary-light);
}

/* ──────────── PAGINATION ──────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.page-link, .page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0 8px;
}
.page-link {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .15s ease;
}
.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.page-current {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

/* ──────────── LAYOUT VARIANTS ──────────── */
body.layout-default .container { max-width: 1140px; }
body.layout-default main.main-content { max-width: 1140px; }

body.layout-wide .container { max-width: 1400px; }
body.layout-wide main.main-content { max-width: 1400px; }

body.layout-boxed { background: #e2e8f0; }
body.layout-boxed .site-header { background: var(--header-bg); }
body.layout-boxed main.main-content {
  max-width: 1100px;
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding-left: 32px;
  padding-right: 32px;
  box-shadow: var(--shadow-lg);
}
body.layout-boxed .site-footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-width: 1100px; margin: 0 auto; }

/* ──────────── HEADER VARIANTS ──────────── */

/* Centered header */
.hdr-centered .hdr-centered-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0 8px;
  position: relative;
}
.hdr-centered .hdr-centered-auth {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.hdr-centered .brand { font-size: 1.3rem; }
.hdr-centered .hdr-centered-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 0 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.hdr-centered .hdr-centered-nav .nav-link { font-size: .88rem; }
@media (max-width: 768px) {
  .hdr-centered .hdr-centered-auth { display: none; }
  .hdr-centered .hdr-centered-nav { display: none; }
}

/* Minimal header */
.hdr-minimal { padding: 0; }
.hdr-minimal .header-inner { min-height: 48px; }
.hdr-minimal .brand { font-size: 1rem; gap: 6px; }
.hdr-minimal .brand-logo { width: 28px; height: 28px; }
.hdr-minimal .nav-link { font-size: .82rem; padding: 6px 10px; }
.hdr-minimal .dropdown-trigger { font-size: .82rem; padding: 6px 10px; }

/* ──────────── FOOTER VARIANTS ──────────── */

/* Compact footer */
.ftr-compact { padding: 16px 0; }
.ftr-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ftr-compact .footer-copy { font-size: .82rem; }
.ftr-compact-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ftr-compact-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .8rem;
  transition: color .12s ease;
}
.ftr-compact-links a:hover { color: #fff; }
.ftr-compact-links a:not(:last-child)::after {
  content: "\00b7";
  margin-left: 6px;
  color: #475569;
}
.ftr-compact-auth a {
  color: var(--primary-light);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
}

/* Rich footer */
.ftr-rich { padding: 40px 0 0; }
.ftr-rich-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ftr-rich-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ftr-rich-brand .brand-logo { border-radius: 8px; }
.ftr-rich .footer-tagline { margin: 0; flex: 1; min-width: 200px; }
.ftr-rich-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 24px;
}
@media (max-width: 768px) {
  .ftr-rich-grid { grid-template-columns: 1fr 1fr; }
  .ftr-compact-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .ftr-rich-grid { grid-template-columns: 1fr; }
}

/* ──────────── TEMPLATE PICKER (admin) ──────────── */
.tpl-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.tpl-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s ease;
}
.tpl-option:hover { border-color: var(--primary); }
.tpl-option input[type=radio] { display: none; }
.tpl-active { border-color: var(--primary); background: var(--primary-light); }
.tpl-option-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.tpl-option-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ──────────── HOMEPAGE TEMPLATES ──────────── */

/* --- Shared --- */
.hp-section { margin-bottom: 32px; }
.hp-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
}

.hp-biz-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.hp-biz-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow .15s ease;
  min-width: 0;
  overflow: hidden;
}
.hp-biz-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.hp-biz-logo {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.hp-biz-logo-ph {
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}
.hp-biz-info { min-width: 0; }
.hp-biz-name { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hp-biz-city { font-size: .8rem; color: var(--muted); }
.hp-biz-phone { font-size: .8rem; color: var(--primary); margin-top: 2px; }

/* --- Slider --- */
.hp-slider-wrap {
  position: relative;
  padding: 0 44px;
}
.hp-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 2px;
}
.hp-slider::-webkit-scrollbar { display: none; }
.hp-slide-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
}
.hp-slide-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.hp-slide-card-lg { flex: 0 0 260px; }
.hp-slide-name { font-weight: 700; font-size: .95rem; }
.hp-slide-meta { font-size: .8rem; color: var(--muted); }
.hp-slide-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  width: fit-content;
}
.hp-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: all .2s ease;
  opacity: .9;
}
.hp-slider-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}
.hp-slider-btn:active { transform: translateY(-50%) scale(.95); }
.hp-slider-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hp-slider-prev { left: 0; }
.hp-slider-next { right: 0; }

/* --- Hero template --- */
.hp-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  padding: 48px 36px;
  margin-bottom: 32px;
  color: #fff;
}
.hp-hero-inner { max-width: 700px; }
.hp-hero-title { font-size: 2.2rem; font-weight: 900; margin: 0 0 10px; color: #fff; }
.hp-hero-sub { font-size: 1.05rem; opacity: .9; margin: 0 0 24px; }
.hp-hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hp-hero-stat {
  font-size: .92rem;
  opacity: .85;
}
.hp-hero-stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  margin-right: 4px;
  opacity: 1;
}

/* --- Directory template --- */
.hp-dir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hp-dir-list { display: flex; flex-direction: column; }
.hp-dir-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: .92rem;
  transition: background .12s ease;
}
.hp-dir-item:hover { background: var(--primary-light); }
.hp-dir-item-name { font-weight: 600; }
.hp-dir-item-count {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: .78rem;
  padding: 2px 8px;
  border-radius: 99px;
}

/* --- Showcase template --- */
.hp-showcase-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  padding: 40px 32px;
  margin-bottom: 28px;
  color: #fff;
}
.hp-showcase-hero h1 { color: #fff; margin: 0 0 8px; font-size: 2rem; }
.hp-showcase-hero p { opacity: .9; margin: 0 0 20px; }
.hp-showcase-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hp-showcase-search select {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .95rem;
  border: none;
  min-width: 200px;
}
.hp-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: all .12s ease;
}
.hp-tag:hover { border-color: var(--primary); color: var(--primary); }
.hp-tag-count {
  font-size: .72rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 700;
}
.hp-showcase-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.hp-showcase-city-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: all .15s ease;
}
.hp-showcase-city-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.hp-showcase-city-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.hp-showcase-city-meta { font-size: .8rem; color: var(--muted); }
.hp-showcase-city-biz { font-size: .8rem; color: var(--primary); margin-top: 6px; font-weight: 600; }

/* --- Cards template --- */
.hp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.hp-card-tile {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: all .15s ease;
}
.hp-card-tile:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.hp-card-tile-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-card-tile-icon {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .05em;
}
.hp-card-tile-body { padding: 14px; }
.hp-card-tile-title { font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.hp-card-tile-meta { font-size: .78rem; color: var(--muted); }

/* --- Magazine template --- */
.hp-mag-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  padding: 36px 32px;
  margin-bottom: 28px;
  color: #fff;
  flex-wrap: wrap;
}
.hp-mag-hero-content h1 { color: #fff; margin: 0 0 6px; font-size: 1.8rem; }
.hp-mag-hero-content p { opacity: .9; margin: 0; }
.hp-mag-hero-aside {
  display: flex;
  gap: 20px;
}
.hp-mag-stat {
  text-align: center;
  min-width: 70px;
}
.hp-mag-stat strong { display: block; font-size: 1.4rem; font-weight: 800; }
.hp-mag-stat span { font-size: .78rem; opacity: .85; }

.hp-mag-columns {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.hp-mag-block {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 18px;
}
.hp-mag-block-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.hp-mag-block-title a {
  color: var(--text);
  text-decoration: none;
}
.hp-mag-block-title a:hover { color: var(--primary); }

.hp-mag-sidebar-block {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 16px;
}
.hp-mag-sidebar-title {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.hp-mag-sidebar-link {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: .88rem;
  transition: color .12s ease;
}
.hp-mag-sidebar-link:last-child { border-bottom: none; }
.hp-mag-sidebar-link:hover { color: var(--primary); }
.hp-mag-sidebar-link span {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: .72rem;
  padding: 1px 7px;
  border-radius: 99px;
  align-self: center;
}

/* ──────────── ALL CITIES PAGE ──────────── */
.all-cities-section {
  margin-bottom: 32px;
  scroll-margin-top: 80px;
}
.all-cities-region-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.all-cities-count {
  font-weight: 400;
  font-size: .9rem;
  color: var(--muted);
}
.all-cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  min-width: 0;
}
.all-cities-link {
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  transition: background .12s ease, color .12s ease;
}
.all-cities-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ──────────── RESPONSIVE POLISH ──────────── */
@media (max-width: 1024px) {
  .all-cities-grid { grid-template-columns: repeat(4, 1fr); }
  .hp-mag-columns { grid-template-columns: 1fr; }
  .hp-mag-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 768px) {
  .all-cities-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-dir-grid { grid-template-columns: 1fr; }
  .hp-hero { padding: 32px 22px; }
  .hp-hero-title { font-size: 1.6rem; }
  .hp-mag-hero { flex-direction: column; align-items: flex-start; }
  .hp-mag-sidebar { grid-template-columns: 1fr; }
  .hp-showcase-search { flex-direction: column; }
  .biz-detailed { grid-template-columns: 1fr; }
  .biz-detail-body {
    padding-top: 8px;
    gap: 8px;
  }
  .biz-detail-row {
    font-size: .86rem;
  }
  .biz-list-right { display: none; }
  .biz-modal-sidebar { max-width: 100%; border-radius: 0; }
  .biz-full-overlay { padding: 12px; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .card { padding: 18px; }
  main.main-content { padding: 20px 14px 36px; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .biz-modal { padding: 20px; }
  .biz-modal-row { flex-direction: column; gap: 2px; }
  .biz-modal-label { width: auto; }
  .folder-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .csv-table th, .csv-table td { padding: 8px; }
  .all-cities-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-biz-row { grid-template-columns: 1fr; }
  .hp-cards-grid { grid-template-columns: 1fr 1fr; }
  .hp-showcase-cities { grid-template-columns: 1fr 1fr; }
  .hp-slider-wrap { padding: 0 36px; }
  .hp-slider-btn { width: 32px; height: 32px; }
  .hp-slider-btn svg { width: 14px; height: 14px; }
  .biz-detailed { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   ADMIN LAYOUT — Sidebar + Dashboard
   ══════════════════════════════════════════════ */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.admin-sidebar {
  width: 250px;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform .25s ease;
}
.admin-sidebar-brand { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.admin-sidebar-logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.admin-sidebar-name {
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #94a3b8;
  font-size: .88rem;
  font-weight: 500;
  transition: all .15s ease;
}
.admin-nav-link:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.admin-nav-link.active {
  background: var(--primary);
  color: #fff;
}
.admin-nav-link.active svg { stroke: #fff; }
.admin-sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav-logout:hover { background: rgba(220,38,38,.15); color: #fca5a5; }

.admin-main {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}
.admin-content {
  padding: 28px;
  flex: 1;
}

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.admin-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.admin-stat-sub { font-size: .78rem; color: var(--muted); }

/* Admin tables */
.admin-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: .95rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.admin-table td {
  padding: 10px 16px;
  font-size: .86rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,0,0,.01); }
.admin-table .mono { font-family: "SF Mono", "Consolas", monospace; font-size: .78rem; color: var(--muted); }

/* Chart container */
.admin-chart-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.admin-chart-title {
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 16px;
}
.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  width: 100%;
}
.admin-chart-bar {
  flex: 1;
  background: var(--primary-light);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  position: relative;
  transition: background .15s;
}
.admin-chart-bar:hover { background: var(--primary); }
.admin-chart-bar:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .68rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* Admin grid */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Visitor badge */
.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 600;
}
.admin-badge-green { background: var(--success-bg); color: var(--success); }
.admin-badge-blue { background: var(--primary-light); color: var(--primary); }

/* Period selector */
.admin-period {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.admin-period a {
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all .15s;
}
.admin-period a:hover { border-color: var(--primary); color: var(--primary); }
.admin-period a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-main { margin-left: 0; }
  .admin-menu-toggle { display: block; }
  .admin-content { padding: 16px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ==================== REGION TEMPLATES ==================== */

.rg-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); padding: 12px 0; flex-wrap: wrap; }
.rg-breadcrumb a { color: var(--primary); text-decoration: none; }
.rg-breadcrumb a:hover { text-decoration: underline; }
.rg-sep { color: #ccc; }

.rg-hero { padding: 32px 0 24px; }
.rg-hero h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 8px; color: var(--heading); }
.rg-hero-sub { font-size: 1.05rem; color: var(--muted); margin: 0; }

.rg-hero-modern { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 14px; padding: 40px 32px; margin-bottom: 8px; }
.rg-hero-modern h1 { color: #fff; font-size: 2rem; }
.rg-hero-modern .rg-hero-sub { color: rgba(255,255,255,.85); }
.rg-hero-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rg-badge { background: rgba(255,255,255,.18); padding: 4px 14px; border-radius: 20px; font-size: .82rem; font-weight: 600; }

.rg-hero-stats { text-align: center; padding: 36px 0 16px; }
.rg-hero-stats h1 { font-size: 2rem; }

.rg-stats { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.rg-stat { flex: 1; min-width: 120px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px; text-align: center; }
.rg-stat strong { display: block; font-size: 1.4rem; color: var(--primary); font-weight: 800; }
.rg-stat span { font-size: .82rem; color: var(--muted); }

.rg-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.rg-stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; text-align: center; }
.rg-stat-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.rg-stat-primary .rg-stat-num, .rg-stat-primary .rg-stat-label { color: #fff; }
.rg-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.rg-stat-label { font-size: .85rem; font-weight: 600; color: var(--heading); margin-top: 4px; }
.rg-stat-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.rg-stat-primary .rg-stat-sub { color: rgba(255,255,255,.7); }

.rg-section { margin-bottom: 32px; }
.rg-section-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 16px; color: var(--heading); }
.rg-section-desc { color: var(--muted); font-size: .92rem; margin: -8px 0 16px; }

.rg-top-cities { display: flex; flex-direction: column; gap: 10px; }
.rg-top-city-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.rg-top-city-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.rg-top-rank { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .9rem; border-radius: 8px; flex-shrink: 0; }
.rg-top-info { flex: 1; }
.rg-top-info { min-width: 0; }
.rg-top-name { display: block; font-weight: 600; font-size: 1rem; color: var(--heading); }
.rg-top-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.rg-top-arrow { color: var(--primary); font-weight: 600; font-size: 1.1rem; flex-shrink: 0; }

.rg-top-modern { display: flex; flex-direction: column; gap: 10px; }
.rg-mod-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: all .2s; }
.rg-mod-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.rg-mod-rank { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem; border-radius: 10px; flex-shrink: 0; }
.rg-mod-body { flex: 1; }
.rg-mod-body h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--heading); }
.rg-mod-stats { display: flex; gap: 12px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.rg-mod-arrow { color: var(--primary); flex-shrink: 0; }

.rg-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rg-city-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: inherit; font-size: .9rem; transition: border-color .15s; }
.rg-city-link:hover { border-color: var(--primary); }
.rg-city-name { font-weight: 600; color: var(--heading); min-width: 0; }
.rg-city-meta { font-size: .78rem; color: var(--muted); min-width: 0; text-align: right; }

.rg-city-grid-modern { gap: 10px; }
.rg-city-card-mod { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: all .15s; }
.rg-city-card-mod:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.rg-ccm-left { display: flex; align-items: center; gap: 12px; }
.rg-ccm-initial { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .9rem; border-radius: 8px; flex-shrink: 0; }
.rg-ccm-name { display: block; font-weight: 600; font-size: .92rem; color: var(--heading); }
.rg-ccm-cp { display: block; font-size: .78rem; color: var(--muted); }
.rg-ccm-badge { background: var(--primary); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: .78rem; font-weight: 700; }

.rg-nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rg-nearby-card { display: block; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s; }
.rg-nearby-card:hover { border-color: var(--primary); }
.rg-nearby-card strong { display: block; font-size: .95rem; color: var(--heading); margin-bottom: 4px; }
.rg-nearby-card span { font-size: .82rem; color: var(--muted); }

.rg-slider-wrap { position: relative; }
.rg-slider-track { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 0; scrollbar-width: none; }
.rg-slider-track::-webkit-scrollbar { display: none; }
.rg-slider-card { flex: 0 0 200px; padding: 18px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s; }
.rg-slider-card:hover { border-color: var(--primary); }
.rg-slider-card strong { display: block; font-size: .92rem; color: var(--heading); margin-bottom: 4px; }
.rg-slider-card span { display: block; font-size: .8rem; color: var(--muted); }
.rg-slider-count { color: var(--primary); font-weight: 700; margin-top: 4px; }

.rg-ranking { display: flex; flex-direction: column; gap: 8px; }
.rg-rank-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 8px 0; }
.rg-rank-row:hover .rg-rank-name { color: var(--primary); }
.rg-rank-pos { width: 28px; text-align: center; font-weight: 800; color: var(--primary); font-size: .95rem; flex-shrink: 0; }
.rg-rank-bar { flex: 1; position: relative; background: var(--border); border-radius: 6px; height: 36px; display: flex; align-items: center; overflow: hidden; }
.rg-rank-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary-light); border-radius: 6px; width: var(--bar-pct); transition: width .5s; }
.rg-rank-name { position: relative; z-index: 1; padding-left: 12px; font-weight: 600; font-size: .9rem; color: var(--heading); }
.rg-rank-count { font-weight: 700; font-size: .9rem; color: var(--primary); min-width: 36px; text-align: right; }

.rg-split { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.rg-split-main { min-width: 0; }
.rg-split-side { min-width: 0; }
.rg-split-side h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; color: var(--heading); }
.rg-side-links { display: flex; flex-direction: column; gap: 8px; }
.rg-side-link { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: inherit; transition: border-color .15s; }
.rg-side-link:hover { border-color: var(--primary); }
.rg-side-link strong { display: block; font-size: .9rem; color: var(--heading); }
.rg-side-link span { font-size: .78rem; color: var(--muted); }
.rg-side-all { display: block; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: .85rem; text-decoration: none; }
.rg-side-all:hover { text-decoration: underline; }

.rg-city-list-compact { display: flex; flex-direction: column; gap: 4px; }
.rg-cl-row { display: flex; align-items: baseline; gap: 4px; text-decoration: none; color: inherit; padding: 6px 0; border-bottom: 1px solid var(--border); transition: color .15s; }
.rg-cl-row:hover { color: var(--primary); }
.rg-cl-name { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.rg-cl-dots { flex: 1; border-bottom: 1px dotted var(--border); margin: 0 4px; min-width: 20px; }
.rg-cl-meta { font-size: .78rem; color: var(--muted); white-space: nowrap; }

.rg-seo-block { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; }
.rg-seo-block h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; color: var(--heading); }
.rg-seo-block p { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0; }

.rg-city-biz-block { margin: 0 0 18px; }
.rg-city-biz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.rg-city-biz-head h3 { margin: 0; font-size: 1rem; color: var(--heading); font-weight: 700; }
.rg-city-biz-more { color: var(--primary); text-decoration: none; font-size: .82rem; font-weight: 600; }
.rg-city-biz-more:hover { text-decoration: underline; }
.rg-biz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rg-biz-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px; }
.rg-biz-card { min-width: 0; overflow: hidden; }
.rg-biz-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rg-biz-card h4 { margin: 0; font-size: .9rem; color: var(--heading); font-weight: 700; line-height: 1.35; }
.rg-biz-sector { flex-shrink: 0; background: var(--primary-light); color: var(--primary); border-radius: 999px; padding: 2px 8px; font-size: .68rem; font-weight: 700; }
.rg-biz-meta { display: flex; flex-direction: column; gap: 5px; }
.rg-biz-meta span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.rg-biz-meta a { font-size: .8rem; color: var(--primary); text-decoration: none; }
.rg-biz-meta a:hover { text-decoration: underline; }
.rg-biz-card h4,
.rg-biz-meta span,
.rg-biz-meta a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==================== CITY TEMPLATES ==================== */

.ct-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); padding: 12px 0; flex-wrap: wrap; }
.ct-breadcrumb a { color: var(--primary); text-decoration: none; }
.ct-breadcrumb a:hover { text-decoration: underline; }
.ct-sep { color: #ccc; }

.ct-hero { padding: 28px 0 20px; }
.ct-hero h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 6px; color: var(--heading); }
.ct-hero-sub { font-size: .95rem; color: var(--muted); margin: 0; }

.ct-hero-dir { padding: 28px 0 24px; }
.ct-hero-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ct-tag { background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: 16px; font-size: .8rem; font-weight: 600; }

.ct-hero-showcase { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 14px; padding: 40px 32px; margin-bottom: 8px; }
.ct-hero-showcase h1 { color: #fff; font-size: 2rem; }
.ct-hero-showcase .ct-hero-sub { color: rgba(255,255,255,.85); }
.ct-showcase-inner { text-align: center; }
.ct-showcase-stats { display: flex; gap: 24px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.ct-sstat { min-width: 100px; }
.ct-sstat-num { font-size: 1.5rem; font-weight: 800; }
.ct-sstat-label { font-size: .8rem; opacity: .85; }

.ct-stats { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ct-stat { flex: 1; min-width: 100px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 14px; text-align: center; }
.ct-stat strong { display: block; font-size: 1.3rem; color: var(--primary); font-weight: 800; }
.ct-stat span { font-size: .82rem; color: var(--muted); }

.ct-section { margin-bottom: 28px; }
.ct-section-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 16px; color: var(--heading); }

.ct-intro-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.ct-intro-card h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; color: var(--heading); }
.ct-intro-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0; }

.ct-dir-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.ct-dir-main { min-width: 0; }
.ct-dir-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ct-dir-h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 16px; color: var(--heading); }

.ct-filter-bar { margin-bottom: 16px; }
.ct-filter-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; background: var(--card); }
.ct-filter-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }

.ct-side-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px; }
.ct-side-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 10px; color: var(--heading); }
.ct-side-card p { font-size: .85rem; color: var(--muted); line-height: 1.5; margin: 0; }
.ct-side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ct-side-list li a { font-size: .85rem; color: var(--primary); text-decoration: none; display: block; padding: 4px 0; }
.ct-side-list li a:hover { text-decoration: underline; }
.ct-side-more { display: block; margin-top: 10px; color: var(--primary); font-weight: 600; font-size: .82rem; text-decoration: none; }
.ct-side-more:hover { text-decoration: underline; }

.ct-maillage { margin-top: 8px; }
.ct-other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ct-other-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--heading); font-size: .88rem; font-weight: 600; transition: border-color .15s; }
.ct-other-link:hover { border-color: var(--primary); color: var(--primary); }
.ct-other-cp { font-size: .75rem; color: var(--muted); font-weight: 400; }
.ct-see-all { color: var(--primary); font-weight: 600; font-size: .88rem; text-decoration: none; }
.ct-see-all:hover { text-decoration: underline; }

.ct-showcase-slider { position: relative; }
.ct-showcase-track { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 0; scrollbar-width: none; }
.ct-showcase-track::-webkit-scrollbar { display: none; }
.ct-showcase-slide { flex: 0 0 170px; display: flex; align-items: center; gap: 10px; padding: 14px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s; }
.ct-showcase-slide:hover { border-color: var(--primary); }
.ct-slide-initial { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .9rem; border-radius: 8px; flex-shrink: 0; }
.ct-slide-info { min-width: 0; }
.ct-slide-info strong { display: block; font-size: .88rem; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-slide-info span { display: block; font-size: .75rem; color: var(--muted); }

/* ==================== SEO FAQ ==================== */

.seo-faq-section { margin-top: 18px; }
.seo-faq-lead { color: var(--muted); font-size: .92rem; margin: 0 0 14px; max-width: 760px; }
.seo-faq-list { display: grid; gap: 10px; }
.seo-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
}
.seo-faq-item[open] {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.seo-faq-question {
  cursor: pointer;
  list-style: none;
  font-size: .94rem;
  color: var(--heading);
  padding: 12px 24px 12px 0;
  position: relative;
}
.seo-faq-question::-webkit-details-marker { display: none; }
.seo-faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-faq-item[open] .seo-faq-question::after { content: '-'; }
.seo-faq-answer {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ==================== QUOTE LEAD FORM ==================== */

.quote-lead-card { margin-bottom: 16px; padding: 16px 18px; }
.quote-lead-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.quote-lead-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.quote-lead-mode-switch {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}
.quote-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: .76rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.quote-mode-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.quote-lead-head h2 {
  margin: 0 0 3px;
  font-size: 1.1rem;
  line-height: 1.25;
}
.quote-lead-head p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.quote-lead-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.quote-lead-badges span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.quote-lead-form .form-group { margin-bottom: 10px; }
.quote-lead-form label { font-size: .8rem; margin-bottom: 4px; display: block; color: var(--text-secondary); }
.quote-lead-form input,
.quote-lead-form select,
.quote-lead-form textarea {
  padding: 9px 11px;
  font-size: .88rem;
}
.quote-lead-form textarea { min-height: 92px; }
.quote-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}
.quote-mode-panel { display: none; }
.quote-mode-panel.is-open { display: block; }
.quote-field-wide { grid-column: 1 / -1; }
.quote-lead-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.quote-lead-actions small { color: var(--muted); font-size: .76rem; }

/* ==================== RESPONSIVE REGION/CITY ==================== */

@media (max-width: 768px) {
    .quote-lead-head { flex-direction: column; }
    .quote-lead-right { align-items: flex-start; width: 100%; }
    .quote-lead-badges { justify-content: flex-start; }
    .quote-lead-grid { grid-template-columns: 1fr; }
    .quote-lead-actions { align-items: flex-start; }
    .container,
    main.main-content,
    .card,
    .biz-card,
    .biz-list-item,
    .biz-detail-card,
    .hp-biz-card,
    .rg-biz-card,
    .ct-side-card { min-width: 0; max-width: 100%; }
    .nav-desktop .btn,
    .hdr-centered-auth .btn { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
    .biz-address, .biz-phone, .biz-list-addr, .biz-list-phone, .hp-biz-phone, .rg-biz-meta span, .rg-biz-meta a { white-space: normal; }
    .rg-hero h1, .ct-hero h1 { font-size: 1.4rem; }
    .rg-hero-modern, .ct-hero-showcase { padding: 28px 20px; border-radius: 10px; }
    .rg-hero-modern h1, .ct-hero-showcase h1 { font-size: 1.5rem; }
    .rg-stats, .ct-stats { flex-direction: column; }
    .rg-stats-grid { grid-template-columns: 1fr 1fr; }
    .rg-city-grid { grid-template-columns: 1fr; }
    .rg-nearby-grid { grid-template-columns: 1fr; }
    .rg-split { grid-template-columns: 1fr; }
    .ct-dir-layout { grid-template-columns: 1fr; }
    .ct-other-grid { grid-template-columns: 1fr; }
    .rg-biz-cards { grid-template-columns: 1fr; }
    .ct-showcase-stats { gap: 16px; }
    .rg-slider-card { flex: 0 0 170px; }
    .ct-showcase-slide { flex: 0 0 150px; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; line-height: 1.25; }
  .mobile-auth { flex-direction: column; }
  .mobile-auth .btn { width: 100%; }
  .biz-grid,
  .rg-city-grid,
  .ct-other-grid,
  .hp-showcase-cities,
  .hp-cards-grid,
  .rg-biz-cards { grid-template-columns: 1fr; }
  .biz-list-item { padding: 14px 12px; }
}
