
/* =========================
   FACILITIES – FIXED
   ========================= */

/* Desktop hide */
.extra-amenity {
    display: none !important;
}

/* Desktop show more */
.extra-amenity.show {
    display: block !important;
}

/* MOBILE */
@media (max-width: 768px) {

    /* Force hide mobile extras (override Bootstrap col-*) */
    .mobile-extra-amenity {
        display: none !important;
        flex: 0 0 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Show when expanded */
    .mobile-extra-amenity.show {
        display: block !important;
        flex: 0 0 auto !important;
        width: 50% !important; /* because col-6 */
        padding-left: 12px;
        padding-right: 12px;
    }
}

.amenity-item {
    min-height: 38px; /* keeps rows aligned */
}


.amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #eaf7ee;
    color: #1f7a45;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

.amenity-pill i {
    font-size: 14px;
    color: #1f7a45;
}


.amenity-pill i {
    font-size: 16px;
}


.hotel-gallery .gallery-item {
    overflow: hidden;
    border-radius: 12px;
}

.hotel-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-gallery .big {
    height: 600px;
}

.hotel-gallery .small {
    height: 300px;
}

.view-more-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hotel-gallery .big,
    .hotel-gallery .small {
        height: 220px;
    }

    .view-more-btn {
        bottom: 12px;
        right: 12px;
        font-size: 14px;
    }
}


.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
}

/* Prevent initial image from defining height */
.card .col-md-4,
.card .col-md-8 {
    align-self: stretch;
}

.room-img-box {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: 4 / 3;   /* 👈 KEY LINE */
    overflow: hidden;
}

.room-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MOBILE */
.mobile-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.mobile-gallery img {
    height: 220px;
    min-width: 80%;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: start;
}

.mobile-hero {
    min-width: 100%;
}

.date-field {
    max-width: 420px;
}

.date-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.date-input-wrapper {
    position: relative;
}

.calendar-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* 🔥 THIS IS KEY */
}

.date-input {
    padding-left: 36px;
    cursor: pointer;
}

.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-loader .spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #ddd;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.d-none {
    display: none !important;
}


/* =========================
MOBILE RESPONSIVE FIXES
========================= */

@media (max-width: 768px) {

    /* Mobile hero image */
    .mobile-hero-img {
        width: 100%;
        height: 220px;
        overflow: hidden;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .mobile-hero-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Booking summary sticky at top */
    .booking-summary-col {
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        margin-bottom: 12px;
    }

    .booking-summary-col .card {
        border-radius: 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    /* Reduce padding for mobile */
    .hotel-gallery {
        margin-top: 8px !important;
    }

    /* Avoid full screen height images */
    .hotel-gallery .big,
    .hotel-gallery .small {
        height: auto;
    }

    /* Prevent horizontal overflow comment */
    body {
        overflow-x: hidden;
    }

    /* MOBILE: show only first 4 initially */
}

@media (max-width: 576px) {
    .date-label {
        white-space: normal; /* allow wrap on mobile */
    }

    .date-input-wrapper {
        width: 100%;
    }

    .calendar-icon {
        font-size: 14px;
        margin-right: 6px;
    }

    #nightsText {
        font-size: 1rem;
    }
}

/*.mobile-cart-bar {*/
/*    position: fixed;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    background: #fff;*/
/*    border-top: 1px solid #ddd;*/
/*    z-index: 1050;*/
/*}*/

.map-parent {
    width: 100%;
    max-width: 100%;
}

.map-parent iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    height: 380px !important;
    border: 0 !important;
    display: block !important;
}

/* PROPERTY RULES COLLAPSE */
#propertyRulesWrapper {
    position: relative;
}

#propertyRulesContent {
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* collapsed */
#propertyRulesContent.collapsed {
    max-height: 140px;
}

/* expanded */
#propertyRulesContent.expanded {
    max-height: 2000px;
}

/* fade overlay */
#propertyRulesContent.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* PROPERTY RULES COLLAPSE */

#propertyRulesContent{
    max-height:140px !important;
    overflow:hidden !important;
    transition:max-height .3s ease;
}

#propertyRulesContent.expanded{
    max-height:2000px !important;
}

/* Full page overlay */
#pageLoader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* Spinner */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e5e5;
    border-top: 5px solid #198754; /* Bootstrap success */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade out */
#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
}


