html {
    scroll-behavior: smooth;
}

/* Google Fonts for clear typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #005a87;    /* spiritual deep blue */
    --secondary-color: #f4b400;  /* golden accent */
    --text-dark: #212529;
    --text-light: #ffffff;
    --section-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ----- Section & Header Sizing (for Scrollspy) ----- */
header, section {
    position: relative;
    min-height: 100vh;          /* full viewport height for detection */
    padding: 80px 0;
    scroll-margin-top: 80px;     /* matches data-bs-offset */
}

/* ----- Sticky Navigation (FR-2) ----- */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--secondary-color) !important;
    border-bottom: 2px solid var(--secondary-color);
}

/* ----- Hero Section (FR-1) ----- */
.hero-section {
    color: var(--text-light);
    background-size: cover;
    position: relative;
}

/* Dark overlay for text contrast */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ----- Travel Guide Icons (FR-4,5,6) ----- */
.hover-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.hover-shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color) !important;
}

/* ----- Budget Table (FR-7,8) ----- */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ----- Itinerary (FR-9,10) ----- */
.itinerary-header h4 {
    color: var(--primary-color);
}

/* ----- FAQ Accordion (FR-11) ----- */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: var(--primary-color);
}

/* ----- Weather Footer (Readability Fix) ----- */
#weather-footer {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: background-color 0.8s ease;
}

/* Background color classes for weather */
.bg-chilly { background-color: #87CEEB !important; } /* sky blue for cold */
.bg-hot    { background-color: #FF8C00 !important; } /* orange for hot */
.bg-rainy  { background-color: #191970 !important; } /* dark blue for rain */
.bg-standard { background-color: var(--primary-color) !important; }

/* ----- Responsive Adjustments ----- */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }
    section {
        padding: 60px 0;
    }
}
#weather-footer {
    min-height: auto !important;
    padding: 1.5rem 0 !important; /* match py-4, but ensure it overrides global padding */
}
/* Align language icon with nav links */
.navbar-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    padding-top: var(--bs-nav-link-padding-y);
    padding-bottom: var(--bs-nav-link-padding-y);
}

/* ---------------------------------- */
.forecast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease;
}
/* ----------- */
