/* =========================================================
   1. GLOBAL & RESET & FONTS
   ========================================================= */

/* A. Khai báo Font Laginchy (Custom Font) */
@font-face {
    font-family: 'Laginchy';
    /* Đường dẫn tương đối từ folder css -> fonts */
    src: url('../fonts/Laginchy.woff2') format('woff2'),
         url('../fonts/Laginchy.woff') format('woff'),
         url('../fonts/Laginchy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* B. Biến Global (Mặc định - Sẽ bị ghi đè bởi Customizer) */
:root {
    --color-primary: #014034;
    --color-gold: #d4af37;
    --color-text-main: #333;
    --bg-light: #f4f5f7;
    --border-color: #e5e5e5;
    
    /* Font mặc định nếu chưa chỉnh trong Customizer */
    --font-body: 'Jost', sans-serif;
    --font-heading: 'Playfair Display', serif; 
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--color-text-main);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

/* Typography Global */
h1, h2, h3, h4, h5, h6,
.site-logo .logo-text,
.hero-title,
.section-heading,
.cc-price strong,
.bf-current {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

ul, li { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; outline: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); outline: none; }

/* Placeholder Color */
::placeholder { color: #999; opacity: 1; font-weight: 400; }

/* --- CORE LAYOUT SYSTEM (GRID) --- */
.ota-container, .container {
    width: 100%; max-width: 1200px; 
    margin: 0 auto; padding: 0 15px;
    position: relative;
}

.ota-row { 
    display: flex; flex-wrap: wrap; margin: 0 -15px; 
}

.ota-col-content { 
    width: 66.666%; padding: 0 15px; 
} 

.ota-col-sidebar { 
    width: 33.333%; padding: 0 15px; 
}


/* =========================================================
   2. SITE HEADER (STICKY)
   ========================================================= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 0; height: 80px; 
    background-color: var(--color-primary); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #fff; 
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98); 
    color: var(--color-primary); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo-text { font-size: 24px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.logo-text .dot { color: var(--color-gold); }

.site-logo img, .custom-logo {
    transition: filter 0.4s ease; max-height: 50px; width: auto; 
}
/* Đổi màu Logo ảnh khi scroll */
.site-header.scrolled .site-logo img,
.site-header.scrolled .custom-logo {
    filter: brightness(0) saturate(100%) invert(16%) sepia(28%) saturate(4649%) hue-rotate(143deg) brightness(93%) contrast(98%);
}


/* =========================================================
   3. DESKTOP NAVIGATION
   ========================================================= */
.desktop-navigation { height: 100%; display: flex; align-items: center; }
.desktop-navigation .menu { display: flex; align-items: center; gap: 5px; height: 100%; margin: 0; padding: 0; }
.desktop-navigation .menu > li { height: 100%; display: flex; align-items: center; position: relative; }

.desktop-navigation .menu > li > a {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; 
    color: inherit; padding: 0 15px; height: 100%; 
    display: flex; align-items: center; gap: 5px; position: relative;
}

/* Hover Line */
.desktop-navigation .menu > li > a:after {
    content: ''; position: absolute; bottom: 25px; left: 15px; right: 15px; height: 2px;
    background: var(--color-gold); transform: scaleX(0); transition: 0.3s;
}
.desktop-navigation .menu > li:hover > a:after { transform: scaleX(1); }

/* Submenu */
.desktop-navigation .sub-menu {
    display: block; position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); border-top: 3px solid #d4af37;
    padding: 10px 0; border-radius: 0 0 4px 4px; z-index: 9999;
    opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease;
}
.desktop-navigation .menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.desktop-navigation .sub-menu li { border-bottom: 1px solid #f5f5f5; width: 100%; display: block; }
.desktop-navigation .sub-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; color: #333 !important; font-size: 13px; font-weight: 600;
}
.desktop-navigation .sub-menu a:hover { background: #f9f9f9; color: var(--color-primary) !important; padding-left: 25px; }
.desktop-navigation .sub-menu a:after { display: none; } 

/* Arrow Icon */
.menu-item-has-children > a { padding-right: 20px !important; }
.menu-item-has-children > a::before {
    content: ''; position: absolute; right: 5px; top: 50%; margin-top: -2px; 
    width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; 
    transform: rotate(45deg); transition: transform 0.3s ease; pointer-events: none;
}
.menu-item-has-children:hover > a::before { transform: rotate(-135deg); margin-top: 2px; }


/* =========================================================
   4. HEADER ACTIONS (SEARCH, BUTTON, MOBILE TOGGLE)
   ========================================================= */
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; height: 100%; }

.header-actions .search-trigger {
    background: none; border: none; color: inherit; padding: 0;
    display: flex; align-items: center; justify-content: center; 
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
}
.header-actions .search-trigger svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2px; }
.header-actions .search-trigger:hover { color: var(--color-gold); background: rgba(255,255,255,0.1); }

.btn-book-now {
    background-color: var(--color-gold) !important; color: #fff !important; 
    padding: 10px 25px; font-size: 13px; font-weight: 700; text-transform: uppercase;
    border: 1px solid var(--color-gold) !important; border-radius: 4px; transition: 0.3s;
    display: inline-block;
}
.btn-book-now:hover { background-color: transparent !important; color: var(--color-gold) !important; }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer; padding: 0;
    align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff;
}
.menu-toggle svg { width: 28px; height: 28px; stroke: currentColor; fill: none; }
.site-header.scrolled .menu-toggle { color: var(--color-primary); }


/* =========================================================
   5. OVERLAYS (SEARCH & MOBILE MENU)
   ========================================================= */
.search-overlay, .mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(1, 64, 52, 0.98); z-index: -1;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s ease-in-out;
}
.search-overlay.active, .mobile-menu-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 9999; }

.search-close { position: absolute; top: 40px; right: 40px; background: none; border: none; font-size: 40px; color: #fff; cursor: pointer; }
.search-container { width: 100%; max-width: 800px; padding: 0 20px; text-align: center; transform: translateY(30px); opacity: 0; transition: 0.4s; }
.search-overlay.active .search-container { transform: translateY(0); opacity: 1; }

.search-overlay .search-field {
    width: 100%; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.3); 
    color: #fff; font-size: 32px; font-family: var(--font-heading); padding: 20px 0; text-align: center;
}
.search-overlay .search-submit {
    margin-top: 30px; background: var(--color-gold); border: none; color: #000; 
    padding: 15px 50px; font-weight: 800; text-transform: uppercase; cursor: pointer; border-radius: 50px;
}


/* =========================================================
   6. HERO SECTION (HOME & GENERAL)
   ========================================================= */
.hero-section {
    position: relative; width: 100%; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center; 
    overflow: hidden; margin-top: -80px; 
}
.hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 2; }
.hero-content { position: relative; z-index: 10; padding-top: 80px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.sub-title {
    display: inline-block; font-family: var(--font-heading); font-size: 16px; font-weight: 500; font-style: italic; letter-spacing: 2px;
    color: #fff; background: var(--color-primary); border: 1px solid var(--color-gold); padding: 8px 30px; border-radius: 50px; margin-bottom: 20px;
}
.main-title { font-family: var(--font-heading); font-size: 60px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.description { font-size: 18px; color: #f0f0f0; }

/* Animation */
.animate-up { opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }


/* =========================================================
   7. SEARCH ENGINE (HOME)
   ========================================================= */
.pioneer-search-engine {
    background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); 
    width: 100%; max-width: 1140px; margin: 0 auto; position: relative; z-index: 20;
}
.search-grid-advanced { display: grid; grid-template-columns: 1.5fr 1.3fr 1.3fr 1.6fr 160px; align-items: center; }
.search-col { padding: 5px 20px; border-right: 1px solid #eee; }
.search-col:last-child { border-right: none; }
.search-col label { display: block; font-size: 11px; font-weight: 800; color: var(--color-primary); text-transform: uppercase; margin-bottom: 8px; }
.input-wrap { display: flex; align-items: center; height: 40px; color: #555; }
.input-wrap svg { width: 18px; height: 18px; color: var(--color-gold); margin-right: 10px; flex-shrink: 0; }
.smart-select, .datepicker-frontend, input { width: 100%; border: none; background: transparent; font-weight: 600; font-size: 15px; color: #333; }
.btn-search-smart { width: 100%; height: 50px; background: var(--color-primary); color: #fff; border: none; border-radius: 6px; font-weight: 700; text-transform: uppercase; }


/* =========================================================
   8. RESPONSIVE RULES (GLOBAL MOBILE LAYOUT)
   ========================================================= */
@media (max-width: 1199px) {
    .menu-toggle { display: flex !important; }
    .desktop-navigation, .btn-book-now { display: none !important; }
    .mobile-menu-overlay { display: block; }
    .mobile-menu-panel { display: block; width: 300px; background: #fff; position: fixed; top:0; right: -300px; height:100%; transition: 0.4s; z-index: 2001; }
    .mobile-menu-overlay.active { background: rgba(0,0,0,0.5); opacity: 1; visibility: visible; }
    .mobile-menu-overlay.active .mobile-menu-panel { right: 0; }
    
    .hero-section { height: auto !important; padding: 45px 0 !important; }
    .search-grid-advanced { grid-template-columns: 1fr 1fr; gap: 15px; }
    .search-col-btn { grid-column: span 2; }
}

@media (min-width: 1200px) {
    .mobile-menu-panel, .mobile-menu-overlay, .menu-toggle { display: none !important; }
    .desktop-navigation, .btn-book-now { display: flex !important; }
}