/* 1. LAYOUT & CONTAINERS */
.mapbox-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    overflow: hidden;
    color: white;
    font-family: 'GardaNova2';
    padding-top: 0;
    padding-bottom: 0;
}

@media screen and (min-width: 768px) {
    .mapbox-wrapper {
        height: calc(100vh - 100px);
    }
}


@media screen and (min-width: 1024px) {
    .mapbox-wrapper {
        flex-direction: row;
    }
}

#map-container {
    position: relative;
    width: 100%;
    height: 50%;
    transition: all 0.30s ease;
}

@media screen and (min-width: 1024px) {
    #map-container {
        width: 70%;
        height: 100%;
        order: 1;
    }
}

.map-sidebar {
    width: 100%;
    height: 50%;
    background-color: #212517;
    border-top: 1px solid #4F6F44;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 20;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media screen and (min-width: 1024px) {
    .map-sidebar {
        width: 30%;
        height: 100%;
        border-top: 0;
        order: 2;
    }
}

/* 2. UI ELEMENTS & BUTTONS */
.map-overlay-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 240px;
    margin: 0 auto;
    background: #18181b;
    border: 1px solid #3f3f46;
    padding: 0.25rem;
    display: flex;
    gap: 0.25rem;
    z-index: 10;
}

.mode-button {
    font-family: 'GardaNova2';
    padding: 0.6rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1;
    text-transform: uppercase;
}

.mode-button.active {
    background: #27272a;
    color: #ffffff;
    border-color: #52525b;
}

.mode-button.inactive {
    background: transparent;
    color: #a1a1aa;
}

/* 3. SIDEBAR CONTENT STYLING */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    height: 100%;
}

.amenity-card {
    padding: 1.5rem 1.5rem 1.5rem 3.75rem;
    color: #fff;
    border-top: 1px solid #82b16b;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;

    &:last-child {
        border-bottom: 1px solid #82b16b;
    }

    .title {
        font-size: 2.1rem;
        color: #fff;
        margin-left: 0;
        line-height: inherit;
    }

    span {
        font-family: 'GardaNova2';
        margin-left: 20px;
        color: #82b16b;
        line-height: 2px;
        letter-spacing: 1px;
    }
}

.amenity-card:hover {
    background: #363e21;
}

.amenity-detail {
    padding: 30px 0;
    margin-top: 26px;
    max-width: 336px;
    margin-left: 40px;

    @media screen and (min-width: 768px) {
        padding: 0;
        max-width: 400px;
        margin-left: 60px;
    }

    p,
    .stat-box {
        font-family: 'GardaNova2';
        font-size: 22px;
        line-height: 26px;
        font-weight: 300;
        letter-spacing:0.3px;
    }

    .back-btn {
        margin-left: 0;
        margin-bottom: 46px;
    }

    .amenity-card:hover {
        background: transparent;

        span {
            color: #82b16b;
        }
    }

    .title {
        font-size: 32px;
        font-weight: 400;
        letter-spacing: 1px;
    }

}



.list-container {

    margin-top: 1.5rem;

    .amenity-card {
        color: #fff;
        border: none;
        padding-left: 20px;
    }
}

.stats-grid {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-box {
    padding: 0;
}

.stat-box:not(:last-child) {
    border-right: 1px solid white;
    padding-right: 1rem;
    margin-right: 1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #71717a;
    text-transform: uppercase;
    display: block;
}

.stat-value {
    font-size: 18px;
    font-weight: 400;
    color: white;
    display: block;
}

/* 4. UTILITIES & ANIMATIONS */
/*::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #4A683E; }
    ::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #52525b; }*/

@keyframes marker-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.destination-marker div {
    animation: marker-pulse 2s infinite;
}

.back-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: 'bliss2', 'GardaNova2';
    font-size: 1.313rem;
    font-weight: 300;
    line-height: 28px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 60px;
    padding: 0;

    & img {
        width: 14px;
        height: 14px;
    }
}

.back-btn:hover {
    color: white;
}

.primary-action-btn {
    width: 100%;
    background: white;
    color: black;
    font-weight: 700;
    padding: 0.75rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.primary-action-btn:hover {
    background: #e4e4e7;
}