/* ==========================================================================
   1. DIRECTORY GRID SETUP
   ========================================================================== */
.business-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 25px !important;
    padding: 20px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Forces the responsive modifiers to follow the unified centering framework */
.business-grid.directory-layout,
.business-grid.wide-layout,
.business-grid#mainGrid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 25px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Controls the tracks so cards stack side-by-side or center perfectly when alone */
.business-grid .biz-card {
    flex: 0 1 380px !important; /* Prevents stretching, allows 1, 2, or 3 down to mobile */
    width: 100% !important;
}

/* ==========================================================================
   2. BIZ CARD STYLING
   ========================================================================== */
.biz-card {
    width: 100%;
    max-width: 380px;
    background: rgba(17, 37, 62, 0.9);
    border: 4px solid rgba(184, 140, 92, 0.3);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    text-decoration: none;
    color: inherit;
}

.biz-card:hover {
    transform: translateY(-5px);
    border-color: #ceb888;
    background: rgba(17, 37, 62, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.biz-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    margin-bottom: 15px;
}

.biz-tags {
    color: #ffffff; /* Changes tag text to white */
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.9;
}

.biz-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.biz-card:hover .biz-card-img {
    transform: scale(1.05);
}

.biz-info {
    text-align: center;         /* Centers all text inside the info area */
    display: flex;              /* Enables flexbox for child alignment */
    flex-direction: column;     /* Stacks the title and location vertically */
    align-items: center;        /* Centers the h2 and p tags horizontally */
}

.biz-info h2 {
    color: #ceb888 !important;  /* Keeps the signature gold color */
    margin: 10px 0;             /* Maintains vertical spacing */
    font-size: 1.2rem;          /* Your requested smaller font size */
}

.biz-location {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.biz-location i {
    color: #ceb888;
    margin-right: 5px;
}

/* ==========================================================================
   3. MEMBERSHIP GLOWS (Grid Cards)
   ========================================================================== */
.biz-card.verified-glow { border: 2px solid #ceb888 !important; animation: gold-shimmer 3s infinite ease-in-out; }
.biz-card.community-glow { border: 2px solid #bdc3c7 !important; animation: silver-shimmer 3s infinite ease-in-out; }
.biz-card.bronze-glow { border: 2px solid #a87e51 !important; animation: bronze-shimmer 3s infinite ease-in-out; }

/* ==========================================================================
   4. BUSINESS MODAL (Full Screen Layout)
   ========================================================================== */
.pub-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.pub-modal.show {
    display: flex !important;
}

.modal-content {
    background: #11253E;
    border: 2px solid #ceb888;
    border-radius: 20px;
    width: 95%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    text-align: center;
    color: white;
    margin: 0 auto;
    box-sizing: border-box;        /* 👈 Ensures padding doesn't swell the card width */

    /* Card Frame Restrictions */
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* 👈 REMOVES THE BOTTOM SCROLLBAR ENTIRELY */
    padding-right: 20px !important;
}

/* Custom Gold Scrollbar Styling for Card Container */
.modal-content::-webkit-scrollbar {
    width: 6px !important;
    display: block !important;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ceb888 !important;
    border-radius: 10px !important;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(17, 37, 62, 0.5) !important;
}

/* Modal Tier Border Colors */
.pub-modal.is-partner .modal-content { border-color: #ceb888 !important; animation: gold-shimmer 3s infinite ease-in-out; }
.pub-modal.is-free .modal-content { border-color: #bdc3c7 !important; animation: silver-shimmer 3s infinite ease-in-out; }
.pub-modal.is-bronze .modal-content { border-color: #a87e51 !important; animation: bronze-shimmer 3s infinite ease-in-out; }

/* ==========================================================================
   5. MODAL BADGES & TYPOGRAPHY
   ========================================================================== */

/* 1. RESTORE MAIN GRID: Fixes the preview page so badges look normal and don't scroll */
.biz-card .modal-verified-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    max-height: none !important;      /* Removes the tiny height from the main page */
    overflow: visible !important;     /* Removes the accidental scrollbar from the main page */
}

/* 2. TARGET THE ACTUAL MODAL: Directs the scrollbar inside the popup container */
.pub-modal .modal-verified-container,
.modal-content .modal-verified-container,
#businessModal .modal-verified-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 20px !important;

    /* Elegant container height restriction inside the popup */
    max-height: 110px !important;     /* Perfect height for stacking badges cleanly */
    overflow-y: auto !important;      /* Shows scrollbar ONLY when content overflows */
    overflow-x: hidden !important;
    padding-right: 8px !important;
    width: 100% !important;
}

/* 3. THEME-MATCHING GOLD SCROLLBAR FOR THE MODAL BOX */
.pub-modal .modal-verified-container::-webkit-scrollbar,
.modal-content .modal-verified-container::-webkit-scrollbar {
    width: 6px !important;
    display: block !important;
}

.pub-modal .modal-verified-container::-webkit-scrollbar-thumb,
.modal-content .modal-verified-container::-webkit-scrollbar-thumb {
    background: #ceb888 !important; /* Your signature gold */
    border-radius: 10px !important;
}

.pub-modal .modal-verified-container::-webkit-scrollbar-track,
.modal-content .modal-verified-container::-webkit-scrollbar-track {
    background: rgba(17, 37, 62, 0.5) !important;
    border-radius: 10px !important;
}

/* --- BADGE GRAPHICS --- */
.verified-badge-main {
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    width: max-content;
}

/* Tier Specific Colors */
.verified-badge-main.premium-badge,
.verified-badge-main.gold-badge {
    background: linear-gradient(45deg, #d4c095, #ceb888);
    color: #0a1625;
}

.verified-badge-main.community-badge,
.verified-badge-main.free-badge,
.verified-badge-main.silver-badge {
    background: linear-gradient(45deg, #bdc3c7, #95a5a6);
    color: #0a1625;
}

.verified-badge-main.bronze-badge {
    background: linear-gradient(45deg, #a87e51, #cd7f32);
    color: #fff;
}

.line-accent {
    height: 1px;
    width: 35px;
    background: #ceb888;
    opacity: 0.6;
    display: inline-block;
}

/* ==========================================================================
   6. MODAL ELEMENTS
   ========================================================================== */
.modal-img {
    width: 100% !important;        /* 👈 Forces the image to stay bounded by the card padding */
    height: auto !important;
    max-height: 250px !important;  /* Retains your original maximum constraint */
    aspect-ratio: 16 / 9 !important; /* 👈 Locks it to the standard widescreen look used on the grid */
    object-fit: cover !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(206, 184, 136, 0.3) !important;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .adv-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.adv-btn i {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #ceb888;
    cursor: pointer;
    z-index: 100;
}

/* ==========================================================================
   7. CUSTOM SCREEN SCROLLBAR (Far Right)
   ========================================================================== */
.pub-modal::-webkit-scrollbar { width: 10px; }
.pub-modal::-webkit-scrollbar-thumb {
    background: #ceb888;
    border-radius: 10px;
    border: 2px solid #000;
}
.pub-modal::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.5); }

/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */
@keyframes gold-shimmer {
    0%, 100% { box-shadow: 0 0 5px rgba(206, 184, 136, 0.2); }
    50% { box-shadow: 0 0 25px rgba(206, 184, 136, 0.6); }
}
@keyframes silver-shimmer {
    0%, 100% { box-shadow: 0 0 5px rgba(189, 195, 199, 0.2); }
    50% { box-shadow: 0 0 25px rgba(189, 195, 199, 0.6); }
}
@keyframes bronze-shimmer {
    0%, 100% { box-shadow: 0 0 5px rgba(168, 126, 81, 0.2); }
    50% { box-shadow: 0 0 25px rgba(168, 126, 81, 0.6); }
}

/* ==========================================================================
   9. SYSTEM FILTER BAR (Dropdown Config)
   ========================================================================== */
.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #11253E;
    border: 2px solid #ceb888;
    border-radius: 30px;
    margin: 20px auto;
    padding: 0;
    max-width: 300px;
    overflow: hidden;
    height: 44px; /* 👈 Reduced mobile height from 54px */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

.filter-bar.active {
    height: auto;
    max-height: 450px;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.filter-bar .filter-btn:first-child::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #ceb888;
    transition: transform 0.3s ease;
}

.filter-bar.active .filter-btn:first-child::after {
    transform: translateY(-50%) rotate(180deg);
}

.filter-btn, .reset-btn {
    width: 100% !important;
    background: transparent !important;
    color: white !important;
    border: none !important;
    border-bottom: 1px solid rgba(206, 184, 136, 0.1) !important;
    padding: 10px 25px !important; /* 👈 Shrunk from 15px to 10px to fit perfectly on mobile */
    text-align: center !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: block !important;
    font-size: 1rem !important;
    transition: 0.2s;
    position: relative;
}

.filter-btn:hover {
    background: rgba(206, 184, 136, 0.15) !important;
    color: #ceb888 !important;
}

.filter-btn.active-filter, .reset-btn {
    font-weight: 800;
    color: #ceb888 !important;
    background: rgba(206, 184, 136, 0.05) !important;
}

.filter-bar::-webkit-scrollbar {
    width: 5px;
}
.filter-bar::-webkit-scrollbar-thumb {
    background: #ceb888;
    border-radius: 10px;
}

.reset-btn {
    background: none;
    border: 1px solid #ceb888;
    color: #ceb888;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    display: none;
}

.reset-btn:hover {
    background: #ceb888;
    color: #11253e;
}

#no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(17, 37, 62, 0.4);
    border: 1px dashed rgba(206, 184, 136, 0.3);
    border-radius: 15px;
    display: none;
}

#modalWeb[href^="mailto:"] {
    background: #ceb888 !important;
    color: #11253e !important;
}

#modalPhone[href^="tel:07909"] {
    background: #25D366 !important; /* WhatsApp Green */
    color: white !important;
}

/* ==========================================================================
   10. WEATHER & ADVANCED PAGES GLOBAL STRUCTURAL RULES
   ========================================================================== */
.weather-hero-section {
    display: flex;
    justify-content: center;
    padding: 100px 20px 20px 20px;
}

.business-grid#mainGrid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.biz-card.weather-card {
    width: 100% !important;
    max-width: 1000px;
    cursor: default;
    border: none;
    background: none;
    margin: 0;
}

.biz-card.weather-card:hover {
    transform: none;
    box-shadow: none;
    background: none;
}

.news-card-body {
    width: 100%;
    margin: 0;
    border-left: 4px solid #ceb888;
    background: rgba(17, 37, 62, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.card-inner-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(206, 184, 136, 0.2);
    padding-bottom: 15px;
}

.card-inner-header h2 {
    color: white !important;
    margin: 10px 0;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    text-align: left;
}

.card-lead-text {
    color: #f4f4f4;
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
}

.card-inner-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(206, 184, 136, 0.1);
    padding-top: 15px;
}

.timestamp-text {
    color: #ceb888;
    font-size: 0.8rem;
    margin: 0;
    font-weight: bold;
}

.external-report-link {
    color: #ceb888;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.8;
}

.external-report-link:hover {
    opacity: 1;
}

#no-results-message h3 {
    color: #ceb888;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.no-results-icon {
    font-size: 3rem;
    color: #ceb888;
    margin-bottom: 20px;
    opacity: 0.5;
}

#no-results-message .cta-secondary {
    padding: 10px 30px;
}

.desktop-branding-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 60px;
    margin-bottom: 40px;
}

.desktop-badge-pill {
    color: #ceb888;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    border: 1px solid rgba(206, 184, 136, 0.4);
    border-radius: 40px;
    background: rgba(206, 184, 136, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(206, 184, 136, 0.1);
}

.desktop-badge-pill i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(206, 184, 136, 0.5));
}

.branding-text-main {
    opacity: 0.9;
    font-size: 0.9rem;
    white-space: nowrap;
}

.branding-divider {
    width: 1px;
    height: 25px;
    background: rgba(206, 184, 136, 0.3);
}

.branding-badge-highlight {
    background: #ceb888;
    color: #11253e;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(206, 184, 136, 0.3);
    display: inline-block;
}

.branding-badge-highlight.stay-badge {
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-bar .back-nav-btn {
    text-decoration: none;
    display: inline-block;
}

.member-since-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #e6d5b3;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 12px;
    letter-spacing: 1.2px;
}

.search-header-container {
    max-width: 1000px;
    width: 100%;
    margin: 0;
    border: 2px solid #ceb888;
    background: rgba(17, 37, 62, 0.95);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
}

/* ==========================================================================
   11. COOKIE BANNER UI
   ========================================================================== */
#wyc-cookie-banner {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: #11253e !important;
    border: 2px solid #ceb888 !important;
    padding: 20px;
    border-radius: 12px;
    z-index: 999999 !important;
    box-shadow: 0 10px 35px rgba(0,0,0,0.6);
    box-sizing: border-box;
    font-family: sans-serif;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.wyc-cookie-text h4 {
    color: #ceb888 !important;
    margin: 0 0 6px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wyc-cookie-text p {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
}

.wyc-cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wyc-cookie-btn-accept {
    background-color: #ceb888 !important;
    color: #11253e !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wyc-cookie-btn-accept:hover {
    background-color: #e5cd9b !important;
}

.wyc-cookie-btn-decline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wyc-cookie-btn-decline:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

/* ==========================================================================
   12. MOBILE & DESKTOP RESPONSIVE RESPONSES (Unified System)
   ========================================================================== */

/* --- Default Fallback Hidden Elements --- */
.text-mobile {
    display: none !important;
}

/* --- Responsive Layout for Large Screen Media Views (Desktop) --- */
@media screen and (min-width: 1024px) {
    /* 1. Business Directory Layout (Centered Flex) */
    .business-grid.directory-layout {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 20px !important;
    }

    /* 2. Weather & News Layout (Single Center Column) */
    .business-grid.wide-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
        padding: 20px !important;
    }

    /* Move the filter box up or down dynamically on Desktop */
    section[style*="display: flex"],
    .weather-hero-section {
        padding-top: 100px !important;
        padding-bottom: 10px !important;
    }

    .business-grid {
        padding-top: 0px !important;
        margin-top: 20px !important;
    }
}

/* --- Responsive Layout for Mid-Tier Screen Views (Tablets) --- */
@media (max-width: 1024px) {
    .business-grid.directory-layout {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

/* --- Responsive Layout for Standard Screen Views (Mobile Viewports) --- */
@media screen and (max-width: 1023px) {
    /* Tighten absolute top page space margins on smaller windows */
    section[style*="display: flex"],
    .weather-hero-section {
        padding: 10px 15px 0px 15px !important;
    }

    /* Standardized transparent box wrappers on mobile layouts */
    .search-header-container {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 5px 0 !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
    }

    /* Pull cards instantly flush beneath the collapsed/expanded bar row */
    .business-grid {
        padding-top: 0px !important;
        margin-top: -5px !important;
    }
}

/* --- Responsive Layout for Small Screen Views (Mobile / Pop-ups) --- */
@media (max-width: 768px) {
    .business-grid.directory-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .modal-content {
        padding: 25px 15px;
    }

    .text-desktop {
        display: none !important;
    }

    .text-mobile {
        display: inline !important;
    }

    .filter-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .mobile-inline-flex {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
    }

    .mobile-divider {
        width: 1px;
        height: 16px;
        background: rgba(206, 184, 136, 0.4);
    }

    .mobile-badge {
        background: #ceb888;
        color: #11253e;
        padding: 2px 10px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 800;
        box-shadow: 0 0 10px rgba(206, 184, 136, 0.3);
        white-space: nowrap;
    }
}

/* --- Responsive Layout for Action Buttons on Small Mobile Modals --- */
@media (max-width: 480px) {
    .modal-actions .adv-btn {
        font-size: 0.75rem !important;
        padding: 0 5px !important;
    }

    .adv-btn i {
        width: 25px !important;
        height: 25px !important;
        margin-right: 6px !important;
        font-size: 0.8rem;
    }
}

/* --- Responsive Height Constraints for Inner Modal Images on Mobile Devices --- */
@media (max-width: 600px) {
    .modal-img {
        max-height: 200px;
        margin-bottom: 15px;
        object-position: center;
    }

    .modal-content {
        padding: 10px;
        width: 95%;
    }
}