/* =========================================
   1. CÀI ĐẶT CƠ BẢN (RESET)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* =========================================
   PAGE-SPECIFIC STYLES FOR KHÁCH SẠN
   ========================================= */

/* =========================================
   4. PHẦN HIỂN THỊ BANNER & NỘI DUNG DƯỚI
   ========================================= */
.hero-banner {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
    object-position: center 90%;
}

.slide.active {
    opacity: 1;
}

@keyframes zoomIn {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.intro-section {
    padding: 80px 20px;
    text-align: center;
    background: #fff;
    max-width: 900px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.intro-section .subtitle {
    display: block;
    color: #c0392b;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.intro-section h1 {
    font-size: 3.2em;
    color: #222;
    margin-bottom: 20px;
    font-weight: 800;
    text-align: center;
}

.intro-section p.description {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    line-height: 1.8;
    margin: 0 auto 0;
    max-width: 760px;
}

/* MODAL & FORM HIỆN ĐẠI */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    overflow-y: auto;
    /* ✅ cho phép cuộn */
    padding: 50px 0;
    /* tạo khoảng cách trên dưới */

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);

    z-index: 2000;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', sans-serif;

    margin: auto;
    /* ✅ thay vì center bằng flex */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #fbbbbb 0%, #d2192f 100%);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 2px solid #0b0910;
    position: relative;
}

.modal-header h2 {
    text-transform: uppercase;
    color: #030405;
    margin-bottom: 8px;
    font-size: 1.8em;
    font-weight: 800;
    letter-spacing: 1px;
}

.modal-header p {
    font-size: 0.95em;
    color: #030405;
}

.grid-form {
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    flex: 1;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c0392b;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    font-size: 0.95em;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #c0392b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
    transform: translateY(-2px);
}

.gender-selector {
    display: flex;
    gap: 25px;
    padding-top: 5px;
}

.gender-selector label {
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-transform: none;
    color: #333;
}

.gender-selector input {
    margin-right: 8px;
    cursor: pointer;
}

.btn-confirm {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.95em;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.5);
}

.btn-confirm:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #fff;
    background-color: #c0392b;
    transform: rotate(90deg) scale(1.1);
}

/* PHẦN GALLERY PHÒNG NGỦ */
/* SECTION QUẢN LÝ ĐẶT PHÒNG */
.booking-management {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.management-header {
    margin-bottom: 60px;
}

.management-header h2 {
    font-size: 2.8em;
    color: #222;
    margin-bottom: 15px;
    font-weight: 800;
}

.management-header p {
    font-size: 1.1em;
    color: #999;
}

.booking-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 600px;
    margin: 0 auto 60px;
}

.status-card {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 2px solid #90caf9;
}

.status-card h3 {
    font-size: 0.95em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.status-number {
    font-size: 2.5em;
    color: #c0392b;
    font-weight: 800;
    margin: 0;
}

.bookings-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    min-height: auto;
    align-items: start;
}

.bookings-list p {
    text-align: center !important;
    color: #999 !important;
    padding: 30px 20px !important;
    grid-column: 1/-1;
    margin: 0;
}

.booking-item {
    display: flex;
    flex-direction: column;
    background: #e3f2fd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    border-left: 3px solid #d21919;
    transition: all 0.2s ease;
    max-width: 360px;
    margin: 0 auto;
}

.booking-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.14);
}

.booking-header {
    background: linear-gradient(135deg, #f15e5e 0%, #d2192f 100%);
    padding: 6px 7px;
    border-bottom: 1px solid #030304;
}

.booking-header h3 {
    margin: 0 0 2px;
    color: #090c10;
    font-size: 0.9em;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.booking-date {
    font-size: 0.75em;
    color: #7f8c8d;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.booking-content {
    padding: 8px;
    background: white;
}

.booking-info {
    text-align: left;
    margin-bottom: 8px;
    font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
    padding: 5px 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    border-radius: 6px;
}

.booking-info strong {
    display: inline-block;
    width: 90px;
    margin: 0;
    font-size: 0.95em;
    vertical-align: top;
}

.booking-info p {
    display: inline-block;
    width: calc(100% - 98px);
    margin: 0 0 7px;
    line-height: 1.4;
    font-size: 0.95em;
    vertical-align: top;
    overflow-wrap: break-word;
}

.booking-info p:last-child {
    margin-bottom: 0;
}

.booking-info::after {
    content: "";
    display: table;
    clear: both;
}

.booking-details {
    width: 100%;
}

.booking-actions {
    display: flex;
    gap: 5px;
    padding-top: 6px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.btn-detail,
.btn-edit,
.btn-delete {
    flex: 1;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-detail {
    background: #fff;
    color: #333;
    border: 1px solid #d0d0d0;
}

.btn-detail:hover {
    background: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

/* MODAL FOOTER */
.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 2px solid #1976d2;
    background: #e3f2fd;
}

.modal-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #e8f4f8;
    color: #1976d2;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #90caf9;
}

.btn-cancel:hover {
    background: #90caf9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.btn-cancel:active {
    transform: translateY(-1px);
}

.modal-body {
    padding: 30px;
    text-align: center;
    font-size: 1.1em;
    color: #333;
}

.rooms-gallery {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    text-align: center;
}

.gallery-header {
    margin-bottom: 70px;
}

.gallery-header h2 {
    font-size: 3em;
    color: #222;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gallery-header p {
    font-size: 1.15em;
    color: #999;
    max-width: 600px;
    margin: 0 auto;
}

.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #f0f0f0;
}

.room-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.room-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.room-card:hover img {
    transform: scale(1.08);
}

.room-info {
    padding: 30px;
}

.room-info h3 {
    font-size: 1.7em;
    color: #222;
    margin-bottom: 12px;
    font-weight: 800;
}

.room-price {
    font-size: 1.6em;
    color: #c0392b;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.btn-book {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.4);
}

.btn-book:active {
    transform: translateY(0);
}

.cta {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 80px 20px;
    text-align: center;
    margin-top: 110px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/anh1.jpg') center/cover no-repeat;

    color: white;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta button {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    background: #c0392b;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.cta button:hover {
    background: #e74c3c;
    transform: scale(1.05);
}


/* FOOTER */

footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #222;
    color: #ddd;
    padding: 50px 5%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    text-align: center;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: white;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/*hieu ung scroll*/
html {
    scroll-behavior: smooth;
    /* Tạo hiệu ứng cuộn trang từ từ, mượt mà */
    scroll-padding-top: 80px;
    /* BÙ TRỪ: Tránh việc nội dung bị cái thanh Header cố định che mất */
}

html,
body {
    height: 100%;
}

/* ============================================
   HERO BANNER FULL WIDTH & CAROUSEL STYLES
   ============================================ */
.hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 70vh;
    position: relative;
    overflow: hidden;
    top: -80px;
    margin-bottom: 0;
}

.hero-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ============================================
   BOOKING TYPE SELECTOR
   ============================================ */
.booking-type-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.type-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.type-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.type-btn:hover::before {
    width: 300px;
    height: 300px;
}

.type-btn.active {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    border-color: #c0392b;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
    transform: translateY(-2px);
}

.type-btn:hover {
    border-color: #c0392b;
    transform: translateY(-2px);
    color: #080302;
}

/* ============================================
   RESTAURANTS GALLERY
   ============================================ */
.restaurants-gallery {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    text-align: center;
    display: none;
}

.restaurants-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    max-width: 1400px;
    margin: 0 auto;
}

.restaurant-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #f0f0f0;
}

.restaurant-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.restaurant-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.restaurant-card:hover img {
    transform: scale(1.08);
}

.restaurant-info {
    padding: 30px;
}

.restaurant-info h3 {
    font-size: 1.7em;
    color: #222;
    margin-bottom: 12px;
    font-weight: 800;
}

.restaurant-price {
    font-size: 1.6em;
    color: #c0392b;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* ============================================
   TEXTAREA & FORM STYLES
   ============================================ */
.input-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    font-size: 0.95em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100px;
    resize: vertical;
    transition: all 0.3s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: #c0392b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 25px;
    background: #4caf50;
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateY(100px);
}

.toast-notification.error {
    background: #f44336;
}

.toast-notification.success {
    background: #4caf50;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-edit {
    flex: 1;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #222;
    color: white;
    padding: 18px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 3000;
    max-width: 400px;
    font-size: 0.95em;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid #c0392b;
}

.toast-notification.show {
    display: block;
}

.toast-notification.success {
    background: #27ae60;
    border-left-color: #27ae60;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.btn-edit {
    flex: 1;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ============================================
   ROOM & RESTAURANT FILTER
   ============================================ */
.room-card.hidden,
.restaurant-card.hidden {
    display: none !important;
}

.room-card,
.restaurant-card {
    transition: all 0.3s ease;
}

/* ===== CHỈ ANIMATE NỘI DUNG ===== */
#page-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

#page-content.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Hiệu ứng vào trang */
#page-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

