/* ===== VARIABLES ===== */
:root {
  --orange: #ff7f00;
  --orange-light: #ffa500;
  --white: #ffffff;
  --text: #1f2733;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);

  --bg-page: #f7f7f7;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-muted: #4a5568;
}

[data-theme="dark"] {
  --white: #1e1e1e;
  --text: #f5f5f5;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);

  --bg-page: #121212;
  --bg-card: #1e1e1e;
  --border-color: #3a3a3a;
  --text-muted: #cbd5e0;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== GLOBAL LINKS (FINAL FIX) ===== */
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
  color: inherit;
  outline: none;
}

/* ===== BODY ===== */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-page);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header-section {
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.carousel {
  position: absolute;
  inset: 0;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 5;
  width: 90%;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== HERO BUTTON ===== */
.btn-explore {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-explore:hover {
  background: #e67100;
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--orange-light);
}

/* ===== CAROUSEL CONTROLS ===== */

/* Force hide the carousel controls everywhere */
.carousel-controls,
.carousel-prev,
.carousel-next {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== EXPLORE CATEGORY ===== */
.explore-category-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #fff9f2, #f8f8f8);
}

[data-theme="dark"] .explore-category-section {
  background: linear-gradient(135deg, #241c14, #1a1a1a);
}

.explore-category-container {
  text-align: center;
}

.explore-category-title {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 3rem;
}

.explore-category-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ===== EXPLORE CARD ===== */
.explore-card {
  flex: 1 1 350px;
  max-width: 450px;
  min-height: 220px;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px var(--orange-light);
}

.explore-card-icon {
  font-size: 2.5rem;
  margin-right: 1.5rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.explore-card-subtitle {
  opacity: 0.8;
  margin-bottom: 1rem;
}

.explore-link {
  font-weight: 600;
}

/* ===== CARD TYPES ===== */
.luxury-card {
  background: linear-gradient(135deg, #fff4e6, #ffecb3);
  border: 1px solid #ffd699;
  color: #b34700;
}

[data-theme="dark"] .luxury-card {
  background: linear-gradient(135deg, #3a2a12, #40320f);
  border: 1px solid #6b4b16;
  color: #ffcc80;
}

.luxury-card .explore-card-icon {
  background: rgba(255, 167, 38, 0.2);
  color: #e65100;
}

[data-theme="dark"] .luxury-card .explore-card-icon {
  color: #ffb74d;
}

.medium-card {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 1px solid #90caf9;
  color: #01579b;
}

[data-theme="dark"] .medium-card {
  background: linear-gradient(135deg, #10233a, #142c42);
  border: 1px solid #2c5a82;
  color: #90caf9;
}

.medium-card .explore-card-icon {
  background: rgba(66, 165, 245, 0.2);
  color: #0288d1;
}

[data-theme="dark"] .medium-card .explore-card-icon {
  color: #4fc3f7;
}

/* ===== FEATURED RESTAURANTS ===== */
.featured-restaurants {
  padding: 5rem 0;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.rest-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.rest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--orange-light);
}

.rest-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.category-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.rest-info {
  padding: 1.5rem;
}

/* ===== IMAGES ===== */
.slide1 {
  background-image: url("../images/hero1.jpg");
}
.slide2 {
  background-image: url("../images/hero2.jpg");
}
.slide3 {
  background-image: url("../images/hero3.jpg");
  background-position: center 90%;
  background-size: cover;
  background-position: center bottom;
}
.slide4 {
  background-image: url("../images/hero4.jpg");
}

.rest1 .rest-thumb {
  background-image: url("../images/rest1.jpg");
}
.rest2 .rest-thumb {
  background-image: url("../images/rest2.jpg");
}
.rest3 .rest-thumb {
  background-image: url("../images/rest3.jpg");
}

/* ===== FADE IN ===== */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.featured-title {
  font-size: 2.2rem;
  color: var(--orange); /* same as explore-category-title */
  text-align: center;
  margin-bottom: 3rem;
}
/* ===== FOOTER ===== */
.footer {
  background-color: #222; /* dark grey */
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-link {
  color: #FFA500; /* matches explore button */
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  text-decoration: underline;
  color: #FF7F00;
}

/* WhatsApp mini button */
.whatsapp-btn {
  display: inline-block;
  background: #25D366; /* WhatsApp green */
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.footer p {
  margin-top: 0.5rem;
  opacity: 0.8;
}
/* ===== TRENDING RESTAURANTS ===== */
.trending-restaurants {
  padding: 4rem 0;
  background: var(--bg-page);
}

.trending-carousel {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 2rem;
}

.trending-slide {
  min-width: 300px;
  flex: 0 0 auto;
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.trending-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--orange-light);
}

.trending-slide .rest-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
/* ===== TRENDING CAROUSEL ===== */
.trending-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
}

.trending-slide {
  flex: 0 0 300px; /* default width */
  height: 200px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.trending-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--orange-light);
}

.trending-slide .rest-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  width: calc(100% - 20px); /* ensure text doesn't overflow */
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .trending-slide {
    flex: 0 0 250px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .trending-slide {
    flex: 0 0 200px;
    height: 150px;
  }
}

/* ===== EXPLORE FILTERS (Pill Style) ===== */
.explore-filters {
    background: var(--bg-card);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.filter-form select {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Pill Shape */
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    min-width: 160px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.filter-form select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.15);
}

/* Redefining btn-explore for the filter bar specifically */
.filter-form .btn-explore {
    padding: 10px 32px;
    border: none;
    cursor: pointer;
}

.btn-clear {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.2s ease;
}

.btn-clear:hover {
    color: #e53e3e;
    text-decoration: underline !important;
}

/* ===== CARD EXPANSION DETAILS ===== */
.rest-extra-details {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    animation: cardReveal 0.4s ease forwards;
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

/* Styling the social/map links inside the card */
.insta-link { color: #E1306C; font-weight: 600; }
.map-link { color: #4285F4; font-weight: 600; }

/* ===== PAGINATION ===== */
.pagination {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.pagination a {
    margin: 0 10px;
    color: var(--orange);
    font-weight: 600;
}
/* Styling the Dropdowns */
.filter-form select {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Pill shape */
    padding: 12px 40px 12px 20px; /* Extra right padding for the arrow */
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: var(--shadow-sm);

    /* REMOVE DEFAULT ARROW & ADD CUSTOM ONE */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7f00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Hover effect */
.filter-form select:hover {
    border-color: var(--orange-light);
    transform: translateY(-1px);
}

/* Focus state (when clicked) */
.filter-form select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 127, 0, 0.15);
    background-color: var(--white);
}

/* Style for the options inside */
.filter-form select option {
    background: var(--white);
    color: var(--text);
    padding: 10px;
}

/* ===== CUSTOM DROPDOWN BOX STYLING ===== */
.filter-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 0;
}

.custom-select-wrapper {
    position: relative;
    min-width: 190px;
    user-select: none;
}

/* The visible Pill/Trigger */
.custom-select-trigger {
    background: var(--white);
    color: var(--text);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

/* The custom arrow */
.custom-select-trigger:after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg);
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.1);
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(-135deg);
    margin-bottom: -4px;
}

/* THE DROPDOWN BOX */
.custom-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    max-height: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.custom-option:hover {
    background-color: #fff9f2;
    color: var(--orange);
    padding-left: 28px;
}

[data-theme="dark"] .custom-option:hover {
    background-color: #2a2115;
}

/* Hide the real select browser default */
.hidden-select {
    display: none;
}

/* ================================================================
   ABOUT PAGE STYLES (Add this to the end of main.css)
   ================================================================ */

/* Animation for the cards sliding up */
.fade-in-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInLoad 0.8s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes fadeInLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* The Grid Layout */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

/* Individual Card Styling */
.about-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm); /* Using your variable from main.css */
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--orange);
}

.about-card h2 {
    color: var(--orange); /* Matches your brand */
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* List Styling inside "What We Do" and "Values" */
.about-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 15px;
}

.about-card ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-muted);
}

.about-card ul li::before {
    content: "➜"; /* Simple clean arrow */
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
    }
    .about-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================================
   MOBILE & RESPONSIVE CORRECTIONS
   ============================================================ */

/* 1. Grid Responsiveness: Shifts from 3 columns to 2, then 1 */
@media (max-width: 1024px) {
    .restaurant-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .restaurant-grid {
        grid-template-columns: 1fr; /* One card per row on phones */
        gap: 15px;
        padding: 10px;
    }

    /* Make images slightly shorter on small screens to save space */
    .rest-thumb {
        height: 200px;
    }

    /* Stack filters vertically so they aren't squashed */
    .filter-container {
        flex-direction: column !important;
        gap: 12px;
    }

    .custom-select-wrapper {
        width: 100% !important;
    }

    .btn-explore {
        width: 100%;
        text-align: center;
    }
}

/* 2. Pagination Styling: Makes the "Next/Previous" look like buttons */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.pagination a {
    padding: 10px 20px;
    background-color: var(--bg-card);
    border: 2px solid var(--orange, #ff6b00);
    color: var(--orange, #ff6b00);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--orange, #ff6b00);
    color: white;
}

.pagination .current-page {
    color: var(--text-muted);
    font-weight: 600;
}

/* 3. Trending Carousel Fix for Mobile */
@media (max-width: 600px) {
    .trending-slide {
        min-width: 85vw; /* Shows a peek of the next slide */
        height: 250px;
    }
}

/* ============================================================
   FINAL MOBILE POLISH
   ============================================================ */

@media (max-width: 600px) {
    /* 1. Fix the Hero Section (Too Large) */
    .hero {
        height: 50vh !important; /* Shorter on mobile */
        min-height: 350px !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important; /* Smaller text so it doesn't wrap weirdly */
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }

    /* 2. Fix Explore Category Cards (Too Large) */
    .explore-card {
        flex: 1 1 100% !important; /* Forces cards to stack perfectly */
        max-width: 100% !important;
        min-height: auto !important;
        padding: 1.5rem !important;
    }

    .explore-card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }

    /* 3. Fix Hidden/Squashed Search Bar & Filters */
    .filter-form {
        flex-direction: column !important; /* Stacks search/dropdowns vertically */
        width: 100%;
        padding: 0 10px;
    }

    .filter-form select,
    .custom-select-wrapper,
    .filter-form .btn-explore {
        width: 100% !important; /* Makes search/buttons full width */
        margin: 5px 0;
    }

    /* 4. Dashboard Search Bar Visibility */
    /* If your search bar is in the header or dashboard and getting cut off */
    .header-section {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    /* 5. Trending Carousel - make it look like a "peek" slider */
    .trending-slide {
        min-width: 80vw !important; /* Shows 80% of card, 20% of next card */
        height: 200px !important;
    }
}

/* Fix for horizontal scrolling (prevents site from wobbling left/right) */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== RESTAURANT PROFILE PAGE (rd-*) — DARK MODE FIX ===== */
[data-theme="dark"] .rd-description {
    color: #cbd5e0 !important;
}

[data-theme="dark"] .rd-links a {
    color: #cbd5e0 !important;
}
[data-theme="dark"] .rd-links a.instagram {
    color: #E1306C !important;
}
[data-theme="dark"] .rd-links a.map {
    color: #dd6b20 !important;
}

[data-theme="dark"] .rd-feed-title {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .rd-empty-feed {
    color: #a0aec0 !important;
}

[data-theme="dark"] .rd-upload-card {
    background: #1e1e1e !important;
    border: 1px solid #3a3a3a !important;
}

[data-theme="dark"] .rd-login-prompt {
    background: #1e1e1e !important;
    border: 1px solid #3a3a3a !important;
    color: #cbd5e0 !important;
}
[data-theme="dark"] .rd-login-prompt a {
    color: #f5f5f5 !important;
}

/* Edit button — full definition, consistent green button everywhere it appears */
.staff-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #22c55e !important;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.15s;
}
.staff-edit-btn:hover {
    background: #16a34a !important;
    transform: translateY(-1px);
}

/* ===== CARD DETAILS — DARK MODE FIX (overrides inline styles in templates) ===== */
[data-theme="dark"] .rest-card h4,
[data-theme="dark"] .rest-info h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .rest-card span,
[data-theme="dark"] .rest-card small,
[data-theme="dark"] .rest-extra-details p,
[data-theme="dark"] .rest-info span,
[data-theme="dark"] .rest-info small {
    color: #cbd5e0 !important;
}

/* The white "rating box" panel inside expanded card details */
[data-theme="dark"] .rating-box {
    background: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
}

[data-theme="dark"] .rating-box p {
    color: #f5f5f5 !important;
}

/* "For You" section title/subtitle/tags (home page) */
[data-theme="dark"] .for-you-title {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .for-you-subtitle {
    color: #cbd5e0 !important;
}

[data-theme="dark"] .for-you-tag {
    background: #1e1e1e !important;
    color: var(--orange) !important;
}

/* "For You" section wrapper (home page) */
[data-theme="dark"] #for-you-section {
    background: #121212 !important;
}

/* Pagination "Page X of Y" pill and prev/next links */
[data-theme="dark"] .btn-page {
    background: #2a2a2a !important;
    color: #f5f5f5 !important;
}

/* ===== THEME TOGGLE BUTTON ===== */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--orange);
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

#theme-toggle:hover {
    transform: scale(1.08);
    background: var(--orange-light);
}


#message-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
 
.message-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--orange);
    min-width: 300px;
    max-width: 90vw;
}
 
.message-alert i {
    font-size: 1.05rem;
    flex-shrink: 0;
}
 
.message-alert span {
    flex: 1;
}
 
.close-msg {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 8px;
    flex-shrink: 0;
}
.close-msg:hover {
    color: var(--text);
}
 
/* Django's default message tags: debug, info, success, warning, error */
.message-alert.success {
    border-left-color: #22c55e;
}
.message-alert.success i {
    color: #22c55e;
}
 
.message-alert.error {
    border-left-color: #e53e3e;
}
.message-alert.error i {
    color: #e53e3e;
}
 
.message-alert.warning {
    border-left-color: #f6ad55;
}
.message-alert.warning i {
    color: #f6ad55;
}
 
.message-alert.info,
.message-alert.debug {
    border-left-color: #3182ce;
}
.message-alert.info i,
.message-alert.debug i {
    color: #3182ce;
}
 