/* Map Layout */
.ravielson-map-section {
    position: relative;
    width: 100%;
}

.ravielson-map-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.ravielson-map-main {
    position: relative;
    flex: 0 0 50%;
    min-width: 300px;
}

@media (max-width: 768px) {
    .ravielson-map-main {
        min-width: 0px;
    }
}

#ravielson-map-container {
    width: 100%;
    height: 600px;
    /* Default, overridden by inline style */
}

.ravielson-map-sidebar {
    flex: 0 0 50%;
    background: #fff;
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #54717B #EFEAE3;
}

.ravielson-map-sidebar::-webkit-scrollbar {
    width: 10px;
}

.ravielson-map-sidebar::-webkit-scrollbar-track {
    background: #EFEAE3;
    border-radius: 9999px;
}

.ravielson-map-sidebar::-webkit-scrollbar-thumb {
    background: #54717B;
    border-radius: 9999px;
    border: 2px solid #EFEAE3;
}

.ravielson-map-sidebar::-webkit-scrollbar-thumb:hover {
    background: #3e535a;
}

/* Categories List */
.map-category {
    margin-bottom: 30px;
}

.category-name {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    /* Rounded corners for label look */
    /* Color set inline from PHP */
    color: #171717;
    font-size: 13px;
    font-weight: 500;
    /* Medium */
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.category-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* layout like functionality */
    gap: 20px;
}

.map-list-item {
    /* cursor: pointer; */
    transition: opacity 0.2s;
}

.map-list-item:hover,
.map-list-item.active {
    opacity: 0.8;
}

.item-title {
    color: #162B3B;
    font-size: 14px;
    font-weight: 500;
    /* Medium */
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.item-desc {
    color: #54717B;
    font-size: 12px;
    font-weight: 400;
    /* Regular */
    font-family: 'Poppins', sans-serif;
}

/* Route Button */
.map-btn-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.map-route-btn {
    display: inline-block;
    background-color: #54717B;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
}

.map-route-btn:hover {
    background-color: #3e535a;
    color: #fff;
}

/* Map Markers */
.ravielson-custom-pin {
    transition: opacity 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ravielson-map-wrapper {
        flex-direction: column;
    }

    #ravielson-map-container {
        height: 400px !important;
        width: 100%;
    }

    .ravielson-map-sidebar {
        width: 100%;
        padding: 20px;
        max-height: auto;
    }

    .category-items {
        grid-template-columns: 1fr;
    }
}