/* ===== Gulf Shores Mobile Responsive ===== */

/* --- Card grid (highlights/restaurants) desktop default --- */
.card-grid-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- Hamburger button (hidden on desktop) --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Tablets and below (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    /* Scale down large display fonts */
    .Featured-Restaurant [style*="font-size:100px"],
    .featured [style*="font-size:100px"],
    [style*="font-family:LEMONMILK"] {
        font-size: 48px !important;
    }
    [style*="font-size:71px"] {
        font-size: 36px !important;
    }
    [style*="font-size:29px"] {
        font-size: 18px !important;
    }

    /* Featured sections: reduce image height */
    .Featured-Restaurant > div[style*="height:550px"],
    .featured .container > div[style*="height:550px"] {
        height: 350px !important;
    }
}

/* ===== Mobile (max-width: 768px) ===== */
@media (max-width: 768px) {

    /* --- Header --- */
    .page-header {
        height: auto !important;
        min-height: 50px;
    }
    .page-header > .container {
        flex-wrap: wrap;
        min-height: 50px;
    }
    .header-pill {
        min-width: unset !important;
        max-width: 200px;
        position: relative !important;
        left: 0 !important;
    }
    .header-pill h1 {
        font-size: 14px !important;
    }

    /* Show hamburger, hide desktop nav */
    .hamburger-btn {
        display: block;
        position: absolute;
        right: 56px;
        top: 50%;
        transform: translateY(-50%);
    }
    .site-nav {
        display: none !important;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        background: #6dccd1;
        flex-direction: column;
        padding: 16px;
        gap: 12px !important;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .site-nav.mobile-open {
        display: flex !important;
    }
    .site-nav a {
        font-size: 16px !important;
        padding: 8px 0;
    }

    .hdr-fb {
        right: 8px !important;
    }
    .hdr-fb img {
        width: 32px !important;
        height: 32px !important;
    }

    /* --- Hero --- */
    .hero {
        min-height: 40vh !important;
        padding: 2rem 0 !important;
        background-size: cover !important;
        background-position: center !important;
    }
    .hero h1 {
        font-size: 2rem !important;
    }
    .hero h3 {
        font-size: 1.25rem !important;
    }
    .hero p {
        font-size: 1rem !important;
    }

    /* --- Featured / Admin-Features sections --- */
    .Featured-Restaurant,
    .featured .container {
        flex-direction: column !important;
        padding: 16px 0 !important;
        gap: 20px !important;
    }

    /* Image side: full width, shorter */
    .Featured-Restaurant > div[style*="width:50%"],
    .featured .container > div[style*="width:50%"] {
        width: 100% !important;
        height: 250px !important;
        border-radius: 0 !important;
    }

    /* Text side: remove min-width, add padding */
    .Featured-Restaurant > div[style*="min-width:400px"],
    .featured .container > div[style*="min-width:400px"] {
        min-width: unset !important;
        padding: 0 16px !important;
    }

    /* Scale fonts for mobile */
    .Featured-Restaurant [style*="font-size:100px"],
    .featured [style*="font-size:100px"],
    .Featured-Restaurant span[style*="LEMONMILK"],
    .featured span[style*="LEMONMILK"] {
        font-size: 32px !important;
        line-height: 1.1 !important;
        word-break: break-word;
    }
    .Featured-Restaurant [style*="font-size:71px"],
    .featured [style*="font-size:71px"],
    .preview-title-font {
        font-size: 28px !important;
    }
    .Featured-Restaurant [style*="font-size:29px"],
    .featured [style*="font-size:29px"] {
        font-size: 16px !important;
    }

    /* --- Highlights carousel (business cards: Milkshake Mommas, BOLO, etc.) --- */
    .highlights-carousel {
        padding: 2rem 0 !important;
    }
    .card-grid-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 56px !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    .highlight-container {
        padding-top: 70px !important;
    }
    .highlight-card {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }

    /* --- Topics carousel (circle cards: EAT, STAY, SHOP etc.) --- */
    .topics-carousel {
        padding: 2rem 0 !important;
    }
    .topics-carousel > .container > div {
        flex-direction: column !important;
        gap: 24px !important;
        align-items: center;
    }
    .topics-carousel a {
        max-width: 100% !important;
        width: 100%;
    }
    .topics-carousel a > div[style*="width:280px"] {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto 12px !important;
    }
    .topics-carousel h3 {
        font-size: 1.8rem !important;
    }

    /* --- Second hero (below topics carousel) --- */
    .hero .container > div[style*="max-width:40rem"] {
        max-width: 100% !important;
        padding: 1.5rem !important;
        text-align: left !important;
    }
    .hero .container[style*="justify-content:flex-end"] {
        justify-content: center !important;
    }

    /* --- Category boxes --- */
    .Categories,
    .Categories2 {
        flex-direction: column;
        height: auto !important;
        margin-top: 0 !important;
        gap: 16px !important;
        padding: 16px !important;
    }
    .category-box {
        width: 100% !important;
        max-width: 320px;
        height: 250px !important;
        margin: 0 auto !important;
    }

    /* --- Details rows --- */
    .details-row,
    .details-row-2 {
        flex-direction: column !important;
        margin: 20px auto !important;
        padding: 0 16px;
    }
    .details-row-2 .category-box-2 {
        width: 100% !important;
    }
    img.Layer-46 {
        width: 100% !important;
        height: auto !important;
    }

    /* --- Restaurant row --- */
    .restaurant-row {
        flex-direction: column !important;
        margin: 40px auto !important;
        width: 95% !important;
        gap: 280px !important;
    }
    .Rectangle-8 {
        height: auto !important;
        min-height: 400px;
        padding: 160px 24px 24px !important;
    }
    .Rectangle-8::before,
    .Rectangle-8::after {
        width: 250px !important;
        height: 250px !important;
        top: -125px !important;
    }

    /* --- Search bar --- */
    .Rectangle-9 {
        flex-direction: column !important;
        height: auto !important;
        padding: 20px !important;
        border-radius: 20px !important;
        margin: 40px auto !important;
        gap: 12px;
    }
    .Rectangle-10 {
        width: 100% !important;
        height: auto !important;
    }
    .Rectangle-11 {
        width: 100% !important;
    }
    .AMENITIES-6-restaurant-6 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    /* --- Specials & Offers --- */
    .Specials-and-Offers {
        height: auto !important;
        padding: 20px 16px !important;
    }
    .Discover-The-Flavors-Of-SPECIALS-OFFERS-With-more-than-200-r {
        position: relative !important;
        height: auto !important;
    }
    .Discover-The-Flavors-Of-SPECIALS-OFFERS-With-more-than-200-r .text-style-1 {
        font-size: 28px !important;
    }
    .Discover-The-Flavors-Of-SPECIALS-OFFERS-With-more-than-200-r .text-style-2 {
        font-size: 36px !important;
    }

    /* --- Footer --- */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 0 16px !important;
    }
    #column-2,
    #column-3 {
        transform: none !important;
    }
    .stats-container {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 16px !important;
        text-align: center;
    }
    .stat-item:first-child {
        text-align: center;
    }
    .footer-bottom-container {
        flex-direction: column !important;
        gap: 8px;
        text-align: center;
    }
    .footer-main {
        padding: 30px 0 !important;
    }

    /* --- General overflow prevention --- */
    body {
        overflow-x: hidden;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Card grid (listings pages) */
    .gulf-bucket-page__items {
        grid-template-columns: 1fr !important;
        padding: 0 16px;
    }
}

/* ===== Small phones (max-width: 480px) ===== */
@media (max-width: 480px) {
    .header-pill {
        max-width: 160px;
    }
    .header-pill h1 {
        font-size: 12px !important;
    }
    .Featured-Restaurant span[style*="LEMONMILK"],
    .featured span[style*="LEMONMILK"],
    .Featured-Restaurant [style*="font-size:100px"],
    .featured [style*="font-size:100px"] {
        font-size: 24px !important;
    }
    .hero h1 {
        font-size: 1.5rem !important;
    }
}
