/* Webflow Overrides & Custom Styles */

/* Celebrity Grid Layout */
.circle-collection-list {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px !important;
    justify-items: center;
}

/* Mobile Grid Layout */
@media (max-width: 768px) {
    .circle-collection-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

/* Mobile Map Fixes (City & Country Pages) */
@media (max-width: 768px) {

    /* Fix map to bottom of screen */
    #place-map-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        height: 35vh !important;
        /* Increased height for better visibility */
        min-height: 200px !important;
        z-index: 9999 !important;
        /* High z-index to stay on top */
        background: transparent !important;
        /* Removed black background */
        border-top: 1px solid #F7ECD8;
        transition: transform 0.3s ease-in-out;
    }

    /* Ensure map takes full height of container */
    #place-map {
        height: 100% !important;
        width: 100% !important;
    }

    /* Add padding to bottom of hotels container so last hotel isn't hidden behind map */
    .default-hotels-container {
        padding-bottom: calc(35vh + 40px) !important;
    }

    /* Hide the placeholder map if it exists */
    #mobile-map-placeholder {
        display: none !important;
    }

    /* Adjust date selector spacing */
    .date-selector-wrapper {
        margin-bottom: 10px !important;
        /* Reduced gap */
    }

    /* Mobile Map Buttons */
    .mobile-map-btn {
        display: block !important;
        padding: 10px 20px;
        background: #F7ECD8;
        /* Match Zoom Out background */
        color: #131313;
        /* Match Zoom Out text color */
        border: 1px solid #131313;
        border-radius: 14px;
        /* Match Zoom Out radius */
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        z-index: 10000;
        text-transform: none;
        /* Remove uppercase to match Zoom Out */
        letter-spacing: normal;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    #mobile-hide-map-btn {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    #mobile-show-map-btn {
        position: fixed;
        bottom: 30px;
        /* Slightly higher */
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        display: none;
        /* Removed !important so JS can toggle it */
        z-index: 9998;
        /* Below map container (9999) */
    }

    /* When map is hidden */
    #place-map-container.map-hidden {
        transform: translateY(100%);
    }
}

/* Hide mobile buttons on desktop */
@media (min-width: 769px) {
    .mobile-map-btn {
        display: none !important;
    }
}

/* Text Color Fix for Square City Items (Featured sections only, not "All" lists) */
.square-city-item .city-name,
.square-city-item .text-block-5 {
    color: #ffffff !important;
}

/* Celebrity Page Stats Layout Fix */
.flexcelstats {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
}

.celebdataleft {
    min-width: 120px !important;
}

.celebdataright {
    margin: 0 !important;
}