.properties-widget {
    font-family: 'inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    max-width: 1500px;
}

.properties-widget .panels {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Change from flex-start to stretch */
    min-height: 100%; /* Ensure minimum height */
}

.properties-widget .left-panel {
    flex: 1;
    padding-right: 30px;
}

.properties-widget .right-panel {
    flex: 1;
    position: relative;
    width: 50%;
}

.properties-widget #map-container {
    width: 100%;
    position: sticky;
    top: 0;
    height: 100%;
    border-radius: 12px;
}

.properties-widget .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.properties-widget .header h1 {
    margin: 0;
    font-size: 32px;
}

.properties-widget .header span {
    font-size: 0.8em;
    color: #888;
}

.properties-widget .apartment-item {
    display: flex;
    padding: 15px 0;
}

.properties-widget .apartment-item:last-child {
    border-bottom: none;
}

.properties-widget .apartment-item img,
.properties-widget .slideshow {
    width: 349px;
    height: 268px;
    object-fit: cover;
    border-radius: 20px;
}

.properties-widget .apartment-details {
    width: 350px;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
}

.leaflet-control-attribution {
    display: none;
}

.properties-widget .apartment-details h2 {
    margin: 0 0 15px;
    font-size: 32px;
    line-height: normal;
}

.properties-widget .apartment-details p {
    margin: 0 0 10px;
    font-size: 16px;
    color: #555;
    line-height: 22px;
}

.properties-widget .apartment-price {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.properties-widget .nightly-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
    line-height: 22px;
}

.properties-widget .nightly-price strong {
    font-size: 18px;
}


.properties-widget .total-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 18px;
    gap: unset;
    line-height: 22px;
}

.properties-widget .total-price span:last-child {
    font-size: 14px;
}

.properties-widget .strike-through {
    text-decoration: line-through;
    color: #A87746;
    font-size: 18px;
}

.properties-widget .apartment-arrow-container {
    width: min-content;
    display: flex;
    align-items: end;
    margin-left: 10px;
}

.properties-widget .apartment-arrow-container .apartment-arrow {
    border: 1px solid black;
    border-radius: 50%;
    background-image: url("https://smartments.com/wp-content/uploads/2025/04/black-arrow-right.png");
    height: 40px;
    width: 40px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40%;
    margin-bottom: 5px;
}

.properties-widget .apartment-item.active > .apartment-arrow-container .apartment-arrow {
    background-image: url("https://smartments.com/wp-content/uploads/2025/04/white-arrow-right.png");
    background-color: #FF7423;
    border: none;
}

/* .properties-widget #map-container {
    width: 100%;
    height: 100%;
} */

apartment-item.active {
    border-color: #4A90E2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

/* Custom popup styles */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 5px;
    padding: 0;
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    padding: 10px;
}

.location-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.apartment-details, .apartment-arrow-container {
    cursor: pointer;
}

.no-pp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.no-pp-popup-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    position: relative;
}

.no-pp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.no-pp-popup-header h3 {
    margin: 0;
    color: #242222;
    font-family: 'inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
}

.no-pp-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    position: absolute;
    top: 20px;
    right: 20px;
}

.no-pp-popup-body h2 {
    color: #242222;
    font-family: Inter;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 20px;
}

.no-pp-popup-body p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

#no-pp-location {
    text-transform: capitalize;
}

.no-pp-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-pp-new-date-btn {
    width: 100%;
    border-radius: 30px;
    background-color: #242222;
    border: none;
    cursor: pointer;
    text-align: center;
    color: #E4DFD7;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    height: 50px;
}

.no-pp-location-selector {
    width: 100%;
}

#no-pp-locations {
    width: 100%;
    height: 50px;
    padding-left: 25px;
    border: 1px solid #ccc;
    border-radius: 40px;
    appearance: none;
    position: relative;
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 12px;
    padding-right: 35px;
    cursor: pointer;
    color: #242222;
    font-family: 'Inter';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    background-color: white;
}

.show-amenities {
    color: #FF7423;
}

.header.noshowdesktop {
    display: none;
}

.apartment-arrow-container.noshowdesktop {
    display: none;
}


@media (max-width: 768px) {

    .properties-widget .header {
        margin-top: 60px;
    } 

    .properties-widget .panels {
        flex-direction: column-reverse;
    }

    .properties-widget .panels .left-panel {
        padding-right: 0;
        position: relative;
    }

    .properties-widget .panels .right-panel {
        width: 100%; 
    }

    .properties-widget .panels .right-panel #map-container {
        position: relative;
        height: 480px;
        margin-bottom: 40px;
    }
    .properties-widget .apartment-item {
        flex-direction: column;
        padding: 30px 0;
    }

    .properties-widget .apartment-item img, .properties-widget .slideshow {
        width: 100%;
        border-radius: 20px;
    }

    .properties-widget .apartment-details {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }

    .properties-widget .collapsemapbtn {
        position: absolute;
        bottom: 50px;
        z-index: 1000;
        left: 50%;
        transform: translate(-50%, 0);
        background-color: black;
        color: white;
        padding: 12px;
        border-radius: 40px;
        border: none;
        transition: all 0.3s ease-in-out;
    }

    .properties-widget .collapsemapbtn span {
        padding: 12px 25px;
        font-size: 16px;
    }

    .properties-widget .collapsemapbtn:hover, .properties-widget .expandmapbtn:hover  {
        background-color: white;
        color: black;
        border: 1px solid #242222;
    }

    .properties-widget .expandmaptbtn-container {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
        margin-top: 40px;
    }

    .properties-widget .expandmapbtn {
        background-color: black;
        color: white;
        padding: 12px;
        border-radius: 40px;
        border: none;
        transition: all 0.3s ease-in-out;
    }

    .properties-widget .expandmapbtn span {
        padding: 12px 25px;
        font-size: 16px;
    }

    .apartment-arrow-container.noshowdesktop {
        display: flex;
    }
    
    .header.noshowdesktop {
        display: flex;
        margin-top: 0;
        margin-bottom: 0;
        
    }

    .header.noshowdesktop h1 {
        font-size: 24px;
    }

    .properties-widget .nightly-price {
        min-width: 30%;
    }

    .properties-widget .total-price span:last-child {
        font-size: 13px;
    }

    

 }
