/* ====================
   TH LUXURY HOTEL – Stylesheet
   Phong cách: Boutique – Sang trọng – Tối giản
   ==================== */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f7f4ef;
    --color-bg-dark: #1a1a1a;
    --color-text: #1f1f1f;
    --color-text-muted: #6b6b6b;
    --color-text-light: #ffffff;
    --color-primary: #c9a567;
    --color-primary-dark: #a98744;
    --color-border: #e6e1d8;
    --color-accent: #2c2a26;
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1240px;
    --radius: 2px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.08; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); line-height: 1.14; }
h3 { font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1.2; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--color-text-muted); }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================
   HEADER
   ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: all var(--transition);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    backdrop-filter: blur(10px);
}
.site-header.scrolled .main-nav a,
.site-header.scrolled .logo,
.site-header.scrolled .menu-toggle span { color: var(--color-text); }
.site-header.scrolled .menu-toggle span { background: var(--color-text); }
.site-header.light .main-nav a,
.site-header.light .logo { color: var(--color-text-light); }
.site-header.light .menu-toggle span { background: var(--color-text-light); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
}
.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    border: 1.5px solid currentColor;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: filter var(--transition);
}
.site-header:not(.scrolled):not(.no-light) .logo-img {
    filter: brightness(0) invert(1);
}
.logo-img-light {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.main-nav { flex: 1; }
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
    justify-content: center;
}
.main-nav a {
    color: var(--color-text-light);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
    padding: 6px 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Language switcher – cân bằng với .btn-book */
.lang-switch {
    position: relative;
}
.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: inherit;
    border: 1.5px solid currentColor;
    padding: 12px 18px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    transition: all var(--transition);
    border-radius: var(--radius);
    height: 46px;
}
.lang-current .lang-flag {
    font-size: 1rem;
    line-height: 1;
}
.lang-current svg {
    transition: transform var(--transition);
    opacity: 0.7;
}
.lang-switch:hover .lang-current,
.lang-switch:focus-within .lang-current {
    background: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}
.lang-switch:hover .lang-current svg,
.lang-switch:focus-within .lang-current svg {
    transform: rotate(180deg);
    opacity: 1;
}
.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    background: var(--color-bg);
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.14);
    list-style: none;
    padding: 6px 0;
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    overflow: hidden;
}
.lang-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: var(--color-text);
    font-size: 0.92rem;
    transition: all var(--transition);
}
.lang-menu li a span {
    font-size: 1.05rem;
}
.lang-menu li a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    padding-left: 22px;
}
.lang-menu li a.active {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    font-weight: 500;
}

/* Button book – tinh chỉnh để cân bằng với lang switcher */
.btn-book {
    padding: 12px 26px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.14em;
}
.btn-book:hover {
    transform: none;
}

/* Header transparent state – cải thiện contrast */
.site-header:not(.scrolled) .lang-current {
    border-color: rgba(255, 255, 255, 0.4);
}
.site-header:not(.scrolled) .lang-current:hover {
    border-color: var(--color-primary);
}
.site-header.scrolled .header-actions { color: var(--color-text); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text-light);
    transition: var(--transition);
}

/* ====================
   BUTTONS
   ==================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(201, 165, 103, 0.45);
}
.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}
.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-text-light);
}
.btn-outline-light {
    background: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}
.btn-outline-light:hover {
    background: var(--color-text-light);
    color: var(--color-text);
}

/* ====================
   HERO
   ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2a26 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.7) 100%),
        url('../images/hero.jpg') center/cover no-repeat;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 900px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--color-primary);
    margin-bottom: 22px;
    animation: fadeUp 1s ease both;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--color-primary);
}
.hero h1 {
    color: var(--color-text-light);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 1.08;
    margin-bottom: 28px;
    animation: fadeUp 1s 0.2s ease both;
    letter-spacing: -0.02em;
}
.hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    max-width: 620px;
    margin: 0 auto 36px;
    animation: fadeUp 1s 0.4s ease both;
    line-height: 1.6;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s 0.6s ease both;
}
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    z-index: 1;
    opacity: 0.7;
}
.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 50px;
    background: currentColor;
    margin: 12px auto 0;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); transform-origin: top; }
    50% { transform: scaleY(0.3); transform-origin: top; }
}

/* ====================
   BOOKING BAR
   ==================== */
.booking-bar {
    position: relative;
    margin-top: -60px;
    z-index: 5;
}
.booking-bar-inner {
    background: var(--color-text-light);
    box-shadow: var(--shadow-md);
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}
.booking-bar label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.booking-bar input,
.booking-bar select {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: transparent;
    color: var(--color-text);
    outline: none;
}
.booking-bar input:focus,
.booking-bar select:focus { border-color: var(--color-primary); }

/* ====================
   SECTIONS
   ==================== */
section { padding: 90px 0; }
section.tight { padding: 60px 0; }
.section-bg-alt { background: var(--color-bg-alt); }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
    position: relative;
}
.section-head::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-primary);
    margin: 0 auto 20px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.section-head h2 {
    margin-bottom: 22px;
    font-weight: 400;
    font-size: clamp(2.1rem, 3.8vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
}
.section-head p { font-size: 1.05rem; line-height: 1.68; color: var(--color-text-muted); }

/* Intro */
.intro {
    text-align: center;
    padding: 110px 0 70px;
}
.intro .container { max-width: 780px; }
.intro h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.38;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.intro h2 em {
    color: var(--color-primary);
    font-style: italic;
}
.intro-divider {
    width: 60px;
    height: 1px;
    background: var(--color-primary);
    margin: 30px auto;
}

/* ====================
   ROOMS GRID
   ==================== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.room-card {
    background: var(--color-bg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.room-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #d4c6a8 0%, #8d7a55 100%);
}
.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.room-card:hover .room-card-image img { transform: scale(1.05); }
.room-card-price {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}
.room-card-price strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}
.room-card-body {
    padding: 24px 4px;
    text-align: center;
}
.room-card h3 {
    font-size: clamp(1.4rem, 1.7vw, 1.65rem);
    margin-bottom: 8px;
    line-height: 1.2;
}
.room-card-meta {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}
.room-card a.room-link {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--color-primary-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 4px;
}

/* ====================
   FEATURE SPLIT
   ==================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-image {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #c9a567 0%, #5a4a32 100%);
    overflow: hidden;
    position: relative;
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.split-content .section-eyebrow { display: block; }
.split-content h2 {
    margin-bottom: 22px;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.15;
}
.split-content p { font-size: 1.05rem; margin-bottom: 24px; }
.split-content ul {
    list-style: none;
    margin: 24px 0;
}
.split-content ul li {
    padding: 8px 0 8px 26px;
    position: relative;
    color: var(--color-text);
}
.split-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 14px;
    height: 1px;
    background: var(--color-primary);
}

/* ====================
   OFFERS
   ==================== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.offer-card {
    background: var(--color-text-light);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.offer-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}
.offer-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
}
.offer-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.offer-percent {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 2.4rem;
    line-height: 1;
    display: block;
    margin: 14px 0;
}
.offer-card p { font-size: 0.95rem; margin-bottom: 24px; }

/* ====================
   NEARBY
   ==================== */
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.nearby-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #6b7568 0%, #2c3429 100%);
}
.nearby-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.nearby-card:hover img { transform: scale(1.08); }
.nearby-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    color: var(--color-text-light);
}
.nearby-card-overlay h4 {
    color: var(--color-text-light);
    font-size: 1.4rem;
    font-family: var(--font-serif);
    margin-bottom: 4px;
}
.nearby-card-overlay span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
}

/* ====================
   PAGE HEADER (sub pages)
   ==================== */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #2c2a26 0%, #1a1a1a 100%);
    color: var(--color-text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero.jpg') center/cover no-repeat;
    opacity: 0.22;
}
.page-header > .container { position: relative; }
.page-header > .container::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-primary);
    margin: 0 auto 18px;
}
.page-header > * { position: relative; }
.page-header h1 {
    color: var(--color-text-light);
    font-weight: 300;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.1;
}
.page-header p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 22px auto 0;
    font-size: 1rem;
    line-height: 1.65;
}
.breadcrumbs {
    margin-top: 20px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--color-primary);
}
.breadcrumbs a { color: rgba(255,255,255,0.7); }

/* ====================
   ROOM LIST (rooms page)
   ==================== */
.room-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.room-row:last-child { margin-bottom: 0; }
.room-row.reverse .room-row-image { order: 2; }
.room-row-image {
    background: linear-gradient(135deg, #d4c6a8 0%, #8d7a55 100%);
}
.room-row-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.room-gallery { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Main image ---------- */
.room-gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e0cf 0%, #c9bda1 100%);
    cursor: zoom-in;
    box-shadow: 0 24px 70px -30px rgba(26, 26, 26, 0.35);
}
.room-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.room-gallery-main:hover img {
    transform: scale(1.04);
}

/* Gradient overlay nhẹ – chỉ xuất hiện khi hover, tăng độ tương phản cho nav buttons */
.room-gallery-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.18), transparent 25%, transparent 75%, rgba(0,0,0,0.18));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.room-gallery-main:hover::before { opacity: 1; }

/* ---------- Nav arrows ---------- */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    line-height: 1;
    color: var(--color-text);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
    z-index: 3;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}
.room-gallery-main:hover .gallery-nav {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.gallery-nav:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08) !important;
}
.gallery-nav:active { transform: translateY(-50%) scale(0.98) !important; }
.gallery-nav.prev { left: 18px; }
.gallery-nav.next { right: 18px; }

/* ---------- Counter ---------- */
.gallery-counter {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 16px;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.gallery-counter .current {
    color: var(--color-primary);
    font-weight: 500;
}
.gallery-counter .sep { opacity: 0.45; font-size: 0.8rem; }

/* ---------- Zoom hint ---------- */
.gallery-zoom-hint {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
    pointer-events: none;
}
.room-gallery-main:hover .gallery-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Thumbnails ---------- */
.room-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* ---------- Slider mode khi > 5 ảnh ---------- */
.thumbs-wrapper {
    position: relative;
}
.room-gallery-thumbs.has-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
}
.room-gallery-thumbs.has-slider::-webkit-scrollbar { display: none; }
.room-gallery-thumbs.has-slider .thumb {
    flex: 0 0 calc((100% - 32px) / 5);
    scroll-snap-align: start;
}

/* Nav buttons cho thumb slider */
.thumbs-nav {
    position: absolute;
    top: calc(50% - 12px);
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.18);
    transition: all 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 1;
}
.thumbs-nav:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
}
.thumbs-nav:active {
    transform: translateY(-50%) scale(0.96);
}
.thumbs-nav.prev { left: -14px; }
.thumbs-nav.next { right: -14px; }
.thumbs-nav.is-disabled {
    opacity: 0.25;
    pointer-events: none;
    transform: translateY(-50%) scale(0.92);
}

/* Progress bar dưới thumbnail strip – báo vị trí scroll */
.thumbs-progress {
    margin-top: 10px;
    height: 2px;
    background: rgba(201, 165, 103, 0.15);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}
.thumbs-progress-bar {
    display: block;
    height: 100%;
    width: 30%;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width 0.35s ease, transform 0.35s ease;
    transform-origin: left;
}
.room-gallery-thumbs .thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    border: none;
    padding: 0;
    background: var(--color-bg-alt);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.room-gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.35s ease;
    opacity: 0.55;
    display: block;
    filter: saturate(0.85);
}
.room-gallery-thumbs .thumb:hover img {
    opacity: 0.85;
    transform: scale(1.06);
    filter: saturate(1);
}
.room-gallery-thumbs .thumb.active img {
    opacity: 1;
    filter: saturate(1);
}
/* Dark overlay khi không active – tăng nổi bật cho ảnh đang chọn */
.room-gallery-thumbs .thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.room-gallery-thumbs .thumb:hover::before,
.room-gallery-thumbs .thumb.active::before {
    opacity: 0;
}
/* Gold line slide-in từ giữa khi active */
.room-gallery-thumbs .thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 2;
}
.room-gallery-thumbs .thumb.active::after { width: 100%; }
.room-gallery-thumbs .thumb:hover:not(.active)::after { width: 32%; }

/* ---------- PhotoSwipe overrides ---------- */
.pswp__bg {
    background: #08080a !important;
}
.pswp__button {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease, transform 0.3s ease;
}
.pswp__button:hover {
    color: var(--color-primary) !important;
}
.pswp__button--arrow:hover {
    transform: scale(1.1);
}
.pswp__custom-caption,
.pswp .pswp__hide-on-close .custom-caption { /* fallback */
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}
.pswp__caption-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.04em;
}
.pswp__caption-divider {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 18px;
    vertical-align: middle;
}
.pswp__caption-counter {
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: 0.12em;
}
.pswp__caption-counter .sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}
/* PhotoSwipe caption custom – đặt riêng */
.pswp .pswp__top-bar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}
/* Container caption custom – render bằng JS */
.pswp .pswp__hide-on-close + .pswp__custom-caption {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ---------- Custom lightbox (legacy – ẩn) ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 100px;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65),
                0 0 0 1px rgba(201, 165, 103, 0.15);
    transition: opacity 0.35s ease;
    will-change: opacity;
}
.lightbox-img.fading { opacity: 0; }

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lightbox-close:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: rotate(90deg) scale(1.06);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 62px;
    height: 62px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
}
.lightbox-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
}
.lightbox-nav:active { transform: translateY(-50%) scale(0.96); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.lightbox-caption {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-serif);
    display: inline-flex;
    align-items: center;
    gap: 18px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 2;
}
.lightbox-caption .room-name {
    font-size: 1.1rem;
}
.lightbox-caption .divider {
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-caption .counter {
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.lightbox-caption .counter .total {
    color: rgba(255, 255, 255, 0.45);
}
.lightbox-caption .counter .sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

/* Keyboard hints */
.lightbox-hints {
    position: absolute;
    top: 28px;
    left: 28px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}
.lightbox-hints kbd {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}
.room-row-content h2 {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    line-height: 1.15;
}
.room-row-price {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    margin: 16px 0;
}
.room-row-price span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-left: 4px;
}
.room-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.room-row-meta div {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.room-row-meta div strong {
    display: block;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2px;
}
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin: 20px 0;
}
.amenities-grid li {
    list-style: none;
    padding-left: 20px;
    position: relative;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}
.amenities-grid li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ====================
   BRANCHES
   ==================== */
.branch-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.branch-row:last-child { margin-bottom: 0; }
.branch-row.reverse .branch-image { order: 2; }
.branch-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #d4c6a8 0%, #8d7a55 100%);
}
.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.branch-row:hover .branch-image img { transform: scale(1.04); }
.branch-content h2 {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    line-height: 1.12;
}
.branch-tagline {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-primary-dark);
    margin-bottom: 18px;
}
.branch-address {
    padding: 14px 18px;
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-primary);
    margin: 20px 0;
    font-size: 0.95rem;
    color: var(--color-text);
}
.branch-address strong { color: var(--color-text); margin-right: 6px; }

.branches-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.branch-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #c9a567 0%, #5a4a32 100%);
    cursor: pointer;
}
.branch-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.branch-card:hover img { transform: scale(1.06); }
.branch-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    color: var(--color-text-light);
}
.branch-card-overlay span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.branch-card-overlay h3 {
    color: var(--color-text-light);
    font-size: 1.7rem;
    margin-bottom: 8px;
}
.branch-card-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 14px;
}
.branch-card-overlay .btn {
    align-self: flex-start;
    padding: 10px 22px;
    font-size: 0.78rem;
}

/* ====================
   DINING
   ==================== */
.dining-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-text-light);
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.dining-card:last-child { margin-bottom: 0; }
.dining-card.reverse .dining-image { order: 2; }
.dining-image {
    background: linear-gradient(135deg, #b88d63 0%, #5a4332 100%);
    min-height: 400px;
}
.dining-image img { width: 100%; height: 100%; object-fit: cover; }
.dining-content { padding: 50px 60px; align-self: center; }
.dining-content h3 {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    line-height: 1.2;
    margin-bottom: 10px;
}
.dining-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-primary);
    margin-bottom: 16px;
}

/* ====================
   CONTACT
   ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-info-list {
    list-style: none;
    margin: 20px 0;
}
.contact-info-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}
.contact-info-list strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-text);
}
.contact-info-list span,
.contact-info-list a { color: var(--color-text-muted); font-size: 0.95rem; }

/* ====================
   FORM
   ==================== */
.form-card {
    background: var(--color-bg-alt);
    padding: 50px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--color-primary); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-actions { margin-top: 30px; text-align: right; }

.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.alert-success {
    background: #e7f3ec;
    color: #1f5236;
    border-left: 3px solid #2d7a4f;
}
.alert-error {
    background: #fbe9e7;
    color: #7a1f1f;
    border-left: 3px solid #c83a3a;
}

/* ====================
   NEWSLETTER
   ==================== */
.newsletter {
    padding: 80px 0;
    background: var(--color-accent);
    color: var(--color-text-light);
}
.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.newsletter-text h2 {
    color: var(--color-text-light);
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}
.newsletter-text p { color: rgba(255,255,255,0.7); margin-bottom: 0; }
.newsletter-form {
    display: flex;
    gap: 12px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: var(--color-text-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: var(--color-primary); }

/* ====================
   FOOTER
   ==================== */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer-col .logo { color: var(--color-text-light); margin-bottom: 20px; }
.footer-tagline { margin-bottom: 24px; color: rgba(255,255,255,0.6); font-size: 0.94rem; }
.footer-col h4 {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    font-weight: 500;
}
.footer-links, .footer-contact { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.92rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-primary); }
.footer-contact li {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
    line-height: 1.5;
}
.footer-contact strong {
    color: var(--color-text-light);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 2px;
}
.footer-contact a { color: var(--color-primary); }
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.social-links a:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-text-light);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom ul {
    list-style: none;
    display: flex;
    gap: 24px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--color-primary); }

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split, .room-row, .branch-row, .contact-grid, .dining-card,
    .newsletter-inner, .branches-preview { grid-template-columns: 1fr; gap: 40px; }
    .split.reverse, .room-row.reverse, .branch-row.reverse { direction: ltr; }
    .room-row.reverse .room-row-image,
    .branch-row.reverse .branch-image,
    .dining-card.reverse .dining-image { order: -1; }
    .booking-bar-inner { grid-template-columns: 1fr 1fr; }
    .dining-content { padding: 40px 30px; }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    .menu-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        padding: 100px 30px 30px;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 20px; }
    .main-nav a { color: var(--color-text); font-size: 1rem; }
    .btn-book { display: none; }
    .lang-switch { margin-right: 4px; }
    .lang-current { padding: 6px 10px; font-size: 0.78rem; }
    .booking-bar-inner { grid-template-columns: 1fr; padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .hero-content { padding: 100px 24px 60px; }
    .form-card { padding: 30px 20px; }
    .amenities-grid { grid-template-columns: 1fr; }
    .lightbox { padding: 70px 16px 80px; }
    .lightbox-nav { width: 46px; height: 46px; font-size: 1.6rem; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-close { top: 16px; right: 16px; width: 42px; height: 42px; }
    .lightbox-hints { display: none; }
    .lightbox-caption { font-size: 0.85rem; gap: 10px; bottom: 16px; }
    .lightbox-caption .room-name { font-size: 0.85rem; }
    .gallery-nav { width: 42px; height: 42px; font-size: 1.4rem; opacity: 1; }
    .gallery-nav.prev { left: 10px; }
    .gallery-nav.next { right: 10px; }
    .gallery-zoom-hint { display: none; }
}

/* ====================
   UTILITIES
   ==================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
