/* =====================================================================
   District Directory — Mobile-First Stylesheet
   Breakpoints tested: 320, 360, 375, 390, 414, 768, 1024, 1366, 1920
   ===================================================================== */

:root {
  --color-primary: #1e40af;
  --color-primary-dark: #1e3a8a;
  --color-accent: #16a34a;
  --color-whatsapp: #25d366;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.10);
  --container-width: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: .5em 1em; z-index: 1000;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 32px 0; }
.section h2 { font-size: 1.4rem; margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-call { background: var(--color-primary); color: #fff; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-email { background: #f59e0b; color: #fff; }
.btn-website { background: #6366f1; color: #fff; }
.btn-view-profile { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); width: 100%; margin-top: 8px; }
.btn-search { background: var(--color-primary); color: #fff; }
.btn-hero { background: var(--color-accent); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: #fff; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.logo { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.logo-text {
  font-weight: 800; font-size: 1.25rem; color: var(--color-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-menu-toggle {
  display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  width: 26px; height: 20px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.mobile-menu-toggle span { display: block; width: 100%; height: 2px; background: var(--color-text); border-radius: 2px; }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }

.primary-nav {
  position: fixed; top: 0; right: -280px; width: 280px; max-width: 85vw; height: 100vh;
  background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15);
  transition: right .25s ease; z-index: 200; padding-top: 60px; overflow-y: auto; overflow-x: hidden;
}
.primary-nav.open { right: 0; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li { border-bottom: 1px solid var(--color-border); }
.primary-nav a { display: block; padding: 14px 20px; min-height: 48px; box-sizing: border-box; color: var(--color-text); font-weight: 500; line-height: 1.4; }
.primary-nav a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.nav-admin-link { color: var(--color-primary) !important; }

/* ---------- Hero search ---------- */
.hero-search { background: var(--color-bg-alt); text-align: center; padding: 40px 0; }
.hero-search h1 { font-size: 1.6rem; }
.hero-search .lead { color: var(--color-text-muted); }
.search-box { display: flex; max-width: 560px; margin: 20px auto 8px; gap: 8px; }
.search-box input {
  flex: 1; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 1rem;
}
.search-examples { font-size: .85rem; color: var(--color-text-muted); }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; width: 100%; overflow: hidden; background: #000; }
.hero-slider-track { position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 200px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide-caption {
  position: absolute; left: 0; bottom: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; width: 100%;
}
.hero-slide-caption h2 { font-size: 1.2rem; margin-bottom: 4px; }
.hero-slide-caption p { font-size: .9rem; margin-bottom: 8px; }
.hero-slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); border: none; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; z-index: 5;
}
.hero-slider-nav.prev { left: 10px; }
.hero-slider-nav.next { right: 10px; }
.hero-slider-dots { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 6px; z-index: 5; }
.hero-slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.hero-slider-dots button.active { background: #fff; }

/* ---------- Chips ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.chip {
  background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 999px;
  padding: 8px 14px; font-size: .88rem; color: var(--color-text); white-space: nowrap;
}
.chip:hover { background: #eef2ff; text-decoration: none; }
.chip span { color: var(--color-text-muted); }
.link-more { display: inline-block; margin-top: 4px; font-weight: 600; }

/* ---------- Profile grid & cards ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.profile-card {
  border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow); transition: box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.profile-card:hover { box-shadow: var(--shadow-hover); }
.profile-card-photo-link { position: relative; display: block; }
.profile-card-photo { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.badge {
  position: absolute; top: 8px; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff;
  z-index: 3;
}
.badge-featured { left: 8px; top: 42px; background: #f59e0b; }
.badge-verified { right: 8px; top: 46px; background: var(--color-accent); }
.badge-views { right: 8px; bottom: 8px; top: auto; background: rgba(0,0,0,.6); font-weight: 600; }
.profile-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.profile-card-name { font-size: 1.05rem; margin-bottom: 2px; }
.profile-card-name a { color: var(--color-text); }
.profile-card-category { color: var(--color-primary); font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.profile-card-location { color: var(--color-text-muted); font-size: .82rem; margin-bottom: 6px; }
.profile-card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card-rating { font-size: .78rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 4px; }
.price-range-chip { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.price-range-budget { background: #dcfce7; color: #166534; }
.price-range-moderate { background: #fef3c7; color: #92400e; }
.price-range-premium { background: #ede9fe; color: #5b21b6; }
.profile-card-bio { font-size: .85rem; color: var(--color-text-muted); font-style: italic; }
.profile-card-actions { display: flex; gap: 8px; margin-top: auto; }
.profile-card-actions .btn { flex: 1; padding: 9px 8px; font-size: .85rem; }

/* ---------- Independent per-card image slider ---------- */
.profile-card-photo-wrap { position: relative; overflow: hidden; }
.card-slider-track { position: relative; width: 100%; aspect-ratio: 16/11; }
.card-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.card-slide.active { opacity: 1; pointer-events: auto; }
.card-slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  background: rgba(255,255,255,.85); border: none; width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: .75rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s ease;
}
.profile-card-photo-wrap:hover .card-slider-nav,
.profile-card-photo-wrap:focus-within .card-slider-nav { opacity: 1; }
.card-slider-nav.prev { left: 6px; } .card-slider-nav.next { right: 6px; }
.card-slider-dots { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 4px; z-index: 4; }
.card-slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.card-slider-dot.active { background: #fff; }
/* Mobile: nav arrows always visible since there's no hover state on touch devices */
@media (hover: none) {
  .card-slider-nav { opacity: 1; }
}


/* ---------- Layout with sidebar ---------- */
.layout-with-sidebar { display: grid; grid-template-columns: 1fr; gap: 24px; }
.filters-sidebar { background: var(--color-bg-alt); border-radius: var(--radius); padding: 16px; align-self: start; }
.filters-form label { display: block; font-size: .82rem; font-weight: 600; margin: 10px 0 4px; }
.filters-form select, .filters-form input[type=text] {
  width: 100%; padding: 9px 10px; border: 1px solid var(--color-border); border-radius: 6px;
}
.checkbox-label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin-top: 10px; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin-bottom: 4px; }
.filter-list a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--color-text); font-size: .9rem; }
.filter-list a.active, .filter-list a:hover { background: #eef2ff; text-decoration: none; }
.results-count { color: var(--color-text-muted); font-size: .9rem; margin: 6px 0 16px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--color-text-muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span {
  padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 6px; font-size: .9rem; color: var(--color-text);
}
.pagination a:hover { background: var(--color-bg-alt); text-decoration: none; }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 10px; font-size: .82rem; color: var(--color-text-muted); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin: 0 6px; }

/* ---------- Profile detail page ---------- */
.profile-detail-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
.profile-detail-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.profile-detail-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.profile-detail-meta { color: var(--color-text-muted); margin-bottom: 8px; }
.profile-detail-bio { font-style: italic; color: var(--color-text-muted); }
.profile-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { background: var(--color-bg-alt); border-radius: 999px; padding: 4px 10px; font-size: .78rem; }
.profile-share { display: flex; gap: 12px; margin: 14px 0; font-size: .85rem; }
.profile-share button { background: none; border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.profile-social { display: flex; gap: 10px; margin-top: 10px; }
.profile-full-description { border-top: 1px solid var(--color-border); padding-top: 20px; margin-top: 10px; }

/* ---------- Featured/Why-us grids ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.why-item { background: var(--color-bg-alt); padding: 18px; border-radius: var(--radius); }
.cta { background: var(--color-primary); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta .btn-primary { background: #fff; color: var(--color-primary); }

/* ---------- Contact & forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-form { display: flex; flex-direction: column; }
.contact-form label { font-weight: 600; font-size: .85rem; margin: 10px 0 4px; }
.contact-form input, .contact-form textarea {
  padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 1rem; font-family: inherit;
}
.contact-form button { margin-top: 16px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-size: .9rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ---------- Flash messages ---------- */
.flash { padding: 12px 0; text-align: center; font-weight: 600; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* ---------- Footer ---------- */
.site-footer { background: #111827; color: #d1d5db; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px 16px; }
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #d1d5db; }
.footer-col a:hover { color: #fff; }
.footer-stats { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: .85rem; }
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.footer-social a { border: 1px solid #374151; border-radius: 6px; padding: 4px 10px; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 16px 0; text-align: center; font-size: .8rem; }
.footer-bottom a { color: #d1d5db; }

/* ---------- Prose (about/privacy/terms) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 24px; font-size: 1.15rem; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 60px 16px; }
.error-page h1 { font-size: 2rem; }

/* =====================================================================
   Tablet and up (768px+)
   ===================================================================== */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .mobile-menu-toggle { display: none; }
  .primary-nav {
    position: static; width: auto; height: auto; box-shadow: none; padding-top: 0; overflow: visible;
  }
  .primary-nav ul { display: flex; gap: 4px; }
  .primary-nav li { border-bottom: none; }
  .primary-nav a { padding: 10px 14px; }

  .hero-search h1 { font-size: 2.1rem; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-with-sidebar { grid-template-columns: 240px 1fr; }
  .profile-detail-grid { grid-template-columns: 380px 1fr; }
  .contact-layout { grid-template-columns: 1.4fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   Desktop (1024px+)
   ===================================================================== */
@media (min-width: 1024px) {
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-search h1 { font-size: 2.4rem; }
}

/* =====================================================================
   Large desktop (1366px+)
   ===================================================================== */
@media (min-width: 1366px) {
  .profile-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   Back to top button (bottom-right, fixed)
   ===================================================================== */
.back-to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--color-primary); color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background-color .15s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }
.back-to-top:focus-visible { outline: 3px solid rgba(30,64,175,0.4); outline-offset: 2px; }

/* =====================================================================
   Sticky corner image (bottom-left, fixed) — admin-configurable
   ===================================================================== */
.sticky-corner-image {
  position: fixed; left: 16px; bottom: 16px; z-index: 400;
  display: block; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); overflow: hidden;
  transition: transform .15s ease;
}
.sticky-corner-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
a.sticky-corner-image:hover { transform: scale(1.06); }
a.sticky-corner-image:focus-visible { outline: 3px solid rgba(30,64,175,0.4); outline-offset: 2px; }

/* =====================================================================
   Popup modal (shared visual base for the marketing popup and age gate)
   ===================================================================== */
.site-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 500;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.site-popup-overlay.open { opacity: 1; visibility: visible; }

.site-popup {
  position: fixed; top: 50%; left: 50%; z-index: 501;
  width: 92%; max-width: 380px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 16px; padding: 32px 24px 24px;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3);
  transform: translate(-50%, -50%) scale(0.92); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.site-popup.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.site-popup-image { width: 88px; height: 88px; margin: 0 auto 14px; }
.site-popup h2 { font-size: 1.2rem; margin-bottom: 8px; }
.site-popup p { color: var(--color-text-muted); margin-bottom: 20px; }
.site-popup-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  border: none; background: var(--color-bg-alt); border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--color-text-muted);
}
.site-popup-close:hover { background: #e5e7eb; color: var(--color-text); }
.site-popup-close:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* =====================================================================
   Age verification gate — separate from the popup above; not dismissible
   by clicking outside or pressing Escape (must choose Yes or No)
   ===================================================================== */
.age-gate-overlay {
  position: fixed; inset: 0; background: rgba(17,24,39,.85); z-index: 600;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.age-gate-overlay.open { opacity: 1; visibility: visible; }
.age-gate-modal {
  width: 100%; max-width: 380px; background: #fff; border-radius: 16px;
  padding: 32px 28px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.age-gate-modal h2 { font-size: 1.25rem; margin-bottom: 10px; }
.age-gate-modal p { color: var(--color-text-muted); margin-bottom: 24px; font-size: .92rem; }
.age-gate-actions { display: flex; gap: 12px; }
.age-gate-actions .btn { flex: 1; padding: 12px 16px; font-size: 1rem; }
.age-gate-yes { background: var(--color-primary); color: #fff; }
.age-gate-yes:hover { background: var(--color-primary-dark); }
.age-gate-no { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); }
.age-gate-no:hover { background: #e5e7eb; }

/* Keep the floating buttons clear of mobile browser chrome / above the nav drawer's own overlay */
@media (max-width: 480px) {
  .back-to-top { right: 12px; bottom: 12px; width: 44px; height: 44px; }
  .sticky-corner-image { left: 12px; bottom: 12px; width: 56px; height: 56px; }
}



/* =====================================================================
   Star ratings
   ===================================================================== */
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars-sm { font-size: .85rem; }
.stars-md { font-size: 1.1rem; }
.stars-lg { font-size: 1.8rem; }
.profile-rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; font-size: .92rem; }
.profile-rating-summary a { font-weight: 600; }
.no-ratings-link { color: var(--color-text-muted); font-style: italic; }
.profile-views { color: var(--color-text-muted); font-size: .82rem; margin-left: auto; }

/* =====================================================================
   Info cards (General Info / Services / Business Hours / Ratings)
   ===================================================================== */
.info-card {
  background: var(--color-bg-alt); border-radius: var(--radius); padding: 20px;
  margin-top: 20px;
}
.info-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--color-text-muted); font-weight: 600; }
.info-value { text-align: right; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.service-item { background: #fff; border-radius: 8px; padding: 12px 14px; border: 1px solid var(--color-border); }
.service-name { display: block; font-weight: 600; }
.service-desc { display: block; font-size: .85rem; color: var(--color-text-muted); margin-top: 2px; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: 8px 4px; border-bottom: 1px solid var(--color-border); }
.hours-table td:first-child { font-weight: 600; width: 45%; }
.hours-table tr.today td { color: var(--color-primary); font-weight: 700; }
.hours-table tr:last-child td { border-bottom: none; }

/* Rating overview */
.rating-overview { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.rating-overview-score { text-align: center; }
.rating-big-number { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.rating-distribution { display: flex; flex-direction: column; gap: 6px; }
.rating-bar-row { display: grid; grid-template-columns: 36px 1fr 30px; align-items: center; gap: 8px; font-size: .82rem; }
.rating-bar-track { background: #e5e7eb; border-radius: 999px; height: 8px; overflow: hidden; }
.rating-bar-fill { background: #f59e0b; height: 100%; border-radius: 999px; }
.no-ratings { color: var(--color-text-muted); margin-bottom: 16px; }

.reviews-list { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.review-item { border-top: 1px solid var(--color-border); padding-top: 14px; }
.review-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.review-date { color: var(--color-text-muted); font-size: .8rem; margin-left: auto; }

/* Rating / report forms inside the shared popup */
.rating-form { text-align: left; }
.rating-form label { display: block; font-weight: 600; font-size: .85rem; margin: 14px 0 5px; }
.rating-form input[type=text], .rating-form select, .rating-form textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--color-border);
  border-radius: 8px; font-family: inherit; font-size: .95rem;
}
.rating-form button[type=submit] { margin-top: 18px; }
.star-picker { display: flex; gap: 6px; justify-content: center; font-size: 2rem; }
.star-picker-btn { background: none; border: none; cursor: pointer; color: #d1d5db; padding: 0; line-height: 1; transition: color .1s ease; }
.star-picker-btn.selected, .star-picker-btn:hover, .star-picker-btn.hovered { color: #f59e0b; }

.report-profile-section { text-align: center; padding: 8px 0 32px; }
.report-profile-link { background: none; border: none; color: var(--color-text-muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.report-profile-link:hover { color: var(--color-text); }

/* =====================================================================
   Gallery carousel + thumbnails + lightbox
   ===================================================================== */
.profile-gallery-section { margin-top: 24px; }
.profile-gallery-section h2 { font-size: 1.15rem; margin-bottom: 12px; }
.gallery-carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.gallery-track { position: relative; width: 100%; aspect-ratio: 4/3; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.gallery-slide.active { opacity: 1; pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85);
  border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; z-index: 5;
}
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.gallery-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.gallery-dots button.active { background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.gallery-thumb.active { border-color: var(--color-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 700;
  display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-image { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.lightbox-nav.prev { left: 16px; } .lightbox-nav.next { right: 16px; }

@media (min-width: 768px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .rating-overview { flex-direction: row; align-items: center; }
  .rating-overview-score { flex: 0 0 160px; }
  .rating-distribution { flex: 1; }
}

/* =====================================================================
   Trending Localities (premium location cards)
   ===================================================================== */
.trending-localities {
  background: linear-gradient(180deg, #f5f4ff 0%, #f9fafb 100%);
  padding: 48px 0;
}
.trending-header { text-align: center; margin-bottom: 32px; }
.hot-areas-pill {
  display: inline-block; background: #dcfce7; color: #166534; font-weight: 700;
  font-size: .78rem; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
  letter-spacing: .02em; text-transform: uppercase;
}
.trending-header h2 {
  font-size: 1.8rem; font-weight: 800; color: #14532d; margin-bottom: 8px;
}
.trending-subtitle { color: var(--color-text-muted); font-size: .95rem; margin: 0; }

.locality-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px;
}
.locality-card {
  position: relative; background: #fff; border-radius: 14px; padding: 20px 16px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); color: var(--color-text); text-decoration: none;
  display: block; opacity: 0; transform: translateY(16px);
  animation: locality-fade-in .5s ease forwards;
  animation-delay: calc(var(--stagger, 0) * 60ms);
  transition: transform .2s ease, box-shadow .2s ease;
}
.locality-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); text-decoration: none;
}
@keyframes locality-fade-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .locality-card { animation: none; opacity: 1; transform: none; }
  .locality-card:hover { transform: none; }
}

.locality-badge {
  display: inline-block; font-size: .72rem; font-weight: 800; color: #fff;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.locality-badge-0 { background: #ec4899; } /* pink */
.locality-badge-1 { background: #8b5cf6; } /* purple */
.locality-badge-2 { background: #06b6d4; } /* cyan */
.locality-badge-3 { background: #10b981; } /* green */
.locality-badge-4 { background: #f59e0b; } /* orange */
.locality-badge-5 { background: #ef4444; } /* red */

.locality-name { font-size: 1.15rem; font-weight: 800; color: #14532d; margin: 0 0 6px; }
.locality-location { display: flex; align-items: center; gap: 5px; color: var(--color-text-muted); font-size: .88rem; margin: 0; }
.locality-pin { font-size: .85rem; }

@media (min-width: 640px) {
  .locality-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .locality-grid { grid-template-columns: repeat(4, 1fr); }
  .trending-header h2 { font-size: 2.1rem; }
}

/* =====================================================================
   FAQ accordion
   ===================================================================== */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; text-align: left; padding: 14px 16px; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--color-text);
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-toggle-icon {
  flex-shrink: 0; font-size: 1.1rem; line-height: 1; color: var(--color-primary);
  transition: transform .25s ease;
}
.faq-item.open .faq-toggle-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 16px; color: var(--color-text-muted); font-size: .9rem;
}
.faq-item.open .faq-answer { padding: 0 16px 16px; }
.faq-answer p { margin: 0; }

/* =====================================================================
   Customer auth pages (login/register)
   ===================================================================== */
.customer-auth-page { padding: 48px 0; }
.customer-auth-card {
  max-width: 420px; margin: 0 auto; background: #fff; border-radius: 14px;
  padding: 32px 28px; box-shadow: 0 10px 30px rgba(0,0,0,.08); border: 1px solid var(--color-border);
}
.customer-auth-card h1 { font-size: 1.4rem; text-align: center; margin-bottom: 6px; }
.customer-auth-card .lead { text-align: center; color: var(--color-text-muted); font-size: .9rem; margin-bottom: 20px; }
.customer-auth-form label { display: block; font-weight: 600; font-size: .85rem; margin: 14px 0 5px; }
.customer-auth-form label:first-of-type { margin-top: 0; }
.customer-auth-form input {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--color-border);
  border-radius: 8px; font-size: .95rem; font-family: inherit;
}
.customer-auth-form button { margin-top: 20px; }
.customer-auth-switch { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--color-text-muted); }

/* =====================================================================
   Favorite heart icon + multi-select on profile cards
   ===================================================================== */
.card-select-checkbox {
  position: absolute; top: 8px; left: 8px; z-index: 4; width: 22px; height: 22px;
  cursor: pointer; accent-color: var(--color-primary);
}
.favorite-heart-btn {
  position: absolute; z-index: 4; top: 8px; right: 8px; background: rgba(255,255,255,.9);
  border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #9ca3af;
  transition: transform .15s ease, color .15s ease;
}
.favorite-heart-btn:hover { transform: scale(1.12); }
.favorite-heart-btn.favorited { color: #ef4444; }
.favorite-heart-btn.favorited::before { content: '♥'; }
.favorite-heart-btn:not(.favorited)::before { content: '♡'; }
.profile-card.selected { outline: 3px solid var(--color-primary); outline-offset: -3px; }

/* Floating multi-select action bar */
.selection-action-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%) translateY(120%);
  background: #111827; color: #fff;  padding: 10px 10px 10px 20px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  z-index: 450; transition: transform .25s ease; max-width: 94vw; flex-wrap: wrap;
}
.selection-action-bar.visible { transform: translateX(-50%) translateY(0); }
.selection-count { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.selection-action-bar .btn { padding: 8px 14px; font-size: .82rem; white-space: nowrap; }
.selection-action-bar .btn-contact { background: var(--color-whatsapp); color: #fff; }
.selection-action-bar .btn-favorite-all { background: #ef4444; color: #fff; }
.selection-action-bar .btn-clear { background: #374151; color: #fff; }

/* Contact-selected-dealers modal */
.contact-selected-list { max-height: 300px; overflow-y: auto; text-align: left; margin: 16px 0; }
.contact-selected-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: .88rem;
}
.contact-selected-item:last-child { border-bottom: none; }

/* =====================================================================
   Homepage gallery carousel
   ===================================================================== */
.homepage-gallery { background: var(--color-bg-alt); padding: 40px 0; }
.gallery-carousel-wrap { position: relative; }
.gallery-carousel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-carousel-track::-webkit-scrollbar { display: none; }
.gallery-carousel-card {
  scroll-snap-align: start; flex: 0 0 calc(100% - 0px);
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.gallery-carousel-img-btn {
  display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in;
  overflow: hidden; aspect-ratio: 4/3;
}
.gallery-carousel-img-btn img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease;
}
.gallery-carousel-img-btn:hover img { transform: scale(1.06); }
.gallery-carousel-caption { padding: 12px 14px; }
.gallery-carousel-caption h3 { font-size: .98rem; margin-bottom: 2px; }
.gallery-carousel-caption p { font-size: .84rem; color: var(--color-text-muted); margin: 0; }

.gallery-carousel-nav {
  position: absolute; top: 40%; transform: translateY(-50%); background: rgba(255,255,255,.9);
  border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 5;
}
.gallery-carousel-nav.prev { left: -6px; } .gallery-carousel-nav.next { right: -6px; }
.gallery-carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gallery-carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: #d1d5db; cursor: pointer; padding: 0; }
.gallery-carousel-dots button.active { background: var(--color-primary); width: 22px; border-radius: 4px; transition: width .2s ease; }

@media (min-width: 640px) {
  .gallery-carousel-card { flex-basis: calc(50% - 8px); }
}
@media (min-width: 1024px) {
  .gallery-carousel-card { flex-basis: calc(25% - 12px); }
  .gallery-carousel-nav.prev { left: -18px; } .gallery-carousel-nav.next { right: -18px; }
}
