/* =============================================
   Jadwal Buka Puasa Masjid Jogja — style.css
   v2.0 — Enhanced with dark mode, bottom nav,
   skeleton, favorites, filters, map links
   ============================================= */

/* ── VARIABLES (Light) ── */
:root {
  --gold: #C9933A;
  --gold-light: #F0C97A;
  --gold-pale: #FDF3DC;
  --gold-border: rgba(201, 147, 58, 0.2);
  --teal: #1A5C4E;
  --teal-light: #2D8A74;
  --teal-dark: #0C3328;
  --night: #070F0D;
  --cream: #FEFAF2;
  --cream2: #F5EDD8;
  --text: #1C1C1C;
  --text-soft: #6B6452;
  --card-bg: #FFFFFF;
  --border: rgba(201, 147, 58, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 92, 78, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --bottom-nav-h: 64px;
  --skel-base: #e8e0d0;
  --skel-shine: #f5edd8;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --cream: #0F1A17;
  --cream2: #152420;
  --text: #E8E0D0;
  --text-soft: #9A9484;
  --card-bg: #162822;
  --border: rgba(201, 147, 58, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 32px rgba(201, 147, 58, 0.1);
  --skel-base: #1e3a30;
  --skel-shine: #264a3e;
}
html[data-theme="dark"] { background: #070F0D; }
[data-theme="dark"] .header-wave svg path { fill: var(--cream); }
[data-theme="dark"] .search-bar { background: var(--card-bg); }
[data-theme="dark"] .search-bar input { color: var(--text); }
[data-theme="dark"] .search-bar input::placeholder { color: #5a5a4a; }
[data-theme="dark"] .nav-btn { background: var(--card-bg); }
[data-theme="dark"] .mosque-card { background: var(--card-bg); }
[data-theme="dark"] .card-no-menu { color: #5a5a4a; }
[data-theme="dark"] .badge-ramadan { background: rgba(201,147,58,0.15); }
[data-theme="dark"] .filter-chip { background: var(--card-bg); color: var(--text-soft); border-color: var(--border); }
[data-theme="dark"] .filter-chip.active { background: var(--teal); color: white; }
[data-theme="dark"] .bottom-nav { background: #0a1612; border-color: rgba(201,147,58,0.08); }
[data-theme="dark"] .bnav-item { color: #5a6a60; }
[data-theme="dark"] .bnav-item.active { color: var(--gold-light); }
[data-theme="dark"] .mosque-detail-card { background: var(--card-bg); }
[data-theme="dark"] .card-actions-bar { border-color: rgba(201,147,58,0.08); }

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--teal-dark); }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
  transition: background 0.35s, color 0.35s;
}

/* ══════════════════════════════════════════
   LOADING / SKELETON SCREEN
══════════════════════════════════════════ */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--teal-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-screen.removed { display: none !important; }
.loading-content { text-align: center; width: 90%; max-width: 400px; }
.loading-moon {
  width: 56px; height: 56px;
  max-width: 56px; max-height: 56px;
  animation: floatMoon 2s ease-in-out infinite;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(240, 201, 122, 0.5));
}
.loading-text {
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  animation: pulse 1.5s ease-in-out infinite;
  display: block; margin-bottom: 28px;
}

/* Skeleton inside loading screen */
.skeleton-preview { opacity: 0.3; }
.skel-bar {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(232,201,106,0.15) 25%, rgba(232,201,106,0.25) 50%, rgba(232,201,106,0.15) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin: 0 auto 8px;
}
.skel-bar.long { width: 75%; }
.skel-bar.short { width: 45%; margin-bottom: 20px; }
.skel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skel-card {
  background: rgba(255,255,255,0.04);
  border-radius: 10px; padding: 14px;
  border: 1px solid rgba(232,201,106,0.08);
}
.skel-line {
  height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, rgba(232,201,106,0.1) 25%, rgba(232,201,106,0.18) 50%, rgba(232,201,106,0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}
.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; }
.skel-line.w80 { width: 80%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* In-page skeleton cards */
.skeleton-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.skeleton-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid var(--border);
}
.skel-row {
  height: 12px; border-radius: 6px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--skel-base) 25%, var(--skel-shine) 50%, var(--skel-base) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skel-row.w50 { width: 50%; }
.skel-row.w70 { width: 70%; }
.skel-row.w90 { width: 90%; }

/* ══════════════════════════════════════════
   PULL TO REFRESH
══════════════════════════════════════════ */
.ptr {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 0; overflow: hidden;
  background: var(--teal);
  color: white;
  font-size: 0.78rem; font-weight: 500;
  z-index: 150;
  transition: height 0.2s;
}
.ptr.pulling { height: 48px; }
.ptr.refreshing { height: 48px; }
.ptr-icon {
  width: 18px; height: 18px;
  max-width: 18px; max-height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ptr.refreshing .ptr-icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   DARK MODE TOGGLE
══════════════════════════════════════════ */
.dark-toggle {
  position: absolute; top: 50%; right: 10px; z-index: 12;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(232,201,106,0.4);
  background: rgba(0,0,0,0.25);
  color: var(--gold-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.dark-toggle:hover { background: rgba(232,201,106,0.15); border-color: var(--gold); }
.dark-toggle:active { background: rgba(232,201,106,0.3); transform: translateY(-50%) scale(0.92); }
.dark-toggle svg { width: 16px; height: 16px; position: absolute; transition: opacity 0.3s, transform 0.3s; }
.dt-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.dt-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .dt-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .dt-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.header {
  background: var(--teal-dark);
  position: relative; overflow: hidden;
  padding: 36px 24px 100px;
  padding-top: calc(36px + env(safe-area-inset-top, 0px));
  text-align: center;
}
.header-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(201,147,58,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(45,138,116,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.header-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.header-inner { position: relative; z-index: 2; }
.stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.star {
  position: absolute; width: 2px; height: 2px;
  background: white; border-radius: 50%;
  animation: twinkle var(--d) ease-in-out infinite;
  animation-delay: var(--delay); opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: var(--opacity); transform: scale(1.5); }
}
.moon-svg {
  width: 56px; height: 56px;
  margin: 0 auto 16px; display: block;
  animation: floatMoon 5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(240,201,122,0.4));
}
@keyframes floatMoon {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
.header h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--gold-light);
  line-height: 1.25; margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.header-sub {
  font-size: 0.78rem;
  color: rgba(255,250,235,0.45);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; margin-top: 10px;
}
.header-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }

/* ══════════════════════════════════════════
   DATE STRIP
══════════════════════════════════════════ */
.date-nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: var(--teal-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.date-strip-outer { overflow: hidden; position: relative; padding-right: 52px; }
.date-strip-outer::before, .date-strip-outer::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
}
.date-strip-outer::before { left: 0; background: linear-gradient(to right, var(--teal-dark), transparent); }
.date-strip-outer::after { right: 52px; background: linear-gradient(to left, var(--teal-dark), transparent); }
.date-strip {
  display: flex; gap: 6px; padding: 12px 20px;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-pill {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px; border-radius: 40px; cursor: pointer;
  border: 1.5px solid rgba(201,147,58,0.2); background: transparent;
  color: rgba(255,250,235,0.5);
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  min-width: 58px;
  font-family: 'DM Sans', sans-serif; user-select: none;
}
.date-pill:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,147,58,0.08); }
.date-pill.active {
  background: var(--gold); border-color: var(--gold); color: var(--teal-dark);
  font-weight: 600; box-shadow: 0 0 18px rgba(201,147,58,0.4);
}
.date-pill.today-pill:not(.active) { border-color: rgba(201,147,58,0.6); color: var(--gold-light); }
.pill-day { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pill-num { font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.pill-r { font-size: 0.56rem; opacity: 0.75; }

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
.main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 32px; }

/* ── Search Bar ── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.35s;
}
.search-bar:focus-within { border-color: var(--teal-light); box-shadow: 0 0 0 3px rgba(45,138,116,0.1); }
.search-bar svg { color: var(--text-soft); flex-shrink: 0; }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--text); background: transparent;
}
.search-bar input::placeholder { color: #bbb; }
.search-clear {
  background: none; border: none; cursor: pointer;
  color: #bbb; font-size: 1.05rem; line-height: 1; padding: 0 2px;
  transition: color 0.2s; display: none;
}
.search-clear:hover { color: var(--text); }
.search-clear.visible { display: block; }
.search-note { text-align: center; font-size: 0.8rem; color: var(--text-soft); margin-bottom: 16px; }

/* ── Filter Chips ── */
.filter-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 0 16px; margin-bottom: 8px;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid var(--border);
  background: white; color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.filter-chip.active {
  background: var(--teal); color: white; border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(26,92,78,0.25);
}
.filter-chip svg { flex-shrink: 0; }

/* ── Day Navigation ── */
.day-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 24px; }
.nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border); background: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--teal); box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.nav-btn:hover:not(:disabled) {
  border-color: var(--teal); background: var(--teal); color: white;
  transform: scale(1.1); box-shadow: 0 4px 16px rgba(26,92,78,0.3);
}
.nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.nav-label { font-size: 0.8rem; color: var(--text-soft); min-width: 110px; text-align: center; font-weight: 500; }

/* ── Day Header ── */
.day-header { text-align: center; margin-bottom: 28px; }
.day-date-big {
  font-family: 'Amiri', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--teal); line-height: 1.25;
}
.day-badges { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-ramadan { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(201,147,58,0.3); }
.badge-today { background: var(--teal); color: white; }

/* ── Cards Grid ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ── Individual Card ── */
.mosque-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 20px 14px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.35s;
  position: relative; overflow: hidden;
}
.mosque-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: var(--radius) var(--radius) 0 0;
}
.mosque-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201,147,58,0.35);
}
.card-top-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.card-index {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold-pale); color: var(--gold);
  font-size: 0.64rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-fav-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; transition: all 0.25s; flex-shrink: 0;
}
.card-fav-btn:hover { color: #e8a33a; transform: scale(1.15); }
.card-fav-btn.fav-active { color: #e8a33a; }
.card-fav-btn.fav-active svg { fill: #e8a33a; }
.card-fav-btn svg { width: 18px; height: 18px; transition: fill 0.25s; }

.card-mosque {
  font-size: 0.71rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--teal); margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px; line-height: 1.4;
}
.card-mosque svg { width: 13px; height: 13px; flex-shrink: 0; }

.card-kecamatan {
  font-size: 0.65rem; color: var(--text-soft); margin-bottom: 10px;
  display: flex; align-items: center; gap: 4px;
}
.card-kecamatan svg { width: 11px; height: 11px; flex-shrink: 0; opacity: 0.6; }

.card-menu { font-size: 0.9rem; color: var(--text); line-height: 1.55; }
.card-menu.clamp {
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-no-menu { font-size: 0.83rem; color: #ccc; font-style: italic; }
.card-expand {
  background: none; border: none; color: var(--teal);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  margin-top: 6px; padding: 0;
  font-family: 'DM Sans', sans-serif; transition: color 0.2s;
}
.card-expand:hover { color: var(--teal-light); }

/* Card Actions Bar */
.card-actions-bar {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.card-action-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 8px;
  font-size: 0.68rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border);
  background: transparent; color: var(--teal);
  cursor: pointer; text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.card-action-btn:hover { background: var(--teal); color: white; border-color: var(--teal); }
.card-action-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Taxonomy match indicator */
.match-via {
  display: inline-block; font-size: 0.62rem; font-weight: 500;
  color: var(--teal-light);
  background: rgba(45,138,116,0.08);
  border: 1px solid rgba(45,138,116,0.15);
  border-radius: 4px; padding: 2px 7px; margin-top: 6px;
}
.search-expand-note {
  display: inline-block; font-size: 0.72rem; font-weight: 500;
  color: var(--teal-light);
  background: rgba(45,138,116,0.08);
  border-radius: 4px; padding: 1px 8px; margin-left: 4px;
}

/* Card pop animation */
@keyframes cardPop {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card-animated { animation: cardPop 0.4s cubic-bezier(0.4,0,0.2,1) both; }

/* Slide transitions */
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
.slide-right { animation: slideInRight 0.35s cubic-bezier(0.4,0,0.2,1) both; }
.slide-left { animation: slideInLeft 0.35s cubic-bezier(0.4,0,0.2,1) both; }

/* ── Day Stats ── */
.day-stats {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--teal); line-height: 1; }
.stat-label { font-size: 0.68rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty-state svg { margin-bottom: 16px; opacity: 0.25; }

/* ── Search Result Groups ── */
.result-group { margin-bottom: 36px; }
.result-group-header {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.result-group-date { font-family: 'Amiri', serif; font-size: 1.2rem; color: var(--teal); }
.jump-btn {
  margin-left: auto;
  background: var(--teal); color: white; border: none; border-radius: 8px;
  padding: 5px 13px; font-size: 0.75rem; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-weight: 500; transition: background 0.2s;
}
.jump-btn:hover { background: var(--teal-light); }

/* ══════════════════════════════════════════
   MOSQUE DETAIL LIST (tab "Masjid")
══════════════════════════════════════════ */
.mosque-list { display: grid; gap: 14px; }
.mosque-detail-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.mosque-detail-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.mosque-detail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.md-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.md-name { font-family: 'Amiri', serif; font-size: 1.15rem; color: var(--teal); line-height: 1.3; flex: 1; }
.md-info { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.md-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-soft);
}
.md-row svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.6; }
.md-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.md-action-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--teal);
  cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.md-action-btn:hover { background: var(--teal); color: white; border-color: var(--teal); }
.md-action-btn.directions {
  background: var(--teal); color: white; border-color: var(--teal);
}
.md-action-btn.directions:hover { background: var(--teal-light); }
.md-action-btn svg { width: 14px; height: 14px; }

/* Today's menu preview in mosque card */
.md-today-menu {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.md-today-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 6px;
}
.md-today-text { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.md-today-none { font-size: 0.8rem; color: #bbb; font-style: italic; }

/* ══════════════════════════════════════════
   FAVORITES VIEW (tab "Favorit")
══════════════════════════════════════════ */
.fav-empty {
  text-align: center; padding: 60px 20px; color: var(--text-soft);
}
.fav-empty svg { margin-bottom: 16px; opacity: 0.2; }
.fav-empty p { font-size: 0.9rem; line-height: 1.5; }

/* ══════════════════════════════════════════
   BOTTOM NAVIGATION
══════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: white;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  transition: background 0.35s, border-color 0.35s;
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: #aaa; font-size: 0.6rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s, background 0.2s; 
  padding: 8px 20px;
  position: relative;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 12px;
  -webkit-tap-highlight-color: rgba(26,92,78,0.15);
}
.bnav-item:active { background: rgba(26,92,78,0.08); }
.bnav-item svg { width: 22px; height: 22px; transition: transform 0.2s, color 0.2s; }
.bnav-item.active { color: var(--teal); }
.bnav-item.active svg { transform: scale(1.1); }
.bnav-badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--gold); color: var(--teal-dark);
  font-size: 0.55rem; font-weight: 700;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════ */
.scroll-top {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 16px); right: 24px;
  width: 44px; height: 44px;
  background: var(--teal); color: white; border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(12,51,40,0.35);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 199;
}
.scroll-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 20px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--teal-dark); color: var(--gold-light);
  padding: 10px 20px; border-radius: 10px;
  font-size: 0.8rem; font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .main { padding: 20px 14px 32px; }
  .day-nav { gap: 10px; }
  .nav-label { font-size: 0.72rem; min-width: 90px; }
  .day-stats { gap: 16px; }
  .skel-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
