/* style.css - main stylesheet for the rate the plate web application
 * this file contains all the styling (colors, layouts, fonts, spacing) for the entire website
 * css controls the visual appearance of html elements
 */

/* default styling - applied to all elements
 * this sets up universal rules before specific styling
 */
* {
    /* box-sizing includes padding/border in width/height calculations
     * this makes sizing more predictable and easier to work with
     */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

/* body styling - the entire page background and default text */
body {
    /* use poppins font, with sans-serif as fallback if poppins isn't available */
    font-family: "Poppins", sans-serif;
    /* default text size across the page */
    font-size: 16px;
    /* line-height controls space between lines of text (1.5 = comfortable reading) */
    line-height: 1.5;
    /* light gray background color for the entire page */
    background-color: #F8FAFC;
    /* dark text color for readability */
    color: #2c3e50;
    /* smooth color transition when dark mode toggles */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* container - a centered wrapper for page content
 * modern design pattern: content is centered with max-width instead of full screen width
 */
.container {
    /* maximum width of 1200px - content won't stretch too wide on large screens */
    max-width: 1200px;
    /* center the container horizontally on the page */
    margin: 0 auto;
    /* add padding on sides for mobile devices (20px breathing room) */
    padding: 0 20px;
    /* take full width available (up to max-width) */
    width: 100%;
}

/* inner container spacing - add space between child elements */
.container>*+* {
    margin-top: 0;
}

/* navbar - the header bar at top of page
 * modern startup design with clean, minimal styling
 */
.navbar {
    /* white background for contrast with page body */
    background: white;
    /* padding for spacing inside navbar */
    padding: 16px 0;
    /* subtle shadow for depth */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* sticky positioning keeps navbar visible when scrolling */
    position: sticky;
    top: 0;
    /* high z-index keeps navbar above other content */
    z-index: 100;
    /* subtle border line at bottom */
    border-bottom: 1px solid #e2e8f0;
    /* fixed height for navbar */
    height: 70px;
}

/* navbar container - layout for logo, menu, buttons */
.navbar .container {
    /* flexbox layout for horizontal arrangement */
    display: flex;
    /* space out items (logo on left, menu in middle, buttons on right) */
    justify-content: space-between;
    /* center items vertically */
    align-items: center;
    /* match navbar height */
    height: 100%;
}

/* left side of navbar - logo and brand name */
.nav-left {
    /* flexbox for horizontal layout */
    display: flex;
    /* center items vertically */
    align-items: center;
    /* spacing between logo and text */
    gap: 12px;
    /* prevent flex from shrinking smaller than content */
    flex-shrink: 0;
}

/* navbar logo image */
.nav-left img {
    /* logo height (width auto-scales proportionally) */
    height: 45px;
    width: auto;
}

/* brand text next to logo */
.brand-text {
    /* large font for brand name */
    font-size: 20px;
    /* bold weight for prominence */
    font-weight: 600;
    /* dark gray text */
    color: #1f2937;
    /* remove underline */
    text-decoration: none;
}

/* center navigation menu */
.nav-center {
    /* flexbox for horizontal menu layout */
    display: flex;
    /* remove default list styling (bullets, indentation) */
    list-style-type: none;
    /* space between menu items */
    gap: 32px;
    /* remove default list margins */
    margin: 0;
    padding: 0;
    /* take available space in middle of navbar */
    flex: 1;
    /* center the menu in available space */
    justify-content: center;
}

/* individual menu items */
.nav-center li {
    /* remove default list item margins */
    margin: 0;
}

.nav-center a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-radius: 6px;
    display: inline-block;
    font-size: 14px;
}

.nav-center a:hover {
    color: #2563EB;
}

.nav-center .active a {
    color: #2563EB;
    border-bottom: 2px solid #2563EB;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* auth and utility buttons in header */
.auth-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #374151;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.primary-btn {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.auth-btn:hover {
    background: #f3f4f6;
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.nav-icon {
    background: none;
    border: none;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
}

.nav-icon:hover {
    background: #f3f4f6;
}

/* mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
}

/* mobile nav panel */
.mobile-nav {
    background: white;
    border-top: 1px solid #e6eefb;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav a {
    text-decoration: none;
    color: #1f2937;
    padding: 10px 12px;
    border-radius: 6px;
}

.mobile-nav a:hover {
    background: #f3f4f6;
}

.mobile-nav .mobile-auth a.primary-link {
    background: #2563EB;
    color: white;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
}

/* collapse primary nav on small screens and show mobile toggle */
@media (max-width: 900px) {
    .nav-center {
        display: none;
    }

    .auth-group {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (min-width: 901px) {
    .mobile-nav {
        display: none !important;
    }
}

.nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #f3f4f6;
}

/* Hero Section */
.hero-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.hero-card {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero-card h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #1f2937;
}

.hero-card h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #374151;
    font-weight: 500;
}

.hero-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.learn-more-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
    background: #1d4ed8;
}

/* Compact About Section (index) - simplified for small footprint */
.about-section {
    padding: 18px 20px;
    background: #ffffff;
}

.about-section.compact .about-grid {
    max-width: 820px;
    margin: 0 auto;
    display: block;
    text-align: center;
}

.about-card.small-center {
    display: inline-block;
    max-width: 740px;
    text-align: center;
    padding: 8px 4px;
}

.about-card.small-center h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #0f172a;
}

.about-lead {
    font-size: 0.98rem;
    color: #374151;
    margin: 4px 0 6px 0;
    font-weight: 600;
}

@media (max-width: 800px) {
    .about-section {
        padding: 14px 12px;
    }

    .about-card.small-center {
        width: 100%;
        padding: 6px 6px;
    }
}

/* Hero Headline */
.hero-headline {
    padding: 60px 20px;
    background: #f3f4f6;
    text-align: center;
}

.hero-headline h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* Search Section */
.search-section {
    padding: 60px 20px;
    background: white;
}

.search-card {
    max-width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: left;
}

.search-card h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.search-card p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 30px;
    line-height: 1.5;
}

.search-bar {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #1d4ed8;
}

/* Features Section */
.features-section {
    padding: 60px 20px;
    background: #f3f4f6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.5;
}

/* section 1 (headers and forms) - Modern Hero Section */
.section1 {
    margin: 0;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.section1 .container {
    max-width: 1200px;
}

.section1 h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
    line-height: 1.2;
}

.section1 p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Search bar styling in hero */
.section1 .search-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.section1 input,
.section1 select {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.section1 input:focus,
.section1 select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.section1 input {
    flex: 1;
    min-width: 200px;
}

.section1 .action-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.section1 .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

/* box (review cards, business cards) */
.boxes {
    background-color: #ffffff;
    padding: 60px 20px;
}



.boxes .container {
    display: flex;
    flex-direction: column;
}

/* Section headings */
.boxes h2,
.section1 h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    margin-top: 0;
}

body.dark-mode .boxes h2,
body.dark-mode .section1 h2 {
    color: #f1f5f9;
}

/* individual card */
.box {
    flex: 1;
    background: white;
    color: #2c3e50;
    border-radius: 12px;
    margin: 15px 10px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2563EB;
    transition: all 0.3s ease;
}

.box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.box h2 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.5em;
}

.box p {
    margin: 5px 0;
}

.img {
    background-image: url("../images/adobeStock.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: #F8FAFC;
}

.img .box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Verification Message */
.verification-message {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
    animation: slideIn 0.3s ease;
}

.verification-message.success {
    background-color: #27ae60;
    color: white;
    border-left: 4px solid #229954;
    display: block;
}

.verification-message.error {
    background-color: #e74c3c;
    color: white;
    border-left: 4px solid #c0392b;
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.star {
    font-size: 32px;
    color: #bdc3c7;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.hover {
    color: #f39c12;
    transform: scale(1.2);
}

.star.active {
    color: #f39c12;
}

#rating-display {
    font-size: 14px;
    color: #ecf0f1;
    margin-top: 8px;
    font-weight: 600;
    height: 20px;
}

/* forms */
form {
    margin-top: 20px;
}

.form-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
}

.form-table tr {
    display: table-row;
}

.form-table td {
    padding: 12px 0;
    vertical-align: middle;
}

.form-table td:first-child {
    padding-right: 20px;
    text-align: right;
    width: 40%;
}

.form-table td:last-child {
    text-align: left;
    width: 60%;
}

form label {
    font-weight: 600;
    color: white;
    display: inline;
}

form input,
form select,
form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #bdc3c7;
    width: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

form button,
button {
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

form button:hover,
button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

/* favs button */
.favorite-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #22C55E 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.25);
}

.favorite-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.35);
}

/*restaunt finder dropdown */
#restaurant-select {
    padding: 8px;
    border-radius: 5px;
    border: none;
    margin-top: 10px;
}

#restaurant-submit {
    margin-top: 15px;
}

/* responsive */
@media (max-width: 768px) {
    .boxes .container {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 90%;
    }

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

    #nearby-map {
        height: 240px !important;
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.filter-grid input:focus,
.filter-grid select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: #2563EB;
}

/* Card header with name and category tag */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.card h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #1e293b;
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
}

/* Category tag styling */
.card-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-category.french {
    background-color: #fef3c7;
    color: #92400e;
}

.card-category.italian {
    background-color: #fee2e2;
    color: #991b1b;
}

.card-category.thai {
    background-color: #fecaca;
    color: #7c2d12;
}

.card-category.mexican {
    background-color: #fed7aa;
    color: #7c2d12;
}

.card-category.dessert {
    background-color: #fbcfe8;
    color: #be185d;
}

/* Rating and reviews section */
.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 14px;
}

.star.empty {
    color: #e5e7eb;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.reviews-count {
    font-size: 13px;
    color: #64748b;
}

/* Location and deal badge section */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.card-location {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Deal or coupon badge */
.card-deal-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Button section */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.card-actions button {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bookmark-btn {
    background-color: #f1f5f9;
    color: #2563EB;
    border: 1px solid #e2e8f0;
}

.bookmark-btn:hover {
    background-color: #e0e7ff;
    border-color: #2563EB;
}

.details-btn {
    background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    color: white;
}

.details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.card .coupon {
    margin-top: 8px;
    padding: 8px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #166534;
    border-radius: 6px;
    font-weight: 600;
}

.card button {
    margin-top: 10px;
    width: 100%;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover {
    background-color: #2563EB;
    color: white;
    border-color: #2563EB;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.category-btn.active {
    background-color: #2563EB;
    color: white;
    border-color: #2563EB;
}

/* Legacy category-card support */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #2563EB;
}

.category-card h3 {
    margin-bottom: 8px;
    color: #2563EB;
    font-size: 1.25rem;
}

.category-card p {
    color: #64748b;
    font-size: 0.9rem;
}

.dark-toggle {
    margin-left: 12px;
    border: 1px solid #75a6ce;
    background: #ffffff;
    color: #23374c;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-toggle:hover {
    background: #e2eaf5;
}

body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background: #1e293b;
    border-bottom-color: #334155;
}

body.dark-mode .brand-text {
    color: #e2e8f0;
}

body.dark-mode .nav-center a {
    color: #cbd5e1;
}

body.dark-mode .nav-center a:hover,
body.dark-mode .nav-center .active a {
    color: #60a5fa;
}

body.dark-mode .nav-center .active a {
    border-bottom-color: #60a5fa;
}

body.dark-mode .nav-btn {
    color: #cbd5e1;
}

body.dark-mode .nav-btn:hover {
    background-color: #334155;
}

body.dark-mode .nav-icon {
    color: #cbd5e1;
}

body.dark-mode .nav-icon:hover {
    background-color: #334155;
}

body.dark-mode .hero-section {
    background: #0f172a;
}

body.dark-mode .hero-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

body.dark-mode .hero-headline {
    background: #1e293b;
}

body.dark-mode .hero-headline h1 {
    color: #e2e8f0;
}

body.dark-mode .search-section {
    background: #0f172a;
}

body.dark-mode .search-card {
    background: #1e293b;
}

body.dark-mode .search-card h2,
body.dark-mode .search-card p {
    color: #e2e8f0;
}

body.dark-mode .search-bar input {
    background: #334155;
    color: #e2e8f0;
}

body.dark-mode .search-bar input::placeholder {
    color: #94a3b8;
}

body.dark-mode .features-section {
    background: #0f172a;
}

body.dark-mode .feature-card {
    background: #1e293b;
}

body.dark-mode .business-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .business-card h3,
body.dark-mode .business-card .rating-text,
body.dark-mode .business-card .category {
    color: #e2e8f0;
}

body.dark-mode .business-card .address,
body.dark-mode .business-card .reviews,
body.dark-mode .business-card .score {
    color: #94a3b8;
}

body.dark-mode .business-card .deal {
    background: #1e40af;
    color: #dbeafe;
}

body.dark-mode .business-card .coupon {
    background: #92400e;
    color: #fed7aa;
}

body.dark-mode .business-card .btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .business-card .btn:hover {
    background: #475569;
}

body.dark-mode .category-btn {
    background: #334155;
    color: #e2e8f0;
}

body.dark-mode .category-btn:hover,
body.dark-mode .category-btn.active {
    background: #60a5fa;
    color: #0f172a;
}

body.dark-mode .recommended-section h2,
body.dark-mode .categories-section h2,
body.dark-mode .map-section h2 {
    color: #e2e8f0;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #f9fafb;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #60a5fa;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Loading animations */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite;
}

.loading-card {
    height: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Improved buttons */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Typography improvements */
h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    line-height: 1.6;
    color: #4b5563;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

#home-recommendations {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 24px;
}

#home-recommendations .business-card {
    padding: 12px;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

#home-recommendations .business-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

#home-recommendations .business-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

#home-recommendations .business-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

#home-recommendations .business-card .rating {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

#home-recommendations .business-card .category {
    font-size: 0.75rem;
    padding: 2px 6px;
    margin-bottom: 8px;
}

#home-recommendations .business-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
    order: -1;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

#home-recommendations .business-card .favorite-btn {
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 4px;
    opacity: 1;
    transition: all 0.2s ease;
    color: #fecdd3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#home-recommendations .business-card .favorite-btn:hover {
    transform: scale(1.15);
    color: #fbcfe8;
}

#home-recommendations .business-card .favorite-btn.active {
    color: #ef4444;
    opacity: 1;
    font-size: 2.3rem;
    text-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

#home-recommendations .business-card .details-btn {
    display: none;
}

#home-recommendations .business-card::before {
    display: none;
}

.business-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.business-card:hover::before {
    transform: scaleX(1);
}

.business-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.business-card .category {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.business-card .address {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.business-card .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.business-card .stars {
    color: #f59e0b;
    font-size: 1rem;
}

.business-card .rating-text {
    color: #374151;
    font-weight: 500;
}

.business-card .reviews {
    color: #6b7280;
    font-size: 0.875rem;
}

.business-card .deal {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.business-card .coupon {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.business-card .score {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.business-card .actions {
    display: flex;
    gap: 8px;
}

.business-card .btn {
    border-radius: 6px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.business-card .btn:hover {
    background: #f3f4f6;
}

/* Categories */
.category-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.category-btn {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f3f4f6;
    border: none;
    color: #374151;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #2563eb;
    color: white;
}

/* Map */
#nearby-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}

/* Fonts */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.recommended-section h2,
.categories-section h2,
.map-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        padding: 40px 20px;
    }

    .hero-headline h1 {
        font-size: 2rem;
    }

    .hero-card {
        padding: 30px 20px;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .search-card {
        padding: 20px;
    }

    .search-card h2 {
        font-size: 1.5rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        border-radius: 10px 10px 0 0;
    }

    .search-btn {
        border-radius: 0 0 10px 10px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        padding: 40px 20px;
    }

    .hero-headline h1 {
        font-size: 2rem;
    }

    .hero-card {
        padding: 30px 20px;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .search-card {
        padding: 20px;
    }

    .search-card h2 {
        font-size: 1.5rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        border-radius: 10px 10px 0 0;
    }

    .search-btn {
        border-radius: 0 0 10px 10px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

body.dark-mode .section1 {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
}

body.dark-mode .box,
body.dark-mode .card {
    background-color: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .favorite-btn,
body.dark-mode form button,
body.dark-mode button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.slogan {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0;
}

.slogan h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

/* Deal Finder Styles */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.deal-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.deal-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    border-color: #2563EB;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.deal-header h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.deal-badge {
    background: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 500;
}

.deal-badge.expiring-soon {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.deal-code {
    font-size: 1.4em;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.deal-description {
    font-size: 1em;
    color: #475569;
    margin-bottom: 15px;
    font-weight: 500;
}

.deal-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.deal-details span {
    font-size: 0.9em;
    color: #64748b;
}

.deal-actions {
    display: flex;
    gap: 10px;
}

.deal-actions .action-btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.deal-actions .action-btn:hover {
    background: #1d4ed8;
}

.deal-actions .favorite-btn {
    padding: 10px 15px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.deal-actions .favorite-btn:hover {
    background: #e2e8f0;
}

.deal-actions .favorite-btn.bookmarked {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.no-deals {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.no-deals p {
    font-size: 1.2em;
    color: #64748b;
    margin: 0;
}

/* Dark mode for deals */
body.dark-mode .deal-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .deal-header h3 {
    color: #f1f5f9;
}

body.dark-mode .deal-code {
    color: #60a5fa;
}

body.dark-mode .deal-description {
    color: #cbd5e1;
}

body.dark-mode .deal-details span {
    color: #94a3b8;
}

body.dark-mode .deal-actions .favorite-btn {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

body.dark-mode .deal-actions .favorite-btn:hover {
    background: #475569;
}

body.dark-mode .no-deals {
    background: #1e293b;
}

body.dark-mode .no-deals p {
    color: #94a3b8;
}

/* Business Dashboard Styles */
.dashboard-controls {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.dashboard-controls label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.dashboard-controls select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    border-color: #2563EB;
}

.metric-card h3 {
    font-size: 1em;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.metric-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #2563eb;
}

.dashboard-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.dashboard-section h2 {
    font-size: 1.5em;
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 600;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-rating {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

.review-text {
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.5;
}

.review-date {
    color: #6b7280;
    font-size: 0.9em;
}

.trend-bars {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: center;
    height: 200px;
    padding: 20px;
}

.trend-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 0.9em;
    color: #6b7280;
    font-weight: 500;
}

.bar {
    width: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: end;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    min-height: 20px;
}

.coupon-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.coupon-metric {
    text-align: center;
    padding: 16px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.coupon-metric h4 {
    color: #0369a1;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 600;
}

.coupon-metric span {
    font-size: 1.8em;
    font-weight: 700;
    color: #0284c7;
}

/* Dark mode for dashboard */
body.dark-mode .dashboard-controls {
    background: #1e293b;
}

body.dark-mode .dashboard-controls label {
    color: #f1f5f9;
}

body.dark-mode .dashboard-controls select {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .metric-card,
body.dark-mode .dashboard-section {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .metric-card h3,
body.dark-mode .dashboard-section h2 {
    color: #f1f5f9;
}

body.dark-mode .review-item {
    background: #334155;
    border-color: #475569;
}

body.dark-mode .review-text {
    color: #cbd5e1;
}

body.dark-mode .review-date {
    color: #94a3b8;
}

body.dark-mode .coupon-metric {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .coupon-metric h4 {
    color: #7dd3fc;
}

body.dark-mode .coupon-metric span {
    color: #38bdf8;
}

/* Sentiment Analysis Styles */
.sentiment-summary {
    background: #f0f9ff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    font-size: 0.9em;
}

.sentiment-summary strong {
    color: #0369a1;
}

.sentiment-breakdown {
    display: block;
    margin-top: 4px;
    color: #0284c7;
    font-size: 0.85em;
}

.sentiment-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.sentiment-badge:has(.sentiment-positive) {
    background: #dcfce7;
    color: #166534;
}

.sentiment-badge:has(.sentiment-negative) {
    background: #fef2f2;
    color: #991b1b;
}

/* Dark mode for sentiment */
body.dark-mode .sentiment-summary {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .sentiment-summary strong {
    color: #7dd3fc;
}

body.dark-mode .sentiment-breakdown {
    color: #38bdf8;
}

body.dark-mode .sentiment-badge {
    background: #334155;
    color: #cbd5e1;
}

/* Business Comparison Styles */
.comparison-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.business-selector {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.business-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.business-selector select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.business-column {
    text-align: center;
}

.business-column.better {
    background: #dcfce7;
    border-radius: 6px;
    padding: 4px 8px;
}

.comparison-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #6b7280;
}

.comparison-row {
    display: grid;
    grid-template-columns: 200px 1fr auto 1fr;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 600;
    color: #374151;
    padding-right: 20px;
}

.comparison-spacer {
    width: 40px;
    text-align: center;
    color: #6b7280;
    font-weight: 600;
}

.comparison-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.comparison-actions .action-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.comparison-actions .action-btn:hover {
    background: #1d4ed8;
}

/* Dark mode for comparison */
body.dark-mode .business-selector {
    background: #1e293b;
}

body.dark-mode .business-selector label {
    color: #f1f5f9;
}

body.dark-mode .business-selector select {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .comparison-table {
    background: #1e293b;
}

body.dark-mode .comparison-header {
    background: #334155;
}

body.dark-mode .comparison-row {
    border-color: #475569;
}

body.dark-mode .metric-label {
    color: #f1f5f9;
}

body.dark-mode .comparison-spacer {
    color: #94a3b8;
}

body.dark-mode .comparison-actions {
    background: #334155;
    border-color: #475569;
}

/* Accessibility Mode Styles */
body.accessibility-mode {
    font-size: 18px;
    line-height: 1.6;
}

body.accessibility-mode h1 {
    font-size: 2.5em;
}

body.accessibility-mode h2 {
    font-size: 2em;
}

body.accessibility-mode h3 {
    font-size: 1.5em;
}

body.accessibility-mode .card,
body.accessibility-mode .deal-card,
body.accessibility-mode .metric-card,
body.accessibility-mode .dashboard-section {
    font-size: 1.1em;
    padding: 24px;
    border: 2px solid #000;
    border-radius: 8px;
}

body.accessibility-mode button,
body.accessibility-mode .action-btn,
body.accessibility-mode input,
body.accessibility-mode select,
body.accessibility-mode textarea {
    font-size: 1.1em;
    padding: 12px 16px;
    border: 2px solid #000;
    border-radius: 6px;
}

body.accessibility-mode .navbar {
    padding: 20px 0;
}

body.accessibility-mode .navbar ul li {
    margin-left: 30px;
}

body.accessibility-mode .filter-grid {
    gap: 20px;
}

body.accessibility-mode .filter-grid div {
    margin-bottom: 15px;
}

body.accessibility-mode .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

body.accessibility-mode .deals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

/* High contrast colors for accessibility mode */
body.accessibility-mode {
    background-color: #fff !important;
    color: #000 !important;
}

body.accessibility-mode .navbar {
    background: #000 !important;
    color: #fff !important;
}

body.accessibility-mode .navbar a {
    color: #fff !important;
}

body.accessibility-mode .card,
body.accessibility-mode .deal-card {
    background: #fff !important;
    border: 2px solid #000 !important;
    color: #000 !important;
}

body.accessibility-mode .action-btn {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
}

body.accessibility-mode .action-btn:hover {
    background: #333 !important;
}

body.accessibility-mode input,
body.accessibility-mode select,
body.accessibility-mode textarea {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

body.accessibility-mode .coupon {
    background: #ffff00 !important;
    color: #000 !important;
    padding: 8px;
    border: 2px solid #000 !important;
}

/* Leaflet Map Styles */
#nearby-map {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    z-index: 10;
    display: block;
    visibility: visible !important;
}

.map-popup {
    font-family: 'Poppins', sans-serif;
    padding: 2px;
}

.business-popup .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0;
}

.business-popup .leaflet-popup-content {
    margin: 12px;
    width: auto !important;
}

.business-popup .leaflet-popup-tip {
    background: white;
}

.map-popup h4 {
    font-weight: 600;
    color: #1f2937;
}

.map-popup p {
    font-size: 0.85em;
    color: #4b5563;
    margin: 4px 0;
}

.map-popup a {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.map-popup a:hover {
    background: #1d4ed8;
}

.map-popup .map-popup-favorite-btn {
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.map-popup .map-popup-favorite-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

/* Leaflet marker styling */
.leaflet-marker-icon {
    transition: opacity 0.2s ease;
}

.leaflet-marker-icon:hover {
    filter: brightness(0.9);
}

/* Leaflet control styling */
.leaflet-control {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.leaflet-control a {
    color: #2563eb;
    background: white;
}

.leaflet-control a:hover {
    background: #f3f4f6;
}

/* Map Section Styling */
.map-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 30px 0;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(0.2, 0.3, 0.25, 0.9);
}

.map-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-section-header {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}

.map-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.map-filter-bar>div {
    display: flex;
    flex-direction: column;
}

.map-filter-bar label {
    font-size: 0.85em;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 4px;
}

.map-filter-bar select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9em;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-filter-bar select:hover {
    border-color: #2563eb;
}

.map-filter-bar select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#nearby-map {
    height: 450px !important;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Dark mode for map - preserve visibility, adjust colors only */
body.dark-mode .map-section {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .map-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .map-section-header {
    color: #f1f5f9;
}

body.dark-mode .map-filter-bar label {
    color: #cbd5e1;
}

body.dark-mode .map-filter-bar select {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #334155;
}

body.dark-mode .map-filter-bar select:hover {
    border-color: #60a5fa;
}

body.dark-mode .map-filter-bar select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-mode #nearby-map {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    filter: none !important;
}

body.dark-mode .business-popup .leaflet-popup-content-wrapper {
    background: #1e293b;
}

body.dark-mode .business-popup .leaflet-popup-tip {
    background: #1e293b;
}

body.dark-mode .map-popup h4 {
    color: #f1f5f9;
}

body.dark-mode .map-popup p {
    color: #cbd5e1;
}

/* Recommendation Section with Horizontal Scrolling */
.recommendations-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s cubic-bezier(0.2, 0.3, 0.25, 0.9);
}

.recommendations-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recommendations-header {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.recommendation-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.2, 0.3, 0.25, 0.9);
    cursor: pointer;
    position: relative;
    min-width: 200px;
}

.recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
}

.recommendation-card h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommendation-card .rec-rating {
    font-size: 0.85em;
    color: #f59e0b;
    margin-bottom: 8px;
    font-weight: 500;
}

.recommendation-card .rec-category {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    margin-bottom: 12px;
}

.recommendation-card .rec-meta {
    font-size: 0.8em;
    color: #6b7280;
    margin-bottom: 12px;
}

.recommendation-card .rec-action {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.recommendation-card .rec-action:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

/* Dark mode for recommendations */
body.dark-mode .recommendations-section {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .recommendations-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .recommendations-header {
    color: #f1f5f9;
}

body.dark-mode .recommendation-card {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .recommendation-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 8px 16px rgba(96, 165, 250, 0.2);
}

body.dark-mode .recommendation-card h4 {
    color: #f1f5f9;
}

body.dark-mode .recommendation-card .rec-meta {
    color: #94a3b8;
}

body.dark-mode .recommendation-card .rec-category {
    background: #1e3a8a;
    color: #60a5fa;
}

/* Responsive Grid Design */

/* Laptop/Desktop (1200px+) - 3 columns */
@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Tablet (768px - 1199px) - 2 columns */
@media (max-width: 1199px) and (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .categories-grid {
        justify-content: flex-start;
    }
}

/* Mobile (320px - 767px) - 1 column */
@media (max-width: 767px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .navbar .container {
        gap: 20px;
    }

    .navbar ul {
        display: none;
    }

    .section1 {
        padding: 40px 20px;
    }

    .section1 h1 {
        font-size: 2rem;
    }

    .section1 p {
        font-size: 1rem;
    }

    .section1 .search-container {
        flex-direction: column;
    }

    .section1 input {
        min-width: auto;
        width: 100%;
    }

    .section1 .action-btn {
        width: 100%;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small phones (320px - 480px) */
@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .section1 h1 {
        font-size: 1.75rem;
    }
}

/* Desktop deals grid - 3 columns */
@media (min-width: 1200px) {
    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Tablet deals grid - 2 columns */
@media (max-width: 1199px) and (min-width: 768px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile deals grid - 1 column */
@media (max-width: 767px) {
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Responsive Map Filter Bar */
@media (max-width: 767px) {
    .map-filter-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #nearby-map {
        height: 320px !important;
    }

    .map-section {
        padding: 16px;
        margin: 20px 0;
    }

    .map-section-header {
        font-size: 1.25em;
        margin-bottom: 16px;
    }
}

/* Responsive Recommendation Grid */
@media (max-width: 1199px) and (min-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .recommendation-card {
        min-width: 100%;
    }

    .recommendations-section {
        padding: 16px;
        margin: 20px 0;
    }

    .recommendations-header {
        font-size: 1.25em;
        margin-bottom: 16px;
    }
}

/* ============ Business Detail Page Styling ============ */

.business-detail-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.business-detail-card h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 24px;
    font-weight: 700;
}

.business-detail-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 16px;
}

.business-detail-card strong {
    color: #1f2937;
    font-weight: 600;
}

.business-detail-card .coupon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin: 24px 0;
    color: #92400e;
    font-weight: 500;
}

.business-detail-card .favorite-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.business-detail-card .favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

/* Reviews Section */
.reviews-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
}

.reviews-section h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 24px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sentiment-summary {
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #4b5563;
}

.sentiment-breakdown {
    display: block;
    font-size: 0.85rem;
    margin-top: 4px;
    color: #6b7280;
}

.sentiment-badge {
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.reviews-section .card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #2563eb;
    transition: all 0.2s ease;
}

.reviews-section .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.reviews-section .card strong {
    color: #1f2937;
    font-weight: 600;
}

.reviews-section .card p {
    margin: 8px 0;
    color: #4b5563;
}

/* Review Form Section */
.review-form-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.review-form-section h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 28px;
    font-weight: 700;
}

.review-form-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-form-section label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    display: block;
}

.review-form-section input,
.review-form-section select,
.review-form-section textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.review-form-section input:focus,
.review-form-section select:focus,
.review-form-section textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.review-form-section textarea {
    resize: vertical;
    min-height: 120px;
}

.review-form-section button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    align-self: flex-start;
}

.review-form-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Dark mode adjustments for business detail */
body.dark-mode .business-detail-card,
body.dark-mode .reviews-section,
body.dark-mode .review-form-section {
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .business-detail-card h1,
body.dark-mode .reviews-section h2,
body.dark-mode .review-form-section h2,
body.dark-mode .business-detail-card strong,
body.dark-mode .review-form-section label {
    color: #f9fafb;
}

body.dark-mode .business-detail-card p,
body.dark-mode .sentiment-summary {
    color: #d1d5db;
}

body.dark-mode .reviews-section .card {
    background: #111827;
    border-left-color: #3b82f6;
}

body.dark-mode .review-form-section input,
body.dark-mode .review-form-section select,
body.dark-mode .review-form-section textarea {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

body.dark-mode .review-form-section input:focus,
body.dark-mode .review-form-section select:focus,
body.dark-mode .review-form-section textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Responsive design for business detail */
@media (max-width: 768px) {
    .business-detail-card {
        padding: 24px;
    }

    .business-detail-card h1 {
        font-size: 1.75rem;
    }

    .reviews-section,
    .review-form-section {
        padding: 24px;
    }

    .reviews-section h2,
    .review-form-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Cuisine Filter Buttons */
.cuisine-filter {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #4b5563;
}

.cuisine-filter:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.cuisine-filter.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Star Rating Selector */
.star-rating-selector {
    display: flex;
    gap: 12px;
    margin: 8px 0 20px 0;
    font-size: 2.5rem;
}

.star-select {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #d1d5db;
    user-select: none;
}

.star-select:hover {
    transform: scale(1.15);
    color: #FBBF24;
}

.star-select[data-rating="1"]:hover~.star-select,
.star-select[data-rating="2"]:hover~.star-select,
.star-select[data-rating="3"]:hover~.star-select,
.star-select[data-rating="4"]:hover~.star-select,
.star-select[data-rating="5"]:hover~.star-select {
    color: #d1d5db;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 18px;
    font-size: 36px;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.modal-header h2 {
    margin-bottom: 10px;
    color: #1a202c;
}

.business-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #718096;
}

.business-summary div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-body {
    padding: 30px;
}

.reviews-section h3 {
    margin-bottom: 20px;
    color: #1a202c;
}

.reviews-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 30px;
}

.review-item {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8fafc;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.review-rating {
    color: #fbbf24;
    font-weight: bold;
}

.review-text {
    color: #4a5568;
    line-height: 1.6;
}

.leave-review-section h3 {
    margin-bottom: 20px;
    color: #1a202c;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.submit-review-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-review-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

/* Restaurant Grid Styles */
.nav-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.nav-center li a,
.nav-center li {
    color: #1f2937;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
}

.nav-center li.active a,
.nav-center li.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.small-logo {
    height: 30px;
    width: auto;
    margin-right: 8px;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 1400px) {
    .restaurant-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .restaurant-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .restaurant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .restaurant-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.restaurant-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    min-height: 240px;
}

.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.restaurant-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.restaurant-card .restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.favorite-heart {
    font-size: 1.22rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.favorite-heart.active {
    color: #ef4444;
}

.restaurant-card .restaurant-info {
    padding: 16px;
}

.restaurant-card .restaurant-info h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
}

.restaurant-card .restaurant-info .meta {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 6px;
}

.restaurant-card .restaurant-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-top: 1px solid #edf2f7;
    gap: 12px;
}

.restaurant-card .restaurant-actions button,
.restaurant-card .restaurant-actions a {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 0.88rem;
    text-decoration: none;
    text-align: center;
}

.restaurant-card .restaurant-actions button+a,
.restaurant-card .restaurant-actions a+button {
    margin-left: 8px;
}

.restaurant-card .restaurant-actions button:hover,
.restaurant-card .restaurant-actions a:hover {
    background: #1d4ed8;
}

.star-rating-pill {
    display: inline-flex;
    gap: 2px;
    font-size: 0.84rem;
    color: #f59e0b;
}

.star-rating-pill .star {
    opacity: 0.3;
    transition: opacity 0.2s ease;
}

.star-rating-pill .star.active,
.star-rating-pill .star:hover,
.star-rating-pill .star.hover {
    opacity: 1;
}

.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.restaurant-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.restaurant-info {
    padding: 20px;
}

.restaurant-info h3 {
    margin-bottom: 8px;
    color: #1a202c;
}

.rating {
    color: #fbbf24;
    font-weight: 500;
    margin-bottom: 5px;
}

.category {
    color: #718096;
    font-size: 14px;
    margin-bottom: 5px;
}

.location {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 15px;
}

.view-reviews-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.view-reviews-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

/* Search and Filter Styles */
.search-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.search-bar {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

.filters {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.aboutBox {
    background: #f9fafb;
    background-color: lightblue;
    background-size: contain;
    background-repeat: no-repeat;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    width: 1000px;
}

body.dark-mode .aboutBox {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

body.dark-mode .aboutBox p {
    color: #f9fafb;
}

body.accessibility-mode .aboutBox {
    background: #f9fafb;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Sign In Button */
.signin-btn {
    padding: 10px 20px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.signin-btn:hover {
    background-color: #1d4ed8;
}

/* User Menu */
#userMenu {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#userMenu span {
    margin-right: 10px;
    color: #2c3e50;
}

#logoutBtn {
    padding: 8px 16px;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#logoutBtn:hover {
    background-color: #b91c1c;
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
    background: none;
    border: none;
}

.close-modal:hover {
    color: #0f172a;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
}

.auth-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #f1f5f9;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.auth-tabs .active-tab {
    background-color: #2563EB;
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #1e293b;
}

.auth-form input {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 16px;
}

.auth-form button {
    padding: 12px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.auth-form button:hover {
    background-color: #1d4ed8;
}

.auth-form .forgot-password-link {
    align-self: flex-end;
    width: auto;
    padding: 0;
    margin: -8px 0 15px;
    background: transparent;
    color: #dc2626;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.auth-form .forgot-password-link:hover {
    background: transparent;
    color: #b91c1c;
    text-decoration: underline;
}

.auth-form .secondary-auth-btn {
    margin-top: 10px;
    background-color: #f1f5f9;
    color: #334155;
}

.auth-form .secondary-auth-btn:hover {
    background-color: #e2e8f0;
}

.hidden-form {
    display: none;
}

/* Polished authentication modal */
.signin-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
    font-weight: 800;
}

#userMenu {
    gap: 10px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

#loggedInUser {
    padding: 0 8px;
    color: #0f172a;
    font-weight: 800;
}

#logoutBtn {
    border-radius: 10px;
    background: #111827;
    font-weight: 800;
}

.auth-modal {
    background:
        radial-gradient(circle at 20% 10%, rgba(20, 184, 166, 0.28), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.22), transparent 28%),
        rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(12px);
    z-index: 7000;
}

.auth-box {
    width: min(92vw, 460px);
    padding: 34px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 38px 100px rgba(15, 23, 42, 0.32);
    overflow: hidden;
}

.auth-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #0f766e, #2563eb, #e11d48);
}

.auth-tabs {
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
}

.auth-tabs button {
    border-radius: 10px;
    background: transparent;
    color: #475569;
}

.auth-tabs .active-tab {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.auth-form h2 {
    margin: 18px 0 18px;
    color: #111827;
    font-size: 1.7rem;
}

.auth-form input {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.auth-form button:not(.forgot-password-link):not(.secondary-auth-btn) {
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.auth-form .forgot-password-link {
    color: #0f766e;
}

.auth-form .secondary-auth-btn {
    border-radius: 12px;
}

/* About page refresh */
.about-page {
    background:
        linear-gradient(180deg, #fff8f0 0%, #f6fbf8 50%, #fff7ed 100%);
}

.about-main {
    overflow: hidden;
}

.about-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 72px 0;
    isolation: isolate;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(255, 247, 237, 0.96), rgba(236, 253, 245, 0.9), rgba(239, 246, 255, 0.94)),
        url("../images/place_11_village_marche.jpg") center / cover;
}

.about-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, #000 15%, transparent 80%);
}

.about-hero-grid,
.about-mission-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.about-hero h1 {
    color: #111827;
    font-size: clamp(3.1rem, 7.5vw, 7rem);
    line-height: 0.92;
    margin: 0;
}

.about-hero-copy p:not(.section-kicker),
.about-mission-copy p {
    max-width: 640px;
    color: #475569;
    font-size: 1.12rem;
    line-height: 1.75;
    margin-top: 18px;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.about-image-stack {
    position: relative;
    min-height: 560px;
    transform-style: preserve-3d;
}

.about-image-stack img {
    position: absolute;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
}

.about-image-main {
    right: 3%;
    top: 7%;
    width: 72%;
    aspect-ratio: 0.88;
    border-radius: 16px;
    transform: rotate(4deg);
}

.about-image-small {
    width: 42%;
    aspect-ratio: 1;
    border-radius: 16px;
}

.about-image-one {
    left: 0;
    top: 5%;
    transform: rotate(-9deg);
}

.about-image-two {
    left: 8%;
    bottom: 4%;
    transform: rotate(8deg);
}

.about-flow-section,
.about-mission-section {
    padding: 86px 0;
}

.about-section-heading h2,
.about-mission-copy h2 {
    color: #111827;
    font-size: clamp(2.2rem, 4.8vw, 4.5rem);
    line-height: 1;
    margin: 0 0 28px;
}

.about-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.about-flow-card,
.about-impact-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.about-flow-card {
    min-height: 230px;
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-flow-card:nth-child(2) {
    margin-top: 36px;
}

.about-flow-card:nth-child(3) {
    margin-top: 72px;
}

.about-flow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 34px 84px rgba(15, 23, 42, 0.18);
}

.about-flow-card span {
    color: #e11d48;
    font-weight: 900;
}

.about-flow-card h3 {
    color: #111827;
    font-size: 1.7rem;
    margin: 18px 0 10px;
}

.about-flow-card p {
    color: #64748b;
}

.about-mission-section {
    background: #11212f;
    color: #f8fafc;
}

.about-mission-copy h2,
.about-mission-copy .section-kicker {
    color: #ffffff;
}

.about-mission-copy p {
    color: #cbd5e1;
}

.about-impact-panel {
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.16);
}

.about-impact-panel div {
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-impact-panel div:last-child {
    border-bottom: 0;
}

.about-impact-panel strong {
    display: block;
    color: #fed7aa;
    font-size: 1.25rem;
}

.about-impact-panel span {
    display: block;
    margin-top: 6px;
    color: #dbeafe;
}

body.dark-mode .auth-box,
body.dark-mode .about-flow-card {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .auth-form h2,
body.dark-mode .about-hero h1,
body.dark-mode .about-section-heading h2,
body.dark-mode .about-flow-card h3 {
    color: #f8fafc;
}

body.dark-mode .about-hero-bg {
    background:
        linear-gradient(115deg, rgba(15, 23, 42, 0.96), rgba(19, 78, 74, 0.82), rgba(88, 28, 135, 0.72)),
        url("../images/place_11_village_marche.jpg") center / cover;
}

@media (max-width: 900px) {
    .about-hero-grid,
    .about-mission-grid,
    .about-flow-grid {
        grid-template-columns: 1fr;
    }

    .about-image-stack {
        min-height: 390px;
    }

    .about-flow-card:nth-child(2),
    .about-flow-card:nth-child(3) {
        margin-top: 0;
    }
}

/* Home page immersive refresh */
.home-page {
    background: linear-gradient(180deg, #fff8f0 0%, #f6fbf8 34%, #f7fafc 66%, #fff7ed 100%);
    color: #16213a;
    overflow-x: hidden;
}

.home-main {
    perspective: 1200px;
}

.home-page .navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(22, 33, 58, 0.08);
    box-shadow: 0 16px 40px rgba(22, 33, 58, 0.08);
}

.home-page .nav-center a:hover,
.home-page .nav-center .active a {
    color: #0f766e;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 56px 0 72px;
    overflow: hidden;
    isolation: isolate;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(255, 247, 237, 0.96) 0%, rgba(236, 253, 245, 0.9) 45%, rgba(239, 246, 255, 0.95) 100%),
        url("../images/place_8_Siam_Bistro.jpg") center / cover;
}

.home-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 33, 58, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 33, 58, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 78%);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.home-eyebrow,
.section-kicker {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.home-hero h1 {
    max-width: 680px;
    color: #111827;
    font-size: clamp(3.3rem, 8.8vw, 7.4rem);
    line-height: 0.92;
    letter-spacing: 0;
    margin: 0;
    text-shadow: 0 16px 44px rgba(17, 24, 39, 0.14);
}

.home-hero-lead {
    max-width: 600px;
    margin: 26px 0 0;
    color: #334155;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.home-search-pill {
    width: min(100%, 650px);
    min-height: 64px;
    margin-top: 28px;
    padding: 7px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(18px);
}

.home-search-pill span {
    display: grid;
    place-items: center;
    color: #0f766e;
    font-size: 1.45rem;
}

.home-search-pill input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    outline: none;
}

.home-search-pill input::placeholder {
    color: #64748b;
}

.home-search-pill button,
.home-primary-action,
.home-secondary-action {
    min-height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-search-pill button,
.home-primary-action {
    border: 0;
    padding: 0 20px;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    cursor: pointer;
}

.home-secondary-action {
    padding: 0 18px;
    color: #111827;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.home-search-pill button:hover,
.home-primary-action:hover,
.home-secondary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 560px);
    margin-top: 28px;
}

.home-stats div {
    min-height: 82px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.home-stats strong {
    display: block;
    color: #e11d48;
    font-size: 1.45rem;
}

.home-stats span {
    display: block;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
}

.home-hero-visual {
    min-height: 560px;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
}

.plate-stage {
    position: relative;
    width: min(100%, 620px);
    aspect-ratio: 1 / 1;
    transform: rotateX(10deg) rotateY(-12deg);
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
}

.plate-main,
.plate-float {
    position: absolute;
    display: block;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

.plate-main {
    inset: 9% 7% auto auto;
    width: 72%;
    aspect-ratio: 0.88;
    border-radius: 16px;
    transform: translateZ(70px) rotate(3deg);
}

.plate-float-one {
    left: 0;
    top: 4%;
    width: 42%;
    aspect-ratio: 1;
    border-radius: 16px;
    transform: translateZ(120px) rotate(-9deg);
}

.plate-float-two {
    left: 7%;
    bottom: 2%;
    width: 48%;
    aspect-ratio: 1.14;
    border-radius: 16px;
    transform: translateZ(150px) rotate(8deg);
}

.hero-review-chip {
    position: absolute;
    right: 0;
    bottom: 13%;
    min-width: 150px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.86);
    color: white;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.24);
    transform: translateZ(180px) rotate(-3deg);
}

.hero-review-chip span,
.hero-review-chip strong {
    display: block;
}

.hero-review-chip span {
    color: #fed7aa;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-review-chip strong {
    margin-top: 3px;
    font-size: 1.35rem;
}

.home-scroll-story {
    position: relative;
    padding: 90px 0;
    background: #11212f;
    color: #f8fafc;
    overflow: hidden;
}

.home-scroll-story::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.22), transparent 42%),
        linear-gradient(315deg, rgba(251, 113, 133, 0.2), transparent 48%);
    opacity: 0.85;
}

.story-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.story-copy {
    position: sticky;
    top: 120px;
}

.story-copy h2 {
    color: #ffffff;
    font-size: clamp(2.2rem, 4.8vw, 4.4rem);
    line-height: 1;
    margin: 0 0 18px;
}

.story-copy p {
    color: #cbd5e1;
    font-size: 1.08rem;
}

.story-steps {
    display: grid;
    gap: 22px;
}

.story-step {
    min-height: 190px;
    padding: 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
    transform-style: preserve-3d;
}

.story-step:nth-child(2) {
    margin-left: clamp(0px, 5vw, 72px);
}

.story-step:nth-child(3) {
    margin-left: clamp(0px, 10vw, 144px);
}

.story-step span {
    color: #fbbf24;
    font-weight: 900;
}

.story-step strong {
    display: block;
    margin-top: 18px;
    font-size: 1.8rem;
}

.story-step p {
    max-width: 420px;
    margin-top: 8px;
    color: #dbeafe;
}

.home-section {
    position: relative;
    padding: 80px 20px;
    background: transparent;
}

.home-section .container {
    position: relative;
}

.section-kicker {
    margin-bottom: 8px;
}

.home-page .search-card h2,
.home-page .boxes h2 {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.home-page .boxes p {
    max-width: 640px;
    color: #64748b;
    font-size: 1.05rem;
}

.home-page #home-recommendations {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    perspective: 900px;
}

.home-page #home-recommendations .business-card {
    min-height: 360px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.12);
    transform: translateZ(0);
    backdrop-filter: blur(16px);
}

.home-page #home-recommendations .business-card:hover {
    transform: translateY(-12px) rotateX(4deg) rotateY(-3deg);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.2);
}

.home-page #home-recommendations .business-card img {
    height: 210px;
    border-radius: 0;
    margin: 0;
}

.home-page #home-recommendations .business-card .card-content {
    padding: 15px;
}

.home-page #home-recommendations .business-card h3 {
    color: #111827;
    font-size: 1rem;
    line-height: 1.3;
}

.home-page #home-recommendations .business-card .rating {
    color: #e11d48;
    font-weight: 800;
}

.home-page #home-recommendations .business-card .category {
    display: inline-flex;
    width: fit-content;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 800;
}

.home-page #home-recommendations .business-card .favorite-btn {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.46);
    color: #ffe4e6;
    backdrop-filter: blur(10px);
}

.home-page #home-recommendations .business-card .favorite-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #e11d48;
}

.home-page .cards-grid {
    perspective: 1000px;
}

.home-page .card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
    transform: translateZ(0);
}

.home-page .card:hover {
    transform: translateY(-12px) rotateX(4deg);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.19);
}

.home-page .category-card {
    flex: 1 1 180px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 253, 250, 0.82));
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.11);
}

.home-page .category-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    border-color: rgba(225, 29, 72, 0.2);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.18);
}

.category-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 2rem;
}

.home-page .category-card h3 {
    color: #111827;
}

.home-page .category-card p {
    color: #64748b;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(36px) rotateX(8deg);
    transform-origin: center top;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

body.dark-mode.home-page {
    background: linear-gradient(180deg, #07111f 0%, #0f172a 48%, #111827 100%);
}

body.dark-mode.home-page .navbar {
    background: rgba(15, 23, 42, 0.84);
}

body.dark-mode .home-hero-bg {
    background:
        linear-gradient(115deg, rgba(15, 23, 42, 0.95) 0%, rgba(19, 78, 74, 0.82) 48%, rgba(88, 28, 135, 0.78) 100%),
        url("../images/place_8_Siam_Bistro.jpg") center / cover;
}

body.dark-mode .home-hero h1,
body.dark-mode .home-search-pill input,
body.dark-mode .home-secondary-action,
body.dark-mode.home-page .search-card h2,
body.dark-mode.home-page .boxes h2,
body.dark-mode.home-page #home-recommendations .business-card h3,
body.dark-mode.home-page .category-card h3 {
    color: #f8fafc;
}

body.dark-mode .home-hero-lead,
body.dark-mode.home-page .boxes p,
body.dark-mode.home-page .category-card p {
    color: #cbd5e1;
}

body.dark-mode .home-search-pill,
body.dark-mode .home-stats div,
body.dark-mode .home-secondary-action,
body.dark-mode.home-page #home-recommendations .business-card,
body.dark-mode.home-page .card,
body.dark-mode.home-page .category-card {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .home-stats span {
    color: #cbd5e1;
}

body.accessibility-mode.home-page .home-hero,
body.accessibility-mode.home-page .home-scroll-story,
body.accessibility-mode.home-page .home-section {
    background: #fffef0 !important;
    color: #000 !important;
}

body.accessibility-mode.home-page .home-hero h1,
body.accessibility-mode.home-page .home-hero-lead,
body.accessibility-mode.home-page .story-copy h2,
body.accessibility-mode.home-page .story-copy p,
body.accessibility-mode.home-page .story-step,
body.accessibility-mode.home-page .story-step p,
body.accessibility-mode.home-page .search-card h2,
body.accessibility-mode.home-page .boxes h2,
body.accessibility-mode.home-page .boxes p {
    color: #000 !important;
}

body.accessibility-mode.home-page .story-step,
body.accessibility-mode.home-page .home-search-pill,
body.accessibility-mode.home-page .home-stats div,
body.accessibility-mode.home-page #home-recommendations .business-card,
body.accessibility-mode.home-page .card,
body.accessibility-mode.home-page .category-card {
    background: #ffff99 !important;
    border: 3px solid #000 !important;
    box-shadow: none !important;
}

body.accessibility-mode.home-page .scroll-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .plate-stage,
    .home-page .business-card,
    .home-page .card,
    .home-page .category-card,
    .story-step {
        transition: none !important;
        transform: none !important;
    }
}

/* Keep auth modal controls polished after global button rules. */
body:not(.home-page) .auth-form .forgot-password-link,
.auth-form .forgot-password-link {
    align-self: flex-end;
    width: auto;
    padding: 0;
    margin: -8px 0 15px;
    background: transparent !important;
    color: #0f766e !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 13px;
}

body:not(.home-page) .auth-form .secondary-auth-btn,
.auth-form .secondary-auth-btn {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #334155 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: none !important;
}

.auth-form small,
.form-group small,
#business-review-form-element small {
    display: block;
    margin: -8px 0 14px;
    color: #0f766e;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .home-hero-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        min-height: 460px;
    }

    .story-copy {
        position: static;
    }

    .story-step:nth-child(2),
    .story-step:nth-child(3) {
        margin-left: 0;
    }

    .home-page #home-recommendations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-hero {
        min-height: auto;
        padding: 38px 0 56px;
    }

    .home-search-pill {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 10px;
    }

    .home-search-pill button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        min-height: 340px;
    }

    .plate-stage {
        width: min(100%, 390px);
    }

    .home-page #home-recommendations,
    .home-page .cards-grid {
        grid-template-columns: 1fr;
    }

    .home-section,
    .home-scroll-story {
        padding: 58px 0;
    }

    .home-page .category-card {
        flex-basis: 100%;
    }
}

/* Site-wide visual refresh to match the immersive homepage */
body:not(.home-page) {
    background:
        radial-gradient(circle at 12% 6%, rgba(251, 191, 36, 0.18), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.16), transparent 26%),
        linear-gradient(180deg, #fff8f0 0%, #f6fbf8 48%, #f8fafc 100%);
    color: #16213a;
    min-height: 100vh;
}

body:not(.home-page) .navbar {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(22, 33, 58, 0.08);
    box-shadow: 0 16px 40px rgba(22, 33, 58, 0.08);
    z-index: 5000;
    transform: translateZ(0);
    will-change: transform;
}

body:not(.home-page) .nav-center a:hover,
body:not(.home-page) .nav-center a.active,
body:not(.home-page) .nav-center .active a {
    color: #0f766e;
}

body:not(.home-page) .nav-center a.active,
body:not(.home-page) .nav-center .active a {
    border-bottom-color: #0f766e;
}

body:not(.home-page) .navbar .logo,
body:not(.home-page) .navbar .brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.home-page) .navbar .nav {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body:not(.home-page) .navbar .nav a,
body:not(.home-page) .navbar .nav li {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

body:not(.home-page) .navbar .nav a:hover,
body:not(.home-page) .navbar .nav .active {
    color: #0f766e;
}

body:not(.home-page) .section1,
body:not(.home-page) > .container > section:first-child,
body:not(.home-page) .relative.py-16 {
    position: relative;
    padding: 72px 0 46px !important;
    background: transparent !important;
    overflow: hidden;
}

body:not(.home-page) .section1::before,
body:not(.home-page) > .container > section:first-child::before,
body:not(.home-page) .relative.py-16::before {
    content: "";
    position: absolute;
    inset: 24px 20px auto;
    height: 210px;
    border-radius: 16px;
    background:
        linear-gradient(115deg, rgba(255, 247, 237, 0.92), rgba(236, 253, 245, 0.86), rgba(239, 246, 255, 0.9)),
        url("../images/place_1_La_C_te_d_Or_Caf_.jpg") center / cover;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    z-index: -1;
}

body:not(.home-page) .section1 h1,
body:not(.home-page) > .container > section:first-child h1,
body:not(.home-page) .relative.py-16 h1 {
    max-width: 900px;
    color: #111827 !important;
    font-size: clamp(2.35rem, 5vw, 4.7rem) !important;
    line-height: 0.98;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

body:not(.home-page) .section1 > .container > p,
body:not(.home-page) > .container > section:first-child > p,
body:not(.home-page) > .container > section:first-child > .container > p,
body:not(.home-page) .relative.py-16 p {
    max-width: 760px;
    color: #475569 !important;
    font-size: 1.08rem;
}

body:not(.home-page) .aboutBox,
body:not(.home-page) .dashboard-controls,
body:not(.home-page) .search-filter-container,
body:not(.home-page) .map-section,
body:not(.home-page) .business-detail-card,
body:not(.home-page) .review-form-section,
body:not(.home-page) .reviews-section,
body:not(.home-page) .glass-card,
body:not(.home-page) .modal-content {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12) !important;
    backdrop-filter: blur(16px);
}

body:not(.home-page) .rounded-xl,
body:not(.home-page) .rounded-2xl,
body:not(.home-page) .rounded-3xl {
    border-radius: 12px !important;
}

body:not(.home-page) .aboutBox {
    padding: 34px;
    margin-top: 28px;
}

body:not(.home-page) .aboutBox h2,
body:not(.home-page) .dashboard-section h2,
body:not(.home-page) .map-section h2,
body:not(.home-page) .reviews-section h2,
body:not(.home-page) .review-form-section h2 {
    color: #111827;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

body:not(.home-page) .aboutBox p,
body:not(.home-page) .dashboard-section p,
body:not(.home-page) .reviews-section p,
body:not(.home-page) .review-form-section p {
    color: #475569;
}

body:not(.home-page) input,
body:not(.home-page) select,
body:not(.home-page) textarea {
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body:not(.home-page) input:focus,
body:not(.home-page) select:focus,
body:not(.home-page) textarea:focus {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16) !important;
    outline: none;
}

body:not(.home-page) .search-btn,
body:not(.home-page) .primary-btn,
body:not(.home-page) .details-btn,
body:not(.home-page) .favorite-btn,
body:not(.home-page) .cuisine-filter.active,
body:not(.home-page) form button:not(.ai-chat-send-btn),
body:not(.home-page) .auth-form button {
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

body:not(.home-page) button:not(.ai-chat-close):not(.help-btn):not(.ai-chat-send-btn):hover,
body:not(.home-page) a.details-btn:hover,
body:not(.home-page) .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

body:not(.home-page) .card,
body:not(.home-page) .business-card,
body:not(.home-page) .deal-card,
body:not(.home-page) .metric-card,
body:not(.home-page) .recommendation-card,
body:not(.home-page) .category-card {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.1) !important;
    backdrop-filter: blur(14px);
}

body:not(.home-page) .card:hover,
body:not(.home-page) .business-card:hover,
body:not(.home-page) .deal-card:hover,
body:not(.home-page) .metric-card:hover,
body:not(.home-page) .recommendation-card:hover,
body:not(.home-page) .category-card:hover {
    transform: translateY(-10px) rotateX(3deg);
    box-shadow: 0 32px 76px rgba(15, 23, 42, 0.16) !important;
    border-color: rgba(15, 118, 110, 0.28) !important;
}

body:not(.home-page) .metric-value,
body:not(.home-page) .rating-text,
body:not(.home-page) .card h3,
body:not(.home-page) .business-card h3,
body:not(.home-page) .deal-header h3 {
    color: #111827 !important;
}

body:not(.home-page) .card-category,
body:not(.home-page) .category,
body:not(.home-page) .deal-badge,
body:not(.home-page) .card-deal-badge {
    border-radius: 999px !important;
    font-weight: 800;
}

body:not(.home-page) .cuisine-filter {
    padding: 10px 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #0f172a;
    font-weight: 700;
}

body:not(.home-page) .neighborhood-discovery {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

body:not(.home-page) .neighborhood-discovery .panel {
    background: rgba(255, 255, 255, 0.92);
}

body:not(.home-page) .place-result:hover {
    background: #ecfeff;
}

body:not(.home-page) .dashboard-grid,
body:not(.home-page) .cards-grid,
body:not(.home-page) .business-grid,
body:not(.home-page) .deals-grid {
    perspective: 1000px;
}

/* Stable card treatment for the dynamic Leave a Review grid. */
body:not(.home-page) .restaurant-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1) !important;
    transform: none !important;
    animation: none !important;
    backface-visibility: visible;
    will-change: auto;
}

body:not(.home-page) .restaurant-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14) !important;
    border-color: rgba(15, 118, 110, 0.26) !important;
}

body:not(.home-page) .restaurant-card img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    opacity: 1;
    transform: none !important;
    filter: none !important;
    backface-visibility: visible;
}

body:not(.home-page) .restaurant-card h3 {
    color: #111827 !important;
}

body:not(.home-page) .footer {
    margin-top: 80px;
    background:
        linear-gradient(135deg, rgba(17, 33, 47, 0.98), rgba(15, 23, 42, 0.98)),
        url("../images/place_10_Duck_Donuts_Arlington.jpg") center / cover;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode:not(.home-page) {
    background:
        radial-gradient(circle at 12% 6%, rgba(15, 118, 110, 0.2), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.18), transparent 26%),
        linear-gradient(180deg, #07111f 0%, #0f172a 54%, #111827 100%);
}

body.dark-mode:not(.home-page) .navbar,
body.dark-mode:not(.home-page) .aboutBox,
body.dark-mode:not(.home-page) .dashboard-controls,
body.dark-mode:not(.home-page) .search-filter-container,
body.dark-mode:not(.home-page) .map-section,
body.dark-mode:not(.home-page) .business-detail-card,
body.dark-mode:not(.home-page) .review-form-section,
body.dark-mode:not(.home-page) .reviews-section,
body.dark-mode:not(.home-page) .glass-card,
body.dark-mode:not(.home-page) .modal-content,
body.dark-mode:not(.home-page) .card,
body.dark-mode:not(.home-page) .business-card,
body.dark-mode:not(.home-page) .deal-card,
body.dark-mode:not(.home-page) .metric-card,
body.dark-mode:not(.home-page) .recommendation-card,
body.dark-mode:not(.home-page) .category-card {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

body.dark-mode:not(.home-page) .section1 h1,
body.dark-mode:not(.home-page) > .container > section:first-child h1,
body.dark-mode:not(.home-page) .relative.py-16 h1,
body.dark-mode:not(.home-page) h2,
body.dark-mode:not(.home-page) h3,
body.dark-mode:not(.home-page) .metric-value,
body.dark-mode:not(.home-page) .card h3,
body.dark-mode:not(.home-page) .business-card h3,
body.dark-mode:not(.home-page) .restaurant-card h3 {
    color: #f8fafc !important;
}

body.dark-mode:not(.home-page) .restaurant-card {
    background: rgba(15, 23, 42, 0.86) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

body.dark-mode:not(.home-page) p,
body.dark-mode:not(.home-page) .section1 > .container > p,
body.dark-mode:not(.home-page) > .container > section:first-child > p {
    color: #cbd5e1 !important;
}

body.accessibility-mode:not(.home-page) {
    background: #fffef0 !important;
}

body.accessibility-mode:not(.home-page) .section1::before,
body.accessibility-mode:not(.home-page) > .container > section:first-child::before,
body.accessibility-mode:not(.home-page) .relative.py-16::before {
    display: none;
}

@keyframes site-lift-in {
    from {
        opacity: 0;
        transform: translateY(28px) rotateX(5deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

body:not(.home-page) .section1,
body:not(.home-page) > .container > section,
body:not(.home-page) .relative.py-16,
body:not(.home-page) .card,
body:not(.home-page) .business-card,
body:not(.home-page) .deal-card,
body:not(.home-page) .metric-card,
body:not(.home-page) .category-card {
    animation: site-lift-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body:not(.home-page) .card:nth-child(2),
body:not(.home-page) .business-card:nth-child(2),
body:not(.home-page) .deal-card:nth-child(2),
body:not(.home-page) .metric-card:nth-child(2) {
    animation-delay: 0.06s;
}

body:not(.home-page) .card:nth-child(3),
body:not(.home-page) .business-card:nth-child(3),
body:not(.home-page) .deal-card:nth-child(3),
body:not(.home-page) .metric-card:nth-child(3) {
    animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    body:not(.home-page) .section1,
    body:not(.home-page) > .container > section,
    body:not(.home-page) .relative.py-16,
    body:not(.home-page) .card,
    body:not(.home-page) .business-card,
    body:not(.home-page) .deal-card,
    body:not(.home-page) .metric-card,
    body:not(.home-page) .category-card {
        animation: none !important;
        transform: none !important;
    }
}
.about-creators-section {
  padding: 80px 0;
  background: #f9fafb;
}

.about-creators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-creators-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  object-fit: cover;
}

.about-creators-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.about-creators-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #333;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .about-creators-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-creators-image img {
    margin: 0 auto;
  }
}
/* DARK MODE - About Creators Section */
.dark-mode .about-creators-section {
  background: #0f172a; /* dark navy */
}

.dark-mode .about-creators-text h2 {
  color: #f8fafc;
}

.dark-mode .about-creators-text p {
  color: #cbd5e1;
}

.dark-mode .about-creators-image img {
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.dark-mode .about-creators-text .section-kicker {
  color: #94a3b8;
}
