/* Tùy chỉnh Flatpickr cho đẹp hơn */
.flatpickr-calendar {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 5px;
    font-family: inherit;
    z-index: 99999 !important;
}
@media (max-width: 768px) {
    .flatpickr-calendar {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        max-width: 95vw !important;
        width: 320px !important;
    }
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: #111b2b !important;
    border-color: #111b2b !important;
    color: #fff !important;
}
.flatpickr-day:hover {
    background: #f1f5f9;
}
.flatpickr-months .flatpickr-month {
    background: transparent;
    color: #111b2b;
    fill: #111b2b;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700;
}
.flatpickr-weekday {
    color: #64748b !important;
    font-weight: 600;
}

.breadcrumb-area {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 14px;
    word-break: break-word;
}
.breadcrumb-area a {
    color: #666;
    text-decoration: none;
}
.breadcrumb-area span {
    color: #333;
    font-weight: 500;
}

.room-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}
@media (min-width: 992px) {
    .detail-grid {
        grid-template-columns: minmax(0, 60%) minmax(0, 1fr);
    }
}

.gallery-main {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 450px;
    background: #f0f0f0;
    position: relative;
}
@media (max-width: 768px) {
    .breadcrumb-area {
        padding-top: 45px;
    }
    .gallery-main {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.thumb-wrap {
    position: relative;
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}
.thumb-wrap:hover, .thumb-wrap.active {
    opacity: 1;
    border: 2px solid var(--primary);
}
.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word;
}
.detail-price {
    font-size: 24px;
    color: #ff5e00;
    font-weight: 700;
    margin-bottom: 25px;
}
.detail-desc {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-section {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}
.info-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.info-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}
.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.related-section {
    margin-top: 60px;
    margin-bottom: 60px;
}
.related-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a202c;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 14px;
}
.price-table th, .price-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}
.price-table th {
    background: #f8fafc;
    color: #4a5568;
    font-weight: 600;
}
.price-table td {
    color: #2d3748;
}

.btn-view-room {
    display: inline-block;
    background: #F2D856;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}
.btn-view-room:hover {
    background: #f2d235ff;
    color: #fff;
}

/* Modal Styles */
.custom-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}
.custom-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
}
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-modal:hover {
    color: #000;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
}
