/* ==============================
   GLOBAL / RESET
============================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background-color: #f9fafb;
  /* Allow scrolling if popups exceed the viewport on mobile */
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Let all elements inherit box-sizing: border-box */
*, *::before, *::after {
  box-sizing: inherit;
}

/* ==============================
   MAP & LAYOUT
============================== */
#mapContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

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

/* ==============================
   HEADER
============================== */
header {
  position: absolute;
  top: 10px;
  left: 60px;
  z-index: 500;
  display: flex;
  align-items: center;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.3s;
  border-radius: 8px;
  border-left: 5px solid #2ecc71;
}
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/food.png'); /* Replace with correct path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2; /* Adjust transparency */
  z-index: -1;
}
header .logo-emoji {
  font-size: 16px;
  margin-right: 6px;
}
header h1 {
  font-size: 14px;
  color: #2c3e50;
}
.info-icon {
  font-size: 16px;
  color: #2c3e50;
  margin-left: 10px;
  cursor: pointer;
}

.leaflet-popup {
  z-index: 3000 !important;  /* Higher than header and other elements */
}
.leaflet-popup-content-wrapper {
  z-index: 3001 !important;
}
.leaflet-popup-tip {
  z-index: 3002 !important;
}

/* ==============================
   RESULTS PANEL (TOP-RIGHT)
============================== */
#results {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 400px;
  width: 90vw;         /* fallback for smaller screens */
  max-height: 80vh;    /* so it doesn't fill entire screen vertically */
  background-color: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 10px;
  box-sizing: border-box;
  z-index: 1000;
  overflow-y: auto;
  display: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#results.hidden {
  display: none;
}

/* Close button for #results */
.close-results-button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: #2c3e50;
}
.close-results-button:hover {
  color: #c0392b;
}

.map-button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #3498db;
  background-color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.map-button:hover {
  background-color: #2980b9;
  color: #fff;
}


/* ==============================
   FILTER BUTTON (BOTTOM-CENTER)
============================== */
#filter-floating-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pulsing if no filters selected */
#filter-floating-button.no-filters {
  animation: pulse 1.5s infinite ease-in-out;
  background-color: #f0f8ff;
  border: 1px solid #3498db;
}
#filter-floating-button i {
  font-size: 16px;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 10px rgba(52, 152, 219, 0.3); }
  50%  { box-shadow: 0 0 20px rgba(52, 152, 219, 0.5); }
  100% { box-shadow: 0 0 10px rgba(52, 152, 219, 0.3); }
}

/* ==============================
   HAMBURGER BUTTON (if needed)
============================== */
.hamburger-button {
  position: absolute;
  top: 10px;
  right: 10px; 
  z-index: 2000;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.hamburger-button i {
  font-size: 18px;
  color: #2c3e50;
}
.hamburger-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  
  /* Basic badge look */
  background-color: #e67e22;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 18px;
  min-height: 18px;
  line-height: 18px;
  border-radius: 12px;
  text-align: center;
  padding: 0 4px;
  
  /* Hidden by default if zero */
  display: none;
}
/* ==============================
   REFRESH BUTTON
============================== */
.refresh-button {
  position: absolute;
  bottom: 20px;
  right: 10px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.refresh-button .fas {
  font-size: 18px;
  color: #2c3e50;
}
.spinner-icon {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-border {
  0% { border-width: 2px; opacity: 1; }
  50% { border-width: 5px; opacity: 0.6; }
  100% { border-width: 2px; opacity: 1; }
}
.pulsing-border {
  animation: pulse-border 1s infinite;
}

/* ==============================
   FILTER STRIP (if you still use it)
============================== */
#filter-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 5px 10px;
  background-color: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #e1e4e8;
  cursor: pointer;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
#filter-strip::-webkit-scrollbar {
  height: 6px; 
}
#filter-strip::-webkit-scrollbar-track {
  background: #f8f8f8;
}
#filter-strip::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 3px;
}
#filter-strip .filter-icon {
  margin-right: 5px;
  font-size: 14px;
  color: #2c3e50;
}
#filter-strip .label {
  font-size: 14px;
  margin-right: 8px;
  color: #555;
  font-weight: 600;
}
#filter-strip.no-filters {
  background-color: #f0f8ff;
  border: 1px solid #3498db;
  animation: pulse 1.5s infinite ease-in-out;
}
#filter-strip.no-filters span {
  font-size: 13px;
  color: #3498db;
  font-weight: bold;
}


/* ==============================
   RESTAURANT CARDS
============================== */
.restaurant {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.restaurant:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.restaurant .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.restaurant .header h3 {
  margin: 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}
.restaurant .address {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #34495e;
  margin-bottom: 10px;
}
.restaurant .address i {
  margin-right: 8px;
  color: #95a5a6;
}

.restaurant .header .type {
  font-size: 14px;
  color: #7f8c8d;
  background-color: #f4f5f7;
  padding: 3px 8px;
  border-radius: 5px;
  }
  
.restaurant .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.restaurant .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.restaurant .actions a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background-color: #3498db;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.restaurant .actions a:hover {
  background-color: #2980b9;
}

/* "badge" classes used in popup as well */
.badge {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  color: #fff;
  border-radius: 5px;
  margin: 2px;
}

  
/* ==============================
   FILTER POPUP (MODAL)
============================== */
.filter-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 3000; /* above everything else */
  overflow-y: auto; /* allow scrolling inside the modal on mobile */
  padding: 0;
}

.filter-popup-content {
  /* background-color: #fff; */
  margin: 8% auto; /* roughly center it */
  padding: 10px;
  width: 90%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.4s ease-in-out;
  display: flex;
  flex-direction: column;

  /* Pastel gradient background; subtle border on top */
  background: linear-gradient(135deg, #ffffff 25%, #fdfcfb 75%);
  border-top: 6px solid #2ecc71;
  overflow: hidden;
  
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-popup h2 {
  text-align: center;
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 0px;
}
.close-filter-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #7f8c8d;
}
.close-filter-button:hover {
  color: #c0392b;
}

.filter-scroll-container {
  max-height: 50vh; /* Limits scrollable area for the filter list */
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 10px;
}
.filter-section {
  margin-bottom: 10px;
  padding: 6px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.filter-section h3 {
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 8px;
}
.filter-section p {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 5px;
}
.filter-section label {
  display: block;
  padding: 8px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}
.filter-section label:hover {
  background-color: #ecf0f1;
}
.filter-section input[type="checkbox"] {
  margin-right: 2px;
  transform: scale(1.1);
}

/* Bottom action buttons in filter popup */
.filter-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
.apply-filters, .reset-filters {
  width: 48%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.apply-filters {
  background-color: #27ae60;
  color: #fff;
}
.apply-filters.show-all {
  background-color: #2980b9;
}
.apply-filters:hover {
  background-color: #218c54;
}
.reset-filters {
  background-color: #e74c3c;
  color: #fff;
}
.reset-filters:hover {
  background-color: #c0392b;
}
.primary-filter {
  background-color: #ddd;
  color: #444;
  border-radius: 4px;
  padding: 3px 6px;
  display: inline-block;
  margin-bottom: 5px;
}
.primary-filter input[type="checkbox"] {
  margin-right: 5px;
}

/* ==============================
   INFO POPUP (ABOUT)
============================== */
.info-popup {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 0;

  /* Tinted background plus optional blur effect */
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);

  /* Smooth fade-in & scale */
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.info-popup[style*="display: block"] {
  opacity: 1;
  transform: scale(1);
}

/* The popup card itself */
.info-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 480px;
  transform: translate(-50%, -50%);
  padding: 24px 20px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

  /* Pastel gradient background; subtle border on top */
  background: linear-gradient(135deg, #ffffff 25%, #fdfcfb 75%);
  border-top: 6px solid #2ecc71;
  overflow: hidden;

  /* Animate the container in from below */
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 40px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.info-popup-content h2 {
  text-align: center;
  font-size: 20px;
  color: #2c3e50;
  margin: 0 0 12px;
  font-weight: 700;
}

/* Body copy styling */
.info-popup-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Lists are minimal with small bullet styling or none */
.info-popup-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
  font-size: 13px;
  color: #444;
}

.info-popup-content ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}
.info-popup-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3498db;
}

.info-popup-content a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}
.info-popup-content a:hover {
  text-decoration: underline;
}
.close-info-button {
  display: block;
  width: 100%;
  margin: 12px auto 0;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  background-color: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.close-info-button:hover {
  background-color: #c0392b;
}

.developer-toggle,
.supported-locations-toggle {
  background: #ecf0f1;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.developer-toggle:hover,
.supported-locations-toggle:hover {
  background-color: #e2e6e7;
}

.developer-toggle i,
.supported-locations-toggle i {
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.developer-info {
  display: none;
  font-size: 13px;
  color: #555;
  padding: 10px 0;
}
.developer-info a {
  color: #3498db;
  text-decoration: none;
}
.developer-info a:hover {
  text-decoration: underline;
}
.developer-info,
#supported-locations {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px;
  margin-top: 6px;

  /* Collapsed by default if you keep inline style. If using a JS toggle, remove or override the display property. */
  display: none;
  transition: opacity 0.3s, max-height 0.3s;
}

.developer-info.open,
#supported-locations.open {
  display: block;
  opacity: 1;
  max-height: 600px; /* big enough for the content */
}

.support-button {
  display: block;
  margin: 8px auto 5px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.support-button:hover {
  text-decoration: underline;
}
.close-info-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.close-info-button:hover {
  opacity: 0.9;
  background-color: #c0392b;
  color: #ffffff;
}

.address-container {
  font-size: 14px;
  font-weight: 500;
}
.address-link {
  color: #3498db;
  text-decoration: none;
}
.action-buttons-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* ==============================
   FEEDBACK & CONTACT
============================== */
.feedback-container {
  display: flex;
  gap: 10px;
}
.feedback-btn {
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  background-color: #f5f5f5;
  border-radius: 5px;
  transition: 0.3s;
}
.feedback-btn:hover {
  background-color: #e1e1e1;
}
.feedback-btn.active {
  background-color: #2ecc71;
  color: #fff;
}
.contact-buttons {
  flex-grow: 1;
  text-align: left;
  align-content: center;
}
.map-share-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-container {
  margin: 8px 0;
  font-size: 18px;
}
.contact-icon {
  text-decoration: none;
  margin-right: 12px;
  color: #2c3e50;
  font-size: 18px;
}
.contact-icon:hover {
  color: #3498db;
}
.feedback-btn i {
  margin-right: 5px;
}

/* ==============================
   NO RESULTS
============================== */
.no-results-container {
  text-align: center;
  padding: 15px;
  max-width: 600px;
  margin: 0 auto;
}
.no-results-text {
  font-size: 12px;
  font-weight: 500;
  color: #4a4a4a;
  margin-bottom: 12px;
}
.city-selection-text {
  font-size: 12px;
}
.city-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.city-button {
  border: 1px solid #8bc34a;
  background-color: #fff;
  color: #4a7c2f;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 5px;
}
.city-button:hover {
  background-color: #f1f8e9;
}
.city-button:focus {
  outline: none;
  box-shadow: 0 0 3px rgba(139, 195, 74, 0.7);
}

.reset-filters-button {
  border: 1px solid #ff0000;  
  background-color: #fff;
  color: #ff0000;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  align-items: center;
  gap: 5px;
}
.reset-filters-button:hover {
  background-color: #f1f8e9;
}

.share-container {
  display: flex;
  gap: 8px;
}
.share-button, .copy-button {
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background-color: #3498db;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.share-button:hover, .copy-button:hover {
  background-color: #2980b9;
}
.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.restaurant-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}
.rating-feedback-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.rating-line {
  text-align: left;
  flex-grow: 1;
}
/* ==============================
   MEDIA QUERIES (Optional)
============================== */
/* For smaller screens, we can tweak popups or layout further. */
@media (max-width: 600px) {
  /* Ensure filter popup content is not too wide & can scroll vertically */
  .filter-popup-content {
    width: 90%;
    margin: 15% auto;
    max-height: 80vh;
    overflow-y: auto;
  }
  /* Info popup likewise */
  .info-popup-content {
    width: 90%;
    margin: 15% auto;
    max-height: 80vh;
    overflow-y: auto;
  }

  /* For #results, ensure it’s not off-screen */
  #results {
    top: 10px;
    right: 10px;
    width: 95vw; 
    max-width: 95vw;
    max-height: 80vh;
    display: none;
  }
}

.custom-tooltip {
  text-align: center;
  background: white;
  padding: 0px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}

.tooltip-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.tooltip-content:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.tooltip-name {
  font-weight: bold;
  font-size: 10px;
  color: #2c3e50;
}

/* Fix tooltip z-index issues */
.leaflet-tooltip {
  z-index: 1000 !important;
  pointer-events: auto !important;
}

.leaflet-tooltip-pane {
  z-index: 650 !important;
}


/* ==============================
   BADGE COLORS WITH GRADIENTS
============================== */
.badge.halal {
  background: repeating-linear-gradient(45deg, #16a085, #1abc9c 10px, #16a085 20px);
}
.badge.kosher {
  background: repeating-linear-gradient(45deg, #9b59b6, #8e44ad 10px, #9b59b6 20px);
}
.badge.vegan {
  background: repeating-linear-gradient(45deg, #27ae60, #2ecc71 10px, #27ae60 20px);
}
.badge.vegetarian {
  background: repeating-linear-gradient(45deg, #8e44ad, #c0392b 10px, #8e44ad 20px);
}
.badge.gluten-free {
  background: repeating-linear-gradient(45deg, #e67e22, #d35400 10px, #e67e22 20px);
}
.badge.keto-friendly {
  background: repeating-linear-gradient(45deg, #2980b9, #3498db 10px, #2980b9 20px);
}
.badge.jain-friendly {
  background: repeating-linear-gradient(45deg, #d35400, #e74c3c 10px, #d35400 20px);
}
.badge.dairy-free {
  background: repeating-linear-gradient(45deg, #c0392b, #e74c3c 10px, #c0392b 20px);
}
.badge.pet-friendly {
  background: repeating-linear-gradient(45deg, #1e8449, #27ae60 10px, #1e8449 20px);
}
.badge.nut-free {
  background: repeating-linear-gradient(45deg, #7f8c8d, #95a5a6 10px, #7f8c8d 20px);
}
.badge.gout-friendly {
  background: repeating-linear-gradient(45deg, #f39c12, #e67e22 10px, #f39c12 20px);
}

/* Gradient Backgrounds */
.halal-gradient        { background: repeating-linear-gradient(45deg, #16a085, #1abc9c 10px, #16a085 20px); }
.kosher-gradient       { background: repeating-linear-gradient(45deg, #9b59b6, #8e44ad 10px, #9b59b6 20px); }
.vegan-gradient        { background: repeating-linear-gradient(45deg, #27ae60, #2ecc71 10px, #27ae60 20px); }
.vegetarian-gradient   { background: repeating-linear-gradient(45deg, #8e44ad, #c0392b 10px, #8e44ad 20px); }
.gluten-free-gradient  { background: repeating-linear-gradient(45deg, #e67e22, #d35400 10px, #e67e22 20px); }
.keto-friendly-gradient { background: repeating-linear-gradient(45deg, #2980b9, #3498db 10px, #2980b9 20px); }
.jain-friendly-gradient { background: repeating-linear-gradient(45deg, #d35400, #e74c3c 10px, #d35400 20px); }
.dairy-free-gradient   { background: repeating-linear-gradient(45deg, #c0392b, #e74c3c 10px, #c0392b 20px); }
.pet-friendly-gradient { background: repeating-linear-gradient(45deg, #1e8449, #27ae60 10px, #1e8449 20px); }
.nut-free-gradient     { background: repeating-linear-gradient(45deg, #7f8c8d, #95a5a6 10px, #7f8c8d 20px); }
.gout-friendly-gradient { background: repeating-linear-gradient(45deg, #f39c12, #e67e22 10px, #f39c12 20px); }

.filter-label {
  display: flex;
  align-items: center;
  margin: 5px 0;
  cursor: pointer;
}

.filter-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid white;
}


/* Style for filter button */
.selected-filter {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 12px;
  color: white;
  margin: 2px;
  white-space: nowrap;
}

.user-location-marker {
  position: relative;
}

.user-location-dot {
  width: 14px;
  height: 14px;
  background-color: blue;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 6px rgba(0, 0, 255, 0.6);
}

@keyframes color-cycle {
  0% { color: #000000; } /* Default */
  50% { color: #13962b; } /* Orange */
  100% { color: #000000; } /* Back to default */
}

.hamburger-button .fas.pulse-icon {
  animation: color-cycle 1.5s ease-in-out 2; /* Runs 3 times for a subtle effect */
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0px rgba(46, 204, 113, 0.8); }
  50% { box-shadow: 0 0 12px rgba(46, 204, 113, 0.8); }
}

.hamburger-button.glow-effect {
  animation: glow 1s ease-in-out 3;
}

.opening-hours-container {
  width: 100%;
  text-align: left;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  font-size: 12px;
  color: #444;
}

.opening-hours-toggle {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opening-hours-toggle i {
  transition: transform 0.2s ease-in-out;
}

.opening-hours.full-week {
  margin-top: 6px;
  display: none;
}

.opening-hours.full-week.hidden {
  display: none;
}

.opening-hours.full-week.visible {
  display: block;
}

.opening-hours-toggle.open i {
  transform: rotate(180deg);
}

/* Weekday Hours (Minimal Style) */
.weekday-hours {
  padding: 2px 0;
  border-bottom: 1px solid #ddd; /* Thin separator line */
}

/* Remove the bottom border from the last item */
.weekday-hours:last-child {
  border-bottom: none;
}

/* Highlight Today's Hours */
.weekday-hours.bold {
  font-weight: bold;
  color: #d32f2f; /* Slightly red to stand out */
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-bottom: 1px solid #ddd;
  border-radius: 10px 10px 0 0;
}

.popup-logo {
  font-size: 16px;
  margin-right: 6px;
}

.popup-title {
  font-size: 14px;
  font-weight: bold;
  color: #2c3e50;
}

.editorial-summary {
  font-size: 12px;
  font-style: italic;
  color: #555;
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 5px;
  background-color: #f8f8f8;
  border-left: 3px solid #2ecc71;
  border-radius: 5px;
}

.leaflet-popup-content p {
  margin: 0;
}

.leaflet-attribution-flag { display: none !important; }


.count-badge {
  display: inline-block;
  background-color: #3498db;     /* default: a nice blue */
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  min-width: 20px;              /* ensures at least a small pill shape */
  text-align: center;           /* center text if wide enough */
  transition: background-color 0.2s;
}

/* Larger style for the total count at the top of the popup */
#total-count-span.count-badge {
  background-color: #e67e22;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 12px;
}

/* If you want zero counts to be faded out: */
.count-badge.zero-count {
  opacity: 0.4;  /* or 0.5, whichever looks good */
}

/* On hover, you could highlight non-zero counts: */
.count-badge:not(.zero-count):hover {
  background-color: #1abc9c;
}

/* Custom CSS for the geolocation loading indicator */
.map-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  max-width: 80%;
  text-align: center;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
}

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