:root {
    --primary: #005D8A;
    --primary-dark: #00456B;
    --secondary: #FFC107;
    --secondary-dark: #E6AD00;
    --accent: #FF5722;
    --accent-dark: #E64A19;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --success: #28A745;
    --info: #17A2B8;
    --warning: #FFC107;
    --blue-accent: #0074D9;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, #0F1419 100%);
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Header */
.site-header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}
.navbar-nav .nav-link:hover::before { left: 0; }
.navbar-nav .nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,199,7,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}
.hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* TOC */
.toc {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}
.toc h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.toc ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}
.toc li {
    margin-bottom: 0.5rem;
}
.toc a {
    color: var(--primary);
    text-decoration: none;
}
.toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Booking Box */
.booking-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-top: -3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
    animation: slideInUp 0.8s ease-out 0.4s both;
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.feature-card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.feature-card-content { padding: 2rem; }
.feature-card h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Tradition Cards */
.tradition-card {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255,199,7,0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tradition-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    position: relative;
}
.content-section h2 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 0;
    width: 60px; height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}
.content-section h3 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
}

/* Insider Tips */
.insider-tip {
    background: linear-gradient(135deg, rgba(255,87,34,0.05) 0%, rgba(255,199,7,0.05) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}
.insider-tip h4 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,93,138,0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,93,138,0.3);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .overlay { transform: translateY(0); }
.gallery-item .overlay h4 { margin-bottom: 0.5rem; font-size: 1.1rem; font-weight: 600; }
.gallery-item .overlay p { margin: 0; font-size: 0.9rem; }

/* Accommodation Cards */
.accommodation-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}
.accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.accommodation-price {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Holiday Calendar Table */
.holiday-table {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}
.holiday-table table { margin-bottom: 0; font-size: 0.95rem; }
.holiday-table thead {
    background: var(--gradient-primary);
    color: var(--white);
}
.holiday-table th { padding: 1.25rem; font-weight: 600; }
.holiday-table td { padding: 1rem; vertical-align: middle; }
.holiday-table tbody tr { transition: background 0.2s ease; }
.holiday-table tbody tr:hover { background: var(--light); }

.badge {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Footer */
.site-footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-section h5 { font-weight: 700; margin-bottom: 1.5rem; color: var(--secondary); }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 0.75rem; }
.footer-section a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--secondary); }

/* Map */
#routeMap { height: 400px; border-radius: 16px; box-shadow: var(--shadow-md); }

/* Image credits */
.image-credit {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid var(--light-gray);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,93,138,0.15);
}
.form-label { font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }

/* Accessibility */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-to-content {
    position: absolute; top: -100px; left: 0;
    background: var(--primary); color: var(--white);
    padding: 1rem; z-index: 9999; transition: top 0.3s;
}
.skip-to-content:focus { top: 0; }

/* Back to top */
#backToTop {
    position: fixed; bottom: 2rem; right: 2rem;
    background: var(--gradient-primary); color: var(--white);
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    z-index: 1000;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-3px); color: var(--white); }

/* FAQ section */
.faq-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.faq-item h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    cursor: pointer;
}
.faq-item p { margin-bottom: 0; }

/* Mobile */
@media (max-width: 768px) {
    .hero { padding: 3rem 0 2rem; }
    .hero h1 { font-size: 2rem; }
    .booking-box { padding: 1.5rem; margin-top: -2rem; }
    .feature-card-img { height: 200px; }
    .content-section { padding: 3rem 0; }
    .image-gallery { grid-template-columns: 1fr; }
    .insider-tip { padding: 1rem; }
    .holiday-table { font-size: 0.85rem; }
    .holiday-table td, .holiday-table th { padding: 0.75rem 0.5rem; }
    .badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
}

@media (max-width: 375px) {
    .hero h1 { font-size: 1.75rem; }
    .booking-box { padding: 1.25rem; }
    .btn-primary, .btn-outline { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .navbar-brand { font-size: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .image-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}
