﻿:root {
    --primary-dark: #212121;
    --primary-green: #4CAF50;
    --secondary-dark: #2a2a2a;
    --border-green: rgba(76, 175, 80, 0.3);
    --text-light: #ffffff;
    --text-gray: #999;
    --overlay-dark: rgba(33, 33, 33, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION - FIXED AT TOP
   ============================================ */

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 95px;
    background: var(--overlay-dark);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-green);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand-image img {
    height: 35px;
    width: auto;
    border-radius: 4px;
}

.navbar-brand-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}

    .navbar-brand-text span {
        color: var(--primary-green);
    }

/* Center Submit Button */
.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.btn-submit-location {
    background: linear-gradient(135deg, var(--primary-green) 0%, #45a049 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: inline-block;
    margin-left: 100px;
}

    .btn-submit-location:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
        background: linear-gradient(135deg, #45a049 0%, var(--primary-green) 100%);
    }

/* Right Side Navigation */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-light);
}

    .social-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .social-icon.discord:hover {
        background: #5865F2;
        transform: translateY(-2px);
    }

    .social-icon.instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        transform: translateY(-2px);
    }

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    padding: 8px 20px;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

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

.btn-signup {
    padding: 8px 20px;
    background: var(--primary-green);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .btn-signup:hover {
        background: #45a049;
        transform: translateY(-2px);
    }

.profile-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    transition: all 0.3s ease;
}

    .profile-btn:hover {
        background: var(--primary-green);
        color: white;
        transform: translateY(-2px);
    }
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
}

    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }

/* ============================================
   MAP SECTION - HERO VIEWPORT
   ============================================ */

.map-wrapper {
    position: relative;
    height: calc(85vh - 95px);
    margin-top: 95px;
    width: 100%;
}

#map {
    width: 100%;
    height: 100%;
}

/* Map Controls Overlay */
.map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.map-btn {
    background: var(--overlay-dark);
    color: var(--text-light);
    border: 2px solid var(--border-green);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

    .map-btn:hover {
        background: var(--primary-green);
        border-color: var(--primary-green);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

    .map-btn svg {
        width: 16px;
        height: 16px;
    }

    .map-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Loading Spinner */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   BELOW MAP CONTENT
   ============================================ */

.below-map-content {
    background: var(--primary-dark);
    position: relative;
}

/* About Us Arrow Section */
.about-us-arrow {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(33, 33, 33, 0) 0%, var(--primary-dark) 100%);
}

    .about-us-arrow a {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

.about-us-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
}

.arrow-down {
    font-size: 32px;
    color: var(--primary-green);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.about-us-arrow a:hover .about-us-text {
    color: var(--primary-green);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 80px 20px;
    background: var(--primary-dark);
}

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

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.col-md-4 {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
}

.feature-card {
    background: var(--secondary-dark);
    border: 2px solid var(--border-green);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary-green);
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    }

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ============================================
   TAGS SECTION
   ============================================ */

.tags-section {
    padding: 80px 20px;
    background: var(--secondary-dark);
}

.tag-btn {
    background: var(--primary-dark);
    color: var(--text-light);
    border: 2px solid var(--border-green);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
}

    .tag-btn:hover {
        background: var(--primary-green);
        border-color: var(--primary-green);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }

/* ============================================
   CONTRIBUTE SECTION
   ============================================ */

.contribute-section {
    padding: 100px 20px;
    background: var(--primary-dark);
}

.contribute-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contribute-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.lead {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 500;
}

.contribute-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn-contribute {
    background: var(--primary-green);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

    .btn-contribute:hover {
        background: #45a049;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

.contribute-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

    .contribute-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .contribute-image:hover img {
        transform: scale(1.05);
    }

/* ============================================
   COMMUNITY SECTION
   ============================================ */

.community-section {
    padding: 100px 20px;
    background: var(--secondary-dark);
    text-align: center;
}

    .community-section h2 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 15px;
        color: var(--text-light);
    }

    .community-section p {
        font-size: 18px;
        color: var(--text-gray);
        margin-bottom: 40px;
    }

.community-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.community-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
}

    .community-btn.discord {
        background: #5865F2;
        box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    }

        .community-btn.discord:hover {
            background: #4752C4;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
        }

    .community-btn.instagram {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
    }

        .community-btn.instagram:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
        }

    .community-btn svg {
        width: 24px;
        height: 24px;
    }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    border-top: 2px solid var(--border-green);
    padding: 40px 20px;
    text-align: center;
}

.footer-brand {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--text-gray);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--primary-green);
        }

.footer-copyright {
    color: var(--text-gray);
    font-size: 13px;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--primary-dark);
    border-left: 2px solid var(--border-green);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

    .mobile-menu.active {
        right: 0;
    }

.mobile-menu-content {
    padding: 80px 20px 20px;
    position: relative;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

    .mobile-menu-close:hover {
        background: var(--secondary-dark);
        color: var(--primary-green);
        transform: rotate(90deg);
    }

    .mobile-menu-close svg {
        width: 24px;
        height: 24px;
    }

.mobile-menu-section {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-green);
    padding-bottom: 20px;
}

    .mobile-menu-section:last-child {
        border-bottom: none;
    }

    .mobile-menu-section h3 {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-gray);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

    .mobile-menu-item:hover {
        background: var(--secondary-dark);
        border-left: 3px solid var(--primary-green);
        padding-left: 12px;
    }

    .mobile-menu-item svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

.mobile-menu-item-text {
    flex: 1;
}

.mobile-menu-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.mobile-menu-item-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.mobile-menu-auth {
    display: flex;
    gap: 10px;
}

    .mobile-menu-auth .btn-login,
    .mobile-menu-auth .btn-signup {
        flex: 1;
        text-align: center;
    }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar-center {
        display: none;
    }

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

    .navbar-right .social-icon,
    .navbar-right .auth-buttons,
    .navbar-right .profile-btn {
        display: none;
    }

    .navbar-brand-text {
        font-size: 14px;
    }

    .navbar-logo img {
        height: 35px;
    }

    .navbar-brand-image img {
        height: 28px;
    }

    .map-wrapper {
        height: calc(60vh - 75px);
        margin-top: 75px;
        position: relative;
    }

    .top-navbar {
        height: 75px;
    }

    .section-title {
        font-size: 32px;
    }

    .col-md-4 {
        min-width: 100%;
    }

    .contribute-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contribute-image {
        order: -1;
    }

    .contribute-text h2 {
        font-size: 32px;
    }

    .community-section h2 {
        font-size: 32px;
    }

    .footer-brand {
        font-size: 24px;
    }

    .map-controls {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .map-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }

    .navbar-brand-container {
        gap: 8px;
    }

    .features-section,
    .tags-section,
    .contribute-section,
    .community-section {
        padding: 60px 20px;
    }
}

/* ============================================
   INFO WINDOW CUSTOM STYLING
   ============================================ */

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

.gm-style-iw-bg {
    display: none !important;
}

/* Image Placeholder in Info Window */
.image-placeholder {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    border: 2px solid var(--border-green);
}


/* Map Popup Overlay */
.map-popup-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: slideDown 0.4s ease-out;
    pointer-events: none;
}

    .map-popup-overlay.hidden {
        display: none;
    }

.map-popup-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 2px solid #4CAF50;
    white-space: nowrap;
    pointer-events: auto;
}

    .map-popup-content h2 {
        color: #fff;
        font-size: 16px;
        margin: 0 0 12px 0;
        font-weight: 500;
        line-height: 1.3;
    }

        .map-popup-content h2 span {
            color: #4CAF50;
            font-weight: 600;
        }

.map-popup-close-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .map-popup-close-btn:hover {
        background: #45a049;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }

@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .map-popup-overlay {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
    }

    .map-popup-content {
        padding: 15px 20px;
        white-space: normal;
    }

        .map-popup-content h2 {
            font-size: 14px;
            margin-bottom: 10px;
        }

    .map-popup-close-btn {
        padding: 7px 18px;
        font-size: 13px;
    }
}