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

:root {
    --primary-color: #0747A6;
    --secondary-color: #002B44;
    --accent-color: #45DABE;
    --text-dark: #002B44;
    --text-light: #566A7F;
    --bg-light: #F8F9FA;
    --bg-lighter: #FFFFFF;
    --border-color: #E4E7EB;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-lighter);
}

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

/* Enhanced Header with Glassmorphism */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Removed hidden state - header always visible */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
}

/* Logo Styling */
.logo {
    flex: 0 0 auto;
    z-index: 1001;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* CTA Button */
.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher */
.lang-switcher {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    font-family: 'Inter', sans-serif;
}

.lang-switcher:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-switcher:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.lang-switcher:disabled {
    opacity: 0.5;
    cursor: wait;
}

.lang-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px;
    height: 36px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-capsule:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.lang-capsule.loading {
    opacity: 0.6;
    pointer-events: none;
}

.lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.lang-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.lang-option {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.05s ease;
}

.lang-option:hover {
    background: rgba(7, 71, 166, 0.08);
}

.lang-option:active {
    transform: translateY(1px);
}

.lang-option.active,
.lang-option[aria-checked="true"] {
    background: #006EB4;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 110, 180, 0.3);
}

.cta-button {
    background: #006EB4;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 110, 180, 0.3);
}

.cta-button:focus-visible {
    outline: 2px solid #006EB4;
    outline-offset: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Animated hamburger to X transformation - symmetric cross */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    transform-origin: center;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Slide-out Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    will-change: transform;
    display: none; /* Hide by default */
}

.mobile-menu.active {
    transform: translateX(-300px);
}


.mobile-menu ul {
    list-style: none;
    padding: 90px 20px 20px;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-cta-button {
    width: 100%;
    background: #006EB4;
    color: white;
    padding: 14px 16px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 110, 180, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    /* Show language switcher in mobile menu */
    .mobile-menu .lang-switcher,
    .mobile-menu .lang-capsule {
        width: 100%;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block; /* Show mobile menu only on mobile devices */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 32px;
    }
    
    .hero-headline {
        font-size: 24px;
    }
    
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        transform: translateX(-100%);
    }
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: #0A5DC2;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-primary.large,
.btn-secondary.large,
.btn-outline.large {
    padding: 18px 24px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(
        rgba(0, 43, 68, 0.7), 
        rgba(7, 71, 166, 0.6)
    ), url('assets/images/hero_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Hero-specific button styling inspired by Flexport */
.hero .btn-primary {
    background: #566ae5;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn-primary:hover {
    background: #4c5fd9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86, 106, 229, 0.3);
}

.hero-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-headline {
    font-size: clamp(28px, 5.2vw, 56px);
    line-height: 1.2;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Ensure hero headline renders in exactly two lines */
.hero-headline span {
    display: block;
    white-space: nowrap;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* Hero image styles removed - now using background image */

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Trust Section */
.trust-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.client-logo {
    background: white;
    padding: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    min-height: 100px;
}

/* Platform Section */
.platform-section {
    padding: 80px 20px;
    background: white;
}

.platform-content {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.platform-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.platform-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.platform-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.platform-features {
    list-style: none;
    margin-bottom: 32px;
}

.platform-features li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 16px;
}

.platform-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-img {
    width: 100%;
    max-width: 600px;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.placeholder-dashboard {
    width: 100%;
    max-width: 500px;
}

/* Global Coverage Section */
.global-coverage-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.global-coverage-section .section-title {
    margin-bottom: 40px;
    padding: 0 20px;
}

.map-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.coverage-map {
    width: 100%;
    height: 600px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), #0A5DC2);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.contact-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: white;
}

.contact-info > p {
    font-size: 18px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.contact-item p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 20px 20px;
}

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

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.footer-column li {
    margin-bottom: 12px;
}

/* Leaflet Controls Z-Index Fix - Ensure all map controls stay below header */
.leaflet-control-zoom,
.leaflet-control-attribution,
.leaflet-control-reset,
.leaflet-control,
.leaflet-top,
.leaflet-bottom,
.leaflet-left,
.leaflet-right {
    z-index: 500 !important;
}

/* More specific targeting for Leaflet control containers */
.leaflet-control-container .leaflet-control-zoom,
.leaflet-control-container .leaflet-control-attribution,
.leaflet-control-container {
    z-index: 500 !important;
}

/* Map Reset Control Styles */
.leaflet-control-reset {
    background: white;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin: 10px;
    transition: all 0.2s ease;
}

.leaflet-control-reset:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.leaflet-control-reset .reset-control {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.leaflet-control-reset .reset-control:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.leaflet-control-reset .reset-control:active {
    transform: scale(0.95);
}

.leaflet-control-reset .reset-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.leaflet-control-reset.disabled .reset-control {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Reset control visibility animation */
.leaflet-control-reset {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
}

.leaflet-control-reset.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Regional Maps Layout */
.regional-maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.regional-map-wrapper {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.regional-map-title {
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.regional-map {
    width: 100%;
    height: 400px;
    border: none;
}

/* Port Marker Labels */
.port-marker-label {
    background: transparent !important;
    border: none !important;
}

.port-marker-container {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    pointer-events: auto;
}

.port-marker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.port-marker-name {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: none;
    line-height: 1.2;
}

/* Hover effects for port markers */
.port-marker-container:hover .port-marker-dot {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.port-marker-container:hover .port-marker-name {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Map Error States */
.map-fallback-active {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.map-fallback {
    padding: 20px;
    text-align: center;
}

.map-fallback-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.map-fallback-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.map-fallback-ports {
    margin: 20px 0;
    text-align: left;
}

.map-fallback-ports h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.port-list {
    list-style: none;
    padding: 0;
}

.port-item {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.port-item strong {
    color: var(--text-dark);
}

.port-description {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.map-fallback-coverage {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.map-fallback-notice {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-light);
}

.map-data-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-align: center;
    z-index: 1000;
}

.error-message strong {
    color: #dc3545;
    display: block;
    margin-bottom: 8px;
}

.retry-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.retry-button:hover {
    background: var(--secondary-color);
}

/* Responsive Design for Maps */
@media (max-width: 768px) {
    .regional-maps-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }

    .regional-map {
        height: 300px;
    }

    .leaflet-control-reset {
        margin: 5px;
    }

    .leaflet-control-reset .reset-control {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .regional-map {
        height: 250px;
    }

    .regional-map-wrapper {
        border-radius: 4px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    /* Show language switcher in mobile menu */
    .mobile-menu .lang-switcher,
    .mobile-menu .lang-capsule {
        width: 100%;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 60px 20px;
    }
    
    .hero-headline {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .platform-content {
        flex-direction: column;
    }
    
    .map-container {
        min-height: 400px;
    }
    
    .coverage-map {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-image img {
        height: 300px;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ========================================
   Interactive Map Section Styles
   ======================================== */

.map-section {
    padding: 60px 20px;
    background: var(--bg-light);
    position: relative;
}

.map-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.map-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.map-region {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-region:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.region-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.map-instance {
    height: 400px;
    border-radius: 6px;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.map-instance:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.map-loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.map-loading p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Fallback Styles */
.map-fallback {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: none;
}

.map-fallback h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.port-search {
    margin-bottom: 30px;
}

.port-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.port-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(7, 71, 166, 0.1);
}

.port-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.port-region h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.port-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.port-list::-webkit-scrollbar {
    width: 8px;
}

.port-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.port-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.port-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s ease;
}

.port-list li:hover {
    background-color: #f8fafc;
}

.port-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.port-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    min-width: 120px;
}

.port-country {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
    min-width: 100px;
}

.port-type {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.port-type[data-type="Feeder"] {
    background: #16a34a;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.retry-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: block;
    margin: 20px auto 0;
}

.retry-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.retry-button:active {
    transform: translateY(0);
}

/* Port Marker Styles */
.port-marker {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.port-marker:hover {
    transform: scale(1.2);
    z-index: 1000;
}

.port-marker:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.port-marker-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.port-mainliner .port-marker-inner {
    background-color: var(--primary-color);
}

.port-feeder .port-marker-inner {
    background-color: #16a34a;
}

/* Popup Styles */
.port-popup {
    font-family: inherit;
}

.port-popup h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.port-details {
    font-size: 0.9rem;
}

.port-details > div {
    margin-bottom: 6px;
}

.port-details strong {
    color: var(--text-dark);
    margin-right: 8px;
}

/* Accessibility Styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .map-region {
        border: 2px solid #000;
    }

    .map-instance {
        border: 2px solid #000;
    }

    .port-marker {
        border: 3px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }

    .map-region {
        transition: none;
    }

    .port-marker {
        transition: none;
    }

    .retry-button {
        transition: none;
    }
}

/* MarkerCluster Color Override (grouped dots) */
/* Ensure cluster icons match logo color without altering other styles */
.leaflet-container .marker-cluster-small,
.leaflet-container .marker-cluster-medium,
.leaflet-container .marker-cluster-large {
    /* Lighter ring using same base color with lower alpha */
    background-color: rgba(0, 110, 180, 0.20);
}

.leaflet-container .marker-cluster-small div,
.leaflet-container .marker-cluster-medium div,
.leaflet-container .marker-cluster-large div {
    /* Lighter inner fill using same base color with alpha */
    background-color: rgba(0, 110, 180, 0.65);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .map-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-instance {
        height: 300px;
    }

    .port-lists {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .port-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .port-name, .port-country {
        min-width: auto;
        flex: none;
    }

    .map-header h2 {
        font-size: 2rem;
    }

    .map-header p {
        font-size: 1rem;
    }

    .map-section {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .map-region {
        padding: 15px;
    }

    .map-instance {
        height: 250px;
    }

    .map-fallback {
        padding: 20px;
    }

    .port-search input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print Styles */
@media print {
    .map-section {
        background: white;
    }

    .map-container,
    .map-loading {
        display: none;
    }

    .map-fallback {
        display: block !important;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .port-search {
        display: none;
    }
}
