:root {
  --red: #d31e24;
  --red-dark: #8b1116;
  --gold: #c9a227;
  --black: #1a1a1a;
  --charcoal: #222222;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e8e4de;
  --card-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-alt: #191919;
    --fg: #f5f5f5;
    --muted: #a3a3a3;
    --border: #2c2c2c;
    --card-bg: #1a1a1a;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0.5rem 0 0.6rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-alt { background: var(--bg-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(211, 30, 36, 0.28);
}
.btn-primary:hover { background: var(--red-dark); }

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

.btn-ghost {
  background: transparent;
  color: var(--fg);
  padding: 0.55rem 1rem;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(211,30,36,0.08), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  margin: 0.75rem 0 1.1rem;
}
.hero h1 .accent { color: var(--red); }

.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin: 0 0 1.75rem;
}

.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  width: min(100%, 320px);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18));
}

/* Stats bar */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0;
  flex-wrap: wrap;
}
.stat { flex: 1 1 140px; text-align: center; }
.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
}
.stat span { color: var(--muted); font-size: 0.85rem; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
}
.step-num {
  position: absolute;
  margin-top: -2.4rem;
}
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.gold { background: linear-gradient(135deg, #e6c85c, var(--gold)); color: var(--black); }

.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Grids: cities / categories */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}

/* Homepage categories: fixed 2 rows of 4 on desktop, 2 cols on tablet, carousel on mobile */
#categories-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  #categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #categories-carousel-wrap .carousel-arrow,
  #categories-dots { display: flex; }
}
@media (min-width: 641px) {
  #categories-carousel-wrap .carousel-arrow,
  #categories-dots { display: none; }
}
#categories-grid.carousel-track {
  display: flex;
  gap: 0.9rem;
  will-change: transform;
}
#categories-grid.carousel-track .tile { flex: 0 0 100%; }
#categories-carousel-wrap .carousel-arrow { top: 50%; transform: translateY(-50%); }

.tile {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tile:hover { border-color: var(--red); transform: translateY(-2px); }

.tile-thumb {
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--black) 130%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-thumb svg { width: 22px; height: 22px; color: rgba(255,255,255,0.9); }
.tile-thumb.gold { background: linear-gradient(135deg, #e6c85c, var(--gold) 70%, #8a6d1a 130%); }
.tile-thumb.photo { height: 110px; background: var(--bg-alt); overflow: hidden; }
.tile-thumb.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tile strong { font-size: 0.95rem; }
.tile span { color: var(--muted); font-size: 0.8rem; }

.city-skeleton {
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--bg-alt) 30%, var(--border) 50%, var(--bg-alt) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* City pin map (subcategory page) */
.city-map {
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  margin-bottom: 2rem;
}
.city-map-dark-tiles .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9); }
.city-map .leaflet-popup-content-wrapper { background: var(--card-bg); color: var(--fg); border-radius: 10px; }
.city-map .leaflet-popup-tip { background: var(--card-bg); }
.city-map .leaflet-popup-content { margin: 0.85rem 1rem; }
.city-map-popup strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.city-map-popup span { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 0.65rem; }
.city-map-popup a.btn { width: 100%; justify-content: center; padding: 0.45rem 0.8rem; font-size: 0.82rem; }

.city-pin svg { width: 30px; height: 30px; color: var(--red); filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.city-cluster {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border: 3px solid rgba(255,255,255,0.85);
}
@media (prefers-color-scheme: dark) {
  .city-cluster { border-color: rgba(0,0,0,0.55); }
}
@media (max-width: 640px) {
  .city-map { height: 360px; }
}
.city-map-fallback { color: var(--muted); font-size: 0.85rem; margin: -1.2rem 0 2rem; }
.city-map-fallback a { color: var(--red); }

.section-cta { text-align: center; margin-top: 2rem; }

/* Featured businesses carousel */
.carousel-wrap { position: relative; }

.carousel-viewport { overflow: hidden; }

.biz-carousel {
  display: flex;
  gap: 1.4rem;
  will-change: transform;
}
.biz-carousel .biz-card { flex: 0 0 260px; }
@media (max-width: 640px) {
  .biz-carousel .biz-card { flex: 0 0 100%; }
}

.carousel-arrow {
  position: absolute;
  top: 90px;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.carousel-arrow:hover { border-color: var(--red); color: var(--red); }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.carousel-dot:hover { background: var(--muted); }
.carousel-dot.active { background: var(--red); width: 22px; }

.carousel-progress {
  max-width: 320px;
  margin: 1.5rem auto 0;
}
.carousel-progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.carousel-progress-thumb {
  height: 100%;
  width: 25%;
  background: var(--red);
  border-radius: 999px;
  transition: transform 0.3s ease, width 0.3s ease;
}

/* Dots on mobile (one card visible at a time), progress bar on desktop */
#featured-dots { display: none; }
@media (max-width: 640px) {
  #featured-dots { display: flex; }
  #featured-progress { display: none; }
}
.biz-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
}
.biz-photo {
  height: 130px;
  position: relative;
  background: linear-gradient(135deg, #efeae2, #ddd6c9);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-color-scheme: dark) {
  .biz-photo { background: linear-gradient(135deg, #262421, #33302a); }
}
.biz-photo svg { width: 34px; height: 34px; color: rgba(0,0,0,0.22); }
@media (prefers-color-scheme: dark) {
  .biz-photo svg { color: rgba(255,255,255,0.18); }
}
.biz-photo img { width: 100%; height: 100%; object-fit: cover; }
.biz-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(20,20,20,0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.biz-body { padding: 1rem 1.1rem 1.15rem; }
.biz-cat { color: var(--red); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.biz-name { font-size: 1.02rem; font-weight: 800; margin: 0.25rem 0 0.2rem; }
.biz-city { color: var(--muted); font-size: 0.84rem; margin-bottom: 0.85rem; }
.biz-foot { display: flex; align-items: center; justify-content: space-between; }
.biz-votes { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.biz-votes svg { width: 15px; height: 15px; color: var(--gold); }

.preview-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.75rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--black), var(--red-dark) 140%);
  color: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; max-width: 420px; }
.cta-band .btn-primary { background: var(--gold); color: var(--black); box-shadow: none; }
.cta-band .btn-primary:hover { background: #e6c85c; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 30px; margin-bottom: 0.85rem; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; max-width: 260px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--fg); }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Auth */
.auth-signed-in:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.auth-user-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 1.5rem;
}
.auth-modal:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 10, 0.55);
}
.auth-modal-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.3rem;
}
.auth-modal-close svg { width: 18px; height: 18px; }

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-alt);
  border-radius: 5px;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
}
.auth-tab.active { background: var(--card-bg); color: var(--fg); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.auth-modal-panel h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.auth-modal-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.4rem; }

.auth-field {
  display: block;
  margin-bottom: 1rem;
}
.auth-field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
}
.auth-field textarea { resize: vertical; }
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.auth-error {
  background: rgba(211, 30, 36, 0.08);
  color: var(--red-dark);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  margin: -0.25rem 0 1rem;
}
@media (prefers-color-scheme: dark) {
  .auth-error { color: #ff8f93; }
}

.auth-submit { width: 100%; }
.auth-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1.1rem 0 0;
}

.auth-check-email { text-align: center; padding: 0.5rem 0 0.25rem; }
.auth-check-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.auth-check-email h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.auth-check-email p { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.5rem; line-height: 1.5; }
.auth-check-email strong { color: var(--fg); }

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  max-width: 460px;
  padding: 0 1rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  width: 100%;
  background: var(--black);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-in { opacity: 1; transform: translateY(0); }
.toast-success { background: #1f7a3f; }
.toast-error { background: var(--red-dark); }

/* Category page */
.category-crumb {
  padding: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.category-crumb a { color: var(--muted); }
.category-crumb a:hover { color: var(--red); }
.category-crumb span { margin: 0 0.35rem; }

.category-hero { padding: 2rem 0 1.5rem; }
.category-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.5rem; }
.category-hero p { color: var(--muted); margin: 0; }

.category-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-pill {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--red); }
.filter-pill.active { background: var(--red); border-color: var(--red); color: #fff; }

.category-city-filter { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; }
.category-city-filter select {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 0.88rem;
}

.category-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

#business-grid { margin-bottom: 4rem; }

/* Vote / live results */
.vote-grid {
  margin-bottom: 4rem;
}
.vote-grid:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.vote-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
}
.vote-row-mine { border-color: var(--red); background: rgba(211, 30, 36, 0.04); }

.vote-rank {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  font-size: 1.05rem;
}
.vote-row:nth-child(1) .vote-rank { color: var(--gold); }

.vote-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vote-photo img { width: 100%; height: 100%; object-fit: cover; }
.vote-photo svg { width: 22px; height: 22px; color: rgba(0,0,0,0.22); }
@media (prefers-color-scheme: dark) {
  .vote-photo svg { color: rgba(255,255,255,0.18); }
}

.vote-info { flex: 1; min-width: 0; }
.vote-name { font-weight: 700; font-size: 0.98rem; }
.vote-name a:hover { color: var(--red); text-decoration: underline; }
.vote-location-count {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  vertical-align: middle;
}
.vote-website { font-size: 0.8rem; color: var(--muted); }
.vote-website:hover { color: var(--red); }

.vote-count {
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}
.vote-count strong { display: block; font-size: 1.15rem; }
.vote-count span { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }

.vote-btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .vote-row { flex-wrap: wrap; align-items: flex-start; }
  .vote-rank { order: 1; }
  .vote-photo { order: 2; }
  .vote-info { order: 3; flex-basis: 100%; min-width: 0; margin-top: 0.6rem; }
  .vote-count { order: 4; text-align: left; }
  .vote-btn { order: 5; margin-left: auto; }
}

/* Brand page (grouped locations) */
.brand-hero { padding: 2rem 0 1.5rem; display: flex; align-items: center; gap: 1.1rem; }
.brand-hero-logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.brand-hero-logo:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-hero-text h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.35rem; }
.brand-hero-text p { color: var(--muted); margin: 0; }

.location-grid { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 4rem; }
.location-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.location-row:hover { border-color: var(--red); transform: translateY(-1px); }
.location-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.location-photo img { width: 100%; height: 100%; object-fit: cover; }
.location-photo svg { width: 22px; height: 22px; color: rgba(0,0,0,0.22); }
@media (prefers-color-scheme: dark) {
  .location-photo svg { color: rgba(255,255,255,0.18); }
}
.location-info { flex: 1; min-width: 0; }
.location-name { font-weight: 700; font-size: 0.98rem; }
.location-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.location-noprofile { font-size: 0.78rem; color: var(--muted); font-style: italic; flex-shrink: 0; }
.location-chevron { flex-shrink: 0; color: var(--muted); }
a.location-row:hover .location-chevron { color: var(--red); }

@media (max-width: 640px) {
  .brand-hero { gap: 0.85rem; }
  .brand-hero-logo { width: 52px; height: 52px; flex-basis: 52px; }
}

/* Business profile page */
.profile-hero-banner {
  position: relative;
  min-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-alt);
  margin-top: 1.5rem;
  display: flex;
}
.profile-hero-banner-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.profile-hero-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-banner-img svg { width: 64px; height: 64px; color: rgba(255,255,255,0.25); }

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.68) 38%, rgba(8,8,8,0.25) 68%, rgba(8,8,8,0.05) 100%);
}

.profile-hero-photos-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
}
.profile-hero-photos-btn:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 5px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(3px);
}
.profile-hero-photos-btn:hover { background: rgba(0,0,0,0.72); }
.profile-hero-photos-btn svg { width: 15px; height: 15px; }

.profile-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  padding: 1.5rem 2.25rem;
}
.profile-logo {
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
  padding: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-logo img { width: 100%; height: 100%; object-fit: contain; }
.profile-logo svg { width: 40px; height: 40px; color: rgba(0,0,0,0.2); }

.profile-info { flex: 1; min-width: 0; }
.profile-badges { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.profile-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201, 162, 39, 0.22);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.profile-badge-top svg { width: 13px; height: 13px; }
.profile-info h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.35rem; text-shadow: 0 1px 8px rgba(0,0,0,0.25); }

.profile-rating-row:not([hidden]) { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; flex-wrap: wrap; }
.profile-stars { color: var(--gold); font-size: 1rem; letter-spacing: 0.05em; }
.profile-rating-value { font-weight: 800; color: #fff; }
.profile-rating-row a { color: rgba(255,255,255,0.75); font-size: 0.9rem; text-decoration: none; }
.profile-rating-row a:hover { color: #fff; text-decoration: underline; }

.profile-meta-line { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin: 0 0 0.75rem; }
.profile-meta-line span:not(:last-child)::after { content: "\00b7"; margin: 0 0.5rem; }

.profile-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.profile-vote-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.profile-vote-box .btn { white-space: nowrap; }
.profile-vote-count { display: none; font-size: 1.05rem; font-weight: 800; color: var(--red); white-space: nowrap; }
.profile-btn-icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.profile-btn-icon svg { width: 15px; height: 15px; }
.btn-outline-light {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.22); border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.15); }

.profile-reposition-dragcatch:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: grab;
  touch-action: none;
}
.profile-reposition-dragcatch.is-dragging { cursor: grabbing; }
.profile-reposition-bar {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
}
.profile-reposition-bar:not([hidden]) {
  display: flex;
  transform: translateX(-50%);
  align-items: center;
  gap: 1rem;
  background: rgba(0,0,0,0.78);
  color: #fff;
  border-radius: 5px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  backdrop-filter: blur(3px);
  white-space: nowrap;
}
.profile-reposition-actions { display: flex; gap: 0.5rem; }

.profile-layout { display: flex; gap: 2.5rem; align-items: flex-start; padding-bottom: 4rem; }
.profile-main { flex: 1; min-width: 0; }
.profile-sidebar { flex: 0 0 320px; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 90px; }

.profile-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.profile-card h3 { font-size: 1.05rem; margin: 0 0 1rem; }
.profile-contact-row:not([hidden]) { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--fg); }
.profile-contact-row svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--red); margin-top: 0.1rem; }
.profile-contact-row a { color: inherit; text-decoration: none; }
.profile-contact-row a:hover { color: var(--red); }
.profile-open-status { font-weight: 700; }
.profile-open-status.is-open { color: #1a8a4a; }
.profile-open-status.is-closed { color: var(--red); }
.profile-hours-toggle { background: none; border: none; padding: 0; margin-left: 0.4rem; color: var(--muted); font-size: 0.85rem; cursor: pointer; text-decoration: underline; }
.profile-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin: 0.75rem 0; height: 160px; }
.profile-map iframe { width: 100%; height: 100%; border: 0; }
#profile-directions-btn { width: 100%; justify-content: center; }

.profile-hours-table { width: 100%; font-size: 0.88rem; border-collapse: collapse; }
.profile-hours-table td { padding: 0.35rem 0; color: var(--muted); }
.profile-hours-table td:last-child { text-align: right; color: var(--fg); }
.profile-hours-table tr.is-today td { color: var(--fg); font-weight: 700; }
.profile-hours-table tr.is-today td:first-child { color: var(--fg); }

.profile-categories { padding: 1.5rem 0 0.5rem; border-top: 1px solid var(--border); }
.profile-categories h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.profile-category-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.profile-category-tags a.filter-pill { text-decoration: none; }

.profile-description {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.profile-description h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.profile-description p { color: var(--muted); line-height: 1.7; margin: 0; }

.profile-amenities { padding: 0.5rem 0 2rem; border-top: 1px solid var(--border); }
.profile-amenities h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.profile-amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.9rem; }
.profile-amenity { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; }
.profile-amenity-icon {
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(211, 30, 36, 0.08); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex: 0 0 34px;
}
.profile-amenity-icon svg { width: 17px; height: 17px; }

.profile-photos { padding: 0.5rem 0 2rem; border-top: 1px solid var(--border); }
.profile-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.profile-section-head h2, .profile-section-head h3 { font-size: 1.2rem; margin: 0; }
.profile-section-head a { color: var(--red); font-size: 0.88rem; text-decoration: none; }
.profile-section-head-actions { display: flex; align-items: center; gap: 0.75rem; }

.section-edit-btn {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  cursor: pointer;
}
.section-edit-btn:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.section-edit-btn:hover { color: var(--red); border-color: var(--red); }
.section-edit-btn svg { width: 14px; height: 14px; }

.profile-name-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.profile-name-row .section-edit-btn { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); color: #fff; }
.profile-name-row .section-edit-btn:hover { background: rgba(255,255,255,0.25); border-color: #fff; color: #fff; }

.inline-editor {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.inline-editor textarea, .inline-editor input { width: 100%; }
.inline-editor .auth-field { margin-bottom: 0.85rem; }
.inline-editor .auth-field:last-child { margin-bottom: 0; }
.inline-editor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.25rem; }
.inline-editor-grid .admin-field-wide { grid-column: 1 / -1; }
.inline-editor-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.25rem; }
.inline-editor-actions { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.profile-admin-empty-hint { color: var(--muted); font-size: 0.88rem; font-style: italic; margin: 0 0 0.75rem; }

@media (max-width: 640px) {
  .inline-editor-grid, .inline-editor-grid-2 { grid-template-columns: 1fr; }
}
.profile-photos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
.profile-photo-tile { position: relative; height: 140px; border-radius: 12px; overflow: hidden; background: var(--bg-alt); }
.profile-photo-tile:has(.profile-photo-more-overlay) { cursor: pointer; }
.profile-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-more-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; text-align: center; font-size: 0.9rem; gap: 0.2rem;
}

.profile-reviews { padding: 0.5rem 0 2rem; border-top: 1px solid var(--border); }
.profile-reviews h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.profile-reviews-summary:not([hidden]) { display: flex; gap: 2.5rem; align-items: center; margin-bottom: 1.75rem; flex-wrap: wrap; }
.profile-rating-big { font-size: 3rem; font-weight: 800; line-height: 1; }
.profile-rating-big-wrap { text-align: center; }
.profile-rating-big-wrap .profile-stars { display: block; margin: 0.3rem 0; font-size: 1.1rem; }
.profile-rating-big-sub { color: var(--muted); font-size: 0.85rem; }
.profile-rating-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 0.35rem; }
.profile-rating-bar-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.profile-rating-bar-row span:first-child { flex: 0 0 42px; }
.profile-rating-bar-row span:last-child { flex: 0 0 32px; text-align: right; }
.profile-rating-bar-track { flex: 1; height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; }
.profile-rating-bar-fill { height: 100%; background: var(--red); border-radius: 999px; }

.profile-write-review { margin-bottom: 2rem; }
.profile-star-picker { display: flex; gap: 0.3rem; margin-bottom: 0.75rem; }
.profile-star-picker button { background: none; border: none; padding: 0; cursor: pointer; color: var(--border); }
.profile-star-picker button svg { width: 26px; height: 26px; }
.profile-star-picker button.active { color: var(--gold); }
.profile-write-review textarea { width: 100%; min-height: 90px; resize: vertical; }

.profile-reviews-list { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-review-card { display: flex; gap: 0.9rem; }
.profile-review-avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.profile-review-name-row { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.profile-review-verified { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.profile-review-verified svg { width: 13px; height: 13px; color: #1a8a4a; }
.profile-review-meta { display: flex; align-items: center; gap: 0.6rem; margin: 0.15rem 0 0.5rem; }
.profile-review-meta .profile-stars { font-size: 0.85rem; }
.profile-review-meta span { color: var(--muted); font-size: 0.8rem; }
.profile-review-body { margin: 0; color: var(--fg); line-height: 1.6; font-size: 0.92rem; }
.profile-reviews-empty { color: var(--muted); font-size: 0.92rem; }

.profile-rankings { padding-bottom: 4rem; }

@media (max-width: 900px) {
  .profile-layout { flex-direction: column; }
  .profile-sidebar { flex-basis: auto; width: 100%; position: static; }
}

@media (max-width: 720px) {
  .profile-hero-banner { margin-top: 1rem; min-height: 380px; }
  .profile-hero-content { flex-direction: column; align-items: flex-start; padding: 1.15rem 1.25rem; gap: 1rem; }
  .profile-logo { width: 104px; height: 104px; flex-basis: 104px; padding: 10px; }
  .profile-hero-photos-btn { top: 0.85rem; right: 0.85rem; padding: 0.4rem 0.7rem; font-size: 0.75rem; }
  .profile-vote-box { width: 100%; justify-content: space-between; }
  .profile-actions { width: 100%; }
  .profile-photos-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-photos-grid .profile-photo-tile:nth-child(n+7) { display: none; }
  .profile-reviews-summary { gap: 1.5rem; }
}

.featured-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  margin-bottom: 4rem;
}
.featured-section h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.featured-section > p { color: var(--muted); margin: 0 0 1.5rem; }

/* Admin page */
.admin-main { padding: 3rem 0 5rem; }

.admin-gate {
  max-width: 420px;
  margin: 3rem auto;
  text-align: center;
}
.admin-gate h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.admin-gate p { color: var(--muted); margin: 0 0 1.5rem; }

.admin-header { margin-bottom: 2rem; }
.admin-header h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.admin-header p { color: var(--muted); margin: 0; }

.admin-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.25rem;
}
.admin-field-wide { grid-column: 1 / -1; }
.admin-form .auth-error { margin-top: 0; }
.admin-form-actions { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.admin-form-actions .btn { margin-top: 0; }

.admin-checkbox-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-top: 0.3rem; }
.admin-checkbox { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 500; cursor: pointer; }
.admin-checkbox input { width: 15px; height: 15px; cursor: pointer; }

.admin-checkbox-group { margin-bottom: 0.9rem; }
.admin-checkbox-group h5 { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 0.4rem; }

.admin-subsection { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.25rem; }
.admin-subsection > span { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem; }

.admin-hours-row { display: grid; grid-template-columns: 90px 1fr 1fr auto; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.admin-hours-row label { font-size: 0.85rem; color: var(--muted); }
.admin-hours-row input[type="time"] { width: 100%; }
.admin-hours-row .admin-checkbox { font-size: 0.8rem; white-space: nowrap; }

.admin-photo-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.admin-photo-row input { flex: 1; }
.admin-photo-remove, .admin-hours-row .admin-photo-remove {
  background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
  width: 34px; height: 34px; flex: 0 0 34px; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1;
}
.admin-photo-remove:hover { color: var(--red); border-color: var(--red); }
.admin-photo-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; flex-wrap: wrap; }

.admin-upload-row { display: flex; gap: 0.5rem; }
.admin-upload-row input[type="url"] { flex: 1; }
.admin-upload-btn { white-space: nowrap; }

.admin-import-section { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; margin-bottom: 2.5rem; }
.admin-import-section .admin-list-head { margin-bottom: 0; }
.admin-import-hint { color: var(--muted); font-size: 0.85rem; margin: 0.4rem 0 1rem; }
.admin-import-controls { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.admin-import-controls input[type="file"] { font-size: 0.85rem; }
.admin-import-progress { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); }
.admin-import-results { margin-top: 1rem; max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); }
.admin-import-row { padding: 0.5rem 0.75rem; font-size: 0.83rem; border-bottom: 1px solid var(--border); }
.admin-import-row:last-child { border-bottom: none; }
.admin-import-row.status-created { color: #1a8a4a; }
.admin-import-row.status-updated { color: var(--red); }
.admin-import-row.status-error { color: #b3261e; background: rgba(179, 38, 30, 0.06); }
.admin-import-summary { font-weight: 700; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }

.admin-taxonomy-section { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; margin-bottom: 2.5rem; }
.admin-taxonomy-section .admin-list-head { margin-bottom: 1rem; }
.admin-taxonomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.admin-taxonomy-form { display: flex; align-items: flex-end; gap: 0.6rem; }
.admin-taxonomy-form .auth-field { flex: 1; margin-bottom: 0; }
.admin-taxonomy-form .btn { white-space: nowrap; }
.admin-taxonomy-list { display: flex; flex-direction: column; gap: 0.55rem; max-height: 220px; overflow-y: auto; }
.admin-taxonomy-row { font-size: 0.85rem; line-height: 1.9; }
.admin-taxonomy-row strong { margin-right: 0.6rem; }
.admin-taxonomy-tag {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.admin-taxonomy-tag-empty { font-style: italic; }
@media (max-width: 640px) {
  .admin-taxonomy-grid { grid-template-columns: 1fr; }
  .admin-taxonomy-form { flex-direction: column; align-items: stretch; }
}

.admin-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--muted);
}
.admin-badge.on { background: rgba(211, 30, 36, 0.1); color: var(--red); }
.admin-row-actions { display: flex; gap: 0.4rem; }

.admin-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.admin-list-head h3 { font-size: 1.15rem; }
.admin-list-count { color: var(--muted); font-size: 0.85rem; }

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.admin-filters input, .admin-filters select {
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 0.85rem;
}
.admin-filters input { flex: 1 1 180px; min-width: 140px; }
.admin-filters select { flex: 0 0 auto; }

.admin-bulk-bar {
  background: rgba(211, 30, 36, 0.06);
  border: 1px solid rgba(211, 30, 36, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.admin-bulk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: 0.95rem; }
.admin-bulk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 1rem;
  margin-bottom: 0.75rem;
}
.admin-bulk-grid .auth-field span { font-size: 0.78rem; }
.admin-bulk-grid select { font-size: 0.85rem; padding: 0.5rem 0.6rem; }
.admin-bulk-grid-images { margin-top: 0.5rem; }
.admin-bulk-amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0.5rem 0 1rem; }
.admin-bulk-amenities > div > span { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; }
.admin-bulk-amenities .admin-checkbox { font-size: 0.8rem; }
@media (max-width: 640px) {
  .admin-bulk-amenities { grid-template-columns: 1fr; }
}

.admin-table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; table-layout: fixed; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .admin-th-check, .admin-table td:first-child { width: 34px; padding-right: 0; }
.admin-table td:nth-child(2) { white-space: normal; }
.admin-table td:nth-child(3) { white-space: normal; font-size: 0.82rem; color: var(--muted); }
.admin-table th:last-child, .admin-table td:last-child { width: 78px; }
.admin-empty { color: var(--muted); text-align: center; white-space: normal; }

.admin-icon-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; border: 1px solid var(--border); background: var(--card-bg); color: var(--muted); cursor: pointer;
}
.admin-icon-btn svg { width: 15px; height: 15px; }
.admin-icon-btn:hover { color: var(--red); border-color: var(--red); }
.admin-icon-btn.admin-icon-btn-delete:hover { color: #b3261e; border-color: #b3261e; }

@media (max-width: 640px) {
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(50%, 220px); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.nav-links-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    gap: 1.1rem;
  }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .cta-band { flex-direction: column; text-align: center; padding: 2.25rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
