/* =============================================
   Custom styles — Halal Restaurants Melbourne
   ============================================= */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom text selection colour */
::selection {
  background: rgba(255, 142, 37, 0.3);
  color: inherit;
}
::-moz-selection {
  background: rgba(255, 142, 37, 0.3);
  color: inherit;
}

/* Marker cluster icon */
.hrm-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hrm-cluster:hover {
  box-shadow: 0 0 0 6px rgba(255,142,37,0.25), 0 4px 12px rgba(255,142,37,0.5);
  transform: scale(1.1);
}

/* Restaurant name label */
.hrm-name-label.leaflet-tooltip {
  background: #ff8e25;
  border: none;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  pointer-events: auto;
  cursor: pointer;
}
.hrm-name-label.leaflet-tooltip::before {
  display: none;
}

/* Footer — dark hero theme */
.site-footer {
  background: #111827;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Login shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

body {
  background: linear-gradient(to bottom, #ffffff 0%, #E8E4E1 100%);
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Fade gradient on right edge of scrollable chip rows */
.chip-fade-right {
  position: relative;
}

@media (max-width: 639px) {
  .chip-fade-right > div {
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }
}

/* =============================================
   NAVBAR
   ============================================= */

/* Navbar transparent effect — restaurants.html */
.page-restaurants #navbar {
  background: transparent;
}

/* Glassmorphism navbar — restaurant.html */
.page-restaurant #navbar {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

/* Glass effect on scroll (shared) */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Page background — restaurants.html */
body.page-restaurants {
  background-color: #ffffff;
  min-height: 100vh;
}

/* Page background — index.html only */
body.page-home {
  background-color: #F2F0EF;
  min-height: 100vh;
}

/* Transparent-to-white scroll effect — index.html only (.page-home body class) */
.page-home #navbar {
  background: transparent;
}




/* =============================================
   HERO BACKGROUND MAP
   ============================================= */

#hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
  filter: blur(3px);
  transform: scale(1.02); /* prevents blur from exposing edges */
  display: none;
}

@media (min-width: 640px) {
  #hero-map {
    display: block;
  }
}

#hero {
  -webkit-mask-image: linear-gradient(to bottom, black 82%, rgba(0,0,0,0.6) 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, rgba(0,0,0,0.6) 93%, transparent 100%);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-content {
  animation: heroFadeUp 1s ease-out;
}

@keyframes nearMePulse {
  0%   { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(180, 83, 9, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0); }
}

.btn-pulse {
  animation: nearMePulse 2s ease-out infinite;
}


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

.scroll-indicator {
  animation: scrollFade 2s ease-in-out infinite;
}

/* Hero search bar — white background with persistent orange glow */
.hero-search-glass {
  background: #ffffff;
  border: 1px solid rgba(255, 142, 37, 0.40);
  box-shadow:
    0 0 0 4px rgba(255, 142, 37, 0.18),
    0 8px 32px rgba(255, 142, 37, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-search-glass:focus-within {
  border-color: rgba(255, 142, 37, 0.65);
  box-shadow:
    0 0 0 5px rgba(255, 142, 37, 0.28),
    0 8px 32px rgba(255, 142, 37, 0.32),
    0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Hero glass button — orange tint, matches search bar */
.hero-glass-btn {
  background: rgba(255, 142, 37, 0.16);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255, 142, 37, 0.35);
  box-shadow:
    0 2px 8px rgba(255, 142, 37, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.50);
  color: #92400e;
}

.hero-glass-btn:hover {
  background: rgba(255, 142, 37, 0.26);
  border-color: rgba(255, 142, 37, 0.50);
  box-shadow:
    0 4px 16px rgba(255, 142, 37, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-search-glass input::placeholder {
  color: rgba(107, 114, 128, 0.70);
}

.hero-search-glass input {
  color: #1f2937;
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* =============================================
   SEARCH BAR
   ============================================= */

#search-section {
  animation: searchSlideUp 0.8s ease-out;
}

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

.quick-cuisine-chip,
.quick-area-chip {
  background: rgba(255, 142, 37, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.35);
  border: 1px solid rgba(255, 142, 37, 0.25) !important;
  color: #374151 !important;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-cuisine-chip:hover,
.quick-area-chip:hover {
  background: rgba(255, 142, 37, 0.20);
  border-color: rgba(255, 142, 37, 0.45) !important;
  color: #e67e10 !important;
  box-shadow: 0 2px 8px rgba(255, 142, 37, 0.15);
}

.quick-area-chip.active,
.quick-cuisine-chip.active {
  background-color: #ff8e25;
  border-color: #ff8e25 !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255,142,37,0.35);
}

/* =============================================
   RESTAURANTS PAGE — HEADER BACKGROUND MAP
   ============================================= */

/* Fade the header into the page — sits above the map (z-index 0) */
.restaurants-page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
  pointer-events: none;
}

/* Filter section sits above the overflowing map background */
#filter-section {
  position: relative;
  z-index: 1;
}

#restaurants-bg-map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  z-index: 0;
  pointer-events: none;
  filter: blur(3px);
  transform: scale(1.02);
  display: none;
  -webkit-mask-image: linear-gradient(to bottom, black 72%, rgba(0,0,0,0.4) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, rgba(0,0,0,0.4) 90%, transparent 100%);
}

@media (min-width: 640px) {
  #restaurants-bg-map {
    display: block;
  }
}

/* =============================================
   RESTAURANTS PAGE — GLASS SEARCH & CHIPS
   ============================================= */

/* Glass search input */
.page-restaurants #search-input {
  background: #ffffff !important;
  border: 1px solid rgba(255, 142, 37, 0.40) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  color: #1f2937 !important;
}

.page-restaurants #search-icon {
  color: rgba(55, 65, 81, 0.65);
  z-index: 2;
}

.page-restaurants #search-input::placeholder {
  color: rgba(107, 114, 128, 0.70);
}

.page-restaurants #search-input:focus {
  border-color: rgba(255, 142, 37, 0.65) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10) !important;
}

/* =============================================
   GLASS CUSTOM DROPDOWNS
   ============================================= */

.glass-dd {
  position: relative;
  width: 100%;
}

@media (min-width: 640px) {
  .glass-dd { width: auto; }
}

.glass-dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(255, 142, 37, 0.10);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 142, 37, 0.28);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-align: left;
}

.glass-dd-trigger:hover {
  background: rgba(255, 142, 37, 0.18);
}

.glass-dd-trigger:focus-visible {
  outline: none;
  border-color: rgba(255, 142, 37, 0.50);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0 0 3px rgba(255,142,37,0.15), inset 0 1px 0 rgba(255,255,255,0.45);
}

.glass-dd.is-open .glass-dd-trigger {
  background: rgba(255, 142, 37, 0.18);
  border-color: rgba(255, 142, 37, 0.40);
}

.glass-dd-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.glass-dd-chevron {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.glass-dd.is-open .glass-dd-chevron {
  transform: rotate(180deg);
}

.glass-dd-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 160px;
  z-index: 200;
  background: rgba(255, 142, 37, 0.18);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 142, 37, 0.35);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.45);
  display: none;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,142,37,0.25) transparent;
}

.glass-dd-menu.is-open {
  display: flex;
}

.glass-dd-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.glass-dd-item:hover,
.glass-dd-item:focus-visible {
  background: rgba(255, 142, 37, 0.10);
  color: #e67e10;
  outline: none;
}

.glass-dd-item.active {
  color: #ff8e25;
  font-weight: 600;
  background: rgba(255, 142, 37, 0.09);
}

/* Glass filter selects */
.page-restaurants #filter-panel select {
  background: rgba(255, 142, 37, 0.10) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 142, 37, 0.28) !important;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #1f2937 !important;
}

.page-restaurants #filter-panel select:focus {
  background: rgba(255, 142, 37, 0.18) !important;
  border-color: rgba(255, 142, 37, 0.50) !important;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(255, 142, 37, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Glass mobile filter toggle button */
.page-restaurants #mobile-filter-toggle {
  background: rgba(255, 142, 37, 0.10) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 142, 37, 0.28) !important;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #374151 !important;
}

.page-restaurants #mobile-filter-toggle:hover {
  background: rgba(255, 142, 37, 0.20) !important;
}

/* Near Me button — active state (darker orange + pulse) */
.page-restaurants .near-me-btn.near-me-active {
  background-color: #e67e10 !important;
}

/* Glass cuisine & area chips */
.page-restaurants .quick-cuisine-chip,
.page-restaurants .quick-area-chip {
  background: rgba(255, 142, 37, 0.10) !important;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 142, 37, 0.25) !important;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #374151 !important;
  font-weight: 500;
}

.page-restaurants .quick-cuisine-chip:hover,
.page-restaurants .quick-area-chip:hover {
  background: rgba(255, 142, 37, 0.20) !important;
  border-color: rgba(255, 142, 37, 0.45) !important;
  color: #e67e10 !important;
  box-shadow:
    0 2px 8px rgba(255, 142, 37, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.page-restaurants .quick-cuisine-chip.active,
.page-restaurants .quick-area-chip.active {
  background: #ff8e25 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: #ff8e25 !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 142, 37, 0.40);
}

/* =============================================
   GLASSMORPHISM PAGINATION
   ============================================= */

.pagination-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-radius: 18px;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.07),
    0 1px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(30, 30, 30, 0.50);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  font-family: inherit;
  line-height: 1;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 142, 37, 0.12);
  color: #ff8e25;
}

.pagination-btn-active {
  background: #ff8e25 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 142, 37, 0.40);
}

.pagination-btn-active:hover {
  background: #e67e10 !important;
}

.pagination-btn-disabled,
.pagination-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(30, 30, 30, 0.30);
  letter-spacing: 1px;
  user-select: none;
}

.pagination-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 2px;
  flex-shrink: 0;
}

/* =============================================
   MAP SECTION — GLASS CARD
   ============================================= */

.map-glass-card {
  background: rgba(255, 142, 37, 0.10);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border: 1px solid rgba(255, 142, 37, 0.28);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 0 rgba(255, 142, 37, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10);
  position: relative;
}

.map-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  z-index: 1;
  pointer-events: none;
}

.map-glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent, rgba(255, 142, 37, 0.15));
  z-index: 1;
  pointer-events: none;
}

/* Map card dropdowns — match the flex-1 min-w-0 layout of the original selects */
.map-glass-card .glass-dd {
  flex: 1 1 0%;
  min-width: 0;
}

/* Glass inputs — white glass */
.map-glass-card input[type="text"],
.map-glass-card select {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}

.map-glass-card input[type="text"]:focus,
.map-glass-card select:focus {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 142, 37, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(255, 142, 37, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Dropdown triggers — white glass inside map card */
.map-glass-card .glass-dd-trigger {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}

.map-glass-card .glass-dd-trigger:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 142, 37, 0.35) !important;
}

.map-glass-card .glass-dd.is-open .glass-dd-trigger {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 142, 37, 0.45) !important;
}

/* Glass chips — white glass */
.map-glass-card .quick-cuisine-chip,
.map-glass-card .quick-area-chip {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(20px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.70) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}

.map-glass-card .quick-cuisine-chip:hover,
.map-glass-card .quick-area-chip:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 142, 37, 0.35) !important;
  color: #e67e10 !important;
}

.map-glass-card .quick-cuisine-chip.active,
.map-glass-card .quick-area-chip.active {
  background: #ff8e25 !important;
  border-color: #ff8e25 !important;
  color: white !important;
}

/* Search section divider inside glass card */
.map-glass-card #search-section {
  border-bottom-color: rgba(255, 142, 37, 0.25);
}

/* Remove fade on chip row inside glass card */
.map-glass-card .chip-fade-right::after {
  display: none;
}

/* Glass search button variants inside the card */
.map-glass-card #search-btn,
.map-glass-card #geolocate-btn-map {
  /* keep primary colour, just ensure contrast */
  box-shadow: 0 2px 8px rgba(255, 142, 37, 0.30);
}

/* =============================================
   MAP
   ============================================= */

#map {
  background-color: #f3f4f6;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  line-height: 1.5;
}

/* Your Location popup — glassmorphism orange tint */
.location-popup .leaflet-popup-content-wrapper {
  background: rgba(255, 142, 37, 0.18) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border: 1px solid rgba(255, 142, 37, 0.40) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(255, 142, 37, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  padding: 0 !important;
}

.location-popup .leaflet-popup-content {
  margin: 0 !important;
  padding: 8px 14px !important;
}

.location-popup .leaflet-popup-tip {
  background: rgba(255, 142, 37, 0.25) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.location-popup-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  white-space: nowrap;
}

/* Gallery-card popup — full-bleed image, no inner margin */
.map-card-popup .leaflet-popup-content-wrapper {
  padding: 0 !important;
  overflow: hidden !important;
}

.map-card-popup .leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

.leaflet-popup-tip {
  background: #ffffff !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  color: #9ca3af !important;
  font-size: 18px !important;
  top: 8px !important;
  right: 10px !important;
}

.leaflet-popup-close-button:hover {
  color: #374151 !important;
}

/* Map overlay button — glass */
#map-recenter {
  background: rgba(255, 142, 37, 0.18) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 142, 37, 0.35) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10) !important;
}

#map-recenter:hover {
  background: rgba(255, 142, 37, 0.28) !important;
}

/* Leaflet zoom controls */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  color: #374151 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 28px !important;
  width: 28px !important;
  height: 28px !important;
}

.leaflet-control-zoom a:hover {
  background-color: #fff7ed !important;
  color: #ff8e25 !important;
}

/* Leaflet attribution */
.leaflet-control-attribution {
  font-size: 10px !important;
  color: #9ca3af !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(4px);
  border-radius: 6px 0 0 0 !important;
}

/* =============================================
   CUISINE CIRCLES
   ============================================= */

.cuisine-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.cuisine-circle-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #d1d5db;
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-left: 1.5px solid rgba(255, 255, 255, 0.65);
  border-right: 1.5px solid rgba(0, 0, 0, 0.10);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.10),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (min-width: 640px) {
  .cuisine-circle-icon {
    width: 93px;
    height: 93px;
  }
}

.cuisine-circle-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(0.8px) brightness(0.68);
  z-index: 0;
  transition: filter 0.18s ease;
}

.cuisine-circle-text {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.02em;
  word-break: break-word;
  hyphens: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

@media (min-width: 640px) {
  .cuisine-circle-text {
    font-size: 11px;
  }
}

.cuisine-circle:hover .cuisine-circle-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.12),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.cuisine-circle:hover .cuisine-circle-bg {
  filter: blur(0.4px) brightness(0.78);
}

.cuisine-circle:active .cuisine-circle-icon {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 3px rgba(0, 0, 0, 0.12),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.70);
}

/* Animatable CSS variable for the left fade stop */
@property --left-fade-stop {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 0%;
}

/* Mask fade on cuisine track — left fade animates in on scroll */
.cuisine-track-wrapper {
  --left-fade-stop: 0%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black var(--left-fade-stop), black 80%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black var(--left-fade-stop), black 80%, transparent 100%);
  transition: --left-fade-stop 0.35s ease;
}
.cuisine-track-wrapper.scrolled-left {
  --left-fade-stop: 8%;
}

/* Desktop scroll arrow buttons */
.cuisine-scroll-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 142, 37, 0.10);
  border: 1.5px solid rgba(255, 142, 37, 0.28);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.cuisine-scroll-arrow:hover {
  background: rgba(255, 142, 37, 0.22);
  border-color: rgba(255, 142, 37, 0.45);
  transform: scale(1.08);
}

/* =============================================
   RESTAURANT CAROUSEL
   ============================================= */

/* Carousel arrow buttons — orange glass */
.carousel-arrow-btn {
  background: rgba(255, 142, 37, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 142, 37, 0.28);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.carousel-arrow-btn:hover {
  background: rgba(255, 142, 37, 0.20);
  border-color: rgba(255, 142, 37, 0.40);
  box-shadow: 0 4px 12px rgba(255, 142, 37, 0.15), inset 0 1px 0 rgba(255,255,255,0.45);
}

/* Vertical padding lets top/bottom shadows breathe without horizontal overflow issues */
#carousel-wrapper {
  padding: 20px 0 28px !important;
  margin-top: -12px !important;
  margin-bottom: -20px !important;
  scroll-snap-type: x mandatory;
}


.carousel-glass-card {
  border-radius: 28px !important;
  background: rgba(255, 142, 37, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 142, 37, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(255, 142, 37, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10);
  position: relative;
}

.carousel-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  z-index: 1;
  pointer-events: none;
}

.carousel-glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent, rgba(255, 142, 37, 0.15));
  z-index: 1;
  pointer-events: none;
}


.carousel-card {
  flex: 0 0 calc(85% - 10px); /* mobile: 1-per-view with peek */
  width: calc(85% - 10px);
  user-select: none;
  scroll-snap-align: start;
}

@media (min-width: 540px) {
  .carousel-card {
    flex: 0 0 calc(50% - 10px); /* tablet: 2-per-view */
    width: calc(50% - 10px);
  }
}

@media (min-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc(33.333% - 14px); /* desktop: 3-per-view, matches gallery lg:grid-cols-3 */
    width: calc(33.333% - 14px);
  }
}

@media (min-width: 1280px) {
  .carousel-card {
    flex: 0 0 calc(25% - 15px); /* xl: 4-per-view, matches gallery xl:grid-cols-4 */
    width: calc(25% - 15px);
  }
}

/* =============================================
   CAROUSEL DOTS
   ============================================= */

.carousel-dot {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: #d1d5db;
  transition: width 0.3s ease, background 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.carousel-dot.active {
  width: 20px;
  background: #ff8e25;
}

/* =============================================
   HALAL BADGE
   ============================================= */

.halal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #fff7ed;
  color: #ff8e25;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

/* =============================================
   PRICE PILL & TAGS
   ============================================= */

.price-pill {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-chip {
  display: inline-block;
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* =============================================
   GALLERY CARD — prevent border-radius flash on image hover
   ============================================= */

/* clip-path is applied post-compositing so it never flashes square when
   the inner image gets its own GPU layer on hover. Also clips the
   carousel-glass-card pseudo-element lines at the corners. */
.restaurant-gallery-card {
  clip-path: inset(0 round 28px);
  transform: translateZ(0);
}

.restaurant-gallery-card:hover {
  transform: translateY(-0.25rem) translateZ(0);
}

/* =============================================
   LEGACY RESTAURANT CARD (side panel)
   ============================================= */

.restaurant-card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.restaurant-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   SKELETON LOADING
   ============================================= */

.skeleton-pulse {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

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

.carousel-skeleton {
  background: #f8f8f8;
  border: 1px solid #efefef;
  pointer-events: none;
}

/* =============================================
   CAROUSEL DRAG STATE
   ============================================= */

#restaurant-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

#restaurant-carousel.dragging .carousel-card {
  pointer-events: none;
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */

@media (max-width: 539px) {
  .carousel-card {
    flex: 0 0 calc(85% - 10px);
    width: calc(85% - 10px);
  }
}

/* Filter select focus ring */
select:focus {
  --tw-ring-color: rgba(255, 142, 37, 0.5);
}

/* =============================================
   MOBILE POLISH
   ============================================= */


/* =============================================
   CARD PHOTO NAVIGATION ARROWS
   ============================================= */

.card-photo-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.card-photo-container.has-photos:hover .card-photo-btn {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================
   BOOKMARK BUTTONS
   ============================================= */

/* Shared: filled icon when saved */
.bookmark-btn svg { fill: none; }
.bookmark-btn.bookmarked svg { fill: currentColor; }

/* Overlay style — sits on top of card image */
.bookmark-overlay-btn {
  background: rgba(255, 255, 255, 0.88);
  color: #9ca3af;
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.bookmark-overlay-btn:hover         { background: #ffffff; color: #ff8e25; transform: scale(1.1); }
.bookmark-overlay-btn.bookmarked    { color: #ff8e25; background: #ffffff; }

/* Inline style — row button inside card body */
.bookmark-inline-btn {
  color: #9ca3af;
  border: 1px solid #f3f4f6;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.bookmark-inline-btn:hover       { color: #ff8e25; border-color: rgba(255,142,37,0.25); }
.bookmark-inline-btn.bookmarked  { color: #ff8e25; border-color: rgba(255,142,37,0.3); background: rgba(255,142,37,0.05); }

/* =============================================
   BOOKMARK DRAWER
   ============================================= */

#bookmark-panel {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyboard focus-visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #ff8e25;
  outline-offset: 2px;
}

/* Custom scrollbar for panels */
#restaurant-panel::-webkit-scrollbar {
  width: 6px;
}

#restaurant-panel::-webkit-scrollbar-track {
  background: transparent;
}

#restaurant-panel::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

#restaurant-panel::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

/* =============================================
   COMMUNITY VOTE SECTION
   ============================================= */

.vote-confirmed-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(255, 142, 37, 0.22);
}

.vote-concern-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

@keyframes trustBarFill {
  from { width: 0%; }
}

.trust-bar-fill {
  animation: trustBarFill 0.6s ease-out;
}
