/* ==========================
   GLOBAL
========================== */

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

body {
    background: #050505;
    color: #ffffff;
    font-family: Inter, Arial, sans-serif;
    min-height: 100vh;
}

/* ==========================
   LAYOUT
========================== */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 40px;
}

/* ==========================
   HEADER
========================== */

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: #9ca3af;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* ==========================
   SEARCH
========================== */

.search-wrapper {
    margin-bottom: 35px;
}

.smart-search-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    margin-top: 10px;
}

.smart-search-summary:empty {
    display: none;
}

.smart-search-label {
    color: var(--studio-muted, #66757c);
    font-size: .82rem;
    font-weight: 600;
}

.smart-search-chip {
    padding: 5px 9px;
    border: 1px solid #b9d6e2;
    border-radius: 999px;
    background: #eef8fc;
    color: #005f86;
    font-size: .78rem;
    font-weight: 700;
}

.synonym-chip {
    border-color: #d7dce0;
    background: #f6f7f8;
    color: #27343a;
}

#search {
    width: 100%;
    padding: 22px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.03);
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: .25s;
}

#search::placeholder {
    color: #9ca3af;
}

#search:focus {
    outline: none;
    border-color: rgba(255,255,255,.35);
}

/* ==========================
   FILTER BAR
========================== */

.filter-bar {

    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:25px;

}

.dropdown {

    position: relative;

    width: 220px;

    flex-shrink: 0;

}

/* ==========================
   CLEAR FILTERS
========================== */

#clearFilters{

    display:flex;

    align-items:center;

    justify-content:center;

    height:56px;

    padding:0 28px;

    background:transparent;

    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

#clearFilters:hover{

    background:#202020;

    border-color:rgba(255,255,255,.15);

}

/* ==========================
   ACTIVE FILTERS
========================== */

#activeFilters {

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:15px;

}

.filter-chip {

    background:white;

    color:black;

    border-radius:999px;

    padding:8px 14px;

    font-size:.9rem;

    font-weight:600;

}

/* ==========================
   RESULT COUNT
========================== */

#resultCount {

    color:#9ca3af;

    font-size:.95rem;

    margin-bottom:18px;

}

/* ==========================
   RESULTS
========================== */

#results {

    display:flex;

    flex-direction:column;

    gap:25px;

}

.load-more-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 0 24px;
    color: var(--studio-muted, #66757c);
    font-size: .9rem;
}

.load-more-btn {
    min-width: 150px;
    padding: 12px 22px;
    border: 1px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.load-more-btn:hover {
    background: #111;
    color: #fff;
}

/* ==========================
   MENU CARD
========================== */

.menu-item {
    padding: 24px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.menu-item:last-child{

    border-bottom:none;

}

.menu-item h3 {

    font-size:2rem;

    margin-bottom:12px;

}

.menu-item p {

    color:#c5c5c5;

    line-height:1.6;

}

/* ==========================
   ALLERGEN WARNING
========================== */

.allergen-warning {

    margin-top:14px;

    color:#ff5d5d;

    font-weight:700;

}

/* ==========================
   MOBILE
========================== */

@media (max-width:768px) {

    .container {

        padding:30px 20px;

    }

    h1 {

        font-size:2.5rem;

    }

    #search {

        font-size:1rem;

    }

    .filter-bar {

        flex-direction:column;

        align-items:stretch;

    }

    .dropdown-button {

        width:100%;

    }

    #clearFilters {

        width:100%;

    }

    .dropdown-content {

        width:100%;

    }

    .menu-item h3 {

        font-size:1.5rem;

    }

}

/* Empty State */

.empty-state{

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;

    padding:90px 20px;

}

.empty-icon{
    margin-bottom:24px;
}

.empty-icon img{
    width:160px;
    height:auto;
    display:block;
    margin:auto;
    opacity:.95;
    filter:drop-shadow(0 0 10px rgba(255,255,255,.08));
}

.empty-state h2{

    font-size:32px;

    margin-bottom:12px;

}

.empty-state p{

    color:#9ca3af;

    max-width:500px;

    line-height:1.7;

    margin-bottom:32px;

}

#emptyClearFilters{

    background:white;

    color:black;

    border:none;

    border-radius:999px;

    padding:14px 30px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

#emptyClearFilters:hover{

    transform:translateY(-2px);

    opacity:.9;

}

/* Lifestyle Tags */

.lifestyle-row{

    display:flex;
    flex-wrap:wrap;
    gap:12px;

    margin:18px 0;

}

.diet-tag{

    display:flex;
    align-items:center;
    gap:8px;

    font-size:.95rem;
    font-weight:600;

    color:#EAEAEA;

}

.dot{

    width:10px;
    height:10px;

    border-radius:50%;
}

.vegan .dot{
    background:#22c55e;
}

.vegetarian .dot{
    background:#84cc16;
}

.gluten .dot{
    background:#eab308;
}

.dairy .dot{
    background:#38bdf8;
}

/* Allergen Card */

.allergen-card{

    margin-top:22px;

    margin-bottom:10px;

    padding:20px;

    background:#161313;

    border:1px solid rgba(255,80,80,.25);

    border-radius:16px;

}

.allergen-title{

    color:#FF9A9A;

    font-weight:700;

    margin-bottom:14px;

    display:flex;

    align-items:center;

    gap:8px;

    letter-spacing:.3px;

}

.allergen-list{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.allergen-pill{

    padding:8px 14px;

    border-radius:999px;

    background:#231818;

    border:1px solid rgba(255,80,80,.18);

    color:#FFD2D2;

    font-size:.85rem;

    font-weight:600;

    transition:.2s;

}

.allergen-pill:hover{

    background:#2d1d1d;

    transform:translateY(-1px);

}

/* Modern Dropdown Options */

.filter-option{

    display:flex;

    align-items:center;

    gap:14px;

    padding:12px 16px;

    border-radius:10px;

    cursor:pointer;

    transition:.2s ease;

    color:#F3F4F6;

    font-size:.95rem;

}

.filter-option:hover{

    background:rgba(255,255,255,.06);

}

/* Dietary Dots */

.diet-dot{

    width:12px;
    height:12px;

    border-radius:50%;

    flex-shrink:0;

}

.vegan-dot{
    background:#22C55E;
}

.vegetarian-dot{
    background:#84CC16;
}

.gluten-dot{
    background:#FACC15;
}

.dairy-dot{
    background:#38BDF8;
}

/* Hide Default Checkbox */

.filter-option input[type="checkbox"]{

    appearance:none;
    -webkit-appearance:none;

    width:0;
    height:0;

    margin:0;
    padding:0;

    position:absolute;

    opacity:0;

}

/* Dropdown Menu */

.dropdown-content{

    position:absolute;

    top:calc(100% + 10px);

    left:0;

    min-width:280px;

    padding:12px;

    background:#121212;

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    box-shadow:
        0 12px 32px rgba(0,0,0,.45);

    backdrop-filter:blur(20px);

    display:none;

    z-index:100;

}

.dropdown-content.show{

    display:block;

    animation:dropdownFade .18s ease;

}

@keyframes dropdownFade{

    from{
        opacity:0;
        transform:translateY(-6px);
    }

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

}

.dropdown-button{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    min-width:210px;

    padding:14px 18px;

    background:#171717;

    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.dropdown-button:hover{

    background:#202020;

    border-color:rgba(255,255,255,.15);

}

.dropdown-button:focus{

    outline:none;

}

/* Meal Type Dots */

.meal-dot{

    width:12px;
    height:12px;

    border-radius:50%;

    flex-shrink:0;

}

.breakfast-dot{
    background:#F59E0B;
}

.lunch-dot{
    background:#3B82F6;
}

.hors-dot{
    background:#8B5CF6;
}

.dessert-dot{
    background:#EC4899;
}

.dressing-dot{
    background:#9CA3AF;
}

.facility-pill{

    background:#2A1A1A;

    color:#FF9A9A;

    border:1px solid rgba(255,90,90,.25);

    font-weight:600;

}

.copy-card-btn{

    height:44px;

    display:flex;
    align-items:center;
    gap:8px;

    padding:0 18px;

    background:#121212;

    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.2s ease;

}

.copy-card-btn:hover{

    background:#1B1B1B;

    border-color:rgba(255,255,255,.18);

}

.copy-card-btn i{

    font-size:14px;

    opacity:.9;

}

/* ==========================
   FAVORITE BUTTON
========================== */

.card-actions{

    display:flex;

    align-items:center;

    gap:8px;

    margin-top:20px;

    padding-bottom:40px;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.copy-card-btn{

    height:44px;

    display:flex;
    align-items:center;
    gap:8px;

    padding:0 18px;

    background:#121212;

    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.2s ease;

}

.copy-card-btn:hover{

    background:#1B1B1B;

    border-color:rgba(255,255,255,.18);

}

.favorite-btn:hover{

    background:#1B1B1B;

    border-color:rgba(255,255,255,.18);

    color:#ef4444;

    transform:translateY(-1px);

}

.favorite-btn i{

    font-size:16px;

    line-height:1;

    display:block;

}

/* Favorited State */

.favorite-btn{

    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#121212;

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    color:#B8B8B8;

    cursor:pointer;

    transition:.2s;

    padding:0;

    flex-shrink:0;

}

.favorite-btn.active{

    background:rgba(239,68,68,.12);

    border-color:rgba(239,68,68,.45);

}

.favorite-btn.active i{

    color:#ef4444;

}

#favoritesToggle{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    width:190px;

    height:56px;

    white-space: nowrap;

    padding:0 18px;

    background:#171717;

    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

    flex-shrink:0;

}

#favoritesToggle:hover{

    background:#202020;

    border-color:rgba(255,255,255,.15);

}

#favoritesToggle i{

    font-size:15px;

}

#favoritesToggle.active{

    background:rgba(239,68,68,.12);

    border-color:rgba(239,68,68,.45);

    color:#ef4444;

}

#favoritesToggle.active i{

    color:#ef4444;

}

/* ==========================
   FAVORITES MODE
========================== */

#favoritesBanner{

    display:none;

    width:100%;

    clear:both;

    margin:32px 0 40px;

    padding:28px 34px;

    background:#151515;

    border:1px solid #2b2b2b;

    border-radius:22px;

}

#favoritesBanner.show{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:40px;

}

.favorites-mode-header{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:20px;

    font-weight:700;

    color:#ffffff;

    margin-bottom:18px;

}

.favorites-mode-header{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:22px;

    font-weight:700;

    color:#ffffff;

}

.favorites-mode-header i{

    color:#ef4444;

    font-size:22px;

}

.favorites-mode-count{

    font-size:18px;

    font-weight:700;

    color:white;

    margin-bottom:12px;

    line-height:1.3;

}

.favorites-mode-text{

    font-size:15px;

    color:#9ca3af;

    line-height:1.45;

    max-width:260px;

}

.favorites-divider{

    width:1px;

    align-self:stretch;

    background:rgba(255,255,255,.08);

}

#downloadPdfButton,
#generateCardsButton,
#copyCollectionButton,
#showAllButton{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    min-width:210px;
    height:58px;

    padding:0 24px;

    background:#171717;
    color:white;

    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;

    font-size:15px;
    font-weight:600;

    cursor:pointer;
    transition:.2s;
}

#downloadPdfButton:hover,
#generateCardsButton:hover,
#copyCollectionButton:hover,
#showAllButton:hover{

    background:#202020;
    border-color:rgba(255,255,255,.18);

    transform:translateY(-1px);
}

#downloadPdfButton i,
#copyCollectionButton i{

    font-size:14px;
}

.favorites-actions{

    display:grid;

    grid-template-columns:repeat(2, max-content);

    gap:16px;

    align-content:center;

    justify-content:end;

}

/* ==========================================
   MOBILE FAVORITES MODE
========================================== */

@media (max-width:768px){

    #favoritesBanner.show{

        flex-direction:column;
        align-items:stretch;
        gap:24px;

        padding:24px 20px;
    }

    .favorites-divider{
        display:none;
    }

    .favorites-actions{
        display:grid !important;
        grid-template-columns:1fr !important;
        width:100%;
        gap:14px;
        justify-content:stretch;
    }

    #downloadPdfButton,
    #generateCardsButton,
    #copyCollectionButton,
    #showAllButton{
        width:100%;
        min-width:0;
    }

}

/* Keep the light preview overrides last in the cascade. */
.page-header .top-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:stretch;
    gap:12px;
    margin:0;
}
.page-header .download-btn,.page-header .buffet-builder-btn{
    width:100%;
    height:72px;
    padding:0 20px;
    border-radius:15px;
    font-size:14px;
    line-height:1.25;
}
.page-header .download-btn{border:1px solid var(--studio-blue);background:#fff;color:var(--studio-blue)}
.page-header .download-btn:hover{border-color:var(--studio-blue-dark);background:var(--studio-blue-soft)}
.page-header .buffet-builder-btn{border:1px solid var(--studio-blue);background:var(--studio-blue);color:#fff}
.page-header .buffet-builder-btn:hover{background:var(--studio-blue-dark)}
#desertPopup{border-color:var(--studio-line);background:#fff;color:var(--studio-ink);box-shadow:0 20px 40px rgba(17,24,28,.18)}
#desertPopup p{color:var(--studio-muted)}
#closePopup{color:var(--studio-muted)}
@media(max-width:768px){
    .page-header .top-buttons{grid-template-columns:1fr;gap:10px}
    .page-header .download-btn,.page-header .buffet-builder-btn{height:62px;font-size:14px}
}

/* ==========================================
   LIGHT HOMEPAGE PREVIEW
========================================== */

:root{
    --studio-blue:#00658f;
    --studio-blue-dark:#004f70;
    --studio-blue-soft:#eaf4f8;
    --studio-ink:#11181c;
    --studio-muted:#65737a;
    --studio-line:#d7e1e5;
    --studio-canvas:#f5f8f9;
}

body{
    background:#ffffff;
    color:var(--studio-ink);
}

.container{
    max-width:1240px;
    padding:64px 42px 90px;
}

.page-header{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(400px, .8fr);
    align-items:end;
    gap:48px;
    margin-bottom:38px;
    padding-bottom:34px;
    border-bottom:1px solid var(--studio-line);
}

.title-block h1{
    max-width:620px;
    margin-bottom:0;
    color:var(--studio-ink);
    font-size:clamp(2.65rem,4.6vw,4.25rem);
    line-height:.96;
    letter-spacing:-.055em;
}

.subtitle{
    margin:0;
    color:var(--studio-muted);
}

.top-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:0;
}

.download-btn,.buffet-builder-btn{
    width:100%;
    height:72px;
    padding:0 20px;
    border-radius:15px;
    font-size:14px;
    line-height:1.25;
}

.download-btn{
    border:1px solid var(--studio-blue);
    background:#fff;
    color:var(--studio-blue);
}

.download-btn:hover{
    border-color:var(--studio-blue-dark);
    background:var(--studio-blue-soft);
}

.buffet-builder-btn{
    border:1px solid var(--studio-blue);
    background:var(--studio-blue);
    color:#fff;
}

.buffet-builder-btn:hover{
    background:var(--studio-blue-dark);
}

.controls-panel{
    margin-bottom:24px;
    padding:24px;
    border:1px solid var(--studio-line);
    border-radius:22px;
    background:var(--studio-canvas);
}

.search-wrapper{margin-bottom:16px}

#search{
    padding:19px 22px;
    border:1px solid var(--studio-line);
    border-radius:14px;
    background:#fff;
    color:var(--studio-ink);
    font-size:1.05rem;
    backdrop-filter:none;
}

#search::placeholder{color:#8b979c}
#search:focus{border-color:var(--studio-blue);box-shadow:0 0 0 4px rgba(0,101,143,.09)}

.filter-bar{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto auto;gap:10px;margin:0}
.dropdown{width:auto;min-width:0}
.dropdown-button,#favoritesToggle,#clearFilters{
    width:100%;
    min-width:0;
    height:50px;
    padding:0 15px;
    border:1px solid var(--studio-line);
    border-radius:12px;
    background:#fff;
    color:var(--studio-ink);
    font-size:13px;
}
.dropdown-button:hover,#favoritesToggle:hover,#clearFilters:hover{border-color:var(--studio-blue);background:var(--studio-blue-soft)}
#favoritesToggle{width:auto;color:var(--studio-blue)}
#favoritesToggle.active{border-color:var(--studio-blue);background:var(--studio-blue);color:#fff}
#clearFilters{width:auto;color:var(--studio-muted)}

.dropdown-content{
    border:1px solid var(--studio-line);
    background:#fff;
    box-shadow:0 16px 34px rgba(17,24,28,.12);
}
.filter-option{color:var(--studio-ink)}
.filter-option:hover{background:var(--studio-blue-soft)}

.filter-chip{background:var(--studio-blue-soft);color:var(--studio-blue-dark)}
#resultCount{color:var(--studio-muted)}

.menu-item{border-bottom-color:var(--studio-line)}
.menu-item h3{color:var(--studio-ink)}
.menu-item p{color:#45545b}
.diet-tag{color:var(--studio-ink)}
.allergen-card{border-color:#f0c9c4;background:#fff8f7}
.allergen-title{color:#983f34}.allergen-pill{border-color:#efd0cb;background:#fff;color:#7a352d}.facility-pill{border-color:#efd0cb;background:#fbeae7;color:#7a352d}
.allergen-pill:hover{border-color:#e8b8b1;background:#fbeae7;color:#7a352d}

.copy-card-btn,.favorite-btn{
    border-color:var(--studio-line);
    background:#fff;
    color:var(--studio-ink);
}
.copy-card-btn:hover,.favorite-btn:hover{border-color:var(--studio-blue);background:var(--studio-blue-soft);color:var(--studio-blue)}
.card-actions{border-bottom-color:var(--studio-line)}

#favoritesBanner{border-color:var(--studio-line);background:var(--studio-blue-soft)}
.favorites-mode-header,.favorites-mode-count{color:var(--studio-ink)}
.favorites-mode-text{color:var(--studio-muted)}
.favorites-divider{background:var(--studio-line)}
#downloadPdfButton,#generateCardsButton,#copyCollectionButton,#showAllButton{border-color:var(--studio-blue);background:#fff;color:var(--studio-blue)}
#downloadPdfButton:hover,#generateCardsButton:hover,#copyCollectionButton:hover,#showAllButton:hover{background:var(--studio-blue);color:#fff}

.empty-state p{color:var(--studio-muted)}
#emptyClearFilters{background:var(--studio-blue);color:#fff}
#desertPopup{border-color:var(--studio-line);background:#fff;color:var(--studio-ink);box-shadow:0 20px 40px rgba(17,24,28,.18)}
#desertPopup p{color:var(--studio-muted)}
#closePopup{color:var(--studio-muted)}

@media(max-width:960px){
    .page-header{grid-template-columns:1fr;align-items:start;gap:26px}
    .top-buttons{max-width:620px}
    .filter-bar{grid-template-columns:repeat(3,1fr)}
    #favoritesToggle,#clearFilters{width:100%}
}

@media(max-width:768px){
    .container{padding:34px 20px 60px}
    .page-header{margin-bottom:24px;padding-bottom:24px}
    .top-buttons{grid-template-columns:1fr;gap:10px}
    .download-btn,.buffet-builder-btn{height:62px}
    .controls-panel{padding:15px;border-radius:17px}
    .filter-bar{grid-template-columns:1fr 1fr;gap:9px}
    .filter-bar .dropdown{width:100%}
}

/* ===========================
   DOWNLOAD PDF BUTTON
=========================== */

.download-btn{

    flex:2;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    height:64px;

    padding:0 28px;

    background:#171717;
    color:white;

    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;

    font-size:18px;
    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.pdf-button-row{
    margin-bottom:28px;   /* Creates space before the filters */
}

.download-btn:hover{

    background:#202020;
    border-color:rgba(255,255,255,.15);

    
}

/* ==========================================
   Desert Discovery
========================================== */

#cactusButton {
    position: fixed;
    bottom: 28px;
    right: 28px;

    width: 64px;
    height: 64px;

    background: transparent;
    border: none;
    padding: 0;

    cursor: pointer;

    opacity: 0.9;

    transition: all .35s ease;

    z-index: 9999;
}

#cactusButton img {
    width: 100%;
    height: 100%;
    display: block;

    image-rendering: pixelated;
}

#cactusButton:hover {
    opacity: 1;
    transform: scale(1.08);
}

#cactusButton:hover img {
    image-rendering: pixelated;
}

/* ==========================================
   Desert Discovery Popup
========================================== */

.hidden{
    display:none;
}

#desertPopup{

    position:fixed;

    bottom:80px;

    right:28px;

    width:320px;

    background:#171717;

    color:white;

    padding:22px;

    border-radius:18px;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:0 20px 40px rgba(0,0,0,.45);

    z-index:10000;

    animation:slideIn .25s ease;

}

#desertPopup h3{

    margin:0 0 12px;

    font-size:18px;

    font-weight:600;

}

#desertPopup p{

    margin:0;

    color:#d2d2d2;

    line-height:1.6;

}

#closePopup{

    position:absolute;

    top:12px;

    right:14px;

    background:none;

    border:none;

    color:#9ca3af;

    font-size:18px;

    cursor:pointer;

}

#closePopup:hover{

    color:white;

}

@keyframes slideIn{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.buffet-builder-btn{

    flex:1;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;

    height:64px;

    padding:0 28px;

    border:none;

    border-radius:18px;

    background:#2563eb;

    color:white;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.buffet-builder-btn i{
    font-size:18px;
    margin-right:4px;
}

.buffet-builder-btn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.top-buttons{

    display:flex;

    gap:18px;

    align-items:stretch;

    margin:28px 0;

}

/* ==========================================
   MOBILE BUTTON LAYOUT
========================================== */

@media (max-width:768px){

    .top-buttons{
        flex-direction:column;
        gap:16px;
    }

    .download-btn,
    .buffet-builder-btn{

        width:100%;
        flex:none;

        height:72px;

        justify-content:center;
        gap:16px;

        font-size:17px;

        padding:0 24px;
    }

    .download-btn i,
    .buffet-builder-btn i{
        font-size:28px;
    }

}

/* Final light-theme popup override. */
body #desertPopup{
    border-color:var(--studio-line);
    background:#fff;
    color:var(--studio-ink);
    box-shadow:0 20px 40px rgba(17,24,28,.18);
}
body #desertPopup p{color:var(--studio-muted)}
body #closePopup{color:var(--studio-muted)}

/* Traditional site navigation and responsive page actions. */
.site-nav{position:relative;min-height:70px;padding:0 max(24px,calc((100% - 1156px)/2));display:flex;align-items:center;justify-content:space-between;gap:30px;border-bottom:1px solid var(--studio-line);background:#fff}
.site-brand{color:var(--studio-ink);font-size:15px;font-weight:750;text-decoration:none;letter-spacing:-.02em}
.site-logo{position:absolute;left:calc(50% - 3px);top:50%;width:52px;height:52px;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%)}
.site-logo img{width:100%;height:100%;display:block;object-fit:contain;filter:brightness(0)}
.site-nav-links{display:flex;align-items:center;gap:6px}
.site-nav-links a{padding:10px 13px;border-radius:9px;color:var(--studio-muted);font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}
.site-nav-links a:hover,.site-nav-links a.active{background:var(--studio-blue-soft);color:var(--studio-blue)}
.page-header{grid-template-columns:minmax(0,1fr) auto}
.page-header .top-buttons{display:block;margin:0}
.page-header .download-btn{width:auto;min-width:190px;height:60px;padding:0 22px}
@media(max-width:768px){
    .site-nav{min-height:64px;padding:11px 18px;align-items:flex-start;flex-direction:column;gap:7px}
    .site-logo{display:none}
    .site-nav-links{width:100%;overflow-x:auto}.site-nav-links a{padding:8px 10px}
    .title-block{display:none}
    .page-header{display:block;margin-bottom:24px;padding-bottom:24px}
    .page-header .top-buttons{width:auto}
    .page-header .download-btn{width:auto;min-width:190px;height:56px}
    .filter-bar{grid-template-columns:1fr}.dropdown-content{min-width:100%}
    #favoritesToggle,#clearFilters{width:100%}
    .menu-item{padding-top:20px}.card-actions{flex-wrap:wrap}.copy-card-btn{flex:1;justify-content:center}
    #cactusButton,#desertPopup{display:none!important}
}

/* Final phone safeguards. */
@media(max-width:768px){
    html,body{max-width:100%;overflow-x:hidden}
    .container{width:100%;padding-inline:16px}
    .site-nav{padding-inline:16px}
    .site-nav-links{scrollbar-width:none}
    .site-brand,.site-nav-links a{display:inline-flex;align-items:center;min-height:44px}
    .page-header .download-btn{width:100%;min-width:0;min-height:52px;height:auto;padding:14px 18px}
    #search{font-size:16px;padding:18px}
    button,a,input{touch-action:manipulation}
    .menu-item,.menu-item *{min-width:0;overflow-wrap:anywhere}
}
