/*
Theme Name: The Vietnam Compass
Theme URI: https://vietnamcompass.com/
Author: The Vietnam Compass Team
Author URI: https://vietnamcompass.com/
Description: Custom WordPress Theme for The Vietnam Compass Travel Portal & Commercial Booking.
Version: 1.0.0
Text Domain: vietnam-compass
*/

:root {
    --brand-navy: #10233f;
    --brand-blue: #1f78d1;
    --brand-orange: #f9733d;
    --brand-teal: #008a8a;
    --ink-muted: #5f6876;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, rgba(247, 249, 251, 0.96) 0%, rgba(239, 244, 248, 0.72) 44%, #f7f9fb 100%);
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.scrim {
    background: linear-gradient(180deg, rgba(16, 35, 63, 0.02) 0%, rgba(16, 35, 63, 0.34) 42%, rgba(16, 35, 63, 0.92) 100%);
}

.hero-veil {
    background:
        linear-gradient(90deg, rgba(8, 22, 42, 0.85) 0%, rgba(8, 22, 42, 0.55) 42%, rgba(8, 22, 42, 0.25) 100%),
        linear-gradient(180deg, rgba(8, 22, 42, 0.3) 0%, rgba(8, 22, 42, 0.85) 100%) !important;
    pointer-events: none;
}

.nav-elevated {
    box-shadow: 0 10px 32px rgba(16, 35, 63, 0.08);
}

.glass-panel {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 24px 70px rgba(16, 35, 63, 0.18) !important;
}

.section-kicker {
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.elevated-card {
    border: 1px solid rgba(113, 119, 131, 0.18);
    box-shadow: 0 12px 34px rgba(16, 35, 63, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.elevated-card:hover {
    border-color: rgba(31, 120, 209, 0.34);
    box-shadow: 0 18px 44px rgba(16, 35, 63, 0.14);
    transform: translateY(-4px);
}

.destination-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    pointer-events: none;
}

.scrollbar-hide {
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.mobile-menu-panel {
    display: none;
}

.mobile-menu-panel.open {
    display: block;
}

/* Fix Flatpickr Grid Layout & Real Calendar Alignment */
.flatpickr-calendar {
    font-family: 'Inter', -apple-system, sans-serif !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px -10px rgba(16, 35, 63, 0.25) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 16px !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    width: 340px !important;
}

.flatpickr-calendar.multiMonth {
    width: 680px !important;
    max-width: calc(100vw - 32px) !important;
}

.flatpickr-innerContainer {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 24px !important;
}

.flatpickr-rContainer {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.flatpickr-calendar .flatpickr-months {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.flatpickr-calendar .flatpickr-month {
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
}

.flatpickr-calendar .flatpickr-current-month {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    padding: 0 !important;
    position: relative !important;
    width: auto !important;
}

.flatpickr-weekdaycontainer {
    display: flex !important;
    width: 100% !important;
    margin-bottom: 6px !important;
}

span.flatpickr-weekday {
    flex: 1 0 14.2857% !important;
    width: 14.2857% !important;
    max-width: 14.2857% !important;
    text-align: center !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

.flatpickr-days {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    width: 100% !important;
}

.dayContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    min-width: 308px !important;
    max-width: 308px !important;
    width: 308px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.flatpickr-day {
    flex: 0 0 14.2857% !important;
    width: 14.2857% !important;
    max-width: 14.2857% !important;
    height: 38px !important;
    line-height: 38px !important;
    border-radius: 8px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: #1f78d1 !important;
    border-color: #1f78d1 !important;
    color: #ffffff !important;
}

.flatpickr-day.inRange {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    box-shadow: none !important;
}

/* Table of Contents Highlight */
.toc-link.active {
    color: #1f78d1;
    font-weight: 700;
    border-left-color: #1f78d1;
    background-color: #eff6ff;
}

/* Article Typography Customizations */
.article-body h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    scroll-margin-top: 100px;
}

.article-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 100px;
}

.article-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #334155;
}

.article-body ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #334155;
}

.article-body blockquote {
    border-left: 4px solid #1f78d1;
    background-color: #f0f9ff;
    padding: 1.25rem 1.5rem;
    border-radius: 0 1rem 1rem 0;
    margin: 1.75rem 0;
    font-family: 'Noto Serif', serif;
    font-style: italic;
    color: #0369a1;
}

/* Section Header & Title Typography Styles */
.font-headline-md, .font-display, .font-display-lg, .font-headline-sm {
    font-family: 'Noto Serif', Georgia, serif;
}
.text-headline-md {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
}
.text-headline-sm {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
}
.text-display-lg {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Premium Pagination Styling */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    margin: 0 3px;
    text-decoration: none !important;
}

a.page-numbers:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

span.page-numbers.current {
    background-color: #1f78d1;
    color: #ffffff;
    border-color: #1f78d1;
    box-shadow: 0 4px 10px rgba(31, 120, 209, 0.25);
}

span.page-numbers.dots {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: auto;
    margin: 0 4px;
}

/* Adjust next/prev labels to be wider if text is used */
a.page-numbers.prev, a.page-numbers.next {
    width: auto;
    padding: 0 14px;
    background-color: #ffffff;
}

a.page-numbers.prev:hover, a.page-numbers.next:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}


