:root {
    /* Primary Colors from AppTheme */
    --electric-blue: #2563EB;
    --electric-blue-light: #60A5FA;
    --electric-blue-dark: #1D4ED8;

    /* Secondary Colors */
    --emerald-green: #10B981;
    --emerald-green-light: #34D399;
    --emerald-green-dark: #059669;

    /* Status Colors */
    --occupied-orange: #F59E0B;
    --offline-gray: #6B7280;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Fonts */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--electric-blue);
    transition: color 0.2s;
}

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

/* Header */
header {
    background-color: var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--electric-blue);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--electric-blue), var(--electric-blue-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Header Navigation */
.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--gray-600);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--electric-blue);
}

.lang-selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.lang-selector-wrapper:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

.lang-selector-wrapper i {
    color: var(--gray-600);
    pointer-events: none;
}

.lang-selector-wrapper:hover i {
    color: var(--electric-blue);
}

#language-select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    outline: none;
    padding-right: 16px;
    /* Space for arrow */
    appearance: none;
    /* Remove default arrow in some browsers */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 center;
    background-size: 14px;
    min-width: 80px;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .logo {
    gap: var(--spacing-sm);
}

[dir="rtl"] .popup-btn i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] #language-select {
    padding-right: 0;
    padding-left: 16px;
    background-position: left center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--gray-100);
        z-index: 1100;
        /* Ensure it is on top */
    }

    .nav-links.active {
        display: flex !important;
        /* Force display */
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        margin-top: 12px;
    }

    .lang-toggle {
        width: 100%;
        justify-content: center;
        margin: 12px 0;
        padding: 10px;
        border: 1px solid var(--gray-200);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    background-color: var(--electric-blue);
    color: var(--white) !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--electric-blue-dark);
}

/* Specific Popup Sizing for Mobile */
@media (max-width: 480px) {
    .station-popup {
        min-width: 260px;
        max-width: 300px;
        padding: 16px 12px;
    }

    .station-popup h3 {
        font-size: 1.1rem;
    }

    .station-popup p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .popup-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .popup-btn i {
        font-size: 1.1rem;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--electric-blue), var(--electric-blue-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.store-badge img {
    height: 48px;
    transition: transform 0.2s;
}

.store-badge:hover img {
    transform: translateY(-2px);
}

/* Map Section */
.map-container {
    height: 400px;
    width: 100%;
    margin: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    /* For rounded corners if container has them */
}

@media (min-width: 1024px) {
    .map-container {
        height: 500px;
    }
}

/* Features */
.features {
    padding: var(--spacing-xl) 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.card-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xl) 20px;
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    counter-reset: step;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    text-align: center;
    padding: var(--spacing-lg);
    position: relative;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: transform 0.2s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--electric-blue);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.step-card p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: var(--spacing-xl) 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-900);
}

.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--gray-600);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle {
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col h4 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

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

.footer-col li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: var(--gray-600);
}

.footer-col a:hover {
    color: var(--electric-blue);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Google Maps InfoWindow Styles */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 20px !important;
    /* Even more rounded */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    /* Heaviest shadow */
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

/* Custom Popup Content */
.station-popup {
    padding: 24px 16px 16px 16px;
    /* Maximum padding */
    min-width: 340px;
    /* Very wide */
    max-width: 420px;
}

.station-popup h3 {
    font-size: 1.5rem;
    /* Large headline */
    font-weight: 800;
    /* Extra bold */
    margin-bottom: 12px;
    color: var(--gray-900);
    line-height: 1.2;
}

.station-popup p {
    font-size: 1.1rem;
    /* Very readable text */
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 16px;
    /* More gap */
    width: 100%;
}

.popup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    /* Big touch targets */
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 1rem;
    /* Standard readability */
    font-weight: 600;
    color: white !important;
    transition: transform 0.1s, opacity 0.2s;
    white-space: nowrap;
}

.popup-btn:active {
    transform: scale(0.98);
}

.popup-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    /* Subtle lift */
}

.popup-btn.app-store {
    background-color: #000000;
}

.popup-btn.google-play {
    background-color: #00A669;
    /* Slightly brighter emerald */
}

.popup-btn i {
    font-size: 1.5rem;
    /* Huge icons */
    margin-right: 10px;
}

/* Remove default close button margin spacing */
.gm-ui-hover-effect {
    top: 12px !important;
    /* Adjust for larger padding */
    right: 12px !important;
    width: 36px !important;
    /* Larger close button */
    height: 36px !important;
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-radius: 50% !important;
}

.gm-ui-hover-effect img {
    margin: 8px !important;
    /* Center the X icon */
    width: 20px !important;
    height: 20px !important;
}

/* Map Pin Styles */
.custom-pin {
    background: transparent;
    border: none;
}

/* Pulse Animation Z-Index Fix */
.pin-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 200;
    /* Higher than pulse */
    box-sizing: border-box;
    /* Ensure border doesn't break size */
}

.pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: inherit;
    opacity: 0.6;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }

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