/* ═══════════════════════════════════════════════════════════════
   JanBack — style.css
   Dark Theme · Mobile-First · Responsive · Icon-Driven
   janback.tech
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

/* ── Design Tokens ── */
:root {
  /* Colors */
  --bg:       #090c12;
  --bg-2:     #0f1219;
  --bg-3:     #151922;
  --bg-4:     #1b2030;
  --card:     #111420;
  --card-h:   #161a28;

  --gold:     #e8b84b;
  --gold-1:   rgba(232,184,75,.18);
  --gold-2:   rgba(232,184,75,.08);
  --gold-3:   rgba(232,184,75,.35);
  --gold-4:   rgba(232,184,75,.55);

  --green:    #27ae60;
  --green-1:  rgba(39,174,96,.15);
  --red:      #e74c3c;
  --red-1:    rgba(231,76,60,.15);
  --blue:     #2980b9;
  --blue-1:   rgba(41,128,185,.15);
  --teal:     #16a085;
  --teal-1:   rgba(22,160,133,.15);
  --purple:   #8e44ad;
  --purple-1: rgba(142,68,173,.15);
  --orange:   #d35400;
  --orange-1: rgba(211,84,0,.15);

  --border:   rgba(255,255,255,.055);
  --border-2: rgba(255,255,255,.10);
  --border-3: rgba(255,255,255,.16);

  --text:     #e8ecf4;
  --text-2:   #7f8aa0;
  --text-3:   #3d4560;

  /* Typography */
  --fa: 'Tajawal', sans-serif;
  --fe: 'Outfit', sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --sh:    0 4px 24px rgba(0,0,0,.45);
  --sh-lg: 0 12px 48px rgba(0,0,0,.65);
  --sh-gold: 0 0 32px rgba(232,184,75,.12);

  /* Spacing */
  --page-px: 16px;
  --max-w:   820px;

  /* Transitions */
  --t-fast: .15s ease;
  --t-med:  .25s ease;
  --t-slow: .35s cubic-bezier(.4,0,.2,1);
}

/* ── Base ── */
body {
  font-family: var(--fa);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.ltr {
  direction: ltr;
  font-family: var(--fe);
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; }

/* ── Icon images ── */
.dico {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(.7);
}
.btn-ico-img {
  width: 14px; height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(.7);
  flex-shrink: 0;
}
.section-ico {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: invert(76%) sepia(60%) saturate(400%) hue-rotate(5deg);
  flex-shrink: 0;
}
.search-ico {
  width: 17px; height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(.4);
  flex-shrink: 0;
}
.cat-icon {
  width: 20px; height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(.65);
  transition: filter var(--t-fast);
}
.cat-btn.active .cat-icon { filter: brightness(0); }

/* ═══════════════════════════════════════════════════════════════
   DRAWER
   ═══════════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 899;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-slow);
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 84vw);
  height: 100dvh;
  background: var(--bg-3);
  border-left: 1px solid var(--border-2);
  z-index: 900;
  transform: translateX(110%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
body.ltr .drawer {
  right: auto; left: 0;
  border-left: none;
  border-right: 1px solid var(--border-2);
  transform: translateX(-110%);
}
.drawer.open { transform: translateX(0) !important; }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-brand { display: flex; align-items: center; gap: 9px; }
.drawer-brand-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gold-1);
  border: 1px solid var(--gold-3);
  display: flex; align-items: center; justify-content: center;
}
.drawer-brand-icon .dico {
  filter: invert(76%) sepia(60%) saturate(400%) hue-rotate(5deg);
}
.drawer-brand-name {
  font-size: 1.05rem; font-weight: 900;
  color: var(--gold);
  font-family: var(--fe);
}
.drawer-close {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.drawer-close:hover { background: var(--bg-4); color: var(--text); }

/* Drawer Nav */
.drawer-nav { padding: 12px 14px 8px; flex-shrink: 0; }
.dnav-label {
  font-size: .65rem; font-weight: 700;
  color: var(--text-3); letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0 4px; margin-bottom: 7px;
}
.dnav-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text-2); font-size: .88rem; font-weight: 600;
  text-align: inherit;
  transition: background var(--t-fast), color var(--t-fast);
}
.dnav-item:hover, .dnav-item.active {
  background: var(--bg-4); color: var(--text);
}
.dnav-ico {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--c, rgba(255,255,255,.07));
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0;
}
.dnav-ico .dico { width: 15px; height: 15px; filter: brightness(0) invert(.65); }

.drawer-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Drawer Section */
.drawer-section { padding: 12px 14px 8px; flex-shrink: 0; }
.dsec-label {
  font-size: .65rem; font-weight: 700;
  color: var(--text-3); letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Language Grid */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.lang-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 9px; border-radius: var(--r-sm);
  background: var(--bg-4); border: 1px solid var(--border);
  color: var(--text-2); font-size: .73rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.lang-pill:hover, .lang-pill.active {
  border-color: var(--gold); color: var(--gold);
  background: var(--gold-2);
}

/* Contact List */
.contact-list { display: flex; flex-direction: column; gap: 5px; }
.contact-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--bg-4);
  color: var(--text-2); font-size: .82rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.contact-row:hover { background: var(--bg); color: var(--text); }
.cico { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

/* About Text */
.about-text {
  font-size: .8rem; color: var(--text-2);
  line-height: 1.75; padding: 4px 0;
}

/* Drawer Footer */
.drawer-footer {
  margin-top: auto; padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: .7rem; color: var(--text-3);
  text-align: center; flex-shrink: 0;
}
.drawer-footer a { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(9,12,18,.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px var(--page-px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.brand-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gold-1);
  border: 1px solid var(--gold-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-pin {
  width: 18px; height: 18px; object-fit: contain;
  filter: invert(76%) sepia(60%) saturate(400%) hue-rotate(5deg);
}
.brand-text {
  display: flex; flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-size: 1.05rem; font-weight: 900;
  color: var(--text);
  font-family: var(--fe);
  white-space: nowrap;
}
.brand-domain {
  font-size: .6rem; color: var(--text-3);
  font-family: var(--fe); letter-spacing: .2px;
  white-space: nowrap;
}
.brand-flag { font-size: .95rem; flex-shrink: 0; }

/* Header Right */
.header-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

/* Location Chip */
.loc-chip {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-3); border: 1px solid var(--border-2);
  padding: 5px 10px; border-radius: var(--r-sm);
  font-size: .68rem; color: var(--text-3);
  max-width: 120px; overflow: hidden;
}
.loc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); flex-shrink: 0;
  transition: background var(--t-med);
}
.loc-dot.on {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(39,174,96,.2);
  animation: pulse-dot 2.2s infinite;
}
.loc-dot.err { background: var(--red); }
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(39,174,96,.2); }
  50%     { box-shadow: 0 0 0 7px rgba(39,174,96,.06); }
}
.loc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hamburger Button */
.ham-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--bg-3); border: 1px solid var(--border-2);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  flex-shrink: 0;
}
.ham-btn:hover { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-2); }
.ham-line {
  width: 15px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: background var(--t-fast);
}
.ham-btn:hover .ham-line { background: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 48px var(--page-px) 52px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% 110%, rgba(232,184,75,.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 5% 10%,   rgba(39,174,96,.06)  0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 95% 15%,  rgba(41,128,185,.05) 0%, transparent 55%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg, transparent, transparent 52px,
    rgba(255,255,255,.011) 52px, rgba(255,255,255,.011) 53px
  );
}
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold-1);
  border: 1px solid rgba(232,184,75,.2);
  color: var(--gold);
  padding: 4px 14px; border-radius: 20px;
  font-size: .74rem; font-weight: 700; letter-spacing: .5px;
  margin-bottom: 16px;
}
.hero-flag { font-size: 1rem; }

.hero-title {
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  font-weight: 900; color: var(--text);
  line-height: 1.2; margin-bottom: 12px;
}
.hero-title em {
  font-style: normal; color: var(--gold);
}

.hero-sub {
  color: var(--text-2); font-size: clamp(.85rem, 2.5vw, .95rem);
  line-height: 1.75; max-width: 400px; margin: 0 auto;
}

.hero-scroll {
  position: relative; z-index: 2;
  margin-top: 24px;
}
.scroll-arrow {
  display: inline-block;
  color: var(--text-3); font-size: 1.2rem;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED SECTION WRAPPER
   ═══════════════════════════════════════════════════════════════ */
.section { max-width: var(--max-w); margin: 0 auto; padding: 18px 0 6px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-px) 12px;
}
.section-title-group { display: flex; align-items: center; gap: 8px; }
.section-title { font-size: .95rem; font-weight: 800; color: var(--text); }
.section-badge {
  background: var(--gold-1); border: 1px solid rgba(232,184,75,.2);
  color: var(--gold); font-size: .67rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED CARDS
   ═══════════════════════════════════════════════════════════════ */
.featured-track {
  display: flex; gap: 11px;
  padding: 4px var(--page-px) 14px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.featured-track::-webkit-scrollbar { display: none; }

.feat-card {
  flex-shrink: 0;
  width: clamp(150px, 42vw, 185px);
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  overflow: hidden; cursor: pointer;
  scroll-snap-align: start;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,184,75,.3);
  box-shadow: var(--sh-gold);
}
.feat-card:active { transform: scale(.97); }

.feat-card-top {
  height: 70px;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.feat-cat-img {
  width: 30px; height: 30px; object-fit: contain;
}
.feat-gold-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-4);
}
body.ltr .feat-gold-dot { right: auto; left: 8px; }

.feat-card-body { padding: 9px 11px 11px; }
.feat-card-name {
  font-size: .8rem; font-weight: 800; color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feat-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .67rem;
}
.feat-open   { color: var(--green); font-weight: 700; }
.feat-closed { color: var(--red);   font-weight: 700; }
.feat-dist   { color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════════════════════════ */
.map-section { padding-bottom: 14px; }

.map-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--r-sm);
  background: var(--bg-3); border: 1px solid var(--border-2);
  color: var(--text-2); font-size: .76rem; font-weight: 600;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.map-toggle:hover { border-color: var(--blue); color: var(--blue); }

.map-wrapper {
  margin: 0 var(--page-px);
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  overflow: hidden;
  height: 0;
  transition: height var(--t-slow);
}
.map-wrapper.open { height: 300px; }
#leafletMap { width: 100%; height: 300px; }

/* Leaflet dark tile */
.leaflet-tile-pane {
  filter: brightness(.8) invert(1) contrast(.9) hue-rotate(200deg) saturate(.45) brightness(.7);
}
.leaflet-container { background: #0d1018; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--bg-3);
  color: var(--text);
  border-radius: var(--r-sm);
  font-family: var(--fa);
  box-shadow: var(--sh);
}
.leaflet-popup-content-wrapper { border: 1px solid var(--border-2); }
.leaflet-control-zoom a {
  background: var(--bg-3) !important;
  color: var(--text) !important;
  border-color: var(--border-2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════════════════════════ */
.search-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6px var(--page-px) 10px;
}
.search-box {
  display: flex; align-items: center;
  background: var(--bg-3); border: 1.5px solid var(--border-2);
  border-radius: 50px;
  padding: 0 14px; gap: 9px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-2);
}
#searchInput {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-family: var(--fa); font-size: .92rem;
  color: var(--text); padding: 12px 0;
  direction: inherit; text-align: inherit;
  min-width: 0;
}
body.ltr #searchInput { font-family: var(--fe); }
#searchInput::placeholder { color: var(--text-3); }
.clear-btn {
  color: var(--text-3); font-size: .8rem;
  padding: 5px; border-radius: 50%;
  transition: color var(--t-fast);
  flex-shrink: 0;
}
.clear-btn:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES
   ═══════════════════════════════════════════════════════════════ */
.cats-section {
  border-bottom: 1px solid var(--border);
}
.cats-track {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; gap: 7px;
  padding: 8px var(--page-px) 10px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.cats-track::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 50px;
  border: 1.5px solid var(--border-2);
  background: var(--bg-3);
  color: var(--text-2); font-size: .78rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  scroll-snap-align: start;
  transition: all var(--t-fast);
}
body.ltr .cat-btn { font-family: var(--fe); }
.cat-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.cat-btn:hover .cat-icon { filter: invert(76%) sepia(60%) saturate(400%) hue-rotate(5deg); }
.cat-btn.active {
  background: var(--gold); border-color: var(--gold); color: #111;
}

/* ═══════════════════════════════════════════════════════════════
   STATUS BAR
   ═══════════════════════════════════════════════════════════════ */
.status-bar {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--page-px);
  font-size: .77rem; color: var(--text-3);
}
.result-count { font-weight: 800; color: var(--text-2); }
.sort-group { display: flex; align-items: center; gap: 6px; }
#sortSel {
  background: var(--bg-3); border: 1px solid var(--border-2);
  color: var(--text-2); font-family: inherit; font-size: .75rem;
  padding: 5px 9px; border-radius: var(--r-sm);
  outline: none; cursor: pointer; direction: inherit;
  transition: border-color var(--t-fast);
}
#sortSel:focus { border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   RESULTS GRID
   ═══════════════════════════════════════════════════════════════ */
.results-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4px var(--page-px) clamp(60px, 10vh, 90px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICE CARD
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  animation: card-in .28s ease both;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-3);
  box-shadow: var(--sh);
}
.card:active { transform: scale(.985); }
.card.is-featured { border-color: rgba(232,184,75,.2); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.card-inner { padding: 13px; }

/* Card Top — icon + info */
.card-top {
  display: flex; align-items: flex-start;
  gap: 11px; margin-bottom: 9px;
}

/* Category icon box */
.cat-ico-box {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-ico-box img {
  width: 24px; height: 24px; object-fit: contain;
}
/* color tints per category */
.ci-gas        { background: var(--orange-1); }
.ci-gas        img { filter: invert(55%) sepia(80%) saturate(600%) hue-rotate(350deg); }
.ci-restaurant { background: var(--red-1); }
.ci-restaurant img { filter: invert(40%) sepia(90%) saturate(700%) hue-rotate(335deg); }
.ci-clothing   { background: var(--purple-1); }
.ci-clothing   img { filter: invert(40%) sepia(80%) saturate(500%) hue-rotate(260deg); }
.ci-clinic     { background: var(--blue-1); }
.ci-clinic     img { filter: invert(45%) sepia(80%) saturate(400%) hue-rotate(190deg); }
.ci-pharmacy   { background: var(--teal-1); }
.ci-pharmacy   img { filter: invert(55%) sepia(70%) saturate(400%) hue-rotate(140deg); }
.ci-grocery    { background: var(--green-1); }
.ci-grocery    img { filter: invert(60%) sepia(70%) saturate(400%) hue-rotate(95deg); }

/* Card info */
.card-info { flex: 1; min-width: 0; }
.card-name {
  font-size: .94rem; font-weight: 800; color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tag {
  padding: 2px 8px; border-radius: 20px;
  font-size: .66rem; font-weight: 700;
  white-space: nowrap;
}
.t-cat  { background: var(--bg-4); color: var(--text-2); }
.t-dist { background: var(--green-1); color: var(--green); }
.t-feat { background: var(--gold-1); color: var(--gold); border: 1px solid rgba(232,184,75,.2); }

/* Hours row */
.card-hours {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 6px; font-size: .74rem;
}
.b-open   { background: var(--green-1); color: var(--green); padding: 2px 8px; border-radius: 20px; font-weight: 700; font-size: .68rem; white-space: nowrap; }
.b-closed { background: var(--red-1);   color: var(--red);   padding: 2px 8px; border-radius: 20px; font-weight: 700; font-size: .68rem; white-space: nowrap; }
.h-txt { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Address */
.card-addr {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 10px;
}
.card-addr img {
  width: 12px; height: 12px; object-fit: contain;
  opacity: .4; flex-shrink: 0;
}
.card-addr span {
  font-size: .71rem; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── ACTION BUTTONS — Critical: no overflow, equal sizing ── */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.btn-act {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  font-family: inherit; font-size: .77rem; font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
  min-width: 0; overflow: hidden;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.btn-act img {
  width: 15px; height: 15px; object-fit: contain;
  flex-shrink: 0;
}
.btn-act span { overflow: hidden; text-overflow: ellipsis; }
/* Call button */
.btn-call { color: var(--green); border-color: rgba(39,174,96,.22); }
.btn-call:hover { background: var(--green-1); border-color: rgba(39,174,96,.4); }
.btn-call img { filter: invert(55%) sepia(80%) saturate(400%) hue-rotate(95deg); }
/* Map button */
.btn-maps { color: var(--blue); border-color: rgba(41,128,185,.22); }
.btn-maps:hover { background: var(--blue-1); border-color: rgba(41,128,185,.4); }
.btn-maps img { filter: invert(45%) sepia(80%) saturate(400%) hue-rotate(190deg); }

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADER
   ═══════════════════════════════════════════════════════════════ */
.skel-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 13px;
}
.skel {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.sk-row  { display: flex; gap: 11px; margin-bottom: 11px; }
.sk-sq   { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.sk-col  { flex: 1; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.sk-line { height: 11px; }
.sk-w70  { width: 70%; }
.sk-w45  { width: 45%; }
.sk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sk-btn  { height: 37px; border-radius: var(--r-sm); }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 60px var(--page-px);
  max-width: 280px; margin: 0 auto;
}
.empty-ico {
  width: 56px; height: 56px; object-fit: contain;
  opacity: .2; margin: 0 auto 16px;
  filter: invert(1);
}
.empty-state h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 7px; }
.empty-state p  { font-size: .83rem; color: var(--text-3); margin-bottom: 20px; }
.btn-reset {
  background: var(--gold); color: #111;
  padding: 10px 24px; border-radius: 50px;
  font-family: inherit; font-size: .86rem; font-weight: 800;
  transition: opacity var(--t-fast);
}
.btn-reset:hover { opacity: .82; }

/* ═══════════════════════════════════════════════════════════════
   LOCATION OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.loc-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.loc-card {
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 34px 26px; max-width: 340px; width: 100%;
  text-align: center;
  box-shadow: var(--sh-lg);
  animation: pop-in .35s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.87); }
  to   { opacity: 1; transform: scale(1);   }
}
.loc-card-ico {
  width: 68px; height: 68px;
  background: var(--gold-1); border: 1px solid var(--gold-3);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.loc-card-ico img {
  width: 34px; height: 34px; object-fit: contain;
  filter: invert(76%) sepia(60%) saturate(400%) hue-rotate(5deg);
}
.loc-card h2 { font-size: 1.18rem; font-weight: 900; margin-bottom: 9px; }
.loc-card p  { font-size: .85rem; color: var(--text-2); line-height: 1.7; margin-bottom: 22px; }
.btn-allow {
  display: block; width: 100%;
  background: var(--gold); color: #111;
  padding: 13px; border-radius: 11px;
  font-family: inherit; font-size: .92rem; font-weight: 800;
  margin-bottom: 10px;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.btn-allow:hover  { opacity: .85; }
.btn-allow:active { transform: scale(.97); }
.btn-skip {
  display: block; width: 100%;
  color: var(--text-3); font-family: inherit; font-size: .82rem;
  padding: 9px; transition: color var(--t-fast);
}
.btn-skip:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-4); border: 1px solid var(--border-2);
  color: var(--text); padding: 11px 22px; border-radius: 50px;
  font-size: .82rem; font-weight: 600;
  z-index: 600; opacity: 0; pointer-events: none;
  white-space: nowrap; box-shadow: var(--sh-lg);
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), opacity .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  text-align: center; padding: 20px var(--page-px);
  font-size: .77rem; color: var(--text-3); line-height: 1.9;
}
.footer a { color: var(--gold); }
.footer-pin {
  width: 13px; height: 13px; object-fit: contain;
  opacity: .3; filter: invert(1);
  display: inline-block; vertical-align: middle; margin-bottom: 2px;
}
.footer-sep     { margin: 0 4px; opacity: .35; }
.footer-domain  { font-family: var(--fe); }
.footer-sub     { font-size: .7rem; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET & DESKTOP
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 540px) {
  :root { --page-px: 20px; }
  .hero-title { font-size: 2.6rem; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --page-px: 24px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .map-wrapper.open { height: 360px; }
  #leafletMap { height: 360px; }
}

@media (min-width: 900px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 60px var(--page-px) 64px; }
  .hero-sub { font-size: 1rem; }
}

@media (min-width: 1200px) {
  :root { --max-w: 1000px; --page-px: 32px; }
  .results-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY & REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
