/* ===================================================
   مساعد الحاج — Hajj Assistant Styles
   =================================================== */

/* ---- Google Fonts & Base ---- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --green-dark:  #1a5c2a;
  --green-mid:   #2d7a3e;
  --green-light: #e8f5eb;
  --gold:        #c9a227;
  --gold-light:  #f5e8b0;
  --gold-dark:   #9a7810;
  --blue:        #2563eb;
  --purple:      #7c3aed;
  --teal:        #0891b2;
  --white:       #ffffff;
  --bg:          #f7f3ed;
  --text:        #1c1c1c;
  --text-muted:  #6b6b6b;
  --border:      #d4c5a0;
  --shadow:      0 4px 20px rgba(0,0,0,0.1);
  --radius:      12px;
  --radius-sm:   8px;
  --font:        'Cairo', sans-serif;
  --font-serif:  'Amiri', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  direction: rtl;
}

body.ltr {
  direction: ltr;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
}

/* ===== ISLAMIC PATTERN BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,162,39,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26,92,42,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon { font-size: 1.8rem; }

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.lang-switcher {
  display: flex;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--green-dark);
}

.lang-btn:hover:not(.active) {
  color: white;
  background: rgba(255,255,255,0.2);
}

/* ===== NAV TABS ===== */
.nav-tabs {
  background: var(--white);
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  font-family: var(--font);
  color: var(--text-muted);
}

.tab-btn:hover { background: var(--green-light); color: var(--green-dark); }

.tab-btn.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
  font-weight: 700;
}

.tab-icon { font-size: 1.3rem; }
.tab-label { font-size: 0.72rem; white-space: nowrap; }

/* ===== MAIN ===== */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  position: relative;
  z-index: 1;
}

/* ===== SECTIONS ===== */
.tab-section { display: none; }
.tab-section.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ===== HOME — HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #2d7a3e 60%, #1e4d28 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(201,162,39,0.3);
  font-size: 1rem;
  letter-spacing: 8px;
}

.bismillah {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.hero-date {
  display: inline-block;
  background: rgba(201,162,39,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== HOME — CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,92,42,0.15);
  border-color: var(--green-mid);
}

.card-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-next-prayer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ===== HOME — TIPS ===== */
.quick-tips {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-tips .section-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: right;
}

.tips-list { display: flex; flex-direction: column; gap: 0.7rem; }

.tip-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--green-light);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border-right: 4px solid var(--green-dark);
}

.ltr .tip-item { border-right: none; border-left: 4px solid var(--green-dark); }

.tip-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ===== PRAYER TIMES ===== */
.countdown-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.countdown-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.3rem;
}

.countdown-prayer-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.countdown-timer {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.prayer-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s;
}

.prayer-card.next-prayer {
  border-color: var(--gold);
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

.prayer-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.prayer-name { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.2rem; }
.prayer-name-en { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.prayer-time { font-size: 1.4rem; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.prayer-card.next-prayer .prayer-time { color: var(--gold-dark); }

.prayer-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  grid-column: 1/-1;
}

.prayer-date {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== MAP ===== */
.map-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.gate    { background: var(--green-dark); }
.legend-dot.wc      { background: var(--blue); }
.legend-dot.zamzam  { background: var(--teal); }
.legend-dot.safa    { background: var(--purple); }

.map-container {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#mosque-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-point { transition: opacity 0.15s; }
.map-point:hover { opacity: 0.8; }

.map-tooltip {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1rem;
  position: relative;
  box-shadow: var(--shadow);
  animation: fadeIn 0.2s ease;
}

.map-tooltip.hidden { display: none; }

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.tooltip-icon { font-size: 1.4rem; }
.tooltip-name { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }

.tooltip-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.tooltip-directions-btn {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tooltip-directions-btn:hover { background: var(--green-mid); }

.tooltip-directions {
  margin-top: 0.8rem;
  background: var(--green-light);
  border-right: 4px solid var(--green-dark);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-line;
}

.ltr .tooltip-directions { border-right: none; border-left: 4px solid var(--green-dark); }

.tooltip-directions.hidden { display: none; }

.tooltip-close {
  position: absolute;
  top: 10px;
  left: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.ltr .tooltip-close { left: auto; right: 14px; }

/* ===== HAJJ GUIDE ===== */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.guide-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.guide-item:hover {
  border-color: var(--green-mid);
  box-shadow: 0 4px 16px rgba(26,92,42,0.12);
  transform: translateX(-3px);
}

.ltr .guide-item:hover { transform: translateX(3px); }

.guide-item-num {
  width: 36px;
  height: 36px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-item-icon { font-size: 1.5rem; flex-shrink: 0; }

.guide-item-content { flex: 1; }

.guide-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
}

.guide-item-title-en {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.guide-item-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.guide-detail {
  margin-top: 1rem;
}

.guide-detail.hidden { display: none; }

.back-btn {
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green-dark);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.back-btn:hover { background: var(--green-dark); color: white; }

.guide-detail-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.detail-icon { font-size: 2.2rem; }

.detail-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green-dark);
}

.detail-title-en {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.detail-body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.detail-dua-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-dua {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

.detail-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.speak-btn {
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.speak-btn:hover { background: var(--green-mid); }
.speak-btn.speaking { background: #e53e3e; }

.speak-btn-dua {
  background: var(--gold-dark);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.speak-btn-dua:hover { background: var(--gold); }

/* ===== Q&A ===== */
.qa-search-box {
  position: relative;
  margin-bottom: 1rem;
}

.qa-search-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.ltr .qa-search-input { padding: 0.9rem 3rem 0.9rem 1rem; }

.qa-search-input:focus { border-color: var(--green-mid); }
.qa-search-input::placeholder { color: var(--text-muted); }

.qa-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.ltr .qa-search-icon { left: auto; right: 1rem; }

.qa-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.cat-btn {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.cat-btn:hover { border-color: var(--green-mid); color: var(--green-dark); }

.cat-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

.qa-list { display: flex; flex-direction: column; gap: 0.6rem; }

.qa-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: border-color 0.2s;
}

.qa-item:hover { border-color: var(--green-mid); }

.qa-item.hidden { display: none; }

.qa-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
}

.qa-question:hover { background: var(--green-light); }

.qa-question-text { flex: 1; }

.qa-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.qa-item.open .qa-chevron { transform: rotate(180deg); }

.qa-answer {
  display: none;
  padding: 0 1.2rem 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.qa-item.open .qa-answer { display: block; animation: fadeIn 0.2s ease; }

.qa-answer-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
}

.qa-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 4px;
}

.qa-cat-tag.general    { background: #dbeafe; color: #1d4ed8; }
.qa-cat-tag.rituals    { background: #d1fae5; color: #065f46; }
.qa-cat-tag.directions { background: #fef3c7; color: #92400e; }
.qa-cat-tag.rulings    { background: #ede9fe; color: #5b21b6; }

.qa-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem;
  font-size: 0.95rem;
}

/* ===== HEADER — SCHOOL LOGO ===== */
.school-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.school-name {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  white-space: nowrap;
}

/* ===== LOCATION PANEL ("أنا عند...") ===== */
.location-panel {
  background: linear-gradient(135deg, #e8f5eb, #f0faf2);
  border: 2px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(26,92,42,0.1);
}

.location-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1rem;
}

.location-pin { font-size: 1.2rem; }

.location-label { font-size: 1rem; font-weight: 700; }

.location-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: auto;
  margin-bottom: 0.6rem;
}

.location-select:focus { border-color: var(--green-mid); }

.location-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.5rem 0.8rem;
  background: rgba(201,162,39,0.08);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--gold);
}

.ltr .location-hint { border-right: none; border-left: 3px solid var(--gold); }

.location-active {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.location-active-icon { font-size: 1.1rem; }
.location-active-name { flex: 1; }

.location-clear-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.location-clear-btn:hover { background: rgba(255,255,255,0.35); }

/* Map point highlighted as "my location" */
.map-point.my-location {
  filter: drop-shadow(0 0 6px #c9a227) drop-shadow(0 0 12px rgba(201,162,39,0.5));
  animation: pulse-loc 1.5s infinite;
}

@keyframes pulse-loc {
  0%, 100% { filter: drop-shadow(0 0 4px #c9a227); }
  50%       { filter: drop-shadow(0 0 10px #c9a227) drop-shadow(0 0 20px rgba(201,162,39,0.4)); }
}

/* ===== TOOLTIP — NAVIGATION ===== */
.tooltip-nav-section {
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

.tooltip-nav-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-route-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
  color: var(--green-dark);
}

.nav-arrow { color: var(--gold-dark); font-weight: 900; font-size: 1rem; }

.nav-steps {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.nav-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.5;
  border-right: 3px solid var(--green-dark);
}

.ltr .nav-step { border-right: none; border-left: 3px solid var(--green-dark); }

.nav-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.7rem;
  font-style: italic;
}

.nav-speak-btn {
  font-size: 0.82rem;
  padding: 7px 14px;
}

.nav-no-location,
.nav-no-data {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.83rem;
  color: var(--gold-dark);
  line-height: 1.6;
}

/* Existing tooltip - replace old direction styles with new */
.tooltip-directions-btn { display: none; } /* hidden — replaced by nav section */

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.4rem 1rem 1rem;
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-school {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(201,162,39,0.3);
}

.footer-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 3px;
}

.footer-school-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-school-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-project-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

.footer-app-name {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.2rem;
}

.footer-dua {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .header { height: 58px; padding: 0 0.8rem; }
  .school-logo { height: 36px; width: 36px; }
  .logo-text { font-size: 1rem; }
  .school-name { font-size: 0.6rem; }
  .nav-tabs { top: 58px; }
  .tab-label { font-size: 0.65rem; }
  .hero-title { font-size: 1.3rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .section-title { font-size: 1.2rem; }
  .countdown-timer { font-size: 2.2rem; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .prayer-card { padding: 0.7rem; }
  .prayer-time { font-size: 1.1rem; }
  .guide-detail-inner { padding: 1.2rem; }
  .detail-title { font-size: 1.2rem; }
  .nav-route-header { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

@media (max-width: 400px) {
  .cards-grid { grid-template-columns: 1fr; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
}
