/* --- PWA SHELL STYLES --- */
:root {
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --yolk-blue: #2f2f86;
  --yolk-yellow: #fdd52d;
  --yolk-off-white: #fbf7ea;
  --yolk-blue-light: #3c3c9a;
  --yolk-gray: #808080;
  --yolk-blue-rgb: 47, 47, 134;
  --yolk-yellow-rgb: 253, 213, 45;
  --yolk-gray-rgb: 128, 128, 128;
  --header-height: 58px;
  --rewards-bar-height: 48px;
  --vh: 1vh;
  --marker-stroke-width: 3px;
  --bubble-ring-width: 2px;
  --marker-ring-diameter: 28px;
}

/* --- Live UI Layering Styles --- */

/* This makes the main container a layout reference */
.combined-view-container {
    position: relative;
}

/* The map sits in the background, filling the whole space */
.map-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Sits behind the cards */
}

/* --- BASE & DOCUMENT LAYOUT --- */
html {
  font-size: 16px;
  background-color: var(--yolk-blue); /* Sets the overscroll/bounce color and bottom address bar to blue */
  scrollbar-width: thin;
  scrollbar-color: var(--yolk-yellow) var(--yolk-blue-light);
}

/* JavaScript will add .top-address-bar class for browsers with address bar at top */
html.top-address-bar {
  background-color: var(--yolk-yellow); /* Yellow for top address bar (matches header) */
}
/* --- Scrollbar Styles --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--yolk-blue-light); }
::-webkit-scrollbar-thumb { background-color: var(--yolk-yellow); border-radius: 4px; }

/* Enhanced scrollbar visibility for menu dropdowns */
.menu-dropdown-list::-webkit-scrollbar { width: 12px; }
.menu-dropdown-list::-webkit-scrollbar-track { 
  background: rgba(47, 47, 134, 0.3); 
  border-radius: 6px;
  border: 1px solid rgba(253, 213, 45, 0.2);
}
.menu-dropdown-list::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--yolk-yellow) 0%, #e6c040 100%); 
  border-radius: 6px;
  border: 1px solid rgba(47, 47, 134, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.menu-dropdown-list::-webkit-scrollbar-thumb:hover { 
  background: linear-gradient(180deg, #fff4a3 0%, var(--yolk-yellow) 100%); 
}

/* Firefox scrollbar styling will be added to existing .menu-dropdown-list rule */

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  background-color: var(--yolk-yellow); /* CORRECT: Fills the top notch/safe-area with yellow */
  padding-top: calc(var(--header-height) + var(--safe-area-inset-top));
  box-sizing: border-box;
  overflow-x: hidden;
  /* REMOVED: min-height is moved to the wrapper to solve the overscroll color issue. */
  -webkit-overflow-scrolling: touch;
}

.app-wrapper {
    /* ADDED: Ensures this blue container fills the entire visible screen area below the header. */
    min-height: calc(100vh - (var(--header-height) + var(--safe-area-inset-top)));
    display: flex;
    flex-direction: column;

    /* Original Properties */
    overflow: visible;
    position: relative;
    z-index: 1;
    background-color: var(--yolk-blue); /* CORRECT: This is the main background color for app content. */
}

body.promo-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.promo-active header.tab-container {
  display: none;
}


/* --- HEADER STYLES --- */
header.tab-container {
    background-color: var(--yolk-yellow);
    width: 100%;
    height: calc(var(--header-height) + var(--safe-area-inset-top));
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: box-shadow 0.2s ease-in-out, visibility 0.1s;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

#app-menu-container,
#rewards-logo-button,
#scan-bill-button {
  pointer-events: auto;
}

.header-content-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    height: var(--header-height);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
}

.tab-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}
.tab-side.left { 
    left: calc(10px + env(safe-area-inset-left)); 
}
.tab-side.right { 
    right: calc(10px + env(safe-area-inset-right)); 
}

.center-logo-container {
    position: relative;
    top: 2px;
    z-index: 1001;
    pointer-events: none;
    grid-column: 2;
}

#rewards-logo-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}
#rewards-logo-button .rewards-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--yolk-yellow);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: -10px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}
#rewards-logo-button img {
    max-width: 80px;
    max-height: 68px;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease-in-out;
    margin-left: 4px;
}
#rewards-logo-button:active img { transform: scale(0.95); }

#app-menu-container, #scan-bill-button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--yolk-blue);
    cursor: pointer;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

#app-menu-container { text-align: left; transition: transform 0.2s ease-in-out; }
#scan-bill-button { text-align: right; }
#app-menu-container:active { transform: scale(0.95); }
#scan-bill-button svg { width: 22px; height: 22px; fill: currentColor; }

@keyframes jiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

#scan-bill-button svg.icon-animating { animation: jiggle 0.4s ease-in-out; }

/* --- VIEW CONTAINERS --- */
.view { display: none; box-sizing: border-box; }
.menu-state { display: none; }

.combined-view-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* --- Consolidated Locations Section --- */
.locations-section {
    position: relative;
    z-index: 2; /* Sits on top of the map */
    background-color: var(--yolk-blue-light);
    padding: 12px 4px; /* Tighter horizontal padding */
    box-sizing: border-box;
    transition: opacity 1.5s ease-in-out;
}

.locations-section.is-fading-out {
    opacity: 0;
    pointer-events: none;
}

/* Default Portrait/Mobile styles */
.locations-section {
    flex: 1;
    width: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
}

/* --- FIX: Mobile Portrait Menu Full Width (ZERO PADDING) --- */
@media screen and (max-width: 767px) and (orientation: portrait) {

  /* This removes the padding from the main view container. */
  #menu-view {
    padding: 0;
  }

  /* This removes horizontal padding from the inner menu block
     while keeping the vertical padding and removing rounded corners. */
  #menu-illinois,
  #menu-indiana,
  #menu-texas,
  #menu-florida {
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Wider Desktop styles */
@media screen and (min-width: 1024px) {
    .locations-section {
        width: 40%;
    }
}

.map-section {
    height: 40vh;
    min-height: 250px;
    max-height: 350px;
    background: #ddd;
    flex-shrink: 0;
    border-bottom: 2px solid var(--yolk-yellow);
    z-index: 900;
}

.map-controls {
    position: absolute;
    bottom: 25px;
    right: 10px;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    background: rgba(var(--yolk-yellow-rgb), 0.7);
    border: 2px solid var(--yolk-blue);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    opacity: 0.8;
}
.map-control-btn:hover { 
    background: rgba(var(--yolk-blue-rgb), 0.9); 
    transform: translateY(-1px); 
    box-shadow: 0 3px 6px rgba(0,0,0,0.3); 
    opacity: 1;
    border-color: var(--yolk-yellow);
}
.map-control-btn:hover svg { fill: var(--yolk-yellow); }
.map-control-btn:active { 
    transform: translateY(0); 
    box-shadow: 0 1px 2px rgba(0,0,0,0.2); 
    background: rgba(var(--yolk-blue-rgb), 0.9);
    border-color: var(--yolk-yellow); 
}
.map-control-btn:active svg { fill: var(--yolk-yellow); }
.map-control-btn:not(:active):not(:hover) { 
    background: rgba(var(--yolk-yellow-rgb), 0.7) !important; 
}
.map-control-btn:not(:active):not(:hover) svg { 
    fill: var(--yolk-blue) !important; 
}
.map-control-btn svg { width: 18px; height: 18px; fill: var(--yolk-blue); transition: fill 0.2s ease; }
.map-control-btn.loading { background: rgba(var(--yolk-gray-rgb), 0.7); cursor: not-allowed; opacity: 0.6; }
.map-control-btn.loading svg { animation: spin 1s linear infinite; }
.map-control-btn:disabled { background-color: rgba(var(--yolk-gray-rgb), 0.5); border-color: #666; cursor: not-allowed; opacity: 0.4; }
.map-control-btn:disabled:hover { transform: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2); background-color: rgba(var(--yolk-gray-rgb), 0.5); opacity: 0.4; }
.map-control-btn:disabled:hover svg { fill: var(--yolk-blue); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Locations View Card Styles --- */
.market-area-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--yolk-yellow);
    margin: 20px 0 10px 0;
    text-align: center;
}
.location-card {
    background-color: var(--yolk-blue);
    border-radius: 8px;
    margin: 0 4px 8px 4px; /* Tighter spacing */
    padding: 16px;
    position: relative;
    overflow: hidden;
    color: var(--yolk-off-white);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.5s ease;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.location-card.active {
    border-color: var(--yolk-yellow);
    box-shadow: 0 0 25px rgba(253, 213, 45, 0.7);
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.location-card, .il-menu-section { animation: fadeInUp 0.4s ease-out forwards; opacity: 0; }
#status { text-align: center; color: var(--yolk-blue); padding: 20px; font-weight: 500; }

.il-menu-container,
.imgbox {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.card-main-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    min-width: 0;
}
.card-main-info h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--yolk-off-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-main-info .address-text,
.card-main-info .location-status-line,
.card-main-info .location-phone-number {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.9;
}
.location-phone-number a {
    color: var(--yolk-yellow);
    text-decoration: none;
}
.location-phone-number a:hover {
    text-decoration: underline;
}
.phone-anim-target .anim-char {
    display: inline-block;
    transition: color 0.2s ease;
}
.phone-anim-target .anim-char.pop {
    animation: pop-char 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes pop-char {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6) rotate(-10deg); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.card-actions-and-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex-shrink: 0;
    text-align: right;
}
.card-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.fav-star-container, .info-icon-button {
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-star-container:active, .info-icon-button:active {
    transform: scale(0.9);
}
.fav-star {
    font-size: 28px;
    line-height: 1;
    color: transparent;
    opacity: 0.6;
    text-shadow: 0 0 0 rgba(251, 247, 234, 0.7);
    transition: all 0.2s ease-in-out;
}
.fav-star-container:hover .fav-star {
    opacity: 1;
    text-shadow: 0 0 0 white;
}
.fav-star.is-favorite {
    color: var(--yolk-yellow);
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--yolk-yellow));
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.info-icon-button svg {
    width: 28px;
    height: 28px;
    fill: var(--yolk-yellow);
    opacity: 0.8;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: opacity 0.2s ease;
}
.info-icon-button:hover svg {
    opacity: 1;
}
.estimates-wrapper {
    position: relative;
    min-height: 50px;
    width: 130px;
}
.waitlist-estimates-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.estimate-value { font-weight: 800; color: var(--yolk-yellow); font-size: 1rem; line-height: 1.2; }
.estimate-label { font-size: 0.75rem; font-weight: 500; opacity: 0.9; margin-top: 4px; line-height: 1.2; }
.card-bottom-actions {
    margin-top: 8px;
}
.action-button.primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
    border: 2px solid var(--yolk-yellow);
}
.action-button.primary:active { transform: scale(0.95); box-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.locations-list-footer {
    text-align: center;
    padding: 24px 16px 16px;
    color: var(--yolk-off-white);
    opacity: 0.8;
}
.locations-list-footer p {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 500;
    margin: 0 0 16px 0;
}
.back-to-top-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--yolk-blue);
    background-color: var(--yolk-yellow);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease-in-out;
}
.back-to-top-button:active {
    transform: scale(0.95);
}


/* --- MENUS, MODALS, DRAWER, etc. --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

#app-menu-label { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    color: var(--yolk-blue);
    max-width: calc(50vw - 60px); /* Leave space for REWARDS button */
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}
.hamburger-icon-wrapper { display: flex; align-items: center; height: 100%; width: 20px; }
.hamburger-icon { display: inline-flex; flex-direction: column; gap: 4px; transition: transform 0.3s ease; }
.hamburger-icon span { background: var(--yolk-blue); height: 2px; width: 18px; border-radius: 1px; }
#app-menu-container.active .hamburger-icon { transform: rotate(180deg); }

.menu-dropdown-list {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-area-inset-top) + 10px);
    background-color: rgba(47, 47, 134, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--yolk-yellow);
    border-radius: 12px;
    padding: 10px;
    z-index: 999;
    width: fit-content;
    max-width: 300px;
    max-height: calc((var(--vh, 1vh) * 100) - var(--header-height) - var(--rewards-bar-height) - var(--safe-area-inset-top) - var(--safe-area-inset-bottom) - 20px);
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.2s ease-out, visibility 0s 0.2s;
    touch-action: pan-y;
    pointer-events: auto;
    /* Enhanced Firefox scrollbar visibility */
    scrollbar-width: auto;
    scrollbar-color: var(--yolk-yellow) rgba(47, 47, 134, 0.3);
}

@media screen and (min-width: 768px) {
    .menu-dropdown-list {
        max-width: none;
    }
}

.menu-dropdown-list.show { opacity: 1; visibility: visible; transform: translateY(0); transition: all 0.2s ease-out, visibility 0s 0s; }
.menu-dropdown-item {
    display: flex; align-items: center; justify-content: space-between; padding: 14px; color: var(--yolk-off-white);
    text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 1.1rem;
    border-radius: 8px; transition: background-color 0.2s ease, color 0.2s ease; cursor: pointer; white-space: nowrap;
}
.menu-item-text { display: flex; align-items: center; gap: 12px; }
.menu-dropdown-item:hover { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
body.is-pwa #menu-item-install, #menu-item-install:not(.show-install-button) { display: none !important; }
#menu-item-install.prompt-available, #menu-item-install.show-install-button {
    display: flex !important; background-color: var(--yolk-yellow); color: var(--yolk-blue);
    filter: drop-shadow(0 0 6px var(--yolk-yellow));
}
#app-version-display { font-size: 0.75rem; color: var(--yolk-gray); text-align: center; padding-top: 8px; padding-bottom: 8px; cursor: default; }
.app-icon-style { border-radius: 15%; box-shadow: 0 0 5px var(--yolk-yellow), 0 3px 6px rgba(0,0,0,0.4); border: 1px solid rgba(253, 213, 45, 0.7); }
.install-app-icon { width: 28px; height: 28px; margin: 0 4px; vertical-align: middle; }

/* Menu View Styles */
.menu-content-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 10px;
}
.menu-market-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--yolk-yellow);
    text-align: center;
    padding: 20px 0;
}
.il-section-header {
    position: -webkit-sticky;
    position: sticky;
    z-index: 100;
    /* MODIFICATION: Removed the extra '5px' to ensure it sticks directly below the header. */
    top: calc(var(--header-height) + var(--safe-area-inset-top));
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color .2s ease-in-out;
}
.il-section-header.active-tutorial { background-color: #ffe066; }
.category-dropdown-icon { transition: transform 0.3s ease; transform: rotate(0deg); width: 24px; height: 24px; fill: var(--yolk-blue); }

/* CORRECTED/DE-MINIFIED MENU STYLES */
.il-section-content {
    padding: 16px;
    background-color: var(--yolk-blue-light);
    border-radius: 8px;
    margin-top: -8px;
    color: var(--yolk-off-white);
}
.il-subcategory-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--yolk-yellow);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--yolk-blue);
    margin: 16px 0;
}
.il-section-options {
    font-size: .875rem;
    font-style: italic;
    opacity: .8;
    padding: 5px 0;
    line-height: 1.5;
}
.il-section-options-bold {
    font-size: .875rem;
    font-weight: 400;
    font-style: normal;
    color: var(--yolk-off-white);
    opacity: .8;
    padding: 5px 0;
    line-height: 1.5;
}
.il-build-your-own-options {
    font-size: .875rem;
    color: var(--yolk-off-white);
    opacity: .8;
    line-height: 1.5;
    margin-top: 16px;
}
.il-build-your-own-options strong {
    font-weight: 700;
}
.il-menu-item {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.il-menu-item-details {
    flex-grow: 1;
}
.il-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--yolk-off-white);
    display: inline;
}
.il-item-price {
    font-size: .875rem;
    color: var(--yolk-off-white);
    opacity: .8;
    font-weight: 400;
    flex-shrink: 0;
    text-align: right;
}
.il-item-desc {
    font-size: .875rem;
    color: var(--yolk-off-white);
    opacity: .8;
    margin-top: 5px;
    line-height: 1.5;
}
.il-item-name::before {
    font-size: 1em;
    margin-right: 8px;
    color: var(--yolk-off-white);
}
.coffee-dish::before { content:'☕'; }
.tea-dish::before { content:'🍵'; }
.juice-dish::before { content:'🍹'; }
.egg-dish::before { content:'🥚'; }
.sweet-dish::before { content:'🥞'; }
.healthy-dish::before { content:'🥗'; }
.kids-dish::before { content:'👦👧'; }
.burger-dish::before { content:'🍔'; }
.sandwich-dish::before { content:'🥪'; }
.hotdog-dish::before { content:'🌭'; }
.burrito-dish::before { content:'🌯'; }
.poultry-dish::before { content:'🍗'; }
.french-fries-dish::before { content:'🍟'; }
.bagel-dish::before { content:'🥯'; }
.bread-dish::before { content:'🍞'; }
.fruit-dish::before { content:'🍊'; }
.bacon-dish::before { content:'🥓'; }
.pastry-dish::before { content:'🥐'; }
.pasta-dish::before { content:'🍝'; }
.avocado-dish::before { content:'🥑'; }
.meat-dish::before { content:'🥩'; }
.waffle-dish::before { content:'🧇'; }
.bowl-dish::before { content:'🥣'; }
.sparkle-dish::before { content:'✨'; }
.juice-box-dish::before { content:'🧃'; }
.lemon-dish::before { content:'🍋'; }
.milk-dish::before { content:'🥛'; }
.chocolate-dish::before { content:'🍫'; }
.cup-straw-dish::before { content:'🥤'; }
.apple-dish::before { content:'🍎'; }
.blueberry-dish::before { content:'🫐'; }
.maple-leaf-dish::before { content:'🍁'; }
.il-footer-note {
    font-size: .8rem;
    color: var(--yolk-off-white);
    text-align: center;
    padding: 15px;
    line-height: 1.4;
    background-color: var(--yolk-blue-light);
    margin-top: 20px;
    border-radius: 8px;
}
.imgbox {
    display: grid;
    padding: 12px;
    gap: 12px;
    box-sizing: border-box;
}
.center-fit {
    max-width: 100%;
    margin: auto;
    border-radius: 8px;
}
.menu-selector-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    max-width: 300px;
    margin: 20px auto;
    background-color: var(--yolk-blue-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.menu-state-button {
    font-family: 'Montserrat',sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--yolk-yellow);
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
    cursor: pointer;
    transition: all .2s ease-in-out;
}
.menu-state-button:hover {
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
}
.menu-state-button:active {
    transform: scale(.98);
}

/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: calc(var(--vh, 1vh) * 100); background: rgba(0, 0, 0, 0.3); backdrop-filter: none; -webkit-backdrop-filter: none; display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; padding: 10px; box-sizing: border-box; }

/* Override for promo modal to have solid yolk-blue background */
#promo-modal.modal-overlay { background: var(--yolk-blue) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 !important; }
#favorite-confirmation-modal { background: rgba(0, 0, 0, 0.3); backdrop-filter: none; -webkit-backdrop-filter: none; }
#favoriteModal .modal-content strong,
#favorite-confirmation-modal .modal-content strong {
  color: var(--yolk-yellow);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { position: relative; background: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); padding: clamp(16px, 3vw, 24px); border-radius: 12px; box-shadow: 0 5px 15px rgba(0, 0, 0, .3); text-align: center; max-width: min(90vw, 90vh); width: clamp(300px, 80vw, 500px); max-height: calc(var(--vh, 1vh) * 85); overflow-y: auto; box-sizing: border-box; transition: width 0.3s ease, height 0.3s ease; }
.modal-overlay.styled-modal-overlay .modal-content { background-color: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); border: 2px solid var(--yolk-yellow); }
.modal-overlay.styled-modal-overlay .modal-close-x { color: var(--yolk-yellow); }
.modal-overlay.styled-modal-overlay .modal-button.primary { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
.modal-overlay.styled-modal-overlay .modal-button.secondary { background-color: transparent; color: var(--yolk-yellow); border-color: var(--yolk-yellow); }
.modal-overlay.styled-modal-overlay .map-choice-button { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
.modal-overlay.styled-modal-overlay hr { border-color: rgba(253, 213, 45, 0.3); }
.modal-overlay.styled-modal-overlay b, .modal-overlay.styled-modal-overlay strong { color: var(--yolk-yellow); }

/* CORRECTED/DE-MINIFIED MODAL STYLES */
.modal-content h3 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    font-size: 1.25rem;
}
.modal-content p {
    margin: 16px 0;
    line-height: 1.5;
    font-size: .95rem;
}
.modal-content strong {
    color: var(--yolk-blue-light);
}
.modal-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.modal-button {
    font-family: 'Montserrat', sans-serif;
    font-size: .875rem;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    transition: all .2s ease-in-out;
    border: 2px solid var(--yolk-blue);
    cursor: pointer;
}
.modal-button.primary {
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
}
.modal-button.secondary {
    background-color: transparent;
    color: var(--yolk-blue);
}
.modal-button:active {
    transform: scale(.95);
}
.modal-close-x {
    position: fixed !important;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--yolk-yellow);
    opacity: .9;
    cursor: pointer;
    z-index: 10001;
    transition: opacity .2s, transform .2s;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    background: rgba(47, 47, 134, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(253, 213, 45, 0.3);
}
.modal-close-x:hover {
    opacity: 1;
    transform: scale(1.1);
}
#location-update-modal p:last-of-type {
    font-size: .8rem;
    opacity: .8;
    margin-top: 20px;
}
.map-choice-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--yolk-blue);
    cursor: pointer;
    transition: all .2s ease-in-out;
    text-decoration: none;
    background-color: var(--yolk-blue);
    color: var(--yolk-yellow);
}
.map-choice-button:active {
    transform: scale(.98);
    background-color: var(--yolk-yellow);
    color: var(--yolk-blue);
}
.map-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
    transition: all 0.2s ease-in-out;
}
.map-choice-button:hover .map-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--yolk-yellow));
}
.modal-actions.horizontal {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

#location-info-modal .modal-content { text-align: left; }
#location-info-modal .modal-scroll-content { padding: 0 16px 24px 16px; }
#location-info-modal h3 { text-align: center; padding: 24px 0 0 0; }
#location-info-modal .modal-info-detail { padding: 4px 0; }
#location-info-modal #modal-info-phone a { color: var(--yolk-yellow); text-decoration: underline; }
#location-info-modal hr { border: 0; height: 1px; margin: 16px 0; background-color: rgba(253, 213, 45, 0.3); }
.modal-info-waitlist-title { font-family: 'Montserrat', sans-serif; font-weight: 600; text-align: center; margin-bottom: 12px; font-size: 1rem; }
/* Removed old modal-info-waitlist-estimates definition - see updated version below */
.modal-waitlist-item { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.modal-waitlist-label { font-size: 0.8rem; opacity: 0.8; }
.modal-waitlist-value { font-weight: 700; font-size: 1.1rem; color: var(--yolk-yellow); }
#hours-details { border: 1px solid rgba(253, 213, 45, 0.3); border-radius: 8px; margin: 8px 0; }
.hours-details { border: 1px solid rgba(253, 213, 45, 0.3); border-radius: 8px; margin: 8px 0; position: relative; }
.hours-summary { padding: 12px; font-weight: 600; cursor: pointer; position: relative; list-style: none; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.hours-summary::-webkit-details-marker { display: none; }
.hours-details[open] .hours-summary::after { transform: translateY(-50%) rotate(180deg); }
/* Removed conflicting hours-dropdown-content definition - using the animated version below */
.hours-dropdown-content div { display: flex; justify-content: space-between; padding: 2px 0; }
#modal-info-patio { display: flex; align-items: center; }
#modal-info-patio .patio-icon { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }

/* QR Scanner Modal */
body.qr-scanner-active #rewards-location-bar,
body.qr-scanner-active header.tab-container { display: none; }
#qr-scanner-modal { background: black; top: 0; left: 0; width: 100vw; height: 100vh; height: calc(var(--vh) * 100); padding: 0; }
#qr-scanner-modal .modal-content { all: unset; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
#qr-scanner-modal .qr-scanner-content { display: flex; flex-direction: column; gap: 16px; width: 100%; height: 100%; box-sizing: border-box; position: relative; }

#qr-scanner-modal .qr-left-panel { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex: 1; 
    min-height: 0; 
    background: #111;
    position: relative; /* For corner positioning */
}

/* These pseudo-elements create the yellow corners */
#qr-scanner-modal .qr-left-panel::before,
#qr-scanner-modal .qr-left-panel::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: clamp(180px, 60vmin, 250px); /* Responsive box size */
    height: clamp(180px, 60vmin, 250px);
    border: 5px solid transparent;
    pointer-events: none; /* Let camera see through */
}
#qr-scanner-modal .qr-left-panel::before {
    border-top-color: var(--yolk-yellow);
    border-bottom-color: var(--yolk-yellow);
}
#qr-scanner-modal .qr-left-panel::after {
    border-left-color: var(--yolk-yellow);
    border-right-color: var(--yolk-yellow);
}

#qr-scanner-modal .qr-right-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; flex-shrink: 0; padding: 20px; text-align: center; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); padding-bottom: calc(var(--safe-area-inset-bottom) + 20px); }
#qr-scanner-modal #qr-reader { width: 100%; height: 100%; overflow: hidden; }
#qr-scanner-modal #qr-reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
#qr-scanner-modal .modal-close-x { color: var(--yolk-yellow); position: absolute; top: calc(var(--safe-area-inset-top) + 10px); right: 15px; font-size: 2.5rem; text-shadow: 0 0 5px black; }
#qr-scanner-modal h3 { color: var(--yolk-off-white); font-size: 1rem; margin: 0; line-height: 1.4; }
#qr-scanner-modal .modal-actions { margin-top: 16px; }
#qr-scanner-modal #modal-qr-cancel { background-color: var(--yolk-off-white); color: var(--yolk-blue); border-color: var(--yolk-off-white); }

/* Landscape mode layout fix */
@media screen and (orientation: landscape) and (min-height: 300px) {
    #qr-scanner-modal .qr-scanner-content {
        flex-direction: row;
    }
    #qr-scanner-modal .qr-left-panel {
        flex: 1 1 50%; /* Take up left half */
    }
    #qr-scanner-modal .qr-right-panel {
        position: relative; /* Override absolute positioning */
        bottom: auto;
        flex: 1 1 50%; /* Take up right half */
        background: #111; /* Match the left panel background */
    }
}

/* Drawer Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 1501;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    -webkit-mask-image: linear-gradient(to top, transparent 0, transparent var(--rewards-bar-height), black var(--rewards-bar-height));
    mask-image: linear-gradient(to top, transparent 0, transparent var(--rewards-bar-height), black var(--rewards-bar-height));
}
.drawer-overlay.show{opacity:1;visibility:visible}
#drawer-container { position: fixed; top: calc(var(--header-height) + var(--safe-area-inset-top) + 20px); bottom: var(--rewards-bar-height); left: 0; right: 0; z-index: 1502; max-width: 860px; margin: 0 auto; height: auto; overflow: hidden; pointer-events: none; }
#location-selector-drawer{ position: absolute; bottom: 0; left: 0; right: 0; height: 100%; background-color:var(--yolk-off-white); color:var(--yolk-blue); border-top-left-radius:16px; border-top-right-radius:16px; display:flex; flex-direction:column; transform: translateY(100%); transition:transform .4s ease-out; pointer-events: auto; }
#location-selector-drawer.show{ transform: translateY(0); }
.drawer-header {
    padding:16px;
    font-family:'Montserrat',sans-serif;
    font-weight:700;
    font-size:1.1rem;
    text-align:center;
    border-bottom:1px solid #ddd;
    flex-shrink: 0;
}
.drawer-location-list {
    overflow-y:auto;
    padding:8px;
}
.drawer-location-item {
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    border-radius:8px;
    cursor:pointer;
    transition:background-color .2s ease;
}
.drawer-location-item:hover {
    background-color:#e0e0e0;
}
.drawer-item-state {
    flex:0 0 25px;
    font-weight:700;
    color:var(--yolk-gray);
}
.drawer-item-name {
    flex-grow:1;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.drawer-item-distance {
    font-size:.8rem;
    opacity:.8;
    padding-left:10px;
}
.active-checkmark {
    font-weight:700;
    color:var(--yolk-yellow);
}
.drawer-location-item.active {
    background-color:var(--yolk-blue-light);
    color:var(--yolk-off-white);
}
.drawer-location-item.active .drawer-item-state {
    color:var(--yolk-yellow);
}

/* Special Modal Styles */
.modal-app-icon { width: 60px; height: 60px; }
#rewards-info-modal.modal-overlay, #install-instructions-modal.modal-overlay { align-items: flex-start; padding-top: calc(var(--header-height) + var(--safe-area-inset-top) + 20px); padding-bottom: calc(var(--rewards-bar-height) + var(--safe-area-inset-bottom) + 20px); background: rgba(0, 0, 0, 0.3) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Ensure all modal overlays have dark transparent background - EXCEPT promo modal */
#location-info-modal.modal-overlay,
#directions-modal.modal-overlay,
.modal-overlay.show:not(#promo-modal) { background: rgba(0, 0, 0, 0.3) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Promo modal should always have solid yolk-blue background */
#promo-modal.modal-overlay { background: var(--yolk-blue) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* Promo modal content should remain solid (not transparent) */
#promo-modal .modal-content { background: var(--yolk-blue) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

#rewards-info-modal .modal-content { background-color: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); border: 2px solid var(--yolk-yellow); text-align: left; max-height: calc((var(--vh, 1vh) * 100) - (var(--header-height) + var(--safe-area-inset-top)) - (var(--rewards-bar-height) + var(--safe-area-inset-bottom)) - 40px); width: 500px; padding: 0; display: flex; flex-direction: column; }
#rewards-info-modal .modal-close-x { color: var(--yolk-yellow); z-index: 1; }
#rewards-info-modal .modal-scroll-content { padding: 24px; overflow-y: auto; flex-grow: 1; }
#rewards-info-modal h3 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#rewards-info-modal hr { border: 0; height: 1px; background-color: rgba(253, 213, 45, 0.3); margin: 16px 0; }
#rewards-info-modal b { font-weight: 800; color: var(--yolk-yellow); }
#rewards-info-modal p { color: var(--yolk-off-white); }
#rewards-info-modal .rewards-tier { display: flex; align-items: flex-start; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(253, 213, 45, 0.2); }
#rewards-info-modal .rewards-tier:last-child { border-bottom: none; }
#rewards-info-modal .rewards-tier-content { flex-grow: 1; }
#rewards-info-modal .rewards-tier-star { flex-shrink: 0; width: 24px; height: 24px; fill: var(--yolk-yellow); filter: drop-shadow(0 0 5px var(--yolk-yellow)); margin-top: 4px; }
#rewards-info-modal .modal-button.primary { background-color: var(--yolk-yellow); color: var(--yolk-blue); }
#rewards-info-modal .fine-print { font-size: 0.8rem; opacity: 0.8; font-style: italic; margin-top: 8px; }
#install-instructions-modal .modal-content { background: rgba(47, 47, 134, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--yolk-off-white); border: 2px solid var(--yolk-yellow); max-height: calc((var(--vh, 1vh) * 100) - (var(--header-height) + var(--safe-area-inset-top)) - (var(--rewards-bar-height) + var(--safe-area-inset-bottom)) - 40px); width: 500px; padding: 0; display: flex; flex-direction: column; }
#install-instructions-modal .modal-scroll-content { padding: 24px; overflow-y: auto; flex-grow: 1; }
#install-instructions-modal .modal-close-x { color: var(--yolk-yellow); }
#install-instructions-modal h3 { color: var(--yolk-off-white); text-align: center; display: flex; align-items: center; justify-content: center; gap: 12px; }
#install-instructions-modal p { color: var(--yolk-off-white); text-align: left; }
#install-instructions-modal strong { color: var(--yolk-yellow); }
#install-instructions-modal .ios-share-icon { width: 20px; height: 26px; vertical-align: middle; margin: 0 4px; }
#modal-install-ok { background-color: var(--yolk-yellow); color: var(--yolk-blue); }

/* --- PROMO SPLASH --- */
#promo-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--yolk-blue);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#promo-splash.hidden {
  opacity: 0;
  pointer-events: none;
}
#promo-splash img {
  max-width: 394px;
  opacity: 0;
  animation: fadeInLogo 2.5s ease-in-out forwards;
  animation-delay: 0.5s;
}
@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- PROMO MODAL --- */
#promo-modal {
  /* Added flex properties to correctly center the content */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Original properties */
  z-index: 10000; 
  background: var(--yolk-blue) !important; 
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer; 
  transition: background-color 0.3s ease; 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  height: 100%; 
  width: 100%; 
}

/* Second promo modal with blurred favicon + yolk-blue background */
#promo-modal.phase-two { 
  background: var(--yolk-blue) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#promo-modal.phase-two::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(to bottom, rgba(47, 47, 134, 0.6) 0%, rgba(47, 47, 134, 0.6) 100%),
    url('/favicon.png');
  background-size: 
    100% 100%,
    100% auto;
  background-position: 
    center,
    center;
  background-repeat: 
    no-repeat,
    no-repeat;
  opacity: 0.6;
  filter: blur(26px);
  z-index: -1;
}

/* Responsive favicon sizing - always fill width for all orientations */
@media screen and (orientation: portrait) {
  #promo-modal.phase-two::before {
    background-size: 
      100% 100%,    /* yolk-blue gradient fills entire area */
      100% auto;    /* favicon fills width, height auto */
  }
}

@media screen and (orientation: landscape) {
  #promo-modal.phase-two::before {
    background-size: 
      100% 100%,    /* yolk-blue gradient fills entire area */
      100% auto;    /* favicon fills width, height auto */
  }
}
.promo-content { text-align: center; color: var(--yolk-yellow); font-family: 'Montserrat', sans-serif; opacity: 0; transition: opacity 0.4s ease; cursor: default; }
#promo-modal.show .promo-content { opacity: 1; }
.promo-content-phase1 h1 { font-size: 14vw; font-weight: 800; text-shadow: 0 3px 8px rgba(0,0,0,0.5); margin: 0; line-height: 1; }
.promo-content-phase2 { position: relative; display: flex; flex-direction: column; justify-content: space-between; background-color: rgba(47, 47, 134, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid var(--yolk-yellow); border-radius: 12px; padding: clamp(16px, 3vw, 24px); max-width: min(90vw, 90vh); width: clamp(300px, 85vw, 600px); min-height: clamp(250px, 40vh, 400px); max-height: calc(var(--vh, 1vh) * 85); overflow-y: auto; box-sizing: border-box; transition: width 0.3s ease, height 0.3s ease; }
.promo-content-phase2 .modal-close-x { position: absolute; top: 8px; right: 12px; color: var(--yolk-yellow); }
.promo-content-phase2 p { color: var(--yolk-off-white); font-family: 'Open Sans', sans-serif; font-size: 1rem; line-height: 1.5; }
.promo-content-phase2 .promo-icon { vertical-align: middle; margin: 0 8px; width: 40px; height: 40px; }
.promo-content-phase2 .promo-reward-details { padding: 12px 0; margin: 16px 0; }
.promo-content-phase2 b { font-weight: 800; color: var(--yolk-yellow); }
.promo-content-phase2 .fine-print { font-size: 0.7rem; opacity: 0.9; color: var(--yolk-off-white); font-style: italic; margin-top: 10px; }

.promo-join-button {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 24px;
  margin-bottom: 15px;
  background-color: var(--yolk-yellow);
  color: var(--yolk-blue);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.promo-join-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.promo-join-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Transition animations for promo modal closing */
#promo-modal.closing .promo-content-phase2 {
  transition: opacity 1s ease-out;
  opacity: 0;
}

/* Keep promo modal visible during all transition states */
#promo-modal.closing,
#promo-modal.unblurring,
#promo-modal.fading {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Favicon background transitions during closing */
#promo-modal.closing::before {
  transition: filter 1s ease-out, opacity 1s ease-out;
  filter: blur(20px);
  opacity: 0.4;
}

#promo-modal.unblurring::before {
  transition: filter 1.5s ease-out, opacity 1.5s ease-out;
  filter: blur(14px);
  opacity: 0.3;
}

#promo-modal.fading::before {
  transition: opacity 2s ease-out, filter 2s ease-out;
  opacity: 0;
  filter: blur(22px);
}

#promo-modal.fading {
  background: transparent !important;
  transition: background 2s ease-out;
}

/* Content visibility is now controlled by body classes (initial-load, no-promos, etc.) */

/* Even stronger hiding during initial app load */
body.initial-load .app-wrapper,
body.initial-load .combined-view-container,
body.initial-load #locations-view,
body.initial-load #map-container {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -1000 !important;
}

/* Fade in map and location cards quickly to show cinematic animation */
body.promo-fading .app-wrapper {
  display: block !important;
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(8px) !important;
  transform: scale(1.05) !important;
  transition: opacity 0.4s ease-out, filter 0.4s ease-out, transform 0.4s ease-out !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.promo-fading .combined-view-container {
  display: flex !important; /* Use flex to maintain layout */
  opacity: 0 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(8px) !important;
  transform: scale(1.05) !important;
  transition: opacity 0.4s ease-out, filter 0.4s ease-out, transform 0.4s ease-out !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.promo-fading-complete .app-wrapper {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.promo-fading-complete .combined-view-container {
  display: flex !important; /* Use flex to maintain layout */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

/* Show app content immediately if no promos are active */
body.no-promos .app-wrapper {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}

body.no-promos .combined-view-container {
  display: flex !important; /* Use flex instead of block to maintain layout */
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: blur(0px) !important;
  transform: scale(1) !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}


/* --- COMPASS CONTROL (Native Google Maps compass styling) --- */
/* Style the native Google Maps compass to match our design */
.gm-style .gm-style-cc,
.gm-style-cc,
[data-control-width] button[data-value="rotate"],
button[data-value="rotate"],
.gm-style button[data-value="rotate"] {
  background: rgba(var(--yolk-yellow-rgb), 0.7) !important;
  border: 2px solid var(--yolk-blue) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease !important;
  opacity: 0.8 !important;
}

.gm-style .gm-style-cc:hover,
.gm-style-cc:hover,
[data-control-width] button[data-value="rotate"]:hover,
button[data-value="rotate"]:hover,
.gm-style button[data-value="rotate"]:hover {
  background: rgba(var(--yolk-blue-rgb), 0.9) !important;
  border: 2px solid var(--yolk-yellow) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3) !important;
  opacity: 1 !important;
}

.gm-style .gm-style-cc:active,
.gm-style-cc:active,
[data-control-width] button[data-value="rotate"]:active,
button[data-value="rotate"]:active,
.gm-style button[data-value="rotate"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
  background: rgba(var(--yolk-blue-rgb), 0.9) !important;
  border: 2px solid var(--yolk-yellow) !important;
}

/* Legacy compass control styles (kept for reference) */
.compass-control {
  display: none; /* Hidden in favor of native Google Maps compass */
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(var(--yolk-yellow-rgb), 0.7);
  border: 2px solid var(--yolk-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.compass-control:hover {
  background: rgba(var(--yolk-blue-rgb), 0.9);
  border-color: var(--yolk-yellow);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.compass-control:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(var(--yolk-blue-rgb), 0.9);
  border-color: var(--yolk-yellow);
}

.compass-control.locked {
  background: rgba(var(--yolk-blue-rgb), 0.9);
  border-color: var(--yolk-yellow);
}

.compass-svg {
  width: 36px;
  height: 36px;
  transform-origin: 50% 50%;
  transition: transform 0.3s ease-in-out;
}

.compass-label {
  fill: var(--yolk-blue);
  font-family: 'Montserrat', sans-serif;
  transition: fill 0.2s ease-in-out;
}

.compass-control:hover .compass-label {
  fill: var(--yolk-yellow);
}

.compass-control.locked .compass-label {
  fill: var(--yolk-yellow);
}

/* --- MAP MARKER AND BUBBLE STYLES --- */
.custom-marker { position: relative; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; }
.custom-marker-dot { width: 20px; height: 20px; background-color: var(--yolk-yellow); border: 3px solid var(--yolk-blue); border-radius: 50%; transition: all 0.3s ease-in-out; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); opacity: 1; }
.custom-marker.active .custom-marker-dot, 
.yNHHyP-marker-view.active .custom-marker-dot { transform: scale(0) !important; opacity: 0 !important; visibility: hidden !important; }
.custom-marker-logo-container { position: absolute; top: 0; left: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: pointer; transition: all 0.3s ease-in-out; opacity: 0; visibility: hidden; }
.custom-marker.active .custom-marker-logo-container,
.yNHHyP-marker-view.active .custom-marker-logo-container { display: flex !important; transform: translate(-50%, -50%); opacity: 1 !important; visibility: visible !important; }
.marker-location-text { font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 600; background-color: var(--yolk-blue); color: var(--yolk-off-white); padding: 4px 12px; border-radius: 20px; border: 1px solid var(--yolk-yellow); box-shadow: 0 2px 4px rgba(0,0,0,0.3); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); margin-bottom: -8px; position: relative; z-index: 1; text-transform: uppercase; white-space: nowrap; }
.custom-marker-logo-container img { max-width: 56px; max-height: 48px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.35)); transition: transform 0.2s ease-in-out; }
.custom-marker.boynton-beach .marker-location-text { margin-bottom: -1px; }
.user-marker-container { position: relative; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: none; border: none; }
.user-marker-dot { width: 32px; height: 32px; border-radius: 50%; background-color: var(--yolk-blue); border: 2px solid var(--yolk-yellow); box-shadow: 0 0 0 2px var(--yolk-blue); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4)); }
.user-marker-egg { position: absolute; width: 32px; height: 32px; transition: transform 0.4s ease-in-out; pointer-events: none; }
.user-marker-egg.flipped { transform: scaleX(-1); }
.gm-style-iw + div, .gm-ui-hover-effect, .gm-style-iw button[aria-label="Close"] { display: none !important; }
.gm-style-iw { background: transparent !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; border: 0 !important; }
.bubble-cloud { position: absolute; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; line-height: 1; padding: 8px 12px; border-radius: 16px; white-space: nowrap; pointer-events: none; z-index: 1; --arrow-size: 12px; opacity: 0; transform: scale(0.95) translateY(-5px); transition: opacity 0.2s ease-out, transform 0.2s ease-out; will-change: opacity, transform; background: var(--bubble-bg); color: var(--bubble-fg); border: 2px solid var(--bubble-outline); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35); }
.bubble-cloud.visible { opacity: 1; transform: scale(1) translateY(0); }
.bubble-cloud.location-default { --bubble-bg: var(--yolk-yellow); --bubble-fg: var(--yolk-blue); --bubble-outline: var(--yolk-blue); }
.bubble-cloud.location-active { --bubble-bg: var(--yolk-blue); --bubble-fg: var(--yolk-off-white); --bubble-outline: var(--yolk-yellow); box-shadow: 0 0 0 2px var(--yolk-blue), 0 4px 8px rgba(0, 0, 0, 0.35); }
.bubble-cloud .bubble-arrow { position: absolute; width: var(--arrow-size); height: var(--arrow-size); z-index: -1; }
.bubble-cloud .bubble-arrow::before, .bubble-cloud .bubble-arrow::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: rotate(45deg); border-radius: 2px; }
.bubble-cloud .bubble-arrow::before { background-color: var(--bubble-outline); }
.bubble-cloud.location-active .bubble-arrow::before { background-color: var(--yolk-blue); }
.bubble-cloud.location-active .bubble-arrow::after { background-color: var(--yolk-yellow); transform: scale(0.7) rotate(45deg); box-shadow: 0 0 0 2px var(--yolk-blue); }
.bubble-cloud[data-pos="above"] .bubble-arrow { bottom: -7px; left: 50%; transform: translateX(-50%); }
.market-cluster-overlay { background-color: var(--yolk-blue); color: var(--yolk-yellow); border: 2px solid var(--yolk-yellow); border-radius: 8px; padding: 8px 12px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.3); transition: all 0.2s ease-in-out; transform: translate(-50%, -50%); }
.market-cluster-overlay:hover { background-color: var(--yolk-yellow); color: var(--yolk-blue); transform: translate(-50%, -50%) scale(1.05); }


/* --- RESPONSIVE & MEDIA QUERIES --- */
/* --- CONSOLIDATED: Wide Screen & Landscape Layout --- */
@media screen and (orientation: landscape) and (max-height: 600px), screen and (min-width: 768px) {

    /* --- Base Layout: Split View --- */
    .combined-view-container {
        flex-direction: row;
        height: auto;
        min-height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
    }

    .map-section {
        width: 50%;
        height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
        min-height: unset;
        max-height: unset;
        border-bottom: none;
        border-right: 2px solid var(--yolk-yellow);
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--header-height, 58px) + var(--safe-area-inset-top, 0px));
        z-index: 900;
    }

    .map-section::after {
        display: none; /* Hide shadow gradient in landscape */
    }

    .locations-section {
        width: 50%;
        flex: 1;
        overflow-y: auto;
        height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
    }

    /* --- FIX: Edge-to-Edge for Locations View ONLY --- */
    /*
      This highly specific rule ensures that ONLY the main locations view breaks out of the
      default content constraints to fill the full width of the screen.
    */
    body.home-view-active .app-wrapper {
        max-width: none;
    }

    /*
      This rule specifically removes the side padding from the locations list itself,
      but does NOT affect the padding on the menu pages.
    */
    body.home-view-active .locations-section {
        padding-left: 0;
        padding-right: 0;
    }

    /* --- Constrained Layout for Menu Pages --- */
    /*
      This rule ensures that when the menu view is active in landscape,
      its content remains comfortably constrained in the center.
    */
    .il-menu-container,
    .imgbox {
        max-width: 800px;
    }
}

/* Further adjustments for very large screens */
@media screen and (min-width: 1024px) {
    .map-section {
        width: 60%;
    }
}

/* For mobile devices in portrait mode */
@media screen and (orientation: portrait) and (max-width: 767px) {
    .combined-view-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px));
    }
    .map-section {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
        width: 100%;
        flex-shrink: 0;
        border-bottom: 2px solid var(--yolk-yellow);
        border-right: none;
        position: sticky;
        top: calc(var(--header-height, 58px) + var(--safe-area-inset-top, 0px));
        z-index: 900;
    }
    .map-section::after {
        content: '';
        position: absolute;
        bottom: -16px;
        left: 0;
        right: 0;
        height: 16px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent);
        z-index: 899;
        pointer-events: none;
    }
}

/* CRITICAL: iPads in portrait mode - MUST override landscape rules above */
@media screen and (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
    html.is-ipad .combined-view-container,
    body html.is-ipad .combined-view-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: calc(100vh - var(--header-height, 58px) - var(--safe-area-inset-top, 0px)) !important;
    }
    html.is-ipad .map-section,
    body html.is-ipad .map-section {
        height: 40vh !important;
        min-height: 250px !important;
        max-height: 350px !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        border-bottom: 2px solid var(--yolk-yellow) !important;
        border-right: none !important;
        position: sticky !important;
        top: calc(var(--header-height, 58px) + var(--safe-area-inset-top, 0px)) !important;
        z-index: 900 !important;
    }
    html.is-ipad .map-section::after,
    body html.is-ipad .map-section::after {
        content: '' !important;
        position: absolute !important;
        bottom: -16px !important;
        left: 0 !important;
        right: 0 !important;
        height: 16px !important;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent) !important;
        z-index: 899 !important;
        pointer-events: none !important;
    }
    html.is-ipad .locations-section,
    body html.is-ipad .locations-section {
        width: 100% !important;
        flex: 1 !important;
    }
}

/* --- DEBUG --- */
#debug-badge{
    position: fixed;
    bottom: 8px;
    right: 8px;
    z-index: 99999;
    background: rgba(0,0,0,0.65);
    color: #fdd52d;
    border: 1px solid #fdd52d;
    border-radius: 8px;
    padding: 6px 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    pointer-events: none;
}
/* Extra UI classes for waitlist/inline/hours */
.waitlist-status.closed-text { color: #e74c3c; }
.no-underline { text-decoration: none; }
.inline-sep { margin: 0 4px; }
.hours-inline { white-space: nowrap; }

/* ==== Card alignment refinements ==== */
/* Right column: make CLOSED state align exactly like waitlist/placeholder */
.estimates-wrapper { display: flex; align-items: center; justify-content: center; }
.waitlist-estimates-container { display: block; position: relative; text-align: center; }
.waitlist-estimates-container .waitlist-status { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Left column: keep top rows at top-left; push address+phone to bottom-left */
.card-main-info { min-height: 120px; }
.card-main-info .address-text { margin-top: auto; }
.card-main-info .location-phone-number { margin-top: 4px; }

/* ==== TRANSLUCENT BACKGROUNDS FOR ALL MODALS ==== */
/* Modal backgrounds are now translucent via .modal-overlay backdrop-filter */
/* Content remains fully opaque for readability */

/* ==== FAVORITE MODAL — unify theme with other modals ==== */
/* Apply the styled theme even if the overlay doesn't carry .styled-modal-overlay */
#favoriteModal .modal-content,
#favorite-confirmation-modal .modal-content {
  background-color: var(--yolk-blue);
  color: var(--yolk-off-white);
  border: 2px solid var(--yolk-yellow);
}
#favoriteModal .modal-close-x,
#favorite-confirmation-modal .modal-close-x {
  color: var(--yolk-yellow);
}
/* Keep content spacing consistent with other modals */
#favoriteModal .modal-content .modal-actions .modal-button.primary,
#favorite-confirmation-modal .modal-content .modal-actions .modal-button.primary {
  background-color: var(--yolk-yellow);
  color: var(--yolk-blue);
  border-color: var(--yolk-yellow);
}
#favoriteModal .modal-content .modal-actions .modal-button.secondary,
#favorite-confirmation-modal .modal-content .modal-actions .modal-button.secondary {
  background-color: transparent;
  color: var(--yolk-yellow);
  border-color: var(--yolk-yellow);
}
/* --- FINAL ACCORDION MENU STYLES (v2) --- */

/* 1. Style the section header for clicks and layout */
.il-section-header {
  display: flex;
  align-items: center;
  gap: 12px; /* Space between icon and text */
  cursor: pointer;
  position: relative; /* For a cleaner tap target */
  padding: 12px 0;
}

/* 2. Style the content body for the expand/collapse animation */
.il-section-body {
  /* This hides the content by default */
  max-height: 0;
  overflow: hidden;
  /* Smooth transition for hiding */
  transition: max-height 0.4s ease-out; 
}

/* 3. This is the key: When the parent section has the .open class, expand the body */
.il-menu-section.open .il-section-body {
  /* Set a large max-height to reveal the content */
  max-height: 3000px; /* Adjust if you have extremely long sections */
  /* A slightly slower, smoother transition for the opening animation */
  transition: max-height 0.7s ease-in-out; 
}

/* 4. Style the interactive arrow icon */
.category-dropdown-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Smooth rotation for the arrow */
  transition: transform 0.3s ease-in-out;
}

/* 5. Rotate the arrow when the section is open */
.il-menu-section.open .category-dropdown-icon-wrapper {
  transform: rotate(180deg);
}

.category-title-text {
  flex-grow: 1; /* Ensures text takes available space */
}
/* --- FIX: Consistent Dropdown Styling & Animations (v2) --- */

/* 1. Apply the transparent, blurred style to menu dropdowns (excluding hours dropdown) */
#app-menu-dropdown,
#category-flyout-menu {
  background: rgba(16, 22, 78, 0.6); /* Further increased transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 213, 45, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* 2. Style the hours summary line to include the chevron icon */
.hours-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 8px;
  cursor: pointer;
}

.hours-chevron {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.3s ease-in-out;
}

/* Rotate the chevron when the dropdown is open */
.hours-details.open .hours-chevron {
  transform: rotate(180deg);
}

/* 3. Style the hours dropdown for a fade-in animation */
.hours-details .hours-dropdown-content {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(100% + 6px);
  z-index: 9999;
  padding: 10px 12px;
  background: rgba(16, 22, 78, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(253, 213, 45, 0.3);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);

  /* Animation initial state: hidden */
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.95) translateY(-10px);
  transform-origin: top center;
  pointer-events: none !important;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
}

/* 4. Animation final state: visible */
.hours-details .hours-dropdown-content.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) translateY(0);
  pointer-events: auto !important;
}

/* 5. Styling for the rows inside the dropdown */
.hours-menu-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}
/* --- FINAL: Waitlist Layout for Cards & Modals (v8) --- */

/* 1. CARD: Container styles to support the animation */
.waitlist-estimates-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 2. CARD: Styles for the individual animated items */
.waitlist-estimates-container .estimate-item {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.waitlist-estimates-container .estimate-item.visible {
    opacity: 1; /* Toggled by JS to show the item */
}
.waitlist-estimates-container .estimate-label {
    order: 1; font-size: 0.75rem; margin-bottom: 4px;
}
.waitlist-estimates-container .estimate-value {
    order: 2; font-size: 1rem;
}

/* 3. MODAL: Widen the modal content area to prevent waitlist cutoff */
#location-info-modal .modal-content {
    width: 95%;
    max-width: 500px;
}

/* 4. MODAL: Reset and simplify waitlist container */
#modal-info-waitlist-estimates {
    display: block !important;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center !important;
}

.modal-waitlist-header {
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* 5. MODAL: Simple 4-column grid */
#modal-info-waitlist-estimates .modal-waitlist-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

/* 6. MODAL: Styles for the cells and dividers */
.modal-waitlist-grid .party-size,
.modal-waitlist-grid .wait-time {
    text-align: center;
    padding: 6px 4px;
}

/* Add left border to create dividers (except first column) */
.modal-waitlist-grid .party-size:nth-child(2),
.modal-waitlist-grid .party-size:nth-child(3),
.modal-waitlist-grid .party-size:nth-child(4),
.modal-waitlist-grid .wait-time:nth-child(6),
.modal-waitlist-grid .wait-time:nth-child(7),
.modal-waitlist-grid .wait-time:nth-child(8) {
    border-left: 1px solid rgba(251, 247, 234, 0.3);
}
.modal-waitlist-grid .party-size {
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.8;
    padding-bottom: 10px;
    padding-top: 2px;
}
.modal-waitlist-grid .wait-time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--yolk-yellow);
    white-space: nowrap;
    padding-top: 2px;
    padding-bottom: 6px;
}

/* 7. MODAL: Handle single message states like "No Wait!" */
#modal-info-waitlist-estimates .modal-waitlist-single-item {
    text-align: center;
    width: 100%;
}

