/* Sticky Header Booking Section */
@media (max-width: 767px) {
    .property-title-section {
        position: sticky;
        top: 80px;
        /* Adjust if navbar is fixed */
        z-index: 490;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        margin: 0 -15px 1.5rem -15px;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .property-title-section h1 {
        font-size: 20px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }

    .booking-trigger--header {
        display: block;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Hide booking trigger on desktop where form is sticky in sidebar */
@media (min-width: 768px) {
    .booking-trigger--header {
        display: none !important;
    }
}

/* Common trigger styles */
.booking-trigger {
    background: var(--primary-color, #4A7FD3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.booking-trigger:active {
    transform: scale(0.95);
}

/* Property Styles */
section h1 {
    font-size: clamp(24px, 6vw, 48px);
    font-weight: 600;
}

.property-gallery-container {
    margin-bottom: 2rem;
}

.property-gallery-main {
    height: 450px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}

.property-gallery-main .contextual-region {
    height: 100%;
}

.property-gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.property-gallery-thumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.property-gallery-thumbs .contextual-region {
    height: 100%;
}

.property-gallery-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
}

.property-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.property-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.property-amenities {
    padding-top: 20px;

    h2 {
        font-size: 20px;
        font-weight: 700;
        text-transform: none;
    }

    .amenities-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        list-style: none;

        .amenities-item {
            padding-left: 0;
            padding-right: 10px;
            border-radius: 16px;
        }
    }
}

/* responsive behaviors */

/* Mobile / Small Screens */
@media (max-width: 767px) {
    .property-gallery-thumbs {
        display: none;
    }

    .property-gallery-main {
        height: 300px;
    }

    /* Show navigation only on mobile as requested */
    .property-gallery-main .swiper-button-next,
    .property-gallery-main .swiper-button-prev {
        display: flex;
    }

    /* Booking Form Modal Logic */
    .booking-form-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        padding: 20px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    .booking-form-wrapper.is-open {
        transform: translateY(0);
    }

    .mobile-close-form {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
        color: var(--color-grey);
    }

    /* Hide the old trigger if our new system is active */
    .mobile-booking-trigger {
        display: none;
    }
}

/* Desktop Screens */
@media (min-width: 768px) {

    .property-gallery-main .swiper-button-next,
    .property-gallery-main .swiper-button-prev {
        display: none;
        /* Hide on desktop as per request "navigations will show only on mobile" */
    }

    .booking-form-wrapper {
        position: sticky;
        top: 100px;
        /* Account for navbar */
    }
}

/* Property Highlight */
.row>.col-sm-12.col-md-7,
.row>.col-md-5 {
    min-width: 0;
    /* Important for Swiper inside flex */
}

.property-highlight {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    color: var(--color-grey);
}

.property-highlight .address,
.property-highlight .capacity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-highlight .icon {
    font-size: 1.2rem;
}