/* Premium Full Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-light: #64748b;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}
.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 140px 24px 80px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    position: relative;
    z-index: 1;
    width: 100% !important;
}

/* Left Content Area */
.hero-content {
    width: 42% !important;
    text-align: left !important;
    padding-top: 40px;
    position: sticky;
    top: 100px;
} /* Vertically center visually since we changed align-items to start */

.hero-content .badge {
    display: inline-block;
    background: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-content .highlight {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 480px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.f-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.feature-item strong {
    display: block;
    font-size: 16px;
    color: var(--text-main);
}
.feature-item span {
    font-size: 14px;
    color: var(--text-light);
}

.hero-widget {
}
#metro-planner-app {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: visible;
    position: relative;
}

.mp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid #f1f5f9;
}
.mp-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.mp-city-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.mp-search-container {
    padding: 30px 24px;
    background: #ffffff;
    position: relative;
}

.mp-input-group {
    position: relative;
    background: white;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 4px 16px;
    z-index: 10;
}
.mp-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37,99,235,0.1);
    z-index: 20;
}

.mp-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}
.mp-icon-from { border: 3px solid #10b981; }
.mp-icon-to { border: 3px solid #ef4444; }

.mp-input-group input {
    width: 100%;
    border: none;
    padding: 14px 0;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    background: transparent;
}

.mp-swap-container {
    height: 20px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}
.mp-swap-line {
    position: absolute;
    left: 23px;
    top: -10px;
    bottom: -10px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
    border-style: dashed;
}
.mp-swap-btn {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    z-index: 2;
}
.mp-swap-btn:hover { background: #f1f5f9; color: var(--primary); }

.mp-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    list-style: none;
    padding: 8px 0;
    margin: 4px 0 0;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid #e2e8f0;
    scroll-behavior: smooth;
}
.mp-suggestions.active { display: block; }
.mp-suggestions li {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}
.mp-suggestions li:hover { background: #f3f4f6; color: var(--primary); }
.mp-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
}

.mp-btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    font-family: inherit;
}
.mp-btn-primary:hover { background: var(--primary-dark); }

/* Route Tabs */
.mp-route-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin: 16px 24px 0;
    gap: 4px;
}
.mp-route-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.mp-route-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.mp-results { padding: 0; }

/* Summary pills bar */
.mp-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.mp-pill {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
}
.mp-pill-type {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
}

/* Two-col body */
.mp-results-body {
    display: grid;
    grid-template-columns: 1fr 240px; /* Give more space to the fare sidebar */
    gap: 0;
    align-items: start;
}
.mp-timeline-col { padding: 16px 20px; }

/* Fare card */
.mp-fare-col {
    padding: 16px 12px;
    border-left: 1px solid #e2e8f0;
}
.mp-fare-card {}
.mp-fare-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}
.mp-fare-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.mp-fare-row:last-child { border-bottom: none; }
.mp-fare-icon { font-size: 16px; }

.mp-timeline-header {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}

/* Segment banners (Starts here / Change here / Ends here) */
.mp-segment-banner {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.mp-banner-label { font-weight: 600; color: #374151; }
.mp-banner-info  { font-weight: 700; font-size: 13px; margin-left: auto; }
.mp-ends-banner  { margin-top: 4px; }
.mp-station {
    display: flex;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 24px;
}
.mp-station:last-child { padding-bottom: 0; }
.mp-station-line {
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
}
.mp-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--line-color, #ccc);
    background: white;
    z-index: 2;
}
.mp-dot.interchange {
    width: 18px;
    height: 18px;
    background: var(--line-color, #ccc);
    box-shadow: 0 0 0 3px #e2e8f0;
}
.mp-path {
    width: 4px;
    flex-grow: 1;
    background: var(--line-color, #ccc);
    margin-top: 4px;
}
.mp-station:last-child .mp-path { display: none; }
.mp-station-info { flex-grow: 1; }
.mp-station-name { font-size: 16px; font-weight: 600; color: #334155; }
.mp-station-meta { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.mp-interchange-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0 16px 0;
    display: inline-block;
    border-left: 4px solid var(--next-line-color);
}
.mp-interchange-text { font-size: 14px; font-weight: 600; }
.mp-message { padding: 20px 24px; text-align: center; color: #64748b; font-weight: 500; }


/* Cities Section */
.cities-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .cities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .cities-grid { grid-template-columns: 1fr; }
}
.city-card {
    background: #1f2937;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid #374151;
    color: #818cf8;
}
.city-card:hover {
    background: #374151;
}
.city-card.active-city {
    border-color: #6366f1;
    background: #312e81;
}
.city-icon {
    font-size: 20px;
    margin-right: 16px;
    background: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.city-name {
    font-size: 15px;
    font-weight: 600;
    flex-grow: 1;
}
.city-card::after {
    content: "›";
    font-size: 24px;
    color: #6b7280;
    margin-left: auto;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}
footer p {
    color: var(--text-light);
    font-size: 14px;
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    background: #ffffff;
}
.features-container {
    max-width: 1200px;
    margin: 0 auto;
}
.features-header {
    text-align: center;
    margin-bottom: 60px;
}
.features-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}
.features-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.feature-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}
.feature-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}
.f-card-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
}
.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
}

/* Responsive Layouts */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column !important;
        gap: 40px !important;
    }
    .hero-content {
        width: 100% !important;
        position: relative !important; /* Disable sticky on tablet/mobile */
        top: 0 !important;
        padding-top: 0 !important;
        text-align: center !important;
    }
    .hero-widget {
        width: 100% !important;
    }
    .hero-content p {
        margin: 0 auto 32px auto;
    }
    .features-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }
    .hero {
        padding-top: 120px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 42px;
    }
    .nav-links {
        display: none;
    }
    .mp-results-body {
        grid-template-columns: 1fr; /* Stack timeline and fare */
    }
    .mp-fare-col {
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 16px;
        order: -1; /* Show fare box before timeline on mobile */
    }
    .mp-timeline-col {
        padding: 16px 12px;
    }
    .mp-summary-bar {
        justify-content: center;
    }
    .mp-route-tabs {
        flex-direction: column;
    }
    .mp-route-tab {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }
    .features-list {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 140px;
    }
    .feature-item .f-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .feature-item strong {
        font-size: 14px;
    }
    .feature-item span {
        font-size: 12px;
    }
}
