.booking-search-container { margin-bottom: 50px; }

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    gap: 15px;
}

.search-icon { color: #888; margin-left: 10px; }

#bookingSearch {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;          
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    flex: 0 1 calc(33.333% - 20px);
    background: white;
    padding: 20px;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    box-sizing: border-box;
    transition-duration: 0.4s;
}

.property-card:hover {
	box-shadow: 0 0px 0px rgba(0,0,0,0.05);
  transform: translateY(2px);
}

.property-card img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: 0 0px 0px rgba(0,0,0,0.05);
    transition-duration: 0.4s;
}

.property-card:hover img {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.book-btn {
    background-color: #FCBE3B;
    color: #061B38;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition-duration: 0.4s;
    margin-top: 20px;
}

.book-bth:hover {
    background-color: #061B38;
    color: #FFF;
    transform: translateY(-3px) scale(1.05);
}

.book-btn.is-booked {
    background-color: #061B38;
    color: #FFF;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .search-wrapper {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        background: white;
        border-radius: 25px;
        padding: 5px 8px 5px 15px;
        margin-top: 30px;

    }

    #bookingSearch {
        flex: 1;
        min-width: 0;
        border: none;
        outline: none;
        font-size: 14px;
        padding: 10px 5px;
        background: transparent;
    }

    .search-button {
        flex-shrink: 0;
        padding: 8px 15px;
        font-size: 14px;
        border-radius: 20px;
        margin-left: 5px;
    }

    .search-icon {
        flex-shrink: 0;
        color: #061B38;
        font-size: 14px;
    }

    .property-card {
        flex: 0 1 100% !important;
    }
    .cards {
        padding: 0 20px;
    }

    .property-card:hover,
    .property-card:hover img {
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
        background-color: white !important;
    }

    .property-card:active {
        transform: scale(0.98) !important;
        background-color: #f0f0f0 !important;
        transition: 0.1s;
    }

    summary {
    list-style: none;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '▶';
    transition: transform 0.4s;
    font-size: 0.8rem;
}

details[open] summary::after {
    transform: rotate(90deg);
}

.details-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
    margin-bottom: 20px;
}

.details-container > div {
    min-height: 0;
    overflow: hidden;
}

details[open] .details-container {
    grid-template-rows: 1fr;
}

details.closing .details-container {
    grid-template-rows: 0fr;
}

    .text h2 {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    .text {
        padding-right: 20px;
    }
}

#view-toggle-btn {
    position: relative;
    z-index: 999 !important;
    cursor: pointer;
    pointer-events: auto !important;
}

#map-container {
    height: 600px;
    width: 100%;
    display: none;
    margin-top: 20px;
    border-radius: 12px;
    border: 2px solid #ddd;
    position: relative;
    z-index: 1;
}

#toggleView {
    position: relative;
    z-index: 1000;
}

.leaflet-popup-content .property-card {
    border: none;
    box-shadow: none;
    width: 200px;
}

.hidden {
    display: none !important;  
}

.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 220px !important;
}

.map-popup-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    font-family: inherit;
}

.map-popup-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.map-popup-card h3 {
    margin: 0;
    font-size: 16px;
    color: #061B38;
}

.map-popup-card h5 {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.map-popup-card .book-btn {
    padding: 8px 15px;
    font-size: 14px;
    width: 100%;
}

.custom-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #FCBE3B;
    border-radius: 50% 50% 50% 0;
    border: 2px solid #061B38;
    transform: rotate(-45deg);
}

.custom-pin::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #061B38;
    border-radius: 50%;
    transform: rotate(45deg);
}

.custom-pin.is-booked-marker {
    background-color: #061B38;
    border-color: #FCBE3B;
}

.custom-pin.is-booked-marker::after {
    background-color: #FFF;
}