/* ── AutoDetailing.lv — Custom CSS ─────────────────────────────── */

/* ── Self-hosted Google Fonts ─────────────────────────────────── */
/* Inter — body font */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-v18-latin-ext-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v18-latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-v18-latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v18-latin-ext-600.woff2') format('woff2');
}

/* Sora — display/heading font */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sora-v12-latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-v12-latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-v12-latin-ext-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/sora-v12-latin-ext-800.woff2') format('woff2');
}

:root {
  --bg-dark:       #f8f9fa;
  --bg-card:       #ffffff;
  --bg-card-hover: #f9fafb;
  --surface:       #f3f4f6;
  --accent:        #0ea5e9;
  --accent-warm:   #ff6b35;
  --accent-gold:   #ffd700;
  --accent-green:  #10b981;
  --text-primary:  #1a1a2e;
  --text-secondary:#4b5563;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --border-hover:  #0ea5e9;
  --glass:         rgba(255,255,255,0.8);
  --segment-low:   #4caf50;
  --segment-mid:   #2196f3;
  --segment-premium:#ffd700;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
}

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

/* Screen reader only (replaces Tailwind sr-only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #0284c7; }

/* ── Glassmorphism Card ─────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

/* ── Studio Card ────────────────────────────── */
.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.studio-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.12);
  transform: translateY(-4px);
}
.studio-card__cover {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.studio-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.studio-card:hover .studio-card__cover img { transform: scale(1.05); }

/* Distance slider (geolocation radius filter) */
.distance-slider { display:flex; align-items:center; gap:0.75rem; }
.distance-slider__input {
  flex:1; height:6px; -webkit-appearance:none; appearance:none;
  background:linear-gradient(to right, var(--accent, #0ea5e9) var(--progress, 50%), #e5e7eb var(--progress, 50%));
  border-radius:999px; outline:none; cursor:pointer;
}
.distance-slider__input::-webkit-slider-thumb {
  -webkit-appearance:none; width:20px; height:20px; border-radius:50%;
  background:#fff; border:3px solid var(--accent, #0ea5e9);
  box-shadow:0 1px 4px rgba(0,0,0,0.15); cursor:grab; transition:transform 0.15s;
}
.distance-slider__input::-webkit-slider-thumb:hover { transform:scale(1.15); }
.distance-slider__input::-moz-range-thumb {
  width:20px; height:20px; border-radius:50%; border:3px solid var(--accent, #0ea5e9);
  background:#fff; box-shadow:0 1px 4px rgba(0,0,0,0.15); cursor:grab;
}
.distance-slider__input::-moz-range-track {
  height:6px; background:#e5e7eb; border-radius:999px;
}
.distance-slider__value {
  font-family:'Sora',sans-serif; font-size:0.8rem; font-weight:700;
  color:var(--accent, #0ea5e9); white-space:nowrap; min-width:3rem; text-align:right;
}

/* Distance badge (geolocation) */
.studio-card .distance-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.studio-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.studio-card__title { font-family: 'Sora', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.studio-card__location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.studio-card__rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.studio-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.studio-card__tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--accent);
  border: 1px solid #e5e7eb;
}
.studio-card__actions { margin-top: auto; display: flex; gap: 0.5rem; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-gold {
  background: linear-gradient(135deg, #ffd700, #e6b800);
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}
.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(255,215,0,0.45);
  transform: translateY(-1px);
}
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Header ─────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.header--scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header__inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: height 0.3s ease;
}
.header--scrolled .header__inner { height: 48px; }
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}
.header--scrolled .header__logo { font-size: 1.1rem; }
.header__logo-icon { width: 30px; height: 30px; flex-shrink: 0; transition: width 0.3s ease, height 0.3s ease; }
.header--scrolled .header__logo-icon { width: 24px; height: 24px; }
.header__logo span { color: #0369a1; }
.header__nav { display: flex; align-items: center; gap: 0.25rem; }
.header__nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  text-decoration: none;
}
.header__nav a:hover, .header__nav a.active { color: var(--text-primary); background: #f3f4f6; }
.header--scrolled .header__nav a { padding: 0.3rem 0.6rem; font-size: 0.82rem; }
.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.header__mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Language switcher — shared styles */
.header__nav-lang {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.header__nav-lang a {
  font-size: 0.75rem !important;
  font-weight: 600;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s;
  background: none !important;
  border: none !important;
  width: auto !important;
}
.header__nav-lang a.active,
.header__nav-lang a:hover { color: #0369a1; background: #e0f2fe !important; }

/* Desktop: show only the one in header__actions */
.header__lang-mobile { display: none; }
.header__lang-desktop { margin-left: 1rem; border-left: 1px solid var(--border); }

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__mobile-btn { display: block; }
  /* Hide desktop lang, mobile lang appears inside menu */
  .header__lang-desktop { display: none !important; }
  .header__inner { height: 57px; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 57px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    z-index: 100;
  }
  .header__nav.open a { width: 100%; padding: 0.6rem 1rem; }
  .header__nav.open .header__lang-mobile {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .header__nav.open .header__lang-mobile a {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 6px;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
  }
  .header__nav.open .header__lang-mobile a.active {
    background: #e0f2fe !important;
    color: var(--accent);
    border-color: var(--accent);
  }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  max-width: 1520px;
  margin: 0.5rem auto 8px;
  padding: 0 2rem;
}
.hero__inner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: none;
  padding: 0;
  margin: 0;
  background: linear-gradient(to right, #ffffff 0%, #ffffff 40%, #f0f1f3 70%, #e8e9ec 100%);
  border-radius: 16px;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
}
.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  border-radius: 16px;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__image-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #ffffff 5%, rgba(255,255,255,0.55) 30%, transparent 55%);
  pointer-events: none;
}
.hero__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Page Hero (inner pages) ─────────────────── */
.page-hero {
  max-width: 1520px;
  margin: 0.5rem auto 8px;
  padding: 0 2rem;
}
.page-hero__inner {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 55%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

/* ── Breadcrumb Bar ─────────────────────────────── */
.breadcrumb-bar {
  background: #f3f4f6;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.875rem 0;
}

/* ── Search Bar ──────────────────────────────── */
.search-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 780px;
}
.search-bar__input {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
.search-bar__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.search-bar__input::placeholder { color: var(--text-muted); }
.search-bar select.search-bar__input { cursor: pointer; }

/* ── Hero Stats ──────────────────────────────── */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 2.5rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.25rem;
}
.hero-stats__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1.25rem;
}
.hero-stats__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-stats__number {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}
.hero-stats__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-stats__sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
  }
  .hero-stats__sep { display: none; }
  .hero-stats__item { padding: 0.35rem 0.75rem; }
}

/* ── Section ─────────────────────────────────── */
.section { padding: 3rem 0; }
.section--compact { padding: 2.5rem 0; }
.section--wide { padding: 4rem 0; }
.section__header { margin-bottom: 1.75rem; }
.section__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.section__title span { color: var(--accent); }
.section__subtitle { color: var(--text-secondary); font-size: 0.875rem; }
.container { max-width: 1520px; margin: 0 auto; padding: 0 2rem; }

/* ── Home page grids ──────────────────────────── */
.home-services-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px,1fr)); gap:1rem; }
.home-cities-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:1rem; }
.home-top-studios { padding:2.5rem 0; }
.home-map-section { padding:2.5rem 0; }
.home-hiw-section { padding:2.5rem 0; }

/* ── Service Card ─────────────────────────────── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  min-height: 110px;
  contain: layout style;
}
.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.12);
}
.service-card svg {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  transition: transform 0.3s ease;
}
.service-card:hover svg {
  transform: scale(1.1);
}
.service-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #0369a1;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.service-card__name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0; }

/* ── City Card ────────────────────────────────── */
.city-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
}
.city-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.city-card:hover .city-card__bg { transform: scale(1.05); }
.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.city-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
}
.city-card__name { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; }
.city-card__count { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* ── Rating Stars ─────────────────────────────── */
.stars { color: #fbbf24; letter-spacing: 0.05em; }

/* ── Filters Sidebar ──────────────────────────── */
.filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.filters__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.85rem; color: var(--text-primary); }

/* ── Filter toggle (mobile) ──────────────────── */
.filters-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}
.filters-toggle:hover { border-color: var(--accent); }
.filters-toggle__icon { transition: transform 0.3s; color: var(--accent); font-size: 1rem; }
.filters-toggle.open .filters-toggle__icon { transform: rotate(180deg); }
.filters-toggle__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 0.5rem;
}
.filter-group { margin-bottom: 0.85rem; }
.filter-group__label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; display: block; }
.filter-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: 'Inter',sans-serif;
  outline: none;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--accent); }
.segment-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.segment-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-secondary);
}
.segment-pill[data-value="low"].active  { border-color:#4caf50; color:#4caf50; background:rgba(76,175,80,0.1); }
.segment-pill[data-value="mid"].active  { border-color:#2196f3; color:#2196f3; background:rgba(33,150,243,0.1); }
.segment-pill[data-value="premium"].active { border-color:#ffd700; color:#ffd700; background:rgba(255,215,0,0.1); }

/* ── Breadcrumbs ─────────────────────────────── */
.breadcrumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 0; }
.breadcrumbs a { color: #4b5563; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { opacity: 0.4; }

/* ── Tabs ────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'Inter',sans-serif;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Badge ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-verified { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-featured { background: #fef3c7; color: #a16207; border: 1px solid #fcd34d; }
.badge-premium  { background: #fef3c7; color: #a16207; border: 1px solid #fcd34d; }
.badge-mid      { background: #dbeafe; color: #3b82f6; border: 1px solid #93c5fd; }
.badge-low      { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* ── Review Card ─────────────────────────────── */
.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.review-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; gap: 0.5rem; }
.review-card__author { font-weight: 600; font-size: 0.9rem; }
.review-card__date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.review-card__text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.review-card__badges { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.review-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.review-badge--verified { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.review-badge--google { background: #3c4043; color: #ffffff; }
.review-card__reply {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f0f9ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.825rem;
  color: var(--text-secondary);
}
.review-card__reply-label { font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-bottom: 0.25rem; }

/* Review category ratings */
.review-card__cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0.6rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8f9fa;
  border-radius: 10px;
}
.review-card__cat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}
.review-card__cat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.review-card__cat-label {
  color: #6b7280;
  white-space: nowrap;
  min-width: 52px;
}
.review-card__cat-bar {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  min-width: 40px;
}
.review-card__cat-bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.review-card__cat-val {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 0.7rem;
  min-width: 10px;
  text-align: right;
}
@media (max-width: 480px) {
  .review-card__cats { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ── Form ─────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: 'Inter',sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input.error { border-color: #ef4444; }
.form-error { font-size: 0.75rem; color: #ef4444; margin-top: 0.25rem; }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

/* ── Dashboard Sidebar ──────────────────────── */
.dash-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.dash-sidebar__logo { padding: 1.5rem; border-bottom: 1px solid var(--border); font-family:'Sora',sans-serif; font-size:1.1rem; font-weight:800; }
.dash-sidebar__logo span { color: var(--accent); }
.dash-sidebar__nav { flex: 1; padding: 1rem 0; }
.dash-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-decoration: none;
}
.dash-nav-item:hover { background: #f3f4f6; color: var(--text-primary); }
.dash-nav-item.active { background: #e0f2fe; color: var(--accent); border-right: 3px solid var(--accent); }
.dash-sidebar__user { padding: 1rem 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }

/* ── Admin Table ─────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-secondary);
  vertical-align: middle;
}
.admin-table tr:hover td { background: #f9fafb; }

/* ── Pagination ──────────────────────────────── */
.btn-page {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-page:hover { border-color: var(--accent); color: var(--accent); }
.btn-page.active { background: var(--accent); border-color: var(--accent); color: #ffffff; font-weight: 700; }

/* ── Alert / Flash ───────────────────────────── */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #15803d; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #ef4444; }
.alert-info    { background: #e0f2fe; border: 1px solid #7dd3fc; color: var(--accent); }

/* ── FAQ Accordion ───────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-card);
}
.faq-item.open .faq-answer { display: block; }
.faq-chevron { transition: transform 0.3s; font-size: 1rem; color: var(--accent); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal__title { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 1.1rem; }
.modal__close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.5rem; line-height: 1; transition: color 0.2s; }
.modal__close:hover { color: var(--text-primary); }
.modal__body { padding: 1.5rem; }

/* ── Neon Glow Accent ────────────────────────── */
.neon-text { color: var(--accent); text-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
.neon-border { border-color: var(--accent); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); }

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Utility ─────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-gold    { color: var(--accent-gold); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.bg-card      { background: var(--bg-card); }
.bg-surface   { background: var(--surface); }
.border-dim   { border-color: var(--border); }
.rounded-card { border-radius: var(--radius); }
.divider      { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Filter toggle visibility (≤900px = sidebar collapses) ─── */
@media (max-width: 900px) {
  .filters-toggle { display: flex; }
  .filters-collapsible { display: none; }
  .filters-collapsible.open { display: block; }
}

/* ── Scroll to top ────────────────────────────── */
#scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.15s, color 0.15s;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-to-top:hover {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

/* ══════════════════════════════════════════════
   TABLET  (769px – 1024px)
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container            { padding: 0 1.25rem; }
  .header__inner        { padding: 0 1.25rem; }
  .hero__content        { padding: 2.5rem 0; }
  .section              { padding: 2.5rem 0; }
  .section--wide        { padding: 3rem 0; }
}

/* ══════════════════════════════════════════════
   MOBILE  (≤768px)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Global compact spacing ─────────────── */
  .container          { padding: 0 1rem; }
  .section            { padding: 1.75rem 0; }
  .section--compact   { padding: 1.5rem 0; }
  .section--wide      { padding: 2rem 0; }
  .section__header    { margin-bottom: 1rem; }
  .section__title     { font-size: 1.25rem; }
  .breadcrumbs        { margin-bottom: 0.75rem; }

  /* ── Hero ────────────────────────────────── */
  .hero                { padding: 0 1rem; }
  .hero__inner        { min-height: 320px; }
  .hero__content      { max-width: 100%; padding: 2rem 1rem; }
  .hero__image        { width: 100%; border-radius: 0; }
  .hero__image-fade   { background: rgba(255,255,255,0.75); }
  .hero__title        { font-size: 1.75rem; margin-bottom: 0.75rem; }
  .hero__subtitle     { font-size: 0.95rem; margin-bottom: 1.25rem; line-height: 1.7; }

  /* ── Search bar — 2-col grid on mobile ─── */
  .search-bar         { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-width: 100%; }
  .search-bar__input  { min-width: 0; width: 100%; max-width: none !important; }
  .search-bar .btn    { grid-column: 1 / -1; width: 100%; }

  /* ── Home grids — compact ──────────────── */
  .home-services-grid { grid-template-columns:repeat(3,1fr); gap:0.6rem; }
  .home-cities-grid   { grid-template-columns:repeat(2,1fr); gap:0.6rem; }
  .home-top-studios   { padding:1.5rem 0; }
  .home-map-section   { padding:1.5rem 0; }
  .home-hiw-section   { padding:1.5rem 0; }

  /* ── Service cards — compact ────────────── */
  .service-card       { padding: 0.75rem; }
  .service-card svg   { width: 28px; height: 28px; }
  .service-card__name { font-size: 0.75rem; }

  /* ── Studio card — compact body ─────────── */
  .studio-card__body  { padding: 0.85rem; }
  .studio-card__title { font-size: 0.82rem; margin-bottom: 0.3rem; }
  .studio-card__location { font-size: 0.72rem; margin-bottom: 0.5rem; }
  .studio-card__tags  { gap: 0.25rem; margin-bottom: 0.6rem; }
  .studio-card__tag   { font-size: 0.6rem; padding: 0.15rem 0.45rem; }

  /* ── City card — tighter ────────────────── */
  .city-card          { aspect-ratio: 3/2; }
  .city-card__content { padding: 0.85rem; }
  .city-card__name    { font-size: 0.9rem; }
  .city-card__count   { font-size: 0.7rem; }

  /* ── FAQ — compact ──────────────────────── */
  .faq-question       { padding: 0.85rem 1rem; font-size: 0.875rem; }
  .faq-answer         { padding: 0 1rem 1rem; font-size: 0.82rem; }

  /* ── Buttons — touch-friendly ───────────── */
  .btn                { padding: 0.7rem 1rem; font-size: 0.82rem; min-height: 44px; }
  .btn-sm             { padding: 0.5rem 0.75rem; font-size: 0.75rem; min-height: 36px; }

  /* ── Modal — full-width on mobile ───────── */
  .modal              { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 95vh; }

  /* ── Prevent grid/flex children from overflowing ── */
  .container          { max-width: 100%; overflow: hidden; }
  img, video, iframe  { max-width: 100%; height: auto; }

  /* ── Hero stats — compact on mobile ────── */
  .hero-stats         { max-width: 100%; }
  .hero-stats__item   { padding: 0.25rem 0.6rem; }
  .hero-stats__number { font-size: 1rem; }
  .hero-stats__label  { font-size: 0.6rem; }
  .hero-stats__icon   { width: 28px; height: 28px; border-radius: 8px; }

  /* ── Review card — badges under name ────── */
  .review-card__header { flex-direction: column !important; align-items: flex-start !important; }
  .review-card__badges { margin-top: 0.3rem; }
  .review-badge { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
}

/* ══════════════════════════════════════════════
   SMALL MOBILE  (≤480px)
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container          { padding: 0 0.75rem; }
  .hero                { padding: 0 0.75rem; }
  .hero__content      { padding: 1.5rem 0.75rem; }
  .hero__inner        { min-height: 280px; }
  .hero__title        { font-size: 1.5rem; }
  .hero__subtitle     { font-size: 1rem; }
  .section__title     { font-size: 1.15rem; }
  .home-services-grid { grid-template-columns:repeat(2,1fr); }
}
