/* ============================================================
   RESERVATION SECTION STYLES
   Include this file in state.php and explore-reservations.php
   <link rel="stylesheet" href="assets/css/reservation-section.css">
============================================================ */

/* ===== WRAPPER ===== */
.reservation-section-wrap {
    padding: 50px 0 60px;
    background: #f5f6f8;
}

.reservation-section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #001a3d;
    margin-bottom: 30px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e0e0e0;
}

/* ===== LAYOUT ===== */
.reservation-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ===== LEFT FILTER SIDEBAR ===== */
.res-filter-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.res-filter-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 18px 0;
}

.res-filter-card-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #001a3d;
    padding: 0 18px 12px;
    margin-bottom: 4px;
    border-bottom: 2px solid #f0f0f0;
}

.res-filter-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #001a3d;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    transition: all 0.25s ease;
}

.res-filter-nav .nav-link:hover {
    background: #f4f8ef;
    color: #91b459;
}

.res-filter-nav .nav-link.active {
    background: #f4f8ef;
    color: #91b459;
    border-left-color: #91b459;
}

.res-filter-nav .nav-link .count {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #91b459;
    border-radius: 20px;
    padding: 2px 7px;
    min-width: 22px;
    text-align: center;
}

.res-filter-nav .nav-link.active .count {
    background: #ff6d05;
}

/* ===== RIGHT RESULTS AREA ===== */
.res-results {
    flex: 1;
    min-width: 0;
}

/* ===== LISTING CARD ===== */
.res-listing-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow 0.3s ease;
}

.res-listing-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}

/* --- Thumbnail --- */
.res-card-thumb {
    width: 240px;
    flex-shrink: 0;
    background: #f1f3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5cfc0;
    font-size: 46px;
    overflow: hidden;
    position: relative;
}

.res-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.res-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #91b459;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

/* --- Body --- */
.res-card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.res-card-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #001a3d;
    margin-bottom: 5px;
    line-height: 1.3;
}

.res-card-title a {
    color: inherit;
    text-decoration: none;
}

.res-card-title a:hover {
    color: #91b459;
}

.res-card-location {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 9px;
}

.res-card-location i {
    color: #91b459;
}

.res-card-stars {
    color: #f5a623;
    font-size: 12px;
    margin-bottom: 9px;
}

.res-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.res-card-tag {
    font-size: 12px;
    background: #f0f6e9;
    color: #5a8f27;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 600;
}

.res-card-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Right price column --- */
.res-card-right {
    width: 175px;
    flex-shrink: 0;
    padding: 18px 16px;
    border-left: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
}

.res-rating-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.res-rating-badge {
    background: #003580;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 9px;
    border-radius: 6px 6px 6px 0;
}

.res-rating-label {
    font-size: 12px;
    color: #333;
    font-weight: 700;
}

.res-rating-reviews {
    font-size: 11px;
    color: #888;
}

.res-price-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.res-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: #001a3d;
    margin-bottom: 2px;
}

.res-tax-note {
    font-size: 11px;
    color: #999;
    margin-bottom: 12px;
}

.res-book-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #91b459;
    color: #fff !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.res-book-btn:hover {
    background: #ff6d05;
    color: #fff !important;
}

/* ===== EMPTY STATE ===== */
.res-empty-state {
    padding: 50px 30px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    color: #aaa;
}

.res-empty-state i {
    font-size: 40px;
    margin-bottom: 14px;
    display: block;
    color: #d0d0d0;
}

.res-empty-state p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .reservation-layout {
        flex-direction: column;
    }

    .res-filter-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .res-filter-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .res-filter-nav .nav-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        flex: 1;
        min-width: 110px;
        justify-content: center;
        text-align: center;
    }

    .res-filter-nav .nav-link.active {
        border-bottom-color: #91b459;
    }
}

@media (max-width: 767px) {
    .reservation-section-title {
        font-size: 22px;
    }

    .res-listing-card {
        flex-direction: column;
    }

    .res-card-thumb {
        width: 100%;
        height: 200px;
    }

    .res-card-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 14px 16px;
    }

    .res-price {
        font-size: 18px;
    }

    .res-book-btn {
        width: auto;
        padding: 10px 20px;
    }
}


/* ============================================================
   RESERVATION DETAIL PAGE STYLES
   assets/css/reservation-details.css
============================================================ */

/* ===== PAGE WRAPPER ===== */
.detail-page-wrap {
    background: #f5f6f8;
    padding: 0 0 60px;
}

/* ===== PHOTO GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 3px;
    max-height: 523px;
    overflow: hidden;
    background: #111;
}

.gallery-main {
    grid-column: 1;
    grid-row: 1 / 3;
}

.gallery-main img,
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.gallery-main img:hover,
.gallery-thumb img:hover {
    opacity: 0.88;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 46px;
}

.gallery-more-wrap {
    position: relative;
}

.gallery-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    gap: 8px;
    transition: background 0.2s ease;
}

.gallery-more-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== LIGHTBOX ===== */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lb-overlay.open {
    display: flex;
}

.lb-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 92vw;
    max-height: 90vh;
}

.lb-wrap img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lb-btn {
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    font-size: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lb-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    line-height: 1;
}

.lb-counter {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    color: #bbb;
    font-size: 13px;
    white-space: nowrap;
}

/* ===== CONTENT LAYOUT ===== */
.detail-content-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 30px 0 0;
}

.detail-left {
    flex: 1;
    min-width: 0;
}

.detail-right {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* ===== HEADER ===== */
.detail-type-badge {
    display: inline-block;
    background: #e8f4d9;
    color: #5a8f27;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.detail-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #001a3d;
    margin-bottom: 10px;
    line-height: 1.25;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.detail-stars {
    color: #f5a623;
    font-size: 16px;
}

.detail-loc-link {
    font-size: 14px;
    color: #0066cc;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.detail-loc-link:hover {
    text-decoration: underline;
}

.detail-loc-link i {
    color: #91b459;
}

.detail-score-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-score {
    background: #003580;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 8px 8px 8px 0;
    flex-shrink: 0;
}

.detail-score-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.detail-score-sub {
    font-size: 12px;
    color: #888;
}

/* ===== QUICK BAR ===== */
.detail-quick-bar {
    display: flex;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #fff;
}

.dq-item {
    flex: 1;
    padding: 14px 12px;
    border-right: 1px solid #e5e5e5;
    text-align: center;
}

.dq-item:last-child {
    border-right: none;
}

.dq-icon {
    font-size: 20px;
    color: #91b459;
    margin-bottom: 4px;
}

.dq-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.dq-value {
    font-size: 12px;
    font-weight: 700;
    color: #001a3d;
}

/* ===== CONTENT BLOCKS ===== */
.detail-block {
    background: #fff;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-block-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #001a3d;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-desc-text {
    font-size: 14.5px;
    color: #444;
    line-height: 1.85;
}

.detail-desc-text p {
    margin-bottom: 14px;
}

.detail-desc-text p:last-child {
    margin-bottom: 0;
}

/* ===== AMENITIES GRID ===== */
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #333;
}

.amenity-item i {
    color: #91b459;
    font-size: 15px;
    width: 18px;
    flex-shrink: 0;
}

/* ===== LOCATION BLOCK ===== */
.detail-location-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.detail-location-row i {
    color: #91b459;
    margin-top: 3px;
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== POLICIES ===== */
.policy-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #444;
}

.policy-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.policy-label {
    font-weight: 700;
    color: #001a3d;
    width: 140px;
    flex-shrink: 0;
}

/* ===== BOOKING CARD ===== */
.booking-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.bk-header {
    background: #003580;
    padding: 20px 22px;
}

.bk-header-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    margin-bottom: 4px;
}

.bk-header-sub {
    font-size: 12px;
    color: #a8c4e8;
    line-height: 1.4;
}

.bk-body {
    padding: 22px;
}

/* ===== BOOKING FORM ===== */
.bf-group {
    margin-bottom: 16px;
}

.bf-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #001a3d;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.bf-group input,
.bf-group select,
.bf-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dde2e9;
    border-radius: 6px;
    font-size: 13.5px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.bf-group input:focus,
.bf-group select:focus,
.bf-group textarea:focus {
    outline: none;
    border-color: #91b459;
    box-shadow: 0 0 0 3px rgba(145, 180, 89, 0.12);
}

.bf-group textarea {
    resize: vertical;
    min-height: 80px;
}

.bf-row {
    display: flex;
    gap: 10px;
}

.bf-row .bf-group {
    flex: 1;
}

.bf-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 16px 0;
}

/* ===== PRICE SUMMARY ===== */
.bf-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    padding: 5px 0;
}

.bf-price-row.total {
    font-weight: 700;
    font-size: 15px;
    color: #001a3d;
    border-top: 2px solid #f0f0f0;
    margin-top: 6px;
    padding-top: 10px;
}

/* ===== SUBMIT BUTTON ===== */
.bf-submit {
    display: block;
    width: 100%;
    background: #ff6d05;
    color: #fff;
    border: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 14px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 12px;
    text-align: center;
}

.bf-submit:hover {
    background: #e05e00;
}

.bf-secure {
    text-align: center;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.bf-secure i {
    color: #91b459;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
    .detail-right {
        width: 300px;
    }
}

@media (max-width: 991px) {
    .detail-content-wrap {
        flex-direction: column;
    }

    .detail-right {
        width: 100%;
        position: relative;
        top: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 160px;
        max-height: none;
    }

    .gallery-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .amenity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-name {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 130px;
    }

    .gallery-main {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .gallery-thumb:nth-child(n+4) {
        display: none;
    }

    .detail-quick-bar {
        flex-wrap: wrap;
    }

    .dq-item {
        flex: 1 1 30%;
        border-bottom: 1px solid #e5e5e5;
    }

    .amenity-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bf-row {
        flex-direction: column;
        gap: 0;
    }

    .detail-name {
        font-size: 20px;
    }

    .policy-label {
        width: 110px;
    }

    .lb-wrap img {
        max-width: 90vw;
    }

    .lb-btn {
        display: none;
    }
}



/* ============================================================
   STATE-WISE SEARCH BAR
   assets/css/state-search.css
============================================================ */

.state-search-wrap {
    background: #001a3d;
    padding: 22px 0;
}

.state-search-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.state-search-field {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
}

.state-search-field label {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #c7d6ea;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.state-search-field label i {
    color: #91b459;
}

.state-search-field select {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.state-search-field select:focus {
    outline: 2px solid #91b459;
}

.state-search-btn {
    padding: 13px 32px;
    background: #ff6d05;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    height: 47px;
}

.state-search-btn:hover {
    background: #91b459;
}

@media (max-width: 575px) {
    .state-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .state-search-btn {
        justify-content: center;
        width: 100%;
    }
}