/* Nepal Maps - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #1a5f7a;
    --primary-dark: #134a5f;
    --secondary-color: #e63946;
    --accent-color: #f4a261;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

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

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

/* Header & Navigation */
.main-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.logo-icon {
    font-size: 1.8rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Map Section */
.map-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.main-map {
    height: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.map-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.map-btn {
    padding: 10px 20px;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.map-btn:hover,
.map-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Quick Links Section */
.quick-links {
    padding: 60px 0;
}

.quick-links h2 {
    text-align: center;
    margin-bottom: 40px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.link-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.link-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.link-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.link-card ul li:last-child {
    border-bottom: none;
}

.link-card ul li a {
    color: var(--text-color);
    display: block;
}

.link-card ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* About Nepal Section */
.about-nepal {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.about-nepal h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 20px;
}

.about-text ul {
    margin-left: 20px;
}

.about-text ul li {
    padding: 5px 0;
    list-style: disc;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Featured Destinations */
.featured-destinations {
    padding: 60px 0;
}

.featured-destinations h2 {
    text-align: center;
    margin-bottom: 40px;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.destination-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.destination-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    position: relative;
}

.destination-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.destination-content {
    padding: 20px;
}

.destination-content h3 {
    margin-bottom: 10px;
}

.destination-content h3 a {
    color: var(--text-color);
}

.destination-content h3 a:hover {
    color: var(--primary-color);
}

.destination-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Districts Overview */
.districts-overview {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.districts-overview h2 {
    text-align: center;
    margin-bottom: 40px;
}

.province-districts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.province-group h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.province-group h3 a {
    color: var(--primary-color);
}

.district-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.district-tags a {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.district-tags a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* SEO Content Section */
.seo-content {
    padding: 60px 0;
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 40px;
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.content-col h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-col h3:first-child {
    margin-top: 0;
}

.content-col ul {
    margin-left: 20px;
}

.content-col ul li {
    padding: 5px 0;
    list-style: disc;
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-col ul li {
    padding: 8px 0;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

/* Page Header (for subpages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 0;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    max-width: 800px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* Content Sections for Subpages */
.content-section {
    padding: 60px 0;
}

.content-section.alt {
    background-color: var(--bg-light);
}

.content-section h2 {
    margin-bottom: 20px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.info-item .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-item .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    margin: 30px 0;
}

.map-container .map {
    height: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Related Links */
.related-links {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.related-links h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.related-item h4 {
    margin-bottom: 5px;
}

.related-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Districts Index Grid */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.district-card {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.district-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.district-card h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.district-card .province-tag {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: var(--bg-light);
}

/* Trekking Route List */
.trek-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trek-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trek-card:hover {
    box-shadow: var(--shadow-lg);
}

.trek-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
}

.trek-content {
    padding: 25px 25px 25px 0;
}

.trek-content h3 {
    margin-bottom: 10px;
}

.trek-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.trek-meta span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Marker Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius);
}

.leaflet-popup-content {
    margin: 15px;
}

.leaflet-popup-content h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.leaflet-popup-content p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.leaflet-popup-content a {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
}

.leaflet-popup-content a:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .content-columns {
        grid-template-columns: 1fr;
    }

    .trek-card {
        grid-template-columns: 1fr;
    }

    .trek-image {
        height: 180px;
    }

    .trek-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero {
        padding: 40px 0;
    }

    .main-map {
        height: 350px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-controls {
        flex-wrap: wrap;
    }

    .map-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .map-controls,
    .main-footer {
        display: none;
    }

    .main-map {
        height: auto;
        box-shadow: none;
    }
}
