/* ============================================================================
   Theme Park Foodie — Design System
   Mobile-first, matching Figma designs
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------------------------------------------------------------------------
   Variables
   --------------------------------------------------------------------------- */
:root {
    /* Brand */
    --color-primary: #E85A4F;
    --color-primary-dark: #D04A40;
    --color-primary-light: #FF6B5E;

    /* Chrome */
    --color-header: #2D2D2D;
    --color-footer: #6B6B6B;

    /* Neutral */
    --color-bg: #FFFFFF;
    --color-bg-light: #F5F5F5;
    --color-text: #212121;
    --color-text-light: #757575;
    --color-border: #E0E0E0;
    --color-white: #FFFFFF;

    /* Scores */
    --color-score-green: #4CAF50;
    --color-score-yellow-green: #8BC34A;
    --color-score-yellow: #FFC107;
    --color-score-orange: #FF9800;
    --color-score-red: #F44336;

    /* Feedback */
    --color-success: #2E7D32;
    --color-error: #C62828;

    /* Secondary CTA */
    --color-secondary: #F5C518;

    /* Layout */
    --max-width: 480px;
    --max-width-wide: 1100px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
}

html { font-size: 16px; }
body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.btn-admin-edit {
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #7B1FA2;
    border-radius: var(--radius);
    margin-bottom: 8px;
    text-decoration: none;
}
.btn-admin-edit:hover {
    background: #6A1B9A;
    color: #fff;
}

img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-accent {
    height: 4px;
    background: var(--color-primary);
}

.header-bar {
    background: var(--color-header);
    padding: 12px 16px;
}

.header-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    display: block;
    height: 36px;
    width: auto;
}

/* Desktop nav — inline links in header bar */
.resort-switcher {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-right: 8px;
}
.resort-toggle {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.03em;
}
.resort-toggle:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.resort-toggle.active {
    background: var(--color-primary);
    color: #fff;
}
.desktop-nav {
    display: none;
    align-items: center;
    gap: 20px;
}
.desktop-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.desktop-nav a:hover {
    color: var(--color-white);
    text-decoration: none;
}

@media (min-width: 769px) {
    .desktop-nav { display: flex; }
    .header-hamburger { display: none !important; }
    .search-menu-icon { display: none !important; }
    .mobile-nav { display: none !important; }
}

.header-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.header-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Search bar section */
.search-bar-section {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px;
}

.search-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-menu-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.search-menu-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
}

.search-form-inline {
    display: flex;
    flex: 1;
    min-width: 0;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--color-text);
    min-width: 0;
}
.search-input::placeholder { color: #BDBDBD; }
.search-input:focus { outline: none; border-color: var(--color-primary); }

.search-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.search-btn:hover { background: var(--color-primary-dark); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--color-header);
    padding: 0 16px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--color-white);
    padding: 10px 0;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-primary-light); }

/* ---------------------------------------------------------------------------
   Main Content
   --------------------------------------------------------------------------- */
.site-main { flex: 1; }

.content-container {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 24px 16px;
}

/* ---------------------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------------------- */
.hero {
    background: var(--color-white);
    text-align: center;
    padding: 48px 24px;
}
.hero h1 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-family);
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-white); }

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
}
.btn-secondary:hover { background: #E0B015; color: var(--color-text); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-text); }

.btn-block { width: 100%; max-width: 380px; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ---------------------------------------------------------------------------
   Section Headings
   --------------------------------------------------------------------------- */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 24px;
}

.section-subtitle {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 24px;
}

/* ---------------------------------------------------------------------------
   Category / Image Grid (circular items)
   --------------------------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 16px;
}
.category-item {
    aspect-ratio: 1;
    background: #D3D3D3;
    border-radius: var(--radius);
}

.circle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
    padding: 0 16px;
}
.circle-item {
    aspect-ratio: 1;
    background: #D3D3D3;
    border-radius: 50%;
}

/* ---------------------------------------------------------------------------
   Featured / Content Cards
   --------------------------------------------------------------------------- */
.featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: #D3D3D3;
    border-radius: var(--radius);
}

.content-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Testimonial */
.testimonial {
    background: #3D3D3D;
    padding: 48px 24px;
    color: var(--color-white);
    text-align: center;
}
.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}
.testimonial-author {
    font-size: 0.9rem;
    color: #CCC;
}

/* Two-column content */
.two-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 16px;
}
.two-col-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #D3D3D3;
    border-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
   Park Grid
   --------------------------------------------------------------------------- */
.resort-heading {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 32px 0 0 0;
}
.resort-heading:first-of-type {
    margin-top: 8px;
}
.park-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.park-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
    color: var(--color-text);
}
.park-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}
.park-card-icon { font-size: 2.5rem; margin-bottom: 8px; }
.park-card h2 { font-size: 1.05rem; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Restaurant Grid & Cards
   --------------------------------------------------------------------------- */
.restaurant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.restaurant-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    display: block;
    color: var(--color-text);
    transition: box-shadow 0.2s;
}
.restaurant-card.has-image {
    padding: 0;
    overflow: hidden;
}
.restaurant-card.has-image .restaurant-card-body {
    padding: 12px 16px 16px;
}
.restaurant-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}
.restaurant-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.restaurant-card:hover { box-shadow: var(--shadow-hover); text-decoration: none; }
.restaurant-card h3 { font-size: 1rem; margin-bottom: 4px; }

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.photo-gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--color-white);
}
.photo-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.photo-gallery-meta {
    padding: 8px 12px;
}
.photo-caption {
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.photo-credit {
    font-size: 0.75rem;
    color: var(--color-text-light);
}
.photo-gallery-item.photo-pending {
    position: relative;
    opacity: 0.7;
}
.photo-pending-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.photo-upload-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.photo-upload-section h3 {
    margin-bottom: 12px;
}

.area-section { margin-bottom: 24px; }
.area-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}

/* ---------------------------------------------------------------------------
   Badges
   --------------------------------------------------------------------------- */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-right: 4px;
}
.badge-service { background: #E3F2FD; color: #1565C0; }
.badge-cuisine { background: #F3E5F5; color: #7B1FA2; }
.badge-price { background: #E8F5E9; color: #2E7D32; }

/* Score badges */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-white);
}
.score-green { background: var(--color-score-green); }
.score-yellow-green { background: var(--color-score-yellow-green); }
.score-yellow { background: var(--color-score-yellow); color: var(--color-text); }
.score-orange { background: var(--color-score-orange); }
.score-red { background: var(--color-score-red); }

/* Dietary tag pills */
.tag-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 2px 4px 2px 0;
}
.tag-green { background: #E8F5E9; color: #2E7D32; }
.tag-coral { background: #FFEBEE; color: #C62828; }
.tag-blue { background: #E3F2FD; color: #1565C0; }

/* ---------------------------------------------------------------------------
   Menu Items
   --------------------------------------------------------------------------- */
.menu-section { margin-bottom: 24px; }
.menu-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 4px;
}
.menu-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-text);
    display: inline-block;
}
.menu-items { display: flex; flex-direction: column; gap: 8px; }
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow);
}
.menu-item-info { flex: 1; min-width: 0; }
.menu-item-info h3 { font-size: 1rem; margin-bottom: 4px; }
.item-description { font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 4px; }
.item-category { font-size: 0.75rem; color: var(--color-text-light); font-style: italic; }
.item-location { font-size: 0.8rem; color: var(--color-text-light); }
.item-location a { font-weight: 500; }
.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}
.item-price {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary-dark);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Favorites Button
   --------------------------------------------------------------------------- */
.btn-favorite {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: transform 0.15s;
}
.btn-favorite:hover { transform: scale(1.2); }

/* ---------------------------------------------------------------------------
   Search Page
   --------------------------------------------------------------------------- */
.search-form { margin-bottom: 24px; }
.search-bar-page { display: flex; gap: 8px; margin-bottom: 12px; }
.search-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: var(--font-family);
    background: var(--color-white);
}
.results-count { color: var(--color-text-light); margin-bottom: 12px; }
.search-page-btn { padding: 10px 24px; }

/* Search sections */
.search-section { margin-bottom: 32px; }
.search-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
.search-section-count {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Venue cards grid */
.venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.venue-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
}
.venue-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-text);
}
.venue-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--color-bg-light);
    overflow: hidden;
}
.venue-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.venue-card-placeholder {
    width: 100%;
    height: 100%;
    background: #D3D3D3;
}
.venue-score {
    position: absolute;
    top: 8px;
    right: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.venue-card-body {
    padding: 12px;
}
.venue-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.venue-card-location {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.venue-card-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.venue-hidden { display: none; }

/* Search items list */
.search-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow);
}
.search-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-item-info {
    flex: 1;
    min-width: 0;
}
.search-item-info h3 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.search-item-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 2px;
}
.search-item-meta a { font-weight: 500; }
.search-item-sep { margin: 0 4px; }
.search-item-price {
    flex-shrink: 0;
    margin-left: 8px;
}
.item-hidden { display: none; }

/* Show More button */
.btn-show-more {
    display: block;
    margin: 16px auto 0;
    padding: 10px 32px;
}

/* ---------------------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------------------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-primary); }

/* Restaurant detail meta */
.restaurant-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.meta-location { color: var(--color-text-light); font-size: 0.9rem; }
.restaurant-description { color: var(--color-text-light); margin-bottom: 24px; }

/* ---------------------------------------------------------------------------
   Info Table (restaurant detail)
   --------------------------------------------------------------------------- */
.info-table {
    width: 100%;
    margin-bottom: 24px;
}
.info-table tr {
    border-bottom: 1px solid var(--color-border);
}
.info-table td {
    padding: 10px 0;
    font-size: 0.9rem;
    vertical-align: top;
}
.info-table td:first-child {
    font-weight: 600;
    width: 120px;
    color: var(--color-text);
}
.info-table td:last-child {
    color: var(--color-text-light);
}

/* ---------------------------------------------------------------------------
   Tabs
   --------------------------------------------------------------------------- */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 20px;
}
.tab {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--color-primary); }
.tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ---------------------------------------------------------------------------
   Rating Bars
   --------------------------------------------------------------------------- */
.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.rating-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    min-width: 140px;
}
.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--color-score-green);
}
.rating-value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
}

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--color-text);
}
.form-input:focus { border-color: var(--color-primary); outline: none; }

.login-form { margin: 24px 0; }
.login-note {
    color: var(--color-text-light);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------------------------------------------------------------------------
   Empty State
   --------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ---------------------------------------------------------------------------
   Flash Messages
   --------------------------------------------------------------------------- */
.flash {
    max-width: var(--max-width-wide);
    margin: 12px auto;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
}
.flash a { color: inherit; text-decoration: underline; }
.flash-success { background: #E8F5E9; color: var(--color-success); border: 1px solid #A5D6A7; }
.flash-error { background: #FFEBEE; color: var(--color-error); border: 1px solid #EF9A9A; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-footer);
    color: var(--color-white);
    text-align: center;
    padding: 32px 16px 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}
.footer-nav a {
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer-nav a:hover { color: var(--color-primary-light); }

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.footer-social a {
    color: var(--color-white);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.footer-social a:hover { color: var(--color-primary-light); }

.footer-legal {
    margin-bottom: 12px;
    font-size: 0.8rem;
}
.footer-legal a { color: var(--color-white); }
.footer-legal a:hover { color: var(--color-primary-light); }
.footer-divider {
    margin: 0 8px;
    opacity: 0.5;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ---------------------------------------------------------------------------
   Responsive — Tablet+
   --------------------------------------------------------------------------- */
@media (min-width: 641px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .two-col { flex-direction: row; align-items: center; }
    .two-col > * { flex: 1; }
    .two-col.reverse { flex-direction: row-reverse; }

    .circle-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 480px;
    }

    .restaurant-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .search-menu-icon { display: flex; }
    .menu-item { flex-direction: column; }
    .menu-item-actions { margin-left: 0; margin-top: 8px; }
    .venue-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .search-item-row { flex-wrap: wrap; }
    .search-item-price { margin-left: auto; }
}

/* ---------------------------------------------------------------------------
   Homepage Sections
   --------------------------------------------------------------------------- */
.home-section {
    padding: 32px 16px;
    background: var(--color-white);
}
.home-section + .home-section {
    border-top: 1px solid var(--color-bg-light);
}

/* Park browse grid */
.park-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.park-card {
    display: block;
    border-radius: var(--radius-lg);
    padding: 0;
    text-decoration: none;
    color: var(--color-white);
    background-color: var(--color-header);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    aspect-ratio: 3/2;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}
.park-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--color-white);
}
.park-card-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.park-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.park-card-count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Stats row */
.stats-section {
    background: var(--color-bg-light) !important;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 16px 0;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Homepage restaurant grid */
.home-restaurant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.home-restaurant-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.15s;
}
.home-restaurant-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--color-text);
}
.home-restaurant-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--color-bg-light);
}
.home-restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-restaurant-image .score-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
}
.home-restaurant-body {
    padding: 12px 16px 16px;
}
.home-restaurant-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.home-restaurant-location {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.home-restaurant-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

@media (min-width: 481px) {
    .park-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .home-restaurant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 769px) {
    .park-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .home-restaurant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.quote-section {
    text-align: center;
    padding: 48px 24px;
}
.fancy-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.4;
}

@media (min-width: 641px) {
    .fancy-quote { font-size: 2rem; }
}

/* ---------------------------------------------------------------------------
   Auth Modals
   --------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.modal-card.hidden { display: none; }

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close:hover { color: var(--color-text); }

.modal-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header-row h2 { margin-bottom: 0; }

.modal-error {
    background: #FFEBEE;
    color: var(--color-error);
    border: 1px solid #EF9A9A;
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.modal-card .form-group { margin-bottom: 16px; }

.modal-card .btn-block {
    width: 100%;
    max-width: none;
    margin-top: 8px;
}

.modal-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}
.modal-toggle a {
    color: var(--color-text-light);
    text-decoration: underline;
}
.modal-toggle a:hover { color: var(--color-primary); }

.modal-legal {
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.5;
}
.modal-legal a {
    color: var(--color-text-light);
    text-decoration: underline;
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    cursor: pointer;
    font-weight: 400;
}

.text-link-sm {
    color: var(--color-text-light);
    text-decoration: underline;
    font-size: 0.85rem;
}
.text-link-sm:hover { color: var(--color-primary); }

/* ---------------------------------------------------------------------------
   Restaurant Detail — Hero
   --------------------------------------------------------------------------- */
.restaurant-hero {
    position: relative;
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    background: var(--color-bg-light);
}
.restaurant-hero img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.restaurant-hero-overlay {
    position: absolute;
    bottom: 12px;
    right: 16px;
}
.restaurant-hero-overlay .score-badge {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---------------------------------------------------------------------------
   Restaurant Detail — Menu Buttons & Links
   --------------------------------------------------------------------------- */
.menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.menu-buttons .btn small {
    font-weight: 400;
    opacity: 0.7;
}

/* ---------------------------------------------------------------------------
   Restaurant Detail — Menu Buttons
   --------------------------------------------------------------------------- */
.restaurant-menu-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-menu-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.15s;
}
.btn-menu-link:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Restaurant Detail — CTA Buttons
   --------------------------------------------------------------------------- */
.restaurant-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.btn-cta-disney {
    display: inline-block;
    padding: 10px 20px;
    background: #FFC107;
    color: #212121;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.15s;
}
.btn-cta-disney:hover {
    background: #FFD54F;
    color: #212121;
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Restaurant Detail — Description
   --------------------------------------------------------------------------- */
.restaurant-description-section {
    margin-bottom: 24px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Restaurant Detail — Sections
   --------------------------------------------------------------------------- */
.restaurant-section {
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
}
.restaurant-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ---------------------------------------------------------------------------
   Restaurant Detail — Popular Items (horizontal scroll)
   --------------------------------------------------------------------------- */
.popular-items-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.popular-item-card {
    flex-shrink: 0;
    width: 160px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s;
}
.popular-item-card:hover {
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}
.popular-item-image {
    width: 160px;
    height: 120px;
    overflow: hidden;
    background: var(--color-bg-light);
}
.popular-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popular-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.popular-item-body {
    padding: 8px 12px 12px;
}
.popular-item-body h3 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------------------------------------------------------------------------
   Restaurant Detail — Review list heading
   --------------------------------------------------------------------------- */
.review-list-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--color-text);
}

.tab-panel { min-height: 120px; }

@media (min-width: 641px) {
    .restaurant-hero { max-height: 400px; }
    .restaurant-hero img { height: 400px; }
}

/* ---------------------------------------------------------------------------
   Restaurant Menu Page
   --------------------------------------------------------------------------- */
.menu-toggle-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.menu-toggle-btn {
    padding: 8px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.menu-toggle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.menu-toggle-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}
.menu-toggle-btn small {
    font-weight: 400;
    opacity: 0.8;
}

.menu-info-card {
    background: #FFF8F0;
    border: 1px solid #F0D8B8;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.badge-menu-style {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius);
    background: #FFF3E0;
    color: #E65100;
    margin-bottom: 8px;
}
.menu-price-note {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}
.menu-instructions {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.menu-category-block {
    margin-bottom: 20px;
}
.menu-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    background: none;
    cursor: pointer;
    font-family: var(--font-family);
    text-align: left;
}
.menu-category-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    border: none;
    padding: 0;
    display: inline;
}
.category-count {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 400;
}
.category-chevron {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-light);
    border-bottom: 2px solid var(--color-text-light);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.menu-category-header.collapsed .category-chevron {
    transform: rotate(-45deg);
}

.menu-category-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.menu-item-card {
    display: flex;
    gap: 12px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}
.menu-item-card:hover {
    box-shadow: var(--shadow-hover);
}

.menu-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.menu-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-card-body {
    flex: 1;
    min-width: 0;
}
.menu-item-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}
.menu-item-card-header h3 {
    font-size: 1rem;
    margin: 0;
}
.score-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-white);
    flex-shrink: 0;
}
.menu-item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.item-price-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.item-price-note {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-style: italic;
}

.menu-page-back {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .menu-item-card { flex-direction: column; }
    .menu-item-thumb { width: 100%; height: 160px; }
    .menu-toggle-bar { gap: 4px; }
    .menu-toggle-btn { padding: 6px 12px; font-size: 0.85rem; }
}

/* ---------------------------------------------------------------------------
   Menu Item Detail Page
   --------------------------------------------------------------------------- */

/* Image Carousel */
.item-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--color-bg-light);
}
.item-carousel-track {
    display: flex;
    align-items: center;
    transition: transform 0.4s ease;
    gap: 8px;
    padding: 16px 0;
}
.item-carousel-slide {
    min-width: 60%;
    max-width: 60%;
    flex-shrink: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
    transform: scale(0.85);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.item-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.item-carousel-slide img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    display: block;
}
@media (min-width: 641px) {
    .item-carousel-slide {
        min-width: 50%;
        max-width: 50%;
    }
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.carousel-btn:hover { background: rgba(0, 0, 0, 0.7); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #fff;
}

/* Section spacing for vertical flow layout */
.item-section {
    margin-bottom: 32px;
    padding-top: 8px;
}
.item-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.item-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}
.item-header .btn-favorite {
    font-size: 1.5rem;
    padding: 8px;
}

/* Info Grid */
.item-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.info-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}
.info-value small {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}
.info-value .score-badge-sm {
    margin-right: 8px;
}

/* Dietary Tags */
.dietary-tags-section {
    margin-bottom: 24px;
}
.dietary-tags-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.dietary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dietary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
}
.dietary-pill .dietary-icon {
    font-size: 1rem;
}

.item-description-full {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}
.empty-state-text {
    color: var(--color-text-light);
    font-style: italic;
}

/* Locations Served */
.locations-section {
    margin-bottom: 32px;
}
.locations-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.location-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.location-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
    text-decoration: none;
}
.location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.location-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.location-card-meta {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.location-card-menu {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.location-card-menus {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.location-card-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.location-card-menu-row .price {
    font-weight: 600;
    color: var(--color-primary-dark);
}
.badge-menu {
    background: #E3F2FD;
    color: #1565C0;
}
.badge-meal {
    background: #F3E5F5;
    color: #7B1FA2;
}
.location-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.location-card-price .price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}
.location-card-price .price-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Nutrition Facts - FDA Style */
.nutrition-section {
    margin-bottom: 32px;
}
.nutrition-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.nutrition-label {
    max-width: 320px;
    border: 1px solid var(--color-text);
    padding: 12px;
    background: var(--color-white);
    font-family: Helvetica, Arial, sans-serif;
}
.nutrition-header h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 4px 0;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 4px;
}
.nutrition-header p {
    margin: 2px 0;
    font-size: 0.9rem;
}
.nutrition-divider {
    border-top: 1px solid var(--color-text);
    margin: 4px 0;
}
.nutrition-divider.thick {
    border-top-width: 8px;
}
.nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.9rem;
}
.nutrition-row.calories {
    font-size: 1.5rem;
    font-weight: 900;
}
.nutrition-row.calories .nutrition-label-text {
    font-size: 1.5rem;
}
.nutrition-row.indent {
    padding-left: 16px;
}
.nutrition-label-text {
    font-weight: 600;
}
.nutrition-value {
    font-weight: 600;
}
.nutrition-row.vitamins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.vitamin-item {
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (min-width: 641px) {
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .item-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Menu item links in restaurant menu */
.menu-item-link {
    color: var(--color-text);
    text-decoration: none;
}
.menu-item-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.menu-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Make item names clickable */
.menu-item-card-header h3 a,
.menu-item-info h3 a,
.popular-card-body h3 a,
.search-item-info h3 a {
    color: var(--color-text);
    text-decoration: none;
}
.menu-item-card-header h3 a:hover,
.menu-item-info h3 a:hover,
.popular-card-body h3 a:hover,
.search-item-info h3 a:hover {
    color: var(--color-primary);
}

/* ---------------------------------------------------------------------------
   Reviews
   --------------------------------------------------------------------------- */
.tab-count {
    font-weight: 400;
    font-size: 0.85em;
    color: var(--color-text-light);
}

/* Sub-rating summary bars */
.sub-ratings-summary {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
}
.sub-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.sub-rating-row:last-child { margin-bottom: 0; }
.sub-rating-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    min-width: 140px;
    flex-shrink: 0;
}
.sub-rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}
.sub-rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}
.sub-rating-bar-fill.score-green { background: var(--color-score-green); }
.sub-rating-bar-fill.score-yellow-green { background: var(--color-score-yellow-green); }
.sub-rating-bar-fill.score-yellow { background: var(--color-score-yellow); }
.sub-rating-bar-fill.score-orange { background: var(--color-score-orange); }
.sub-rating-bar-fill.score-red { background: var(--color-score-red); }
.sub-rating-value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

/* Review cards */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.review-card {
    padding: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.review-username {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}
.review-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.review-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 8px;
}
.review-sub-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.review-sub-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--color-bg-light);
    border-radius: var(--radius);
    color: var(--color-text-light);
}

/* Review form */
.review-form-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.review-form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.score-input-row {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.score-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-light);
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.score-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.score-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.review-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.review-message-success {
    background: #E8F5E9;
    color: var(--color-success);
    border: 1px solid #A5D6A7;
}
.review-message-error {
    background: #FFEBEE;
    color: var(--color-error);
    border: 1px solid #EF9A9A;
}
.review-login-prompt {
    text-align: center;
    padding: 24px;
    color: var(--color-text-light);
}
.review-login-prompt p {
    margin-bottom: 12px;
}

/* ---------------------------------------------------------------------------
   Legal & Contact Pages
   --------------------------------------------------------------------------- */
.legal-page h1 {
    margin-bottom: 4px;
}
.legal-updated {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}
.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}
.legal-page p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--color-text);
}

.contact-form {
    max-width: 520px;
}
.contact-form .form-group {
    margin-bottom: 16px;
}
.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.contact-success {
    text-align: center;
    padding: 40px 20px;
}
.contact-success p {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--color-success);
}

/* ---------------------------------------------------------------------------
   Settings Page
   --------------------------------------------------------------------------- */
.settings-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}
.settings-section:last-child {
    border-bottom: none;
}
.settings-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.settings-form {
    max-width: 520px;
}
.settings-form .form-group {
    margin-bottom: 16px;
}
.settings-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 4px;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group { flex: 1; }
.input-prefix-group {
    display: flex;
    align-items: stretch;
}
.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--color-text-light);
    font-weight: 500;
}
.input-prefix-group .form-input {
    border-radius: 0 var(--radius) var(--radius) 0;
}
.settings-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg-light);
    font-size: 0.9rem;
}
.settings-info-row:last-child { border-bottom: none; }
.settings-info-label {
    color: var(--color-text-light);
    font-weight: 500;
}

@media (max-width: 640px) {
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 640px) {
    .sub-rating-label { min-width: 100px; font-size: 0.8rem; }
    .score-btn { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* ---------------------------------------------------------------------------
   User Profile
   --------------------------------------------------------------------------- */
.profile-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar-initial {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
}
.profile-info h1 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}
.profile-username {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
}
.profile-location {
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.profile-member-since {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.profile-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
}
.profile-stat {
    text-align: center;
}
.profile-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}
.profile-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.review-context {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-target {
    font-weight: 600;
    font-size: 0.95rem;
}
.review-target-sub {
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.review-target-sub a {
    color: var(--color-text-light);
}
.review-target-sub a:hover {
    color: var(--color-primary);
}
