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

html {
    /* فیکس ناوبری anchor با هدر فیکس */
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #D4A574;
    --secondary-color: #5C6B4A;
    --dark-bg: #2C2416;
    --light-bg: #F5F1E8;
    --white: #FDFBF7;
    --text-dark: #3A3226;
    --text-light: #6B5D4F;
    --transition: all 0.3s ease;
    --header-height: 100px;
}

body {
    /* فونت فارسی Vazirmatn — با fallback کامل برای حالتی که فونت لود نشه */
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
}

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

/* =============================================
   Header
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 36, 22, 0.97);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 0.85rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo h2 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

/* =============================================
   Navigation
   ============================================= */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(44, 36, 22, 0.98);
    min-width: 220px;
    padding: 0.75rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--primary-color);
    z-index: 2100;
}

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

.dropdown li {
    padding: 0;
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    font-size: 0.875rem;
}

.dropdown a::after {
    display: none;
}

.dropdown a:hover {
    background: rgba(212, 165, 116, 0.12);
    color: var(--primary-color);
    padding-right: 1.6rem;
}

/* =============================================
   Header Actions
   ============================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: var(--primary-color);
    transform: rotate(180deg);
}

.theme-toggle svg {
    color: var(--white);
}

.sun-icon { display: block; }
.moon-icon { display: none; }
body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: block; }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 2200;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: all 0.35s ease;
}

/* انیمیشن X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Overlay موبایل */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

.nav-overlay.active {
    display: block;
}

/* =============================================
   Hero Map Section - تمام صفحه
   ============================================= */
.hero-map {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* نقشه زیر همه چیز */
.hero-map #map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
}

/* لایه گرادیان تیره - فقط پایین صفحه تا متن خوانا بشه */
.hero-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 16, 8, 0.25) 0%,
        rgba(20, 16, 8, 0.55) 50%,
        rgba(20, 16, 8, 0.8)  100%
    );
    z-index: 2;
    pointer-events: none;
}

/* محتوای متنی روی نقشه */
.hero-map-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: 860px;
    padding: 0 20px;
    pointer-events: none; /* کلیک از متن رد بشه به نقشه */
}

/* دکمه‌ها کلیک‌پذیر باشن */
.hero-map-content .hero-actions {
    pointer-events: all;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.6);
    animation: fadeInUp 0.9s ease both;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 0.9s ease 0.15s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.9s ease 0.3s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.stat-item .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.9s ease 0.45s both;
}

.hero-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.hero-btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.45);
}

.hero-btn-primary:hover {
    background: #e8bc87;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 165, 116, 0.55);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.45);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.22);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* فلش اسکرول */
.hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: color 0.2s;
}

.hero-scroll-down:hover {
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

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

/* =============================================
   Map Section (جداگانه - دیگه hero نیست)
   ============================================= */

/* =============================================
   Services Section
   ============================================= */
.services {
    padding: 5rem 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.service-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
}

.service-icon svg {
    stroke: var(--white);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* =============================================
   Famous Peaks Section
   ============================================= */
.peaks-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.peaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.peak-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transition: var(--transition);
    position: relative;
}

.peak-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.15);
}

.peak-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.peak-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.peak-card:hover .peak-image-wrap img {
    transform: scale(1.06);
}

/* badge ارتفاع روی عکس */
.peak-elevation-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(20, 16, 8, 0.75);
    backdrop-filter: blur(6px);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(212,165,116,0.35);
}

/* badge سختی */
.peak-difficulty-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.peak-difficulty-badge.آسان  { background: #d1fae5; color: #065f46; }
.peak-difficulty-badge.متوسط { background: #fef3c7; color: #92400e; }
.peak-difficulty-badge.سخت   { background: #fee2e2; color: #991b1b; }
.peak-difficulty-badge.خیلی‌سخت { background: #ede9fe; color: #5b21b6; }

.peak-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.peak-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.peak-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.peak-province {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--light-bg);
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.peak-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.peak-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--light-bg);
    padding-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

.peak-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* dark mode */
body.dark-mode .peaks-section { background: #1a1a1a; }
body.dark-mode .peak-card { background: #2a2a2a; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
body.dark-mode .peak-name { color: #f0f0f0; }
body.dark-mode .peak-desc,
body.dark-mode .peak-meta { color: #aaa; }
body.dark-mode .peak-province { background: #333; }

/* =============================================
   Routes Section
   ============================================= */
.routes-section {
    padding: 5rem 0;
    background: var(--white);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.75rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

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

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.route-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    transition: var(--transition);
}

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.route-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(40%);
    transition: var(--transition);
    display: block;
}

.route-card:hover .route-image {
    filter: grayscale(0%);
}

.route-content {
    padding: 1.5rem;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.route-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.difficulty-badge {
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.difficulty-badge.آسان  { background: #d1fae5; color: #065f46; }
.difficulty-badge.متوسط { background: #fef3c7; color: #92400e; }
.difficulty-badge.سخت   { background: #fee2e2; color: #991b1b; }

.route-region {
    background: var(--light-bg);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--primary-color);
    font-weight: 600;
}

.route-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.65;
    font-size: 0.9rem;
}

.route-info {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--light-bg);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* =============================================
   Services Section
   ============================================= */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text .section-title {
    text-align: right;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.stat-box .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.stat-box .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =============================================
   About Gallery Slider
   ============================================= */
.about-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.gallery-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(20,16,8,0.78));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 1.5rem 1.25rem 0.85rem;
    text-align: center;
}

/* دکمه‌های قبلی / بعدی */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44,36,22,0.65);
    backdrop-filter: blur(4px);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.gallery-prev { right: 0.75rem; }
.gallery-next { left: 0.75rem; }

/* شمارنده */
.gallery-counter {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20,16,8,0.55);
    color: var(--white);
    font-size: 0.8rem;
    padding: 3px 12px;
    border-radius: 20px;
    z-index: 10;
}

/* نقاط */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(92,107,74,0.35);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
}

.gallery-dot.active {
    background: var(--primary-color);
    transform: scale(1.25);
}

/* تامب‌نیل‌ها */
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 2px; }

.gallery-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: opacity 0.25s, border-color 0.25s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

/* ریسپانسیو gallery */
@media (max-width: 768px) {
    .gallery-slider-container {
        aspect-ratio: 3 / 2;
    }
    .gallery-thumb {
        width: 52px;
        height: 38px;
    }
}

/* dark mode gallery */
body.dark-mode .gallery-btn {
    background: rgba(0,0,0,0.55);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.75;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.65;
    font-size: 0.875rem;
}

/* =============================================
   Footer Social Links
   ============================================= */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
    width: fit-content;
}

.social-link svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.social-link:hover {
    transform: translateX(-4px);
    color: #fff;
}

.social-link:hover svg {
    transform: scale(1.15);
}

.social-instagram:hover { background: rgba(225, 48, 108, 0.18); color: #e1306c; }
.social-telegram:hover  { background: rgba(41, 182, 246, 0.18); color: #29b6f6; }
.social-whatsapp:hover  { background: rgba(37, 211, 102, 0.18); color: #25d366; }
.social-aparat:hover    { background: rgba(237, 28, 36, 0.18);  color: #ed1c24; }

/* =============================================
   Dark Mode
   ============================================= */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: rgba(15, 12, 8, 0.98);
}

body.dark-mode .services,
body.dark-mode .map-section {
    background: #222;
}

body.dark-mode .routes-section,
body.dark-mode .about-section {
    background: #1a1a1a;
}

body.dark-mode .service-card,
body.dark-mode .route-card {
    background: #2a2a2a;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

body.dark-mode .stat-box {
    background: #2a2a2a;
}

body.dark-mode .route-name,
body.dark-mode .service-title {
    color: #f0f0f0;
}

body.dark-mode .route-description,
body.dark-mode .service-description,
body.dark-mode .route-info,
body.dark-mode .about-text p {
    color: #aaa;
}

body.dark-mode .filter-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    background: var(--primary-color);
    color: #1a1a1a;
}

body.dark-mode .route-region {
    background: #333;
    color: var(--primary-color);
}

body.dark-mode .section-title {
    color: var(--primary-color);
}

body.dark-mode .light-bg {
    background: #222;
}

/* =============================================
   Responsive - موبایل
   ============================================= */
@media (max-width: 768px) {

    /* منوی موبایل - از راست داخل می‌شه */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 270px;
        height: 100vh;
        background: rgba(30, 24, 14, 0.99);
        padding: 100px 2rem 2rem;
        transition: right 0.35s ease;
        z-index: 1800;
        overflow-y: auto;
    }

    /* ← این کلاس موقع کلیک اضافه می‌شه */
    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-menu > ul > li > a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    /* Dropdown در موبایل */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
        padding: 0.25rem 0 0.5rem 1rem;
        border-top: none;
        border-right: 2px solid var(--primary-color);
        margin: 0.25rem 0 0.5rem;
        display: none;
        border-radius: 0;
    }

    .has-dropdown.open .dropdown {
        display: flex;
    }

    .has-dropdown > a::before {
        content: '▾ ';
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

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

    .stat-box {
        padding: 1.25rem 0.5rem;
    }

    /* Map */
    #map {
        height: 450px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item .stat-number {
        font-size: 2.2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Dropdown دو سطحی (sub-menu)
   ============================================= */
.has-dropdown-sub {
    position: relative;
}

.dropdown-sub {
    position: absolute;
    top: 0;
    right: 100%;
    background: rgba(44, 36, 22, 0.98);
    min-width: 185px;
    padding: 0.5rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.35);
    border-top: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    z-index: 2200;
}

.has-dropdown-sub:hover .dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-sub li {
    width: 100%;
    padding: 0;
}

.dropdown-sub a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.dropdown-sub a:hover {
    background: rgba(212, 165, 116, 0.12);
    color: var(--primary-color);
    padding-right: 1.6rem;
}

/* موبایل - dropdown-sub */
@media (max-width: 768px) {
    .dropdown-sub {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-top: none;
        border-right: 2px solid var(--primary-color);
        padding: 0.25rem 0 0.25rem 0.75rem;
        margin: 0.25rem 0 0.25rem 1rem;
        display: none;
        background: transparent;
    }

    .has-dropdown-sub.open .dropdown-sub {
        display: flex;
    }
}

/* =============================================
   Back to Top Button
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.45);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    pointer-events: none;
}

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

.back-to-top:hover {
    background: #e8bc87;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.55);
}

/* =============================================
   Peak Card — linked variant
   ============================================= */
a.peak-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.peak-card--linked {
    cursor: pointer;
    position: relative;
}

.peak-card--linked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: border-color 0.25s ease;
    pointer-events: none;
}

.peak-card--linked:hover::after {
    border-color: var(--primary-color);
}

.peak-link-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--dark-bg), #3d301a);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.peak-card--linked:hover .peak-link-badge {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateX(-3px);
}
