/* ==========================================
   Header
========================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    transition: var(--transition);
}


/* ==========================================
   Navbar
========================================== */

.navbar {
    width: min(92%, var(--max-width));
    margin: auto;
    min-height: 110px;
    display: flex;
    flex-direction: column;
}

.navbar-top {
    width: 100%;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-bottom {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border-top: 1px solid var(--border);
}

.navbar-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 7px 18px;

    color: var(--text);
    background: transparent;

    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 600;

    transition: var(--transition);
}

.navbar-nav-btn:hover {
    color: var(--primary);
    background: #F0FDFA;
}

.navbar-nav-btn i {
    font-size: 0.85rem;
}

.navbar-top .logo {
    flex-shrink: 0;
}

.navbar-top .language-switcher {
    margin-left: auto;
}


/* ==========================================
   Logo
========================================== */

.logo {

    display: flex;

    align-items: center;

    gap: .8rem;

    cursor: pointer;
}

.logo img {

    width: 45px;

    height: 45px;

    object-fit: contain;
}

.logo h1 {

    font-size: 1.35rem;

    font-weight: 800;

    color: var(--primary);

    white-space: nowrap;
}


/* ==========================================
   Navigation Links
========================================== */

.nav-links {

    display: flex;

    align-items: center;

    gap: 2rem;
}

.nav-links li {

    list-style: none;
}

.nav-links a {

    position: relative;

    color: var(--text);

    font-weight: 600;

    transition: var(--transition);
}

.nav-links a:hover {

    color: var(--primary);
}


/* Underline Animation */

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: var(--primary);

    transition: width .3s ease;
}

.nav-links a:hover::after {

    width: 100%;
}

.about-menu{
    position:relative;
}

.about-tooltip{

    position:absolute;

    top:40px;
    right:0;

    width:320px;

    background:#fff;

    border:1px solid #E5E7EB;

    border-radius:16px;

    padding:18px;

    box-shadow:0 16px 40px rgba(0,0,0,.12);

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:.25s;

    z-index:1000;

}

.about-menu:hover .about-tooltip{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.about-tooltip h4{

    color:#0F766E;

    margin-bottom:10px;

    font-size:1rem;

}

.about-tooltip p{

    font-size:.92rem;

    line-height:1.6;

    color:#4B5563;

}

.politicians-menu{
    position:relative;
}

.politicians-tooltip{

    position:absolute;

    top:40px;
    left:50%;

    transform:translateX(-50%) translateY(10px);

    width:360px;

    background:#fff;

    border:1px solid #E5E7EB;

    border-radius:18px;

    padding:20px;

    box-shadow:0 18px 45px rgba(0,0,0,.12);

    opacity:0;

    visibility:hidden;

    transition:.25s;

    z-index:1000;

}

.politicians-menu:hover .politicians-tooltip{

    opacity:1;

    visibility:visible;

    transform:translateX(-50%) translateY(0);

}

.politicians-tooltip h4{

    color:#0F766E;

    font-size:1rem;

    margin-bottom:12px;

}

.politicians-tooltip p{

    color:#4B5563;

    line-height:1.6;

    font-size:.92rem;

    margin-bottom:18px;

}

.tooltip-stats{

    display:flex;

    justify-content:space-between;

    gap:12px;

}

.tooltip-stats div{

    flex:1;

    text-align:center;

    background:#F8FAFC;

    border-radius:12px;

    padding:14px;

}

.tooltip-stats span{

    display:block;

    color:#0F766E;

    font-size:1.5rem;

    font-weight:700;

}

.tooltip-stats small{

    color:#6B7280;

    font-size:.82rem;

}


/* ==========================================
   Active Link
========================================== */

.nav-links a.active {

    color: var(--primary);
}

.nav-links a.active::after {

    width: 100%;
}


/* ==========================================
   Mobile Menu Button
========================================== */

.menu-toggle {

    display: none;

    background: transparent;

    border: none;

    cursor: pointer;

    padding: .5rem;
}

.menu-toggle span {

    display: block;

    width: 26px;

    height: 3px;

    background: var(--text);

    margin: 5px 0;

    border-radius: 50px;

    transition: var(--transition);
}


/* ==========================================
   Mobile Navigation
========================================== */
@media (max-width: 768px) {

    .navbar {
        min-height: 105px;
    }

    .navbar-top {
        height: 60px;
    }

    .navbar-bottom {
        height: 45px;
        gap: 8px;
    }

    .navbar-nav-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .navbar-nav-btn i {
        font-size: 0.8rem;
    }

}

@media (min-width: 768px) {

    .navbar-nav-btn[href="map.html"] {
        display: none;
    }

}

/* ==========================================
   Large Screens
========================================== */

@media (min-width: 1400px) {

    .navbar {

        height: 110px;
    }

    .logo h1 {

        font-size: 1.5rem;
    }

    .nav-links {

        gap: 2.5rem;
    }
}

/* ==========================================
   Language Switcher
========================================== */

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #555555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-symbol {
    font-size: 15px;
    font-weight: 700;
}

.language-btn:hover {
    background: #f7f7f7;
    color: #111111;
}

.language-btn.active {
    background: #90d3cd;
    color: #111111;
}

.language-btn:active {
    transform: scale(0.97);
}

/* Active Navbar Button */

.navbar-nav-btn.active {
    background: #90d3cd;
    color: #111111;
}

.navbar-nav-btn.active i {
    color: #111111;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1px;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.site-name {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0F766E;
    white-space: nowrap;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.social-btn {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #555;
    background: transparent;

    text-decoration: none;

    transition: all 0.25s ease;
}

.instagram-btn {
    color: #E1306C;
}

.linkedin-btn {
    color: #0077B5;
}

.social-btn i {
    font-size: 16px;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.instagram-btn:hover {
    background: transparent;
    color: #E1306C;
}

.linkedin-btn:hover {
    background: transparent;
    color: #0077B5;
}

.social-links {
    position: relative;
    width: 34px;
    height: 34px;
}

.social-links .social-btn {
    position: absolute;
    top: 0;
    left: 0;
}

.social-links .instagram-btn {
    opacity: 1;
    visibility: visible;
}

.social-links .linkedin-btn {
    opacity: 0;
    visibility: hidden;
}

.social-links .social-btn {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.social-links .instagram-btn {
    animation: showInstagram 5s infinite;
}

.social-links .linkedin-btn {
    animation: showLinkedIn 5s infinite;
}

@keyframes showInstagram {
    0%, 50% {
        opacity: 1;
        visibility: visible;
    }

    50.01%, 100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes showLinkedIn {
    0%, 50% {
        opacity: 0;
        visibility: hidden;
    }

    50.01%, 100% {
        opacity: 1;
        visibility: visible;
    }
}

.social-links .social-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}