/* ==========================================================================
   Brew & Bites Chalkboard Stylesheet (Pretoria Moot Mobile Trailer)
   ========================================================================== */

/* Modern CSS Custom Variables - Dark Navy & Sunny Yellow Chalkboard Palette */
:root {
    --bg-dark: #0a1a35;          /* Deep Navy Chalkboard Background */
    --bg-dark-accent: #0f2444;   /* Slightly lighter slate for card surfaces */
    --accent-yellow: #ffd000;    /* Bright Chalk Yellow Accent */
    --text-white: #ffffff;       /* Pure Chalk White */
    --text-light: #b4c5d8;       /* Soft Slate Chalk Gray for subtexts */
    --accent-blue: #1c6ad6;      /* Pastel Slate Blue from the EATS/COFFEE flags */
    --accent-orange: #f06a1d;    /* Warm Boerewors/Caramel Sunset Orange */
    --bg-cream: #fffdf6;         /* Creamy Sand for highlighting bubbles/notices */
    
    /* Font Families */
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-chalk: 'Patrick Hand', 'Caveat', cursive;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Animation Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Handdrawn Organic Frames */
    --handdrawn-radius-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --handdrawn-radius-2: 20px 300px 15px 150px / 120px 20px 220px 15px;
    --handdrawn-radius-normal: 20px 12px 24px 15px / 15px 25px 12px 20px;
    --shadow-chalk: 5px 5px 0px rgba(0, 0, 0, 0.4);
    --shadow-chalk-hover: 2px 2px 0px rgba(0, 0, 0, 0.4);
}

/* Base resets & chalkboard feeling */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    /* Subtle paper texture simulation */
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-light);
    font-size: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Hand-chalked styles */
.yellow {
    color: var(--accent-yellow);
}

.white {
    color: var(--text-white);
}

.handwritten {
    font-family: var(--font-chalk);
    font-size: 1.6rem;
    color: var(--accent-yellow);
}

/* Shared Helpers */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Announcement Bar - Styled like a Chalkboard Banner */
.announcement-bar {
    background-color: var(--bg-dark-accent);
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 800;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #78909c;
}

.status-dot.pulse {
    background-color: #25d366;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: statusPulse 1.5s infinite;
}

.status-dot.closed {
    background-color: #ff3d00;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.location-tag {
    font-family: var(--font-chalk);
    font-size: 1.2rem;
    color: var(--accent-yellow);
}

/* Main Navigation Header */
.main-header {
    background-color: rgba(10, 26, 53, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 0;
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: var(--shadow-chalk);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-logo-img {
    height: 44px;
    width: auto;
    margin-right: 8px;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.logo:hover .header-logo-img {
    transform: rotate(-5deg) scale(1.08);
}

.chalk-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.chalk-link {
    font-family: var(--font-chalk);
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: 4px;
}

.chalk-link:hover {
    color: var(--accent-yellow);
    transform: rotate(-1deg) scale(1.05);
}

.nav-btn {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--handdrawn-radius-normal);
    border: 2px solid var(--text-white);
    box-shadow: var(--shadow-chalk-hover);
    text-transform: uppercase;
}

.nav-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
    background-color: var(--text-white);
    color: var(--bg-dark);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle .line {
    width: 100%;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Button Components - Beautifully Hand-painted look */
.btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 14px 28px;
    border: 3px solid var(--text-white);
    border-radius: var(--handdrawn-radius-normal);
    box-shadow: var(--shadow-chalk);
    cursor: pointer;
    transition: var(--transition);
}

.btn-yellow:hover {
    transform: translate(3px, 3px);
    box-shadow: var(--shadow-chalk-hover);
    background-color: var(--text-white);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 14px 28px;
    border: 3px dashed var(--text-light);
    border-radius: var(--handdrawn-radius-normal);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transform: rotate(1deg);
}

.btn-full {
    width: 100%;
}

/* Hero Section - Compact & Punchy */
.hero {
    padding: 48px 0 64px;
    border-bottom: 3px dashed rgba(255, 255, 255, 0.1);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.handdrawn-badge {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--text-white);
    font-family: var(--font-chalk);
    font-size: 1.3rem;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: var(--handdrawn-radius-normal);
    border: 2px solid var(--text-white);
    transform: rotate(-1.5deg);
    margin-bottom: 16px;
    box-shadow: var(--shadow-chalk-hover);
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
}

.hero-content .small-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-family: var(--font-chalk);
    color: var(--text-light);
    display: block;
    margin-top: -6px;
    letter-spacing: 0.1em;
}

.hero-bubble {
    background-color: var(--bg-dark-accent);
    border: 3px solid var(--accent-yellow);
    border-radius: var(--handdrawn-radius-normal);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-chalk);
    position: relative;
}

.hero-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background-color: var(--bg-dark-accent);
    border-left: 3px solid var(--accent-yellow);
    border-bottom: 3px solid var(--accent-yellow);
}

.bubble-title {
    font-family: var(--font-chalk);
    font-size: 1.5rem;
    color: var(--accent-yellow);
    display: block;
    margin-bottom: 8px;
}

.hero-bubble p {
    color: var(--text-white);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Collage Area (Based on tab-flyer) */
.hero-collage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.collage-card {
    background-color: var(--bg-dark-accent);
    border: 4px solid var(--text-white);
    padding: 12px;
    box-shadow: var(--shadow-chalk);
    transition: var(--transition);
}

.main-card {
    border-radius: var(--handdrawn-radius-normal);
    width: 100%;
    max-width: 340px;
    transform: rotate(2deg);
    z-index: 2;
}

.main-card:hover {
    transform: rotate(0) scale(1.03);
    z-index: 10;
}

.secondary-card {
    border-radius: var(--handdrawn-radius-normal);
    width: 220px;
    position: absolute;
    bottom: -30px;
    right: -20px;
    transform: rotate(-6deg);
    z-index: 1;
}

.secondary-card:hover {
    transform: rotate(0) scale(1.05);
    z-index: 10;
}

.collage-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.main-flyer {
    aspect-ratio: 0.73;
    object-fit: cover;
}

.sign-img {
    aspect-ratio: 0.75;
    object-fit: cover;
}

.chalk-caption {
    font-family: var(--font-chalk);
    font-size: 1.1rem;
    color: var(--accent-yellow);
    text-align: center;
    margin-top: 10px;
    line-height: 1.3;
}

.scroll-down {
    text-align: center;
    margin-top: 40px;
}

.doodle-arrow {
    display: inline-block;
    font-size: 2rem;
    animation: bounceDoodle 1.5s infinite;
}

@keyframes bounceDoodle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Personality Highlights Section (Snappy, simplified info) */
.highlights-section {
    padding: 64px 0;
    border-bottom: 3px dashed rgba(255, 255, 255, 0.1);
}

.section-title {
    margin-bottom: 40px;
}

.chalk-h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
}

.chalk-subtitle {
    font-family: var(--font-chalk);
    font-size: 1.4rem;
    color: var(--accent-yellow);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.chalk-card {
    background-color: var(--bg-dark-accent);
    border: 3px solid var(--text-light);
    border-radius: var(--handdrawn-radius-normal);
    padding: 28px;
    position: relative;
    transition: var(--transition);
}

.chalk-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-chalk);
}

.chalk-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    opacity: 0.4;
    position: absolute;
    top: 12px;
    right: 20px;
}

.chalk-num.yellow {
    color: var(--accent-yellow);
    opacity: 0.8;
}

.chalk-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-white);
    padding-right: 32px;
}

.chalk-card p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.chalk-tag {
    display: inline-block;
    font-family: var(--font-chalk);
    font-size: 1.15rem;
    font-weight: bold;
}

.text-yellow { color: var(--accent-yellow); }
.text-blue { color: var(--accent-blue); }
.text-orange { color: var(--accent-orange); }

/* Highlight Star Item Card for MIELIE BROOD! */
.highlight-star {
    border-color: var(--accent-yellow);
    background: radial-gradient(circle at 100% 0%, rgba(255, 208, 0, 0.1) 0%, transparent 70%);
}

/* Simple, No-Nonsense Menu Board */
.menu-section {
    padding: 64px 0;
    border-bottom: 3px dashed rgba(255, 255, 255, 0.1);
}

.handwritten-label {
    display: inline-block;
    font-family: var(--font-chalk);
    font-size: 1.5rem;
    color: var(--accent-yellow);
    transform: rotate(-2deg);
    margin-bottom: 4px;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.tab-btn {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-light);
    background-color: transparent;
    border: 2px dashed var(--text-light);
    border-radius: var(--handdrawn-radius-normal);
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.tab-btn.active {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    border: 2px solid var(--text-white);
    box-shadow: var(--shadow-chalk-hover);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.menu-item {
    background-color: var(--bg-dark-accent);
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--handdrawn-radius-normal);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.menu-item:hover {
    border-color: var(--accent-yellow);
    transform: scale(1.02);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.menu-item h3 {
    font-size: 1.15rem;
    color: var(--text-white);
}

.item-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--accent-yellow);
    white-space: nowrap;
}

.menu-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Featured star item on Menu list */
.featured-item {
    border: 3px solid var(--accent-yellow);
    position: relative;
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.05) 0%, transparent 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--text-white);
}

/* Interactive Order Section */
.order-section {
    padding: 64px 0;
    border-bottom: 3px dashed rgba(255, 255, 255, 0.1);
}

.order-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 32px;
    align-items: start;
}

.builder-card {
    background-color: var(--bg-dark-accent);
    border: 3px solid var(--accent-yellow);
    border-radius: var(--handdrawn-radius-normal);
    padding: 32px;
}

.card-chalk-header {
    margin-bottom: 24px;
    border-bottom: 2px dashed rgba(255,255,255,0.1);
    padding-bottom: 16px;
    position: relative;
}

.doodle-star {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 2rem;
    color: var(--accent-yellow);
}

.card-chalk-header h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.card-chalk-header .subtitle {
    font-size: 0.95rem;
}

.chalk-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.input-group input,
.input-group select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 10px 14px;
    background-color: var(--bg-dark);
    border: 2px solid var(--text-light);
    color: var(--text-white);
    border-radius: var(--handdrawn-radius-normal);
    outline: none;
    transition: var(--transition);
}

.input-group input::placeholder {
    color: #647a95;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent-yellow);
}

/* Picker List Container - Simplified */
.picker-container {
    margin-top: 10px;
}

.picker-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 10px;
    display: block;
}

.picker-scroll-list {
    max-height: 280px;
    overflow-y: auto;
    background-color: var(--bg-dark);
    border: 2px solid var(--text-light);
    border-radius: var(--handdrawn-radius-normal);
    padding: 12px;
}

/* Custom scrollbar */
.picker-scroll-list::-webkit-scrollbar {
    width: 6px;
}
.picker-scroll-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.picker-category h4 {
    font-size: 0.8rem;
    color: var(--text-light);
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 4px;
    margin-bottom: 8px;
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.picker-category:first-child h4 {
    margin-top: 0;
}

.picker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.picker-row:hover {
    background-color: var(--bg-dark-accent);
}

.picker-row.has-qty {
    background-color: rgba(255, 208, 0, 0.05);
    border: 1px solid rgba(255, 208, 0, 0.15);
}

.highlight-picker {
    border-left: 3px solid var(--accent-yellow);
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-dark-accent);
    border: 1.5px solid var(--text-light);
    border-radius: 20px;
    padding: 2px;
}

.qty-adjust {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: var(--text-white);
    color: var(--bg-dark);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-adjust:hover {
    background-color: var(--accent-yellow);
}

.qty-number {
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 12px;
    text-align: center;
}

/* Receipt Card - Chalkpaper look */
.receipt-card {
    position: sticky;
    top: 140px;
}

.receipt-wrapper {
    background-color: var(--bg-dark-accent);
    border: 3px dashed var(--text-white);
    border-radius: var(--handdrawn-radius-normal);
    padding: 24px;
    box-shadow: var(--shadow-chalk);
}

.receipt-top-doodle {
    font-family: var(--font-chalk);
    font-size: 1.3rem;
    text-align: center;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
}

.chalk-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.sub-handwritten {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 6px;
}

.receipt-list {
    list-style: none;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.receipt-list::-webkit-scrollbar {
    width: 4px;
}
.receipt-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.qty-badge {
    color: var(--accent-yellow);
    font-weight: 800;
    margin-right: 4px;
}

.receipt-dashed-line {
    border-top: 2px dashed rgba(255, 255, 255, 0.15);
    margin: 16px 0;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.yellow-text {
    color: var(--accent-yellow);
}

.receipt-meta-box {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
}

.meta-row strong {
    color: var(--text-white);
}

.receipt-wa-notice {
    display: flex;
    gap: 8px;
    background-color: rgba(28, 106, 214, 0.15);
    border: 1px solid var(--accent-blue);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.wa-bubble-icon {
    font-size: 1.1rem;
}

.receipt-wa-notice p {
    color: var(--text-white);
}

/* Visit Us & Directions */
.find-us {
    padding: 64px 0;
}

.find-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.find-desc {
    margin-top: 8px;
    font-size: 1.05rem;
}

.chalk-details {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    gap: 12px;
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-item strong {
    font-size: 0.95rem;
    display: block;
}

.detail-item p {
    font-size: 0.85rem;
}

.phone-link:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.find-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stylized Chalk Map (High performance CSS alternative to Iframe) */
.chalk-map-card {
    background-color: var(--bg-dark-accent);
    border: 4px solid var(--text-white);
    border-radius: var(--handdrawn-radius-normal);
    padding: 12px;
    box-shadow: var(--shadow-chalk);
}

.map-inner {
    height: 260px;
    background-color: #0b182d;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.map-chalk-road {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-chalk-road.horizontal {
    width: 100%;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
}

.map-chalk-road.vertical {
    width: 48px;
    height: 100%;
    right: 25%;
}

.road-label {
    font-family: var(--font-chalk);
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.6;
}

.map-chalk-pin {
    position: absolute;
    top: calc(50% - 16px);
    left: 45%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.pin-bounce {
    font-size: 2.2rem;
    display: block;
    animation: bounceDoodle 2s infinite ease-in-out;
}

.pin-popup {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--text-white);
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: var(--shadow-chalk-hover);
}

.pin-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--accent-yellow) transparent transparent transparent;
}

.map-doodle-landmark {
    background-color: rgba(10, 26, 53, 0.85);
    border: 1.5px dashed var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-white);
    position: absolute;
}

.landmark-1 {
    top: 15%;
    left: 10%;
}

.landmark-2 {
    bottom: 15%;
    left: 15%;
}

/* Footer Section */
.main-footer {
    padding: 48px 0 32px;
    background-color: var(--bg-dark-accent);
    border-top: 3px solid var(--accent-yellow);
}

.footer-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.4));
}

.footer-tagline {
    font-family: var(--font-chalk);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-top: 6px;
}

.community-stamp {
    font-family: var(--font-chalk);
    font-size: 1.4rem;
    color: var(--accent-yellow);
    margin-top: 10px;
}

.heart-icon {
    display: inline-block;
    animation: heartBeat 1.2s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.footer-divider {
    max-width: 100px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 24px auto;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bubble::before {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-collage {
        margin-top: 20px;
    }

    .secondary-card {
        right: 15%;
    }

    .order-grid {
        grid-template-columns: 1fr;
    }

    .receipt-card {
        position: static;
    }

    .find-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        padding: 24px;
        border-bottom: 3px solid var(--accent-yellow);
        gap: 16px;
        box-shadow: var(--shadow-chalk);
        z-index: 1001;
    }

    .main-nav.active {
        display: flex;
    }

    /* Burger animation when open */
    .main-header.nav-active .mobile-toggle .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .main-header.nav-active .mobile-toggle .line:nth-child(2) {
        opacity: 0;
    }

    .main-header.nav-active .mobile-toggle .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .secondary-card {
        display: none; /* Hide secondary on mobile to keep collage ultra compact */
    }
}
