/* ============================================================
   UAE Leaflets — Premium Responsive Grid (UX Optimized)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #0d6efd;
  --primary-soft: #e7f1ff;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-muted: #64748b;
  --border: #edf2f7;
  --radius: 1rem;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, .fw-bold, .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* ── Navbar ── */
.navbar {
  background: white !important;
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}
.navbar-brand span { color: var(--primary); }

@media all and (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
  }
  .navbar {
    padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
  }
}

.nav-search {
  max-width: 450px;
  width: 100%;
}
.nav-search .form-control {
  border-radius: 2rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  padding-left: 3rem;
  transition: all 0.2s;
}
.nav-search .form-control:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.search-icon-abs {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 5;
}

/* ── Hero ── */
.hero-section {
  background: white;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
}

/* ── Sticky Filter Bar ── */
.filter-bar-sticky {
  position: sticky; 
  top: 60px;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.store-filter-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  display: flex;
  gap: 0.75rem;
  padding: 0.25rem 0;
  -webkit-overflow-scrolling: touch;
}
.store-filter-wrapper::-webkit-scrollbar { display: none; }

/* Scroll shadow indicators */
.filter-bar-sticky::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  height: 100%; width: 40px;
  background: linear-gradient(to left, white, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.pill-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 2rem;
  color: var(--text-muted);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.pill-btn:hover {
  background: #e2e8f0;
  color: var(--text);
  transform: translateY(-1px);
}

.pill-btn.active {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}


/* ── Leaflet Cards ── */
.leaflet-card {
  border: none;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  animation: fadeInUp 0.5s ease backwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.leaflet-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-img-container {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-container img {
  width: auto; height: 100%; max-width: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.leaflet-card:hover img { transform: scale(1.04); }

.new-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: #ff4757;
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  z-index: 11;
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.expiry-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 10;
}

/* ── Location Badge ── */
.location-badge {
  background: #f0f9ff;
  color: #0369a1;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid #bae6fd;
}
.location-badge i {
  font-size: 1.1rem;
}

.card-category-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  display: inline-block;
}

/* ── Store Grid Section ── */
.store-icon-card {
  width: 64px;
  height: 64px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid white;
}
.store-grid-section a:hover .store-icon-card {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow);
}

/* ── Leaflet Viewer ── */
.viewer-outer-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.viewer-container {
  background: #f1f5f9;
  border-radius: 1.5rem;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  min-height: 750px;
  overflow: visible;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

/* Quick Facts Horizontal */
.quick-facts-card {
  background: white;
  border: 1px solid var(--border) !important;
}

.border-end-md {
  border-right: 1px solid var(--border);
}

@media (max-width: 767px) {
  .border-end-md {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }
}

#flipbook {
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
  background: white;
}

/* Floating Controls */
.viewer-controls {
  position: absolute;
  top: 50%;
  left: -80px;
  right: -80px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 100;
}

.btn-nav {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 1px solid #ddd;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  pointer-events: auto;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-nav:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.page-counter-floating {
  position: absolute;
  bottom: -40px;
  right: 0;
  background: var(--dark);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 101;
}

@media (max-width: 1400px) {
  .viewer-controls {
    left: 10px;
    right: 10px;
  }
  .btn-nav {
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
#flipbook .page {
  width: 500px; height: 700px;
  background: white;
  display: flex; align-items: center; justify-content: center;
}
#flipbook .page img { width: 100%; height: 100%; object-fit: contain; }

.validity-banner {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.25rem 2rem;
  border-radius: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ── Mobile Optimization ── */
@media (max-width: 768px) {
  body { padding-top: 60px; }
  
  .hero-section { padding: 2.5rem 0; margin-bottom: 0; }
  .display-3 { font-size: 2.2rem !important; }
  .lead { font-size: 1rem !important; }

  .filter-bar-sticky { 
    top: 60px; 
    padding: 0.75rem 0;
    overflow-x: auto;
    white-space: nowrap;
  }
  .store-filter-wrapper { display: flex; gap: 8px; padding-bottom: 4px; }
  .pill-btn { padding: 0.4rem 1rem; font-size: 0.75rem; }

  /* Leaflet Mobile Viewer Fix */
  .viewer-container { padding: 0; background: transparent; min-height: auto; margin-bottom: 1.5rem; }
  #flipbook { display: none !important; }
  
  .mobile-swipe-gallery {
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    gap: 12px; 
    padding: 0 15px 1.5rem; 
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-swipe-gallery::-webkit-scrollbar { display: none; }

  .mobile-swipe-gallery .swipe-item {
    flex: 0 0 85vw; 
    scroll-snap-align: center;
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
  }
  .mobile-swipe-gallery .swipe-item img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
  }

  /* Grid Fixes */
  .row-cols-2 { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
  .leaflet-card .card-body { padding: 12px !important; }
  .leaflet-card .card-title { font-size: 0.85rem !important; line-height: 1.3; height: 2.2rem; overflow: hidden; margin-bottom: 8px !important; }
  .leaflet-card-col { padding: 5px !important; }
  
  .validity-banner { 
    width: 100%; 
    padding: 1rem; 
    font-size: 0.8rem; 
    justify-content: center;
    border-radius: 12px;
  }
  
  .location-badge { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  .store-icon-card { width: 50px; height: 50px; font-size: 1.2rem; }
  .store-grid-section { padding: 2rem 0 !important; }
}

.hidden { display: none !important; }

/* ── Footer Hub Styles ── */
.footer-hub-section {
  background: #ffffff !important;
  color: var(--text);
}

.footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.8;
}

.footer-hub-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-hub-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-legal-link {
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--primary) !important;
}

.update-signal .badge {
  font-size: 0.7rem;
}

.bg-primary-soft { background-color: var(--primary-soft) !important; }

@media (max-width: 767px) {
  .footer-hub-link {
    font-size: 0.8rem;
    padding: 4px 0;
  }
  .footer-heading {
    text-align: center;
    margin-bottom: 1.5rem !important;
  }
  .footer-links-grid {
    text-align: center;
  }
}

/* ── PWA Mobile Bottom Navigation ── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1040;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none !important;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 8px 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-grow: 1;
}

.mobile-bottom-nav .nav-item-btn i {
  font-size: 1.3rem;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.mobile-bottom-nav .nav-item-btn.active,
.mobile-bottom-nav .nav-item-btn:hover {
  color: var(--primary);
}

.mobile-bottom-nav .nav-item-btn.active i {
  transform: scale(1.1);
}

/* ── PWA Custom Installation Toast Banner ── */
.pwa-banner {
  position: fixed;
  bottom: 80px;
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  padding: 14px 18px;
  z-index: 1050;
  border: 1px solid rgba(13, 110, 253, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid white;
}

/* Rounded top offcanvas details */
.rounded-top-4 {
  border-top-left-radius: 1.5rem !important;
  border-top-right-radius: 1.5rem !important;
}

@media (max-width: 991px) {
  body {
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: 0 !important;
  }
  .navbar {
    padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 10px !important;
    position: sticky;
    top: 0;
    z-index: 1040;
    background: white !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }
  .navbar-brand {
    font-size: 1.35rem !important;
  }
  .filter-bar-sticky {
    position: sticky;
    top: calc(104px + env(safe-area-inset-top, 0px)); /* Dynamically adjusts with safe-area */
    z-index: 1030;
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .mobile-bottom-nav {
    height: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08) !important;
  }
  
  /* ── Compact & Uncluttered Leaflet Cards on Mobile ── */
  .leaflet-card .card-body {
    padding: 0.85rem !important;
  }
  .leaflet-card .card-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.35;
  }
  .card-category-tag {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.4rem !important;
  }
  .leaflet-card .text-muted.small {
    font-size: 0.7rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .new-badge {
    font-size: 0.55rem !important;
    padding: 0.2rem 0.5rem !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
  }
  .expiry-badge {
    font-size: 0.55rem !important;
    padding: 0.25rem 0.5rem !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
  }
  .leaflet-card:hover {
    transform: translateY(-4px) !important; /* Sleek minimal lift on mobile touch */
  }
}

/* ── App Splash Screen Overlay ── */
.splash-screen-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d6efd, #0a4ebd);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.splash-screen-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}
.splash-logo-container {
  display: inline-block;
  background: white;
  padding: 1rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.splash-logo {
  width: 72px; height: 72px;
  object-fit: contain;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.95; }
}
.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

/* ── UI Elements Native App Feel ── */
body {
  -webkit-tap-highlight-color: transparent;
}
.btn, .nav-item-btn, .pill-btn, .navbar-brand, .store-icon-card {
  user-select: none;
  -webkit-user-select: none;
}

/* ── Leaflet Image Loader ── */
.image-loader-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-soft);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Smooth Page View Transitions ── */
.splash-already-shown #app-splash-screen {
  display: none !important;
}

#spa-content-wrapper {
  animation: pageFadeInUp 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94) forwards;
}

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

/* ── Premium Mobile App UI Enhancements ── */
.animate-fadeIn {
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active State Dot & Tint for Bottom Navigation */
.mobile-bottom-nav .nav-item-btn.active-city {
  color: var(--primary) !important;
  font-weight: 700;
}
.mobile-bottom-nav .nav-item-btn.active-city i {
  color: var(--primary) !important;
  position: relative;
}
.mobile-bottom-nav .nav-item-btn.active-city i::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -4px;
  width: 6px;
  height: 6px;
  background-color: #ff4757;
  border-radius: 50%;
  box-shadow: 0 0 0 2px white;
}

/* ── Premium Leaflet Image Skeletal Loader (Shimmer) ── */
.image-loader-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmerLoading 1.4s infinite linear;
  border-radius: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle circular loader inside the shimmer */
.image-loader-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(13, 110, 253, 0.08);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: loaderSpin 0.8s infinite linear;
}

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

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* ── Leaflet Details Mobile App UI Optimization ── */
@media (max-width: 991px) {
  /* Hide breadcrumbs on mobile to save valuable vertical screen height */
  nav[aria-label="breadcrumb"] {
    display: none !important;
  }

  /* Make leaflet details page title more compact */
  h1.h2 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem !important;
    line-height: 1.3;
  }

  /* Compact spacing for location badge & categories */
  .location-badge {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.75rem !important;
    background-color: #f8f9fa;
    border: 1px solid var(--border);
  }

  /* Make report button clean and smaller on mobile */
  #report-issue-btn {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.75rem !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  /* Compact quick-facts on mobile to feel like a dashboard grid */
  .quick-facts-card {
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    background-color: #f8f9fa !important;
    margin-bottom: 1.5rem !important;
  }
  .quick-facts-card .card-body {
    padding: 1.15rem !important;
  }
  .quick-facts-card .row {
    --bs-gutter-y: 1rem !important;
  }
  .quick-facts-card .border-end-md {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.75rem;
  }

  /* Collapse the long SEO paragraphs on mobile or make them compact */
  .seo-text-block {
    background-color: #f8f9fa;
    padding: 1.15rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--border);
    margin-bottom: 2rem !important;
  }
  .seo-text-block h2 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
  }
  .seo-text-block p {
    font-size: 0.8rem !important;
    line-height: 1.52 !important;
    margin-bottom: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Swipe-gallery: Native horizontal card app-like carousel */
  .mobile-swipe-gallery {
    padding: 0 16px 1.5rem !important;
    gap: 16px !important;
  }
  .mobile-swipe-gallery .swipe-item {
    flex: 0 0 88vw !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    min-height: 320px;
    position: relative;
  }
  .mobile-swipe-gallery .swipe-item img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ── Floating Notification Bell & Preferences Modal ── */
#notification-bell-btn {
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--primary);
  border: none;
}
#notification-bell-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #0b5ed7;
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}
#notification-bell-btn i {
  animation: bell-swing 4s ease-in-out infinite;
  transform-origin: 50% 0;
}
@keyframes bell-swing {
  0% { transform: rotate(0); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-15deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-10deg); }
  25% { transform: rotate(5deg); }
  30% { transform: rotate(-5deg); }
  35% { transform: rotate(0); }
  100% { transform: rotate(0); }
}
@media (min-width: 992px) {
  #notification-bell-btn {
    bottom: 25px;
    right: 25px;
  }
}
.btn-check:checked + .btn-outline-primary {
  background-color: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
  border-color: var(--primary);
}
.notify-pref-check + label {
  transition: all 0.2s ease;
  font-size: 0.8rem !important;
}
.notify-pref-check + label:hover {
  transform: translateY(-1px);
}

