/* website.css — Hotel Hoàng Gia public booking site
   Modern design with glass effects, hero image, rich room cards */

:root {
    --primary: #279656;
    --primary-dark: #1e7a45;
    --gold: #c5a572;
    --dark: #0f172a;
    --dark-2: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1f2937; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Glass effects ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== Animations ===== */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up 0.6s ease-out; }
@keyframes bounce-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.animate-bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }

/* ===== Header / Nav ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: all 0.3s;
}
.site-header .container {
    display: flex; justify-content: space-between; align-items: center;
    height: 72px;
}
.site-logo {
    font-size: 22px; font-weight: 800; color: #fff;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
    color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: color 0.2s;
}
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-header.scrolled .site-logo { color: #1f2937; }
.site-header.scrolled .site-nav a { color: #4b5563; }
.site-header.scrolled .site-nav a:hover { color: var(--primary); }
.site-header.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 90vh; display: flex; align-items: center;
    overflow: hidden; color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(15,23,42,0.5) 0%, rgba(15,23,42,0.3) 50%, rgba(15,23,42,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 9999px; margin-bottom: 24px;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; max-width: 700px; }
.hero-sub { font-size: 20px; opacity: 0.9; max-width: 600px; margin-bottom: 40px; }
.hero-addr { font-size: 15px; opacity: 0.8; margin-bottom: 32px; }

/* Search form */
.search-form {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-radius: 16px; padding: 20px; max-width: 900px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.search-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: flex-end; }
.search-field label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.search-field input, .search-field select {
    width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb;
    border-radius: 10px; font-size: 15px; background: #fff; color: #1f2937;
}
.search-field input:focus, .search-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(39,150,86,0.12); }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.7); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border: 1px solid #e5e7eb; background: #fff;
    border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600;
    color: #374151; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #f9fafb; text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #b08d57; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-label { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.section-title { font-size: 36px; font-weight: 800; color: #1f2937; margin-bottom: 12px; }
.section-sub { font-size: 16px; color: #6b7280; max-width: 600px; }

/* ===== Room cards ===== */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.room-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s;
    display: flex; flex-direction: column;
}
.room-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.room-card-img { position: relative; height: 240px; overflow: hidden; background: #f3f4f6; }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.room-card:hover .room-card-img img { transform: scale(1.08); }
.room-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0e7ff, #f3f4f6); }
.room-card-price-tag {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--primary);
}
.room-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.room-card-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.room-card-desc { color: #6b7280; font-size: 14px; margin-bottom: 16px; flex: 1; }
.room-card-features { list-style: none; padding: 0; margin-bottom: 20px; }
.room-card-features li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid #f3f4f6; display: flex; justify-content: space-between; }
.room-card-features li strong { color: var(--primary); }
.room-card .btn { margin-top: auto; }

/* ===== Features (Why us) ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
    background: #fff; border-radius: 16px; padding: 32px 24px;
    text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-4px); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.feature-icon svg { width: 28px; height: 28px; color: var(--primary); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: #6b7280; font-size: 14px; }

/* ===== CTA strip ===== */
.cta-strip {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px; padding: 48px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-strip h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-strip p { opacity: 0.9; font-size: 16px; }

/* ===== Availability results ===== */
.avail-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.avail-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    transition: all 0.2s;
}
.avail-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--primary); }
.avail-card-info h4 { font-size: 18px; font-weight: 700; }
.avail-card-info p { color: #6b7280; font-size: 14px; }

/* ===== Lookup ===== */
.lookup-section { padding: 120px 0 80px; min-height: 70vh; }
.lookup-section h1 { font-size: 32px; margin-bottom: 24px; text-align: center; }
.lookup-form { display: flex; gap: 12px; max-width: 600px; margin: 0 auto 32px; }
.lookup-form .input { flex: 1; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 15px; }
.booking-result { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); max-width: 700px; margin: 0 auto; }
.booking-result h2 { margin-bottom: 20px; font-size: 24px; }

/* ===== Table ===== */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px 16px; background: #f9fafb; border-bottom: 2px solid #e5e7eb; font-size: 13px; font-weight: 600; color: #6b7280; text-transform: uppercase; }
.table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }

/* ===== Badge ===== */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f3f4f6; color: #6b7280; }

/* ===== Alert ===== */
.alert { padding: 14px 18px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-success { background: #dcfce7; color: #166534; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.modal-dialog { position: relative; background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: fade-up 0.3s ease-out; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #f3f4f6; }
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #9ca3af; line-height: 1; }
.modal-close:hover { color: #374151; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f3f4f6; display: flex; justify-content: flex-end; gap: 8px; }

/* ===== Form ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: #374151; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 15px; background: #fff; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(39,150,86,0.12); }
.empty { color: #6b7280; text-align: center; padding: 40px; }

/* ===== Footer ===== */
.site-footer { background: #0f172a; color: #fff; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; }
.footer-col h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 14px; padding: 4px 0; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; color: rgba(255,255,255,0.5); font-size: 13px; }

/* ===== Page banner ===== */
.page-banner { position: relative; min-height: 320px; display: flex; align-items: center; background-size: cover; background-position: center; margin-top: 0; }
.page-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,23,42,0.6), rgba(15,23,42,0.8)); }
.page-banner-content { position: relative; z-index: 1; padding-top: 72px; color: #fff; text-align: center; }
.page-banner-content h1 { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.page-banner-content p { font-size: 18px; opacity: 0.85; }

/* ===== Section padding ===== */
.section-padding { padding: 80px 0; }

/* ===== Room card (new style) ===== */
.room-card-image { position: relative; height: 240px; overflow: hidden; background: #f3f4f6; }
.room-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.room-card:hover .room-card-image img { transform: scale(1.08); }
.room-card-badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.95); padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--primary); }
.room-card-body { padding: 24px; }
.room-card-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.room-card-features { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; color: #6b7280; }
.room-card-desc { color: #6b7280; font-size: 14px; margin-bottom: 16px; }
.room-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.room-card-price { display: flex; align-items: baseline; gap: 4px; }
.room-card-price .price-label { font-size: 12px; color: #9ca3af; }
.room-card-price .price-value { font-size: 22px; font-weight: 800; color: var(--primary); }
.room-card-price .price-unit { font-size: 13px; color: #9ca3af; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 14px; color: #6b7280; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: #374151; }

/* ===== Room detail ===== */
.room-detail-section { padding: 100px 0 80px; }
.room-gallery { margin-bottom: 32px; }
.room-gallery-main { border-radius: 16px; overflow: hidden; height: 400px; background: #f3f4f6; }
.room-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.room-gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; overflow-x: auto; }
.room-gallery-thumb { flex-shrink: 0; width: 80px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; padding: 0; }
.room-gallery-thumb.active { border-color: var(--primary); }
.room-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-detail-info h1 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.room-detail-desc { color: #4b5563; font-size: 16px; line-height: 1.8; }
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.amenity-item { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f9fafb; border-radius: 10px; font-size: 14px; }
.amenity-item span { font-size: 20px; }

/* ===== Booking sidebar ===== */
.booking-sidebar { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); border: 1px solid #e5e7eb; }
.booking-sidebar.glass-panel { background: rgba(255,255,255,0.95); }
.booking-sidebar h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.price-display { text-align: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #f3f4f6; }
.price-display .price-label { font-size: 13px; color: #9ca3af; }
.price-display .price-main { font-size: 36px; font-weight: 800; color: var(--primary); }
.price-display .price-unit { font-size: 14px; color: #9ca3af; }
.booking-form .form-group { margin-bottom: 16px; }
.booking-contact { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #f3f4f6; }
.phone-link { font-size: 20px; font-weight: 700; color: var(--primary); }
.sticky-top { position: sticky; top: 90px; }

/* ===== Room select card ===== */
.room-select-card { border: 2px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: all 0.2s; }
.room-select-card:hover { border-color: #c5a572; }
.room-select-card.selected { border-color: var(--primary); background: #f0fdf4; }
.radio-indicator { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d1d5db; transition: all 0.2s; }
.radio-indicator.checked { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #fff; }

/* ===== Summary ===== */
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row span { color: #6b7280; }
.summary-row strong { color: #1f2937; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; margin-top: 8px; border-top: 2px solid #f3f4f6; }
.summary-total span { font-size: 16px; font-weight: 600; }
.summary-total strong { font-size: 24px; font-weight: 800; color: var(--primary); }

/* ===== Booking confirm ===== */
.success-icon-large { width: 80px; height: 80px; border-radius: 50%; background: #dcfce7; display: flex; align-items: center; justify-content: center; margin: 0 auto; color: var(--primary); }
.error-icon-large { width: 80px; height: 80px; border-radius: 50%; background: #fee2e2; display: flex; align-items: center; justify-content: center; margin: 0 auto; color: #ef4444; }
.ref-display { text-align: center; padding: 20px; }
.ref-display label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.ref-code { font-size: 28px; font-weight: 800; color: var(--primary); font-family: monospace; letter-spacing: 2px; }
.divider { height: 1px; background: #e5e7eb; margin: 20px 0; }
.booking-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.booking-detail-grid label { display: block; font-size: 12px; color: #9ca3af; text-transform: uppercase; margin-bottom: 4px; }
.booking-total { display: flex; justify-content: space-around; padding: 20px 0; }
.booking-total span { display: block; font-size: 13px; color: #6b7280; }
.booking-status-bar { display: flex; align-items: center; gap: 12px; padding: 16px; background: #f9fafb; border-radius: 10px; margin-top: 16px; }
.badge-booked { background: #dbeafe; color: #1e40af; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: #f9fafb; color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 672px; margin: 0 auto; }
.card { background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.card-header { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; }
.card-header h3 { font-size: 18px; font-weight: 700; }
.card-body { padding: 24px; }
[x-cloak] { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero-sub { font-size: 16px; }
    .search-row { grid-template-columns: 1fr; }
    .section-title { font-size: 26px; }
    .room-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .site-nav { display: none; }
    .cta-strip { padding: 32px 24px; }
    .page-banner-content h1 { font-size: 28px; }
    .booking-detail-grid { grid-template-columns: 1fr; }
    .room-gallery-main { height: 250px; }
}
