/* Accommodation Rooms Section */
.accommodation-rooms-section {
    margin-top: 10px;
    scroll-margin-top: 90px;
}

.accommodation-rooms-section .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Room Item */
.accommodation-rooms-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .accommodation-rooms-list {
        grid-template-columns: 1fr;
    }
}

.accommodation-room-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.room-item-photo {
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: #e8f4f8;
}

.room-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-item-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #0f4c75;
}

.room-item-info {
    padding: 16px;
}

.room-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.room-item-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.room-item-price .price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #0f4c75;
}

.room-item-price .price-unit {
    font-size: 13px;
    color: #666;
}


.room-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
}

.room-item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-item-meta i {
    color: #0f4c75;
    font-size: 14px;
}

.room-item-amenities {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.room-amenity-icon {
    color: #0f4c75;
    font-size: 16px;
}

/* Book button */
.room-book-btn {
    width: 100%;
    padding: 12px;
    background: #0f4c75;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.room-book-btn:hover {
    background: #0a3557;
}

.room-book-chevron {
    margin-left: auto;
    transition: transform 0.2s;
}

.room-book-chevron.open {
    transform: rotate(180deg);
}

/* Inline Booking Form */
.room-booking-form-wrapper {
    padding: 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.room-booking-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.booking-form-group label i {
    color: #0f4c75;
    margin-right: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #0f4c75;
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}

.form-hint {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* Stepper */
.stepper-input {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.stepper-btn {
    padding: 8px 14px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #0f4c75;
    line-height: 1;
}

.stepper-btn:hover {
    background: #e5e7eb;
}

.stepper-input input[type="number"] {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper-input input[type="number"]::-webkit-outer-spin-button,
.stepper-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Send Inquiry button */
.btn-send-inquiry {
    width: 100%;
    padding: 13px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-send-inquiry:hover {
    background: #15803d;
}

/* Sidebar card for accommodation */
.accommodation-sidebar-card {
    text-align: center;
    padding: 20px;
}

.accommodation-sidebar-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.accommodation-sidebar-price .price-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accommodation-sidebar-price .price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.accommodation-sidebar-price .price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #0f4c75;
}

.accommodation-sidebar-price .price-unit {
    font-size: 13px;
    color: #666;
}

.btn-view-rooms-sidebar {
    display: block;
    margin-top: 14px;
    padding: 12px;
    background: #0f4c75;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.btn-view-rooms-sidebar:hover {
    background: #0a3557;
    color: #fff;
}

.accommodation-no-rooms {
    text-align: center;
    padding: 40px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}

.accommodation-no-rooms i {
    font-size: 40px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.accommodation-no-rooms p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* ── Accommodation Sidebar Card — Mobile Redesign ── */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .room-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .room-item-price {
        margin-top: 4px;
    }

    .accommodation-sidebar-card {
        background: #fff;
        border-radius: 16px;
        padding: 20px 20px 20px 20px;
        box-shadow: 0 2px 16px rgba(15, 76, 117, 0.10);
        border: 1.5px solid #e0eef7;
        margin-bottom: 16px;
    }

    .accommodation-sidebar-price {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        margin-bottom: 16px !important;
        margin-top: 8px !important;
    }

    .accommodation-sidebar-price .price-label {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #888 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    .accommodation-sidebar-price .price-main {
        display: flex !important;
        align-items: baseline !important;
        gap: 6px !important;
        visibility: visible !important;
    }

    .accommodation-sidebar-card .price-amount {
        display: inline !important;
        visibility: visible !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #0f4c75 !important;
        line-height: 1 !important;
    }

    .accommodation-sidebar-card .price-unit {
        display: inline !important;
        visibility: visible !important;
        font-size: 14px !important;
        color: #666 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .btn-view-rooms-sidebar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 14px !important;
        background: #0f4c75 !important;
        color: #fff !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        transition: background 0.2s !important;
    }

    .btn-view-rooms-sidebar:hover {
        background: #0a3557 !important;
        color: #fff !important;
    }

    /* Amenities Mobile Scroll */
    .room-item-amenities {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        gap: 12px;
        padding-bottom: 4px;
    }

    .room-item-amenities::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .room-item-amenities .room-amenity-icon {
        flex-shrink: 0;
    }
}

/* Room Photo Slider */
.room-photo-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: #e8f4f8;
}

.room-photo-slides {
    width: 100%;
    height: 100%;
}

.room-photo-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.room-photo-slide.active {
    display: block;
}

.room-photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.25s ease;
}

.room-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f4c75;
    font-size: 14px;
    z-index: 2;
    transition: background 0.2s;
}

.room-slider-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.room-slider-prev {
    left: 10px;
}

.room-slider-next {
    right: 10px;
}

.room-slider-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 2;
}

/* Room Lightbox */
.room-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.room-lightbox-overlay.active {
    display: flex;
}

/* Close button — top right corner, always visible */
.room-lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s;
    line-height: 1;
}

.room-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Main content row: prev | image | next */
.room-lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.room-lightbox-img-wrap {
    flex: 1;
    max-width: 860px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* Nav arrows — beside the image */
.room-lightbox-nav {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10000;
}

.room-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Counter below image */
.room-lightbox-counter {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .room-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .room-lightbox-body {
        gap: 8px;
        padding: 0 8px;
    }
}

.booking-date-error {
    color: #cc0000;
    background-color: #fce4e4;
    border: 1px solid #fcc;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}
/* Room Price Summary */
.room-price-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 0.95rem;
    color: #0f4c75;
    flex-wrap: wrap;
}

.room-price-summary .summary-nights {
    font-weight: 700;
}

.room-price-summary .summary-separator,
.room-price-summary .summary-equals {
    color: #666;
    font-weight: 400;
}

.room-price-summary .summary-price {
    color: #0f4c75;
}

.room-price-summary .summary-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0a3a5c;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .room-price-summary {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}


/* Flatpickr theme overrides � accommodation booking */
.flatpickr-calendar {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    font-family: inherit;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #0f4c75;
    border-color: #0f4c75;
}

.flatpickr-day.inRange {
    background: #cce0ff;
    border-color: #cce0ff;
    box-shadow: -5px 0 0 #cce0ff, 5px 0 0 #cce0ff;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0f4c75;
    border-color: #0f4c75;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    background: #f5f5f5;
    color: #ccc;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Range mode — in-range days */
.flatpickr-day.inRange {
    background: #cce0ff;
    border-color: #cce0ff;
    box-shadow: -5px 0 0 #cce0ff, 5px 0 0 #cce0ff;
}

.flatpickr-day.startRange,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange,
.flatpickr-day.endRange:hover {
    background: #0f4c75;
    border-color: #0f4c75;
    color: #fff;
}

/* Display inputs look identical to the old date inputs */
.flatpickr-range-input {
    cursor: pointer;
    background: #fff;
}

.flatpickr-months .flatpickr-month {
    background: #0f4c75;
    color: white;
    border-radius: 10px 10px 0 0;
}

.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: white;
    fill: white;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #cce0ff;
}


/* Per-day price label in Flatpickr calendar */
.flatpickr-calendar {
    width: 360px !important;
    max-width: 100% !important;
}

.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-days {
    width: 100% !important;
    max-width: 100% !important;
}

.flatpickr-calendar .dayContainer {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
}

.flatpickr-calendar .flatpickr-days .dayContainer .flatpickr-day {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 54px !important;
    max-width: none !important;
    flex-basis: calc(100% / 7) !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

.flatpickr-day-price {
    font-size: 9px;
    color: #0f4c75;
    font-weight: 500;
    line-height: 1;
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.flatpickr-day.selected .flatpickr-day-price,
.flatpickr-day.startRange .flatpickr-day-price,
.flatpickr-day.endRange .flatpickr-day-price,
.flatpickr-day.inRange .flatpickr-day-price {
    color: white;
}

.flatpickr-day.flatpickr-disabled .flatpickr-day-price {
    color: #ccc;
}

@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 310px !important;
    }

    .flatpickr-calendar .flatpickr-days .dayContainer .flatpickr-day {
        height: 46px !important;
    }

    .flatpickr-day-price {
        font-size: 8px;
    }
}

