/* --- 1. DIRECTORY GRID SETUP --- */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    justify-content: center;
    justify-items: center;
}

/* --- 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;
}
/* --- Update in cards2.css --- */
.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.9);
    z-index: 10000;
    backdrop-filter: blur(8px);

    /* Scroll Logic: Bar is now on far right of screen */
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    overflow-y: auto;
}

.pub-modal.show { display: flex !important; }

.modal-content {
    background: #11253E;
    border: 2px solid #ceb888;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    padding: 40px;
    position: relative;
    text-align: center;
    color: white;
    margin: 0 auto 40px auto; /* Margin bottom allows scrolling past the card */
}

/* 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 --- */
.modal-verified-container { display: none; margin-bottom: 25px; }

/* Updated Base Badge Styling */
.verified-badge-main {
    padding: 8px 24px;
    border-radius: 25px; /* Increased for a more rounded, modern look */
    font-size: 1.1rem;   /* Increased for better visibility */
    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);
}

/* 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; }

/* --- 6. MODAL ELEMENTS --- */
.modal-img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Adjust this value to make the image taller or shorter */
    aspect-ratio: 4 / 3; /* You can change this to 4 / 3 for a squarer look */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(206, 184, 136, 0.3);
}

.modal-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
/* Reduce Modal Width */
.modal-content {
    background: #11253E;
    border: 2px solid #ceb888;
    border-radius: 20px;
    width: 90%;
    max-width: 450px; /* Reduced from 550px */
    padding: 30px;
    position: relative;
    text-align: center;
    color: white;
    margin: 0 auto 40px auto;
}
.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; /* Reduced slightly from 12px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;  /* Reduced from 35px to save space on mobile */
    height: 30px; /* Reduced from 35px */
    flex-shrink: 0;
}

/* Specific Mobile Fix */
@media (max-width: 480px) {
    .modal-actions .adv-btn {
        font-size: 0.75rem !important; /* Makes text smaller so it fits the box */
        padding: 0 5px !important;    /* Tightens the side padding */
    }

    .adv-btn i {
        width: 25px !important;  /* Smaller icon box for small screens */
        height: 25px !important;
        margin-right: 6px !important; /* Moves icon closer to text */
        font-size: 0.8rem;
    }
}

.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. RESPONSIVE --- */
@media (max-width: 1024px) { .business-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .business-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 25px 15px; }
}
/* --- CLICKABLE DROPDOWN TRANSFORMATION --- */
.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: 54px; /* Collapsed state */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1000;
}

/* Expanded state triggered by JavaScript */
.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);
}

/* Arrow indicator - absolute positioning keeps the text centered */
.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;
}

/* Flip the arrow when the menu is active */
.filter-bar.active .filter-btn:first-child::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Styling buttons as list items */
.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: 15px 25px !important;
    text-align: center !important; /* Changed from left to center */
    border-radius: 0 !important;
    margin: 0 !important;
    display: block !important;
    font-size: 1rem !important;
    transition: 0.2s;
    position: relative; /* Essential for the absolute arrow to align to the button */
}

.filter-btn:hover {
    background: rgba(206, 184, 136, 0.15) !important;
    color: #ceb888 !important;
}

/* Highlighted state for the selected/All button */
.filter-btn.active-filter, .reset-btn {
    font-weight: 800;
    color: #ceb888 !important;
    background: rgba(206, 184, 136, 0.05) !important;
}

/* Custom scrollbar for long lists of places */
.filter-bar::-webkit-scrollbar {
    width: 5px;
}
.filter-bar::-webkit-scrollbar-thumb {
    background: #ceb888;
    border-radius: 10px;
}

/* Reset Button Specifics */
.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; /* Controlled by JS to show only when filtered */
}

.reset-btn:hover {
    background: #ceb888;
    color: #11253e;
}

/* No Results Message UI */
#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; /* Shown via JS */
}
/* Styling for the Email/WhatsApp actions in the modal */
#modalWeb[href^="mailto:"] {
    background: #ceb888 !important;
    color: #11253e !important;
}

#modalPhone[href^="tel:07909"] {
    background: #25D366 !important; /* WhatsApp Green */
    color: white !important;
}
/* --- UPDATED MEMBER SINCE STYLING --- */
.member-since-line {
    display: flex;           /* Added to align spans and text */
    align-items: center;
    justify-content: center;
    gap: 15px;               /* Space between lines and text */
    color: #e6d5b3;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 12px;
    letter-spacing: 1.2px;
}

.line-accent {
    height: 1px;
    width: 35px;
    background: #ceb888;
    opacity: 0.6;
    display: inline-block;  /* Essential: ensures the line renders */
}

/* --- Mobile Adjustment for Pop-up Image --- */
@media (max-width: 600px) {
    .modal-img {
        max-height: 200px; /* Reduced from 300px for better mobile fit */
        margin-bottom: 15px;
        object-position: center; /* Ensures the best part of the photo stays visible */
    }

    .modal-content {
        padding: 10px; /* Slightly tighter padding gives more room for content */
        width: 95%;    /* Uses more of the screen width on tiny devices */
    }
}
/* --- Search Header Container Layout --- */
.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;
}

/* Mobile responsive styles */
@media screen and (max-width: 1023px) {
    .search-header-container {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        backdrop-filter: none !important;
    }

    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-bar a.filter-btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
}
 #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;
    }

   @media (max-width: 1023px) {
        /* Reduce the massive 100px top padding pushing the filter box down */
        section[style*="display: flex"] {
            padding: 5px 15px 10px 15px !important;
        }

        /* Reduce the inside padding of the filter box container */
        .search-header-container {
            padding: 15px !important;
            border-radius: 15px !important;
        }

        /* Pull the business card grid closer to the filter box */
        .business-grid {
            padding-top: 5px !important;
        }
    }

    @media (max-width: 1023px) {
        /* Reduce the bottom space of the filter section wrapper */
        section[style*="display: flex"] {
            padding-bottom: 0px !important;
        }

        /* Eliminate top padding on the grid and pull it up under the filter */
        .business-grid#mainGrid {
            padding-top: 0px !important;
            margin-top: -15px !important; /* Adjust this number to bring it even closer */
        }
    }
  @media (max-width: 1023px) {
        /* Reduce the massive 100px top padding pushing the filter box down */
        section[style*="display: flex"] {
            padding: 5px 15px 10px 15px !important;
        }

        /* Reduce the inside padding of the filter box container */
        .search-header-container {
            padding: 15px !important;
            border-radius: 15px !important;
        }

        /* Pull the business card grid closer to the filter box */
        .business-grid {
            padding-top: 5px !important;
        }
    }

    @media (min-width: 1023px) {
        /* Reduce the bottom space of the filter section wrapper */
        section[style*="display: flex"] {
            padding-bottom: 0px !important;
        }

        /* Eliminate top padding on the grid and pull it up under the filter */
        .business-grid#mainGrid {
            padding-top: 0px !important;
            margin-top: 20px !important; /* Adjust this number to bring it even closer */
        }
    }

/* By default (Desktop view), hide the mobile text version */
.text-mobile {
    display: none !important;
}

/* When the screen is 768px wide or smaller (Mobile view) */
@media (max-width: 768px) {
    .text-desktop {
        display: none !important;
    }
    .text-mobile {
        display: inline !important;
    }
}
/* By default, hide all mobile-specific elements */
.text-mobile {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Hide the desktop text */
    .text-desktop {
        display: none !important;
    }

    /* Turn the mobile container into a flexible row */
    .filter-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px; /* Spaces out the icon from the text */
    }

    .mobile-inline-flex {
        display: inline-flex !important;
        align-items: center;
        gap: 8px; /* Spaces out All, the divider, and the badge */
    }

    /* Elegant vertical divider line */
    .mobile-divider {
        width: 1px;
        height: 16px; /* Scaled down slightly to fit cleanly inside a button row */
        background: rgba(206, 184, 136, 0.4);
    }

    /* Sleek high-contrast badge */
    .mobile-badge {
        background: #ceb888;
        color: #11253e;
        padding: 2px 10px; /* Snug padding to keep the button compact on small screens */
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 800;
        box-shadow: 0 0 10px rgba(206, 184, 136, 0.3);
        white-space: nowrap;
    }
}