/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800&family=Source+Sans+3:wght@400;600&display=swap');

/* --- THEME VARIABLES --- */
:root {
    /* "The Atlas" (Light Theme) */
    --theme-bg: #FFFFFF;
    --theme-text: #212529;
    --theme-accent: #20C997;
    --theme-card-bg: #f8f9fa;
    --theme-border-color: #dee2e6;
    --theme-muted-text: #6c757d;
    --theme-navbar-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    /* "The Night Sky" (Dark Theme) */
    --theme-bg: #031D44;
    --theme-text: #EBF4FF;
    --theme-accent: #FFC107;
    --theme-card-bg: #072a63;
    --theme-border-color: #1a3a70;
    --theme-muted-text: #adb5bd;
    --theme-navbar-bg: rgba(3, 29, 68, 0.9);
}

/* --- GENERAL STYLING --- */
body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: 'Source Sans 3', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

a {
    color: var(--theme-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--theme-text);
}

/* --- GLOBAL COMPONENTS --- */

/* Navbar */
#main-navbar {
    background-color: var(--theme-navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--theme-border-color);
    transition: background-color 0.3s ease;
}

#main-navbar .navbar-brand,
#main-navbar .nav-link {
    color: var(--theme-text);
}

#main-navbar .navbar-brand {
    color: var(--theme-accent);
}

.navbar-toggler {
    border-color: var(--theme-border-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    color: var(--theme-text);
    border: 1px solid var(--theme-border-color);
}

.theme-toggle-btn .bi-sun-fill {
    display: none;
}

.theme-toggle-btn .bi-moon-stars-fill {
    display: inline-block;
}

[data-theme="dark"] .theme-toggle-btn .bi-sun-fill {
    display: inline-block;
}

[data-theme="dark"] .theme-toggle-btn .bi-moon-stars-fill {
    display: none;
}

/* Footer */
.footer-section {
    background-color: var(--theme-card-bg);
    border-top: 1px solid var(--theme-border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-link {
    color: var(--theme-muted-text);
}

.footer-link:hover {
    color: var(--theme-accent);
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--theme-text);
}

/* --- PAGE-SPECIFIC STYLES --- */

/* Hero Section */
.hero-section {
    padding: 10rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Destination Cards */
.destination-card {
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.destination-card-img {
    height: 200px;
    object-fit: cover;
}

/* Animated Stats Section */
#stats-section .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--theme-accent);
}

/* Destination Guide Page */
.guide-hero-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    border-radius: 0.5rem;
}

.nav-tabs .nav-link {
    color: var(--theme-muted-text);
}

.nav-tabs .nav-link.active {
    color: var(--theme-text);
    background-color: var(--theme-card-bg);
    border-color: var(--theme-border-color) var(--theme-border-color) var(--theme-card-bg);
}

.tab-content {
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-top: none;
    padding: 2rem;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.btn-primary:hover {
    opacity: 0.9;
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.form-control,
.form-select {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    border-color: var(--theme-border-color);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 0.25rem rgba(var(--theme-accent-rgb), 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--theme-muted-text);
}

[data-theme="dark"] .modal-content {
    background-color: var(--theme-bg);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.logo-image{
    height: 50px;
}