/* ==============================================
   Travel Theme Consolidated CSS
   Merged: style.css + header.css + main.css + advanced-features.css + contact-page.css
   ============================================== */

/* ------------------------------
   Theme Metadata & Variables
   ------------------------------ */
:root {
    --primary: #2bee2b;
    --primary-rgb: 43, 238, 43;
    --accent: #ff385c;
    --bg-body: #f7f7f7;
    --bg-white: #ffffff;
    --text-main: #222222;
    --text-muted: #717171;
    --border-soft: #ebebeb;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-float: 0 4px 16px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
    --bottom-nav-height: 70px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.dark {
    --bg-body: #020617;
    --bg-white: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-soft: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* ------------------------------
   Reset & Base Styles
   ------------------------------ */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.fill-0 { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------
   Scrollbar
   ------------------------------ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: var(--primary); 
    border-radius: 10px; 
    border: 3px solid transparent; 
    background-clip: content-box; 
}

/* ------------------------------
   Glass Effect
   ------------------------------ */
.glass-effect { 
    background: var(--glass-bg); 
    backdrop-filter: blur(20px) saturate(180%); 
    border: 1px solid var(--glass-border); 
}

@supports (padding: max(0px)) {
    #masthead { 
        padding-left: max(0.75rem, env(safe-area-inset-left)); 
        padding-right: max(0.75rem, env(safe-area-inset-right)); 
    }
}

/* ------------------------------
   Animations
   ------------------------------ */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in { animation: fade-in 0.3s ease-out; }

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------
   Scroll Progress
   ------------------------------ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), #3b82f6);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ------------------------------
   Navigation
   ------------------------------ */
.main-navigation { position: relative; z-index: 1000; }
.nav-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; margin-left: 1px; }
.nav-link { 
    display: flex; 
    align-items: center; 
    padding: 1rem 1.25rem; 
    color: #fff; 
    text-decoration: none; 
    font-weight: 500; 
    transition: all 0.3s ease; 
}
.nav-link:hover, .nav-item.active > .nav-link { color: #fff; background-color: rgba(255, 255, 255, 0.15); }

/* Dropdown */
.sub-menu-container { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 280px; 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all 0.3s ease; 
    z-index: 999; 
    overflow: hidden; 
}
.nav-item.has-dropdown:hover > .sub-menu-container { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu { list-style: none; margin: 0; padding: 0.5rem 0; }
.sub-menu .nav-link { padding: 0.75rem 1.25rem; border-bottom: 1px solid #f5f5f5; }
.sub-menu .nav-link:hover { background-color: rgba(22, 93, 255, 0.05); padding-left: 1.5rem; }

/* Mobile Menu */
@media (max-width: 992px) {
    .nav-menu { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: white; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
        padding: 1rem 0; 
        z-index: 999; 
    }
    .nav-menu.toggled { display: block; }
    .nav-item { width: 100%; }
    .sub-menu-container { 
        position: relative; 
        width: 100%; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        box-shadow: none; 
        padding-left: 1.5rem; 
    }
    .menu-toggle { 
        display: flex; 
        padding: 0.75rem 1rem; 
        background: #f8f9fa; 
        border: none; 
        border-radius: 6px; 
        cursor: pointer; 
    }
}
@media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
    .main-navigation { display: block; }
}

/* ------------------------------
   Card System
   ------------------------------ */
.glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

.app-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .app-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .app-grid { grid-template-columns: repeat(5, 1fr); } }

.app-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-soft);
    position: relative;
    cursor: pointer;
}
.app-card:hover { box-shadow: var(--shadow-float); }
.app-card:active { opacity: 0.9; }
.app-card-img { aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.app-card-img img { width: 100%; height: 100%; object-fit: cover; }
.app-card-content { padding: 16px; }
.app-card-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-meta { font-size: 13px; color: var(--text-muted); }

@media (max-width: 767px) {
    .app-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 16px; }
    .app-card { border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    .app-card-img { aspect-ratio: 16 / 9; }
}

/* ------------------------------
   Gallery
   ------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-section { position: relative; z-index: 1; margin-bottom: 50px; }
.gallery-section h3 { color: var(--primary); margin-bottom: 20px; font-size: 20px; font-weight: 600; }
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item:hover { box-shadow: var(--shadow-float); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; }
@media (max-width: 480px) { .gallery-item img { height: 200px; } }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    padding: 15px;
}

/* ------------------------------
   Lightbox
   ------------------------------ */
.lightbox.active { display: flex; align-items: center; justify-content: center; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: -60px; right: 0; font-size: 40px; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }

/* ------------------------------
   Heritage Timeline
   ------------------------------ */
.font-serif {
    font-family: "Noto Serif SC", "STSong", "Songti SC", serif;
}

.bg-rice-paper {
    background-image: url('https://www.transparenttextures.com/patterns/rice-paper.png');
}

.heritage-timeline {
    position: relative;
    padding-left: 2rem;
}
.heritage-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #b91c1c 0%, #b91c1c 80%, transparent 100%);
}
.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}
.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: #b91c1c;
    border: 3px solid #fdfcf0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #b91c1c;
}

/* Hide scrollbar but allow scrolling */
.custom-scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.custom-scrollbar-hidden::-webkit-scrollbar { display: none; }

/* ------------------------------
   Contact Page Styles
   ------------------------------ */
.contact-page-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 3px;
}

.page-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-info {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    border-radius: 3px;
}

.contact-details {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.25rem;
    color: #007bff;
    margin-right: 1rem;
    background-color: rgba(0, 123, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: #666;
    margin: 0;
    font-size: 0.9375rem;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #333;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icons li:nth-child(1) a:hover { background-color: #07C160; color: #fff; }
.social-icons li:nth-child(2) a:hover { background-color: #E6162D; color: #fff; }
.social-icons li:nth-child(3) a:hover { background-color: #000000; color: #fff; }
.social-icons li:nth-child(4) a:hover { background-color: #E1306C; color: #fff; }
.social-icons li:nth-child(5) a:hover { background-color: #1877F2; color: #fff; }

.faq-link {
    margin-top: auto;
}

.faq-link p {
    font-size: 0.9375rem;
    color: #666;
    margin: 0;
}

.faq-link a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.faq-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.faq-section {
    padding: 4rem 0;
    background-color: #fff;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 3px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 2rem;
    background-color: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.875rem;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

.faq-answer p {
    padding: 1.25rem 0;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ------------------------------
   Contact Page Responsive
   ------------------------------ */
@media (max-width: 992px) {
    .contact-info { margin-top: 2rem; }
    .page-title { font-size: 2.25rem; }
    .faq-section h2 { font-size: 1.875rem; }
}

@media (max-width: 768px) {
    .contact-page-section, .faq-section { padding: 3rem 0; }
    .page-title { font-size: 2rem; }
    .page-description { font-size: 1rem; }
    .contact-form-wrapper, .contact-info { padding: 1.5rem; }
    .social-icons { flex-wrap: wrap; }
    .faq-section h2 { font-size: 1.75rem; }
    .faq-question { font-size: 1rem; padding: 1rem 1.5rem; }
    .faq-answer { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
    .contact-page-section, .faq-section { padding: 2rem 0; }
    .page-header { margin-bottom: 2rem; }
    .page-title { font-size: 1.75rem; }
    .contact-item { flex-direction: column; }
    .contact-item i { margin-right: 0; margin-bottom: 0.75rem; }
    .social-icons { justify-content: center; }
    .faq-section h2 { font-size: 1.5rem; }
    .faq-accordion { margin: 0 1rem; }
}

/* ------------------------------
   Contact Page Dark Mode
   ------------------------------ */
[data-theme="dark"] .contact-page-section { background-color: var(--bg-secondary); }
[data-theme="dark"] .page-title, [data-theme="dark"] .faq-section h2 { color: var(--text-color); }
[data-theme="dark"] .page-description { color: var(--text-secondary-color); }
[data-theme="dark"] .contact-form-wrapper, [data-theme="dark"] .contact-info, [data-theme="dark"] .faq-section { background-color: var(--bg-color); }
[data-theme="dark"] .contact-info h3, [data-theme="dark"] .contact-text h4, [data-theme="dark"] .social-links h4 { color: var(--text-color); }
[data-theme="dark"] .contact-text p, [data-theme="dark"] .faq-link p, [data-theme="dark"] .faq-answer p { color: var(--text-secondary-color); }
[data-theme="dark"] .social-icons li a { background-color: var(--bg-secondary); color: var(--text-color); }
[data-theme="dark"] .faq-question { background-color: var(--bg-secondary); color: var(--text-color); }
[data-theme="dark"] .faq-question:hover { background-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .faq-answer { background-color: var(--bg-color); }
[data-theme="dark"] .contact-form-wrapper:hover, [data-theme="dark"] .faq-item:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }

/* ------------------------------
   Contact Page Animations & Print
   ------------------------------ */
.contact-page-section, .faq-section { animation: fadeInUp 0.6s ease-out; }

@media print {
    .contact-page-section, .faq-section { padding: 0; }
    .contact-form-wrapper, .contact-info, .faq-item { box-shadow: none; border: 1px solid #ddd; }
    .contact-form button, .faq-question { display: none; }
    .faq-answer { max-height: none; padding: 1rem; }
}

/* ------------------------------
   Print Styles
   ------------------------------ */
@media print {
    #masthead, footer, #comparison-bar, .lg\:col-span-5, #video-controls, .Deluxe_Action_Bar, .no-print { 
        display: none !important; 
    }
    .lg\:col-span-7, .lg\:col-span-12 { 
        width: 100% !important; 
        position: relative !important; 
        top: 0 !important; 
    }
    body { 
        background: white !important; 
        color: black !important; 
    }
}