/**
 * ExploreNepal - Modern CSS Design System
 * Nepal-inspired color palette with modern UI components
 */

/* =============================================
   CSS VARIABLES - Nepal-Inspired Color Palette
   ============================================= */
:root {
    /* Primary Colors - Nepal Flag */
    --primary: #DC143C;           /* Crimson Red */
    --primary-dark: #B91030;
    --primary-light: #E84A6F;
    --secondary: #003893;         /* Royal Blue */
    --secondary-dark: #002D75;
    --secondary-light: #1A5BB8;

    /* Accent Colors */
    --accent: #F4A460;            /* Sandy Brown (Himalayan earth) */
    --accent-dark: #E08E3C;
    --accent-light: #F7BC85;

    /* Semantic Colors */
    --success: #2A9D8F;           /* Teal Green */
    --warning: #E9C46A;           /* Golden Yellow */
    --danger: #E76F51;            /* Coral Red */
    --info: #4A90D9;              /* Sky Blue */

    /* Neutrals */
    --dark: #1A1A2E;              /* Deep Navy */
    --gray-900: #212529;
    --gray-800: #343A40;
    --gray-700: #495057;
    --gray-600: #6C757D;
    --gray-500: #ADB5BD;
    --gray-400: #CED4DA;
    --gray-300: #DEE2E6;
    --gray-200: #E9ECEF;
    --gray-100: #F8F9FA;
    --white: #FFFFFF;
    --light: #F8F9FA;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-nepali: 'Noto Sans Devanagari', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Borders & Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* =============================================
   BASE STYLES
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Allow inline height styles to override for card images */
figure img,
article img {
    max-width: none;
    height: auto;
}

/* Main content wrapper - account for fixed navbar on pages without hero */
main {
    min-height: calc(100vh - 200px);
}

/* Pages without hero need top padding for fixed navbar */
main > section:first-child:not(.hero),
main > .news-ticker:first-child,
main > .page-header:first-child {
    /* Handled individually */
}

/* Top bar adjustment for when present */
.top-bar + .navbar {
    top: 40px;
}

@media (max-width: 991px) {
    .top-bar + .navbar {
        top: 0;
    }
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-dark) 100%);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--gray-300);
    position: relative;
    z-index: calc(var(--z-fixed) + 1);
}

.top-bar a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar i {
    margin-right: var(--space-2);
    color: var(--primary);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    margin-left: var(--space-2);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: var(--space-3) 0;
    transition: all var(--transition);
    z-index: var(--z-fixed);
    top: 0;
    left: 0;
    right: 0;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-brand i {
    color: var(--primary);
    font-size: var(--text-3xl);
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: var(--space-2) var(--space-4) !important;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    margin-top: var(--space-2);
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    margin-right: var(--space-2);
    color: var(--gray-500);
}

.dropdown-item:hover i {
    color: var(--primary);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-dark) 100%);
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(0, 56, 147, 0.6) 50%,
        rgba(26, 26, 46, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--gray-300);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-12);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    display: block;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Search */
.hero-search {
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.hero-search .form-control {
    height: 60px;
    border-radius: var(--radius-full);
    padding: 0 var(--space-6);
    font-size: var(--text-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

.hero-search .btn {
    height: 60px;
    border-radius: var(--radius-full);
    padding: 0 var(--space-8);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* =============================================
   CARDS
   ============================================= */
.card {
    border: none;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Featured destination cards on homepage */
.section-gray .card,
.section-dark .card {
    overflow: hidden;
}

/* Destination Card */
.destination-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.destination-card .card-img-wrapper {
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
}

.destination-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.destination-card:hover .card-img-top {
    transform: scale(1.05);
}

.destination-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    line-height: 1.4;
}

.destination-card .favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-500);
    z-index: 2;
    font-size: 14px;
}

.destination-card .favorite-btn:hover,
.destination-card .favorite-btn.active {
    background: var(--primary);
    color: var(--white);
}

.destination-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: var(--white);
}

.destination-card .card-category {
    display: inline-block;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: static;
    background: none;
    padding: 0;
}

.destination-card .card-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.destination-card .card-title a {
    color: var(--dark);
    text-decoration: none;
}

.destination-card .card-title a:hover {
    color: var(--primary);
}

.destination-card .card-location {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}

.destination-card .card-location i {
    color: var(--primary);
    margin-right: var(--space-1);
}

.destination-card .card-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    flex: 1;
}

.destination-card .card-footer {
    background: var(--gray-100);
    padding: var(--space-3) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    margin-top: auto;
}

.destination-card .rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.destination-card .rating i {
    color: var(--warning);
    font-size: var(--text-xs);
}

.destination-card .rating i.empty {
    color: var(--gray-300);
}

.destination-card .rating span {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--dark);
    margin-left: var(--space-2);
}

.destination-card .price {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--primary);
}

.destination-card .price small {
    font-weight: 400;
    color: var(--gray-600);
}

/* Destination Image with Overlay (used in travel pages) */
.destination-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.destination-card:hover .destination-image img {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.destination-card:hover .destination-overlay {
    opacity: 1;
}

.destination-image .destination-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Category Card */
.category-card {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    transition: all var(--transition);
}

.category-card:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: translateY(-10px);
}

.category-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.category-card:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.category-card .icon-wrapper i {
    font-size: var(--text-3xl);
    color: var(--primary);
    transition: color var(--transition);
}

.category-card:hover .icon-wrapper i {
    color: var(--white);
}

.category-card h5 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: var(--space-2);
    transition: color var(--transition);
}

.category-card:hover h5 {
    color: var(--white);
}

.category-card .count {
    font-size: var(--text-sm);
    color: var(--gray-600);
    transition: color var(--transition);
}

.category-card:hover .count {
    color: rgba(255, 255, 255, 0.8);
}

/* Directory Card */
.directory-card {
    padding: var(--space-5);
    border-left: 4px solid var(--primary);
}

.directory-card h5 a {
    color: var(--dark);
}

.directory-card h5 a:hover {
    color: var(--primary);
}

.directory-card .url {
    font-size: var(--text-sm);
    color: var(--success);
    word-break: break-all;
}

.directory-card .description {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: var(--space-3) 0;
}

.directory-card .meta {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

/* Business Card */
.business-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
}

.business-card .logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.business-card .logo i {
    font-size: var(--text-3xl);
    color: var(--gray-400);
}

.business-card .content {
    flex: 1;
}

.business-card .contact-info {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-top: var(--space-3);
}

.business-card .contact-info i {
    width: 20px;
    color: var(--primary);
}

/* =============================================
   SECTIONS
   ============================================= */
section {
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

section.py-5 {
    padding: var(--space-12) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-subtitle {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.section-description {
    color: var(--gray-600);
    font-size: var(--text-lg);
}

/* Alternating section backgrounds */
.section-gray {
    background: var(--gray-100);
}

.section-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark .section-description {
    color: var(--gray-400);
}

/* =============================================
   NEWS TICKER
   ============================================= */
.news-ticker {
    background: var(--dark);
    padding: var(--space-2) 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin-top: 76px; /* Account for fixed navbar */
}

/* When news ticker is present, hero doesn't need extra top margin */
.news-ticker + .hero {
    margin-top: 0;
    padding-top: 40px;
}

.news-ticker-label {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    white-space: nowrap;
}

.news-ticker-content {
    overflow: hidden;
    position: relative;
}

.news-ticker-content ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: ticker 30s linear infinite;
}

.news-ticker-content li {
    white-space: nowrap;
    padding: 0 var(--space-8);
    color: var(--gray-300);
    font-size: var(--text-sm);
}

.news-ticker-content li a {
    color: var(--gray-300);
}

.news-ticker-content li a:hover {
    color: var(--primary);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   WEATHER WIDGET
   ============================================= */
.weather-widget {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    color: var(--white);
}

.weather-widget .location {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.weather-widget .temperature {
    font-size: var(--text-6xl);
    font-weight: 700;
    line-height: 1;
}

.weather-widget .condition {
    font-size: var(--text-lg);
    opacity: 0.9;
}

.weather-widget .details {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    font-size: var(--text-sm);
}

/* =============================================
   FOREX WIDGET
   ============================================= */
.forex-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.forex-widget .header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--space-4);
    font-weight: 600;
}

.forex-widget .rates {
    max-height: 300px;
    overflow-y: auto;
}

.forex-widget .rate-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--text-sm);
}

.forex-widget .rate-row:hover {
    background: var(--gray-100);
}

.forex-widget .currency {
    font-weight: 600;
    color: var(--dark);
}

.forex-widget .value {
    color: var(--success);
    font-weight: 500;
}

/* =============================================
   FORMS
   ============================================= */
.form-control {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--gray-700);
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-right: none;
    color: var(--gray-600);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
    border-radius: var(--radius-full);
}

.search-box .search-icon {
    position: absolute;
    left: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.search-box .btn {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    gap: var(--space-2);
}

.page-link {
    border: none;
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-4);
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--gray-200);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}

.page-item.disabled .page-link {
    color: var(--gray-400);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: var(--space-4);
}

.breadcrumb-item a {
    color: var(--gray-600);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gray-400);
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary-dark) 100%);
    padding: var(--space-16) 0 var(--space-12);
    padding-top: calc(var(--space-16) + 76px); /* Account for fixed navbar */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 200px;
}

.page-header .breadcrumb-item a {
    color: var(--gray-400);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-3);
}

.page-header .lead {
    color: var(--gray-400);
    max-width: 600px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding-top: var(--space-16);
}

.footer h5 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: var(--space-6);
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.footer-brand i {
    font-size: var(--text-3xl);
    color: var(--primary);
}

.footer-brand span {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links li i {
    width: 20px;
    color: var(--primary);
    margin-right: var(--space-2);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    margin-top: var(--space-8);
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer-newsletter .input-group {
    max-width: 500px;
}

.footer-newsletter .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border: none;
}

.footer-newsletter .btn {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-5) 0;
    margin-top: var(--space-12);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
    justify-content: flex-end;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* =============================================
   MODALS
   ============================================= */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: var(--space-5) var(--space-6);
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    border: none;
    padding: var(--space-4) var(--space-6);
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(42, 157, 143, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 20, 60, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
}

.alert-warning {
    background: rgba(233, 196, 106, 0.1);
    border-left-color: var(--warning);
    color: #8B7000;
}

.alert-info {
    background: rgba(74, 144, 217, 0.1);
    border-left-color: var(--info);
    color: var(--info);
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    font-weight: 500;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary);
}

.badge-secondary {
    background: var(--secondary);
}

.badge-success {
    background: var(--success);
}

/* =============================================
   RATINGS
   ============================================= */
.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars i {
    color: var(--warning);
}

.rating-stars .empty {
    color: var(--gray-300);
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-gray { background-color: var(--gray-100) !important; }
.bg-dark { background-color: var(--dark) !important; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-hover {
    transition: box-shadow var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1200px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;
    }

    section {
        padding: var(--space-12) 0;
    }

    .hero-stats {
        gap: var(--space-6);
    }

    .navbar-collapse {
        background: var(--white);
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: var(--space-4);
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    .top-bar {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding-top: 70px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .hero-stat {
        flex: 0 0 calc(50% - var(--space-2));
    }

    .page-header {
        padding: var(--space-12) 0 var(--space-8);
        padding-top: calc(var(--space-12) + 60px);
    }

    .news-ticker {
        margin-top: 60px;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: var(--space-4);
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: var(--space-4);
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    .card {
        margin-bottom: var(--space-4);
    }

    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }
}

/* =============================================
   TRAVEL HERO (Travel Section Pages)
   ============================================= */
.travel-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('/assets/images/nepal-hero.jpg') center/cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Account for fixed navbar */
    padding-bottom: var(--space-12);
}

.min-vh-50 {
    min-height: 40vh;
}

/* =============================================
   HOMEPAGE FEATURED CARDS FIX
   Prevent global styles from interfering with inline-styled cards
   ============================================= */
section article {
    /* Reset any inherited card styles */
}

section article figure {
    /* Ensure figure doesn't get default margins */
    margin: 0 !important;
}

section article figure img {
    /* Prevent max-width from constraining object-fit */
    max-width: none;
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .navbar,
    .top-bar,
    .footer,
    .back-to-top,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
