@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
    --primary: #E30A17;
    --primary-glow: rgba(227, 10, 23, 0.4);
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --dark: #0A0A0B;
    --darker: #050505;
    --light: #F5F5F7;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Cinzel', serif;
}

/* --- Layout Containers --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 10rem 0;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0;
}

nav.scrolled {
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* --- Luxury Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 0.55;
    /* Better contrast for text */
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 15s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

.hero-content-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text-slide {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

.hero-text-slide.active {
    display: flex;
}

.hero-logo {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: clamp(5px, 2vw, 15px);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #ffffff 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: #fff;
    opacity: 0.8;
    letter-spacing: clamp(3px, 1vw, 8px);
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.hero-cta {
    position: relative;
    padding: 1.2rem 3.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: transparent;
    border: 1px solid var(--gold);
    transition: all 0.4s ease;
    pointer-events: auto;
}

.hero-cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Scroll Journey Component */
.luxury-scroll {
    position: absolute;
    bottom: 50px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    z-index: 15;
}

.scroll-text {
    font-size: 0.65rem;
    color: #fff;
    letter-spacing: 5px;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.scroll-line {
    width: 1px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #fff;
    animation: scrollJourney 3s infinite ease-in-out;
}

@keyframes scrollJourney {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: scrollLineMove 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scrollLineMove {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* --- Dynamic High-Tech Map Section --- */
.map-section {
    position: relative !important;
    background-color: #020204 !important;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(227, 10, 23, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(184, 134, 11, 0.08) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1.5px, transparent 1.5px) !important;
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px !important;
    padding: 150px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(227, 10, 23, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: -1rem;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    /* -webkit-text-fill-color: transparent;*/
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    /*  margin-bottom: 5rem;*/
}

#mapContainer {
    max-width: 95% !important;
    width: 95% !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) !important;
    transform: none !important;
    /* Prevent any unintended scaling */
}

/* Ensure SVG fills the container and is responsive */
#svg-turkiye-haritasi {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Region Display Styling */
.region-info-header {
    text-align: center;
    margin-bottom: 2rem;
    min-height: 4.5rem;
}

#region-display {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transition: all 0.4s ease;
}

#region-display.visible {
    opacity: 1;
}

/* Province Selector Styling */
.map-controls {
    display: flex;
    justify-content: center;
    /*margin-bottom: 3rem;*/
}

#province-select {
    background: var(--dark);
    color: white;
    border: 1px solid var(--glass-border);
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    width: 300px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

#province-select:hover,
#province-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* SVG Interior Styling - Brighter & Clearer Initial State */
#svg-turkiye-haritasi path {
    fill: #ffffff;
    /* Clean white/light gray background */
    stroke: #d1d1d1;
    /* Soft gray stroke for clarity */
    stroke-width: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;


}

/* Regional Base Colors (Subtle Tints for Clarity) */
#bolge-1 path {
    fill: #ff0000;
}

#bolge-2 path {
    fill: #ff0000;
}

#bolge-3 path {
    fill: #ff0000;
}

#bolge-4 path {
    fill: #ff0000;
}

#bolge-5 path {
    fill: #ff0000;
}

#bolge-6 path {
    fill: #ff0000;
}

#bolge-7 path {
    fill: #ff0000;
}

/* FOCUS EFFECT: Dimming non-focused areas */
#svg-turkiye-haritasi.region-focus g[data-bolge] path {
    opacity: 0.2;
    /* Dim other regions */
    /*  filter: grayscale(1);*/
    fill: #ffffff;

}

/* Red Highlighting for Active Region & Province */
#svg-turkiye-haritasi.region-focus g[data-bolge].is-active path {
    opacity: 1 !important;
    filter: none !important;
    stroke: #ef4444 !important;

}

#svg-turkiye-haritasi g[data-iladi]:hover path {
    fill: #e30a17 !important;
    /* VIBRANT TURKISH RED */
    filter: drop-shadow(0 0 40px rgb(223, 227, 10)) !important;
    stroke: #fff !important;
    stroke-width: 1.8;
    opacity: 1 !important;
    z-index: 500;

}

.il-isimleri {
    position: fixed;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    pointer-events: none;
    z-index: 2000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 1px 1px var(--glass-border);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: none;
    transform: translate(-50%, -100%);
    margin-top: -15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.il-isimleri::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(10, 10, 11, 0.9);
}

/* --- Modern Logo Design (Outfit Font) --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@900&display=swap');

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.4rem;
    letter-spacing: -2px;
    /* Tighter for a professional brand look */
    text-transform: none;
    cursor: pointer;
    line-height: 1;
}

.logo-turkiye {
    color: #ff0000 !important;
    /* Vivid Red */
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.logo-yim {
    color: #ffffff !important;
    font-weight: 800;
}

/* --- Social Icons Styling --- */
.footer-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-socials a:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* --- Footer --- */
footer {
    background: #050505;
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-dim);
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --- [ULTRA-PREMIUM] Responsive Overhaul --- */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    section {
        padding: 8rem 0;
    }

    .container {
        padding: 0 4rem;
    }

    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    .heritage-header .section-title {
        font-size: 3.2rem !important;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Nav & Hamburger Menu */
    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 11, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        backdrop-filter: blur(20px);
        z-index: 1001;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
    }

    nav.mobile-active ul {
        display: flex;
        right: 0;
    }

    nav.mobile-active ul li {
        margin-bottom: 2rem;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.8rem;
        color: white;
        cursor: pointer;
        z-index: 1002;
    }

    .logo {
        font-size: 1.6rem !important;
    }

    /* Heritage Section (Section 3) Center Alignment */
    .heritage-header {
        text-align: center;
        margin-bottom: 4rem;
    }

    .heritage-header .section-title {
        font-size: 1.9rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        margin: 0 auto;
    }

    .heritage-grid {
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }

    .heritage-content {
        text-align: center;
        order: 2;
    }

    .heritage-visual {
        order: 1;
    }

    .heritage-text {
        font-size: 0.95rem !important;
        text-align: center !important;
        line-height: 1.8 !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin: 2rem auto !important;
        padding: 0 1.5rem;
        max-width: 100% !important;
    }

    .heritage-stats-mini {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem 1rem !important;
        margin: 4rem 0 !important;
        width: 100% !important;
    }

    .mini-stat {
        text-align: center;
    }

    .mini-stat h3 {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .mini-stat p {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }

    .heritage-content .hero-cta {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 1rem 1rem;
    }

    /* Map Page Fixes (Section 2) */
    #province-select {
        margin-bottom: 50px;
    }

    #region-display {
        font-size: 1.8rem;
    }

    #city-display {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 1.9rem !important;
    }

    .section-title {
        font-size: 1.9rem !important;
    }

    .logo {
        font-size: 1.5rem !important;
    }

    .heritage-stats-mini {
        gap: 2rem 1rem !important;
    }
}

/* --- Modal Base --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal.active {
    display: flex;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3.5rem;
    color: white;
    cursor: pointer;
    z-index: 6000;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* --- Immersive Gallery Redesign (Dual View) --- */
.gallery-modal-fs {
    padding: 0 !important;
}

.gallery-fs-content {
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    flex-direction: column;
    padding: 2rem 4rem;
    position: relative;
    overflow-y: auto;
}

.gallery-fs-header {
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.gallery-fs-title h2 {
    font-size: 3rem;
    letter-spacing: 2px;
}

.gallery-fs-title h2 span {
    color: var(--gold);
}

.gallery-fs-title p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.gallery-fs-filters {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.search-box-mini {
    width: 250px;
}

.search-box-mini input {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.search-box-mini input:focus {
    border-color: var(--primary);
}

.filter-scroll-wrapper {
    flex: 1;
    overflow-x: auto;
}

.filter-scroll-wrapper::-webkit-scrollbar {
    height: 2px;
}

.filter-pills {
    display: flex;
    gap: 0.8rem;
    white-space: nowrap;
}

.filter-pill {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    font-size: 0.85rem;
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-fs-body {
    flex: 1;
    margin-top: 3rem;
}

.back-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: 0.3s;
}

.back-btn:hover {
    background: var(--primary);
}

.city-images-view h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
}

/* Grid System */
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 5rem;
}

/* city-preview-card */
.city-preview-card {
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    position: relative;
    transition: 0.4s;
}

.city-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.city-preview-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.city-preview-card:hover img {
    transform: scale(1.1);
}

.city-preview-card h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.city-preview-card span {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* image-card */
.gallery-item-card {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.gallery-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item-card:hover img {
    transform: scale(1.05);
}

.loading-status,
.no-images {
    grid-column: 1/-1;
    text-align: center;
    padding: 10rem 0;
    color: var(--text-dim);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .gallery-fs-content {
        padding: 1.5rem;
    }

    .gallery-fs-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-box-mini {
        width: 100%;
    }
}

/* --- [REFINED] Heritage Section Styles --- */
.heritage-section {
    background: #000;
    padding: 12rem 0;
    /* More breathing room */
}

.heritage-header {
    text-align: center;
    margin-bottom: 6rem;
}

.heritage-header .section-tag {
    justify-content: center;
}

.heritage-header .section-title {
    font-size: 4rem;
    margin: 0 auto;
    white-space: nowrap;
    /* Keep on one line */
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.heritage-content .section-title {
    font-size: 3.5rem;
    /* More balanced size */
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 500px;
}

.heritage-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.heritage-stats-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin: 4rem 0;
}

.mini-stat h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.mini-stat p {
    color: #fff;
    opacity: 0.5;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
}

.heritage-visual {
    position: relative;
    padding: 0;
}

.visual-frame {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #050505;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.visual-frame:hover {
    transform: scale(1.02);
}

.heritage-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-overlay-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 50%);
    pointer-events: none;
}

.video-badges {
    position: absolute;
    bottom: 0.2rem;
    left: 1rem;
    z-index: 10;
}

.badge-4k {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.heritage-visual::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    border-left: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    border-radius: 0 0 0 40px;
    z-index: -1;
    opacity: 0.3;
}

@media (max-width: 1024px) {
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .heritage-visual {
        order: -1;
    }
}

/* --- Featured Carousel Styling --- */
.featured-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0 5rem;
}

.featured-track {
    display: flex;
    gap: 3rem;
    padding: 0 4rem;
    width: max-content;
}

.featured-item {
    width: 400px;
    flex-shrink: 0;
    cursor: pointer;
}

.featured-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--glass-border);
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    height: 550px;
    /* Enforced uniform height */
    display: flex;
    flex-direction: column;
}

.featured-img {
    height: 380px;
    /* Uniform image height */
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.featured-content {
    padding: 2.2rem;
    background: linear-gradient(to top, #0a0a0b, rgba(10, 10, 11, 0.9));
    flex: 1;
    /* Take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.featured-content p {
    color: var(--text-dim);
    line-height: 1.5;
    font-size: 1.05rem;
    margin: 0;
}

.featured-item:hover .featured-card {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.featured-item:hover .featured-img img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .featured-item {
        width: 300px;
    }

    .featured-card {
        height: 400px;
    }

    .featured-content h3 {
        font-size: 1.5rem;
    }

    .heritage-header .section-title {
        white-space: normal !important;
        font-size: 2.2rem !important;
        line-height: 1.3;
    }

    .logo {
        font-size: 1.7rem;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: white;
    color: var(--primary);
}
  /* Dropdown */
  .dropdown {
    position: relative; /* ضروری برای موقعیت‌دهی فرزندان */
}

/* ۲. ساختن پل نامرئی */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%; /* از پایین دکمه شروع می‌شود */
    left: 0;
    width: 100%;
    height: 15px; /* ارتفاع پل: این همان "دره" را پر می‌کند */
    background: transparent; /* کاملاً شفاف و نامرئی */
}

/* ۳. استایل‌دهی جدید به منوی کشویی */
.dropdown-content {
    position: absolute;
    top: calc(100% + 10px); /* کمی پایین‌تر از دکمه قرار می‌گیرد تا زیباتر باشد */
    /* left: 0; */
    background-color:rgb(40 40 40 / 32%);
    backdrop-filter: blur(8px);
    min-width: 140px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    display: flex;
    /* flex-direction: column; */
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    right: -8px;
    gap: 0px;
}

/* ۵. استایل آیتم‌های داخل منو */
.dropdown-content a {
    color: #f0f0f0;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 12px;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ۶. نمایش منو هنگام هاور شدن روی والد (و پل نامرئی) */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

  .fa-caret-down {
    margin-left: 6px;
  }

  
  /* --- مخفی کردن ویجت و نوار مزاحم گوگل ترنسلیت --- */
  .skiptranslate iframe { display: none !important; }
  body { top: 0 !important; }
  #google_translate_element { display: none !important; }

  /* --- استایل دکمه‌های هدر (ذره‌بین و غیره) --- */
  .header-icon-btn {
    background: none; border: none; color: white; font-size: 20px; 
    cursor: pointer; margin-right: 15px; transition: color 0.3s; padding: 5px; 
  }
  .header-icon-btn:hover { color: #e50000; }

  /* --- پاپ‌آپ جستجوی زنده (Live Search) --- */
  .search-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); z-index: 20000; 
    justify-content: flex-start; align-items: center; flex-direction: column;
    backdrop-filter: blur(8px); padding-top: 100px;
  }
  .close-search-btn {
    position: absolute; top: 30px; right: 40px; background: none; border: none; 
    color: white; font-size: 50px; cursor: pointer; transition: transform 0.3s;
  }
  .close-search-btn:hover { transform: rotate(90deg); color: #e50000; }
  
  .search-container { width: 90%; max-width: 600px; position: relative; }
  .search-input {
    width: 100%; padding: 20px 25px; font-size: 20px; border: 2px solid #555; 
    border-radius: 30px; background: transparent; color: white; outline: none; 
    transition: border-color 0.3s;
  }
  .search-input:focus { border-color: #e50000; }
  .search-input::placeholder { color: #aaa; }
  
  /* نتایج جستجو */
  .search-results {
    width: 100%; max-height: 300px; overflow-y: auto; background: #222; 
    border-radius: 15px; margin-top: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    display: none;
  }
  .search-result-item {
    padding: 15px 25px; border-bottom: 1px solid #333; display: block; 
    color: white; text-decoration: none; font-size: 18px; transition: background 0.2s;
  }
  .search-result-item:hover { background: #e50000; color: white; }
  .search-result-item:last-child { border-bottom: none; }

  /* --- چت‌بات شناور (AI Chatbot) با افکت تپش --- */
  .chat-float-btn {
    position: fixed; bottom: 20px; right: 20px;
    background: linear-gradient(135deg, #e50000, #ff4d4d);
    color: white; border: none; border-radius: 50%; width: 65px; height: 65px; 
    font-size: 28px; cursor: pointer; box-shadow: 0 4px 15px rgba(229,0,0,0.4); 
    z-index: 19000; display: flex; justify-content: center; align-items: center;
    transition: transform 0.3s; animation: pulse-glow 2s infinite;
  }
  .chat-float-btn:hover { transform: scale(1.1); animation: none; }

  @keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(229, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(229, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 0, 0, 0); }
  }

  /* پنجره چت‌بات */
  .chat-popup {
    display: none; position: fixed; bottom: 95px; right: 20px; width: 360px; 
    height: 550px; background-color: white; border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 19001; overflow: hidden; 
    flex-direction: column; border: 1px solid #ddd;
  }
  .chat-header {
    background-color: #222; color: white; padding: 12px 15px; display: flex; 
    justify-content: space-between; align-items: center; font-weight: bold; font-size: 15px;
  }
  .chat-header-controls { display: flex; align-items: center; gap: 15px; }
  .expand-chat-btn { color: #ccc; font-size: 16px; text-decoration: none; transition: color 0.3s; }
  .expand-chat-btn:hover { color: #fff; }
  .close-chat-btn { background: none; border: none; color: #ccc; font-size: 24px; cursor: pointer; transition: color 0.3s; padding: 0; }
  .close-chat-btn:hover { color: #e50000; }
  .chat-popup iframe { width: 100%; height: calc(100% - 50px); border: none; }

  @media (max-width: 450px) {
    .chat-popup { width: 90%; right: 5%; height: 75vh; }
  }
  .font_trans {
      height: 20px; vertical-align: middle; margin: 7px;font-family: system-ui;
  }
  /* تنظیمات دقیق اندازه و ظاهر لوگوی چت‌بات */
.bot-svg-icon {
  width: 38px;  /* عرض استاندارد برای دکمه 65 پیکسلی */
  height: 38px; /* ارتفاع استاندارد */
  object-fit: contain; /* جلوگیری از کشیده شدن و دفرمه شدن لوگو */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* یک سایه ملایم برای جذابیت بیشتر */
  transition: transform 0.3s ease; /* انیمیشن نرم */
}

/* افکت بزرگ شدن لوگو وقتی کاربر موس را روی دکمه می‌برد */
.chat-float-btn:hover .bot-svg-icon {
  transform: scale(1.15);
}

/* برای اطمینان از اینکه خود دکمه عکس را دقیقاً وسط چین می‌کند */
.chat-float-btn {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}