/* ==========================================================================
   HalalPlate - Local Halal Food & Restaurant Finder
   Design System & Styling
   ========================================================================== */

:root {
  /* Brand Color Palette - Emerald & Warm Gold/Amber */
  --primary-900: #022c22;
  --primary-800: #064e3b;
  --primary-700: #047857;
  --primary-600: #059669;
  --primary-500: #10b981;
  --primary-100: #d1fae5;
  --primary-50: #ecfdf5;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --white: #ffffff;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #10b981;
  --info: #0284c7;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --header-height: 72px;
  --subbar-height: 52px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.08);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--slate-100);
  color: var(--slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
  position: relative;
}

.brand-icon i.fa-moon {
  position: absolute;
  font-size: 11px;
  top: 6px;
  right: 7px;
  color: var(--amber-400);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-900);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  color: var(--amber-600);
}

.brand-edition {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background-color: var(--primary-50);
  color: var(--primary-700);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-100);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 500;
}

/* Global Header Search */
.header-search-wrapper {
  flex: 1;
  max-width: 360px;
  min-width: 180px;
  margin: 0 16px;
  position: relative;
}

.header-search-box {
  display: flex;
  align-items: center;
  background-color: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.header-search-box:focus-within {
  background-color: var(--white);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.header-search-box i {
  color: var(--slate-400);
  font-size: 15px;
  margin-right: 10px;
}

.header-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--slate-800);
  outline: none;
}

.header-search-input::placeholder {
  color: var(--slate-400);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 4px;
  display: none;
  font-size: 13px;
  border-radius: var(--radius-full);
}

.search-clear-btn:hover {
  color: var(--slate-700);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-fav {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-header-fav i {
  color: var(--danger);
}

.btn-header-fav:hover {
  background-color: var(--slate-100);
  border-color: var(--slate-300);
}

.fav-badge-count {
  background-color: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.btn-add-restaurant {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
  transition: var(--transition-fast);
}

.btn-add-restaurant:hover {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(5, 150, 105, 0.4);
}

/* ==========================================================================
   Quick Chips Filter Bar
   ========================================================================== */
.quick-chips-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  z-index: 990;
}

.quick-chips-bar::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  white-space: nowrap;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-btn:hover {
  background-color: var(--slate-200);
  color: var(--slate-900);
}

.chip-btn.active {
  background-color: var(--primary-900);
  border-color: var(--primary-900);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(2, 44, 34, 0.25);
}

.chip-btn.active i {
  color: var(--amber-400);
}

/* ==========================================================================
   Main Application Split Layout
   ========================================================================== */
.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height) - 49px);
  overflow: hidden;
  position: relative;
}

/* Mobile View Tabs Switcher */
.mobile-view-tabs {
  display: none;
}

/* Left Panel: Directory & Filter Engine */
.directory-pane {
  width: 58%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--slate-100);
  border-right: 1px solid var(--slate-200);
  overflow: hidden;
}

/* Sub-Filters Toolbar */
.filter-toolbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.filter-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.results-meta {
  font-size: 13.5px;
  color: var(--slate-600);
  font-weight: 500;
}

.results-meta strong {
  color: var(--primary-800);
  font-weight: 700;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clear-filters {
  background: none;
  border: 1px dashed var(--slate-300);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
  transition: var(--transition-fast);
  display: none;
}

.btn-clear-filters:hover {
  border-color: var(--danger);
  color: var(--danger);
  background-color: var(--danger-light);
}

/* Filter Controls Row */
.filter-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-select {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--primary-600);
  background-color: var(--white);
}

/* Price Segment Buttons */
.price-btn-group {
  display: inline-flex;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--slate-50);
}

.price-toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  border-right: 1px solid var(--slate-300);
  transition: var(--transition-fast);
}

.price-toggle-btn:last-child {
  border-right: none;
}

.price-toggle-btn:hover {
  background-color: var(--slate-200);
}

.price-toggle-btn.active {
  background-color: var(--primary-700);
  color: var(--white);
}

/* Open Now Toggle */
.open-now-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  user-select: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--slate-300);
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-600);
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* Cards Scroll Container */
.restaurant-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 40px;
  scroll-behavior: smooth;
}

.restaurant-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

/* ==========================================================================
   Restaurant Card Component
   ========================================================================== */
.restaurant-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.restaurant-card.selected-active {
  border: 2px solid var(--primary-600);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), var(--shadow-lg);
}

/* Card Header Image */
.card-media {
  height: 175px;
  position: relative;
  overflow: hidden;
  background-color: var(--slate-200);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.restaurant-card:hover .card-img {
  transform: scale(1.05);
}

.card-overlay-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

/* Halal Status Badge */
.halal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.badge-certified {
  background-color: rgba(6, 78, 59, 0.92);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.badge-zabihah {
  background-color: rgba(180, 83, 9, 0.92);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-muslim-owned {
  background-color: rgba(15, 23, 42, 0.92);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-halal-meat {
  background-color: rgba(67, 56, 202, 0.92);
  color: #e0e7ff;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

/* Card Favorite Button */
.btn-fav-card {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-size: 14px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}

.btn-fav-card:hover {
  transform: scale(1.15);
  color: var(--danger);
  background-color: var(--white);
}

.btn-fav-card.favorited {
  color: var(--danger);
}

.btn-fav-card.favorited i {
  font-weight: 900;
}

/* Open / Closed Indicator on Card */
.open-status-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(6px);
}

.status-open {
  background-color: rgba(6, 78, 59, 0.88);
  color: #6ee7b7;
}

.status-open .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.status-closed {
  background-color: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
}

.status-closed .closed-dot {
  width: 6px;
  height: 6px;
  background-color: #94a3b8;
  border-radius: 50%;
}

/* Card Body */
.card-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.card-cuisine {
  color: var(--primary-700);
  font-weight: 700;
}

.card-price {
  letter-spacing: 1px;
  color: var(--amber-700);
  font-weight: 700;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.stars-wrapper {
  color: var(--amber-500);
  display: inline-flex;
  gap: 1px;
}

.rating-score {
  font-weight: 800;
  color: var(--slate-900);
}

.review-count {
  color: var(--slate-400);
}

.card-neighborhood {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--slate-500);
  background-color: var(--slate-100);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.card-key-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background-color: var(--slate-50);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  border: 1px solid var(--slate-200);
}

.feature-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-600);
}

.feature-line i {
  width: 14px;
  color: var(--primary-600);
  font-size: 11px;
}

/* Signature Dishes Pills */
.card-dishes-preview {
  margin-bottom: 14px;
}

.dishes-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-400);
  margin-bottom: 5px;
  display: block;
}

.dish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dish-tag {
  font-size: 11px;
  font-weight: 600;
  background-color: var(--amber-50);
  color: var(--amber-700);
  border: 1px solid var(--amber-100);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Card Action Buttons */
.card-actions-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

.btn-card-details {
  flex: 1;
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.btn-card-details:hover {
  background-color: var(--primary-600);
  color: var(--white);
  border-color: var(--primary-600);
}

.btn-card-map {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-card-map:hover {
  background-color: var(--slate-200);
  color: var(--slate-900);
}

/* Empty State */
.empty-directory-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--slate-300);
  margin-top: 20px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background-color: var(--amber-50);
  color: var(--amber-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.empty-directory-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.empty-directory-state p {
  color: var(--slate-500);
  font-size: 13.5px;
  max-width: 360px;
  margin: 0 auto 16px;
}

/* ==========================================================================
   Right Panel: Interactive Leaflet Map
   ========================================================================== */
.map-pane {
  width: 42%;
  height: 100%;
  position: relative;
  background-color: #e5e3df;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Map Floating Overlays */
.map-floating-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.map-control-btn:hover {
  background-color: var(--slate-50);
  color: var(--primary-700);
  border-color: var(--primary-500);
}

/* Map Legend */
.map-legend-box {
  position: absolute;
  bottom: 24px;
  left: 20px;
  z-index: 800;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  max-width: 260px;
  font-size: 11.5px;
}

.legend-title {
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 6px;
  font-size: 12px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-600);
}

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

.dot-certified { background-color: var(--primary-600); }
.dot-zabihah { background-color: var(--amber-500); }
.dot-muslim { background-color: var(--slate-800); }
.dot-meat { background-color: #6366f1; }

/* Custom Leaflet Map Pin Markers */
.custom-halal-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-halal-pin:hover {
  transform: scale(1.18);
  z-index: 9999 !important;
}

.custom-halal-pin.pin-active {
  transform: scale(1.25);
  z-index: 10000 !important;
}

.pin-bubble {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--white);
  white-space: nowrap;
}

.pin-bubble.certified { background-color: var(--primary-700); }
.pin-bubble.zabihah { background-color: var(--amber-600); }
.pin-bubble.muslim-owned { background-color: var(--slate-900); }
.pin-bubble.halal-meat { background-color: #4f46e5; }

.pin-bubble i {
  font-size: 10px;
}

.pin-tip {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--primary-700);
  margin-top: -1px;
}

.custom-halal-pin.pin-active .pin-bubble {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.5), 0 6px 14px rgba(0,0,0,0.4);
}

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-xl) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 260px !important;
  line-height: 1.4 !important;
}

.popup-card {
  display: flex;
  flex-direction: column;
}

.popup-thumb {
  height: 110px;
  width: 100%;
  object-fit: cover;
  position: relative;
}

.popup-body {
  padding: 12px 14px;
}

.popup-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.popup-cuisine-price {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 6px;
}

.popup-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.popup-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.popup-btn-details {
  flex: 1;
  background-color: var(--primary-700);
  color: var(--white);
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.popup-btn-details:hover {
  background-color: var(--primary-800);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--white);
  color: var(--slate-900);
  transform: scale(1.1);
}

/* Detail Modal Content */
.detail-banner {
  height: 240px;
  position: relative;
  background-color: var(--slate-200);
}

.detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 16px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92), transparent);
  color: var(--white);
}

.detail-banner-overlay h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.detail-banner-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}

.detail-content-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Halal Verification Audit Card */
.halal-audit-card {
  background: linear-gradient(135deg, var(--primary-50), #f0fdf4);
  border: 1.5px solid var(--primary-100);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-900);
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.audit-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.audit-field-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Signature Menu Section */
.menu-section h3, .detail-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dishes-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dish-menu-item {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dish-item-main {
  flex: 1;
}

.dish-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.signature-pill {
  font-size: 10px;
  background-color: var(--amber-100);
  color: var(--amber-700);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.dish-item-desc {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 2px;
}

.dish-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-700);
  white-space: nowrap;
}

/* Hours Table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.hours-table tr {
  border-bottom: 1px solid var(--slate-100);
}

.hours-table td {
  padding: 6px 8px;
}

.hours-table .day-name {
  font-weight: 600;
  color: var(--slate-700);
  width: 120px;
}

.hours-table .day-time {
  color: var(--slate-600);
}

.hours-table tr.today-highlight {
  background-color: var(--primary-50);
  font-weight: 700;
  color: var(--primary-800);
  border-radius: var(--radius-sm);
}

.hours-table tr.today-highlight td {
  color: var(--primary-800);
}

/* Action Links inside Modal */
.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.btn-modal-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary-action {
  background-color: var(--primary-700);
  color: var(--white);
  border: none;
}

.btn-primary-action:hover {
  background-color: var(--primary-800);
}

.btn-secondary-action {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-secondary-action:hover {
  background-color: var(--slate-200);
  color: var(--slate-900);
}

/* ==========================================================================
   Add Restaurant Modal Form
   ========================================================================== */
.modal-header-simple {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--slate-200);
}

.modal-header-simple h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-900);
}

.modal-header-simple p {
  font-size: 13px;
  color: var(--slate-500);
}

.modal-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
}

.form-label span.req {
  color: var(--danger);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  color: var(--slate-800);
  background-color: var(--slate-50);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-600);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-hint {
  font-size: 11px;
  color: var(--slate-400);
}

.preset-images-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.preset-thumb-option {
  width: 70px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: cover;
  transition: var(--transition-fast);
}

.preset-thumb-option.selected {
  border-color: var(--primary-600);
  transform: scale(1.05);
}

.btn-form-submit {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: var(--transition-fast);
  margin-top: 8px;
}

.btn-form-submit:hover {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  transform: translateY(-1px);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: var(--slate-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: auto;
  border-left: 4px solid var(--primary-500);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i.toast-icon {
  color: var(--primary-400);
  font-size: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .directory-pane {
    width: 52%;
  }
  .map-pane {
    width: 48%;
  }
  .restaurant-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body {
    height: auto;
    overflow-y: auto;
  }

  .site-header {
    padding: 0 16px;
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header-search-wrapper {
    order: 3;
    max-width: 100%;
    margin: 4px 0 0;
    width: 100%;
  }

  .app-container {
    flex-direction: column;
    height: calc(100vh - 170px);
  }

  /* Mobile Tabs Switcher */
  .mobile-view-tabs {
    display: flex;
    background-color: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 6px 16px;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--slate-100);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .mobile-tab-btn.active {
    background-color: var(--primary-700);
    color: var(--white);
  }

  .directory-pane {
    width: 100%;
    border-right: none;
  }

  .map-pane {
    width: 100%;
    height: 100%;
    display: none;
  }

  /* When map tab is active on mobile */
  .mobile-show-map .directory-pane {
    display: none;
  }

  .mobile-show-map .map-pane {
    display: block;
  }

  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Header Navigation Bar & Interactive Menu
   ========================================================================== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.site-nav .nav-link:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.site-nav .nav-link.active {
  background-color: var(--primary-100);
  color: var(--primary-800);
  font-weight: 700;
}

.site-nav .nav-link i {
  font-size: 12px;
  color: var(--primary-600);
}

/* Header Navigation Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 7px 11px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.nav-dropdown-toggle .nav-caret {
  font-size: 10px;
  color: var(--slate-400);
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-dropdown-toggle .nav-caret,
.nav-item-dropdown:focus-within .nav-dropdown-toggle .nav-caret {
  transform: rotate(180deg);
  color: var(--primary-600);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  display: none;
  z-index: 1050;
}

.nav-dropdown-menu.menu-right {
  left: auto;
  right: 0;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--primary-600);
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-800);
  padding-left: 20px;
}

.dropdown-item.active {
  background-color: var(--primary-100);
  color: var(--primary-900);
  font-weight: 700;
}

.nav-toggle-btn {
  display: none;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--slate-700);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-toggle-btn:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

@media (max-width: 1180px) {
  .nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--primary-600);
    flex-direction: column;
    padding: 14px 20px;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-link {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }

  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
  }

  .nav-dropdown-menu {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary-400);
    background: var(--slate-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 4px 0 8px 10px;
    padding: 6px 0;
  }

  .dropdown-item {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Content Page Framework (About, Guides, Compliance, FAQ)
   ========================================================================== */
body.content-page {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
}

.content-hero {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 55%, #047857 100%);
  color: var(--white);
  padding: 48px 24px 60px;
  position: relative;
  overflow: hidden;
}

.content-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.content-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--primary-100);
  margin-bottom: 16px;
  font-weight: 500;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--primary-100);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--amber-400);
}

.breadcrumb-nav span.sep {
  opacity: 0.5;
}

.content-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber-400);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.content-hero-title {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--white);
}

.content-hero-subtitle {
  font-size: clamp(14.5px, 1.6vw, 17px);
  color: var(--slate-200);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.content-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--primary-100);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.content-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.content-hero-meta i {
  color: var(--amber-400);
}

.content-main-wrapper {
  max-width: 1080px;
  margin: -30px auto 60px;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.content-card-box {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .content-card-box {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   Article & Guide Styling
   ========================================================================== */
.article-prose {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--slate-700);
}

.article-prose h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--slate-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-prose h2 i {
  color: var(--primary-600);
  font-size: 20px;
}

.article-prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  margin: 24px 0 10px;
}

.article-prose p {
  margin-bottom: 18px;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.callout-box {
  background-color: var(--primary-50);
  border-left: 4px solid var(--primary-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 26px 0;
  color: var(--primary-900);
}

.callout-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-800);
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.callout-amber {
  background-color: var(--amber-50);
  border-left-color: var(--amber-500);
  color: var(--amber-700);
}

.callout-amber h4 {
  color: var(--amber-700);
}

.callout-slate {
  background-color: var(--slate-50);
  border-left-color: var(--slate-500);
  color: var(--slate-700);
}

.callout-slate h4 {
  color: var(--slate-800);
}

.hadith-quote {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 26px 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.hadith-quote i.quote-icon {
  font-size: 28px;
  color: var(--primary-500);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  right: 20px;
}

.hadith-quote p.quote-text {
  font-size: 16px;
  font-style: italic;
  color: var(--primary-900);
  line-height: 1.7;
  margin-bottom: 10px;
}

.hadith-quote span.quote-source {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-700);
  display: block;
}

/* Comparison Tables */
.table-responsive-wrapper {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: var(--white);
  min-width: 600px;
}

.comparison-table th {
  background-color: var(--slate-50);
  color: var(--slate-900);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--slate-200);
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: var(--slate-50);
}

/* Checklists & Key Points */
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--slate-700);
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary-600);
  font-size: 14px;
}

/* Key Metrics & Stats Grid */
.stats-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.stat-highlight-card {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: var(--transition-fast);
}

.stat-highlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.stat-highlight-card .stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-highlight-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
}

/* FAQ Accordion Styling */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-500);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary-700);
}

.faq-question i {
  color: var(--primary-600);
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.7;
  border-top: 1px solid var(--slate-100);
  padding-top: 16px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Grid & Form */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
}

@media (max-width: 860px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.contact-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card h4 i {
  color: var(--primary-600);
}

.contact-card p {
  font-size: 13.5px;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--primary-700);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Comprehensive Site Footer (AdSense / HalalSpark Compliant)
   ========================================================================== */
.site-footer {
  background-color: #061914;
  color: var(--slate-300);
  border-top: 3px solid var(--amber-500);
  padding: 56px 24px 28px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

/* When embedded at bottom of list container in index.html */
.restaurant-list-container .site-footer {
  margin-top: 40px;
  border-radius: var(--radius-xl);
  border-top: 3px solid var(--amber-500);
  box-shadow: var(--shadow-lg);
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
  gap: 36px;
  margin-bottom: 44px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.footer-brand-title span {
  color: var(--amber-400);
}

.footer-mission {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate-400);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--slate-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--primary-600);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: 0.2px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--amber-400);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: var(--amber-400);
  transform: translateX(3px);
}

.footer-links-list a i {
  font-size: 11px;
  color: var(--primary-500);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--slate-400);
}

.footer-bottom-row a {
  color: var(--slate-400);
  text-decoration: none;
}

.footer-bottom-row a:hover {
  color: var(--amber-400);
}

.footer-badges-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-pill-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}
