/* Premium Glassmorphic Metro Style System */

:root {
    --bg-primary: #faf9f6; /* Warm Ivory */
    --text-primary: #0f172a; /* Deep Charcoal */
    --text-secondary: #334155; /* Medium Slate */
    --text-muted: #64748b; /* Cool Gray */
    
    /* Branding & Interactive */
    --primary-color: #1e40af; /* Metro Sapphire Blue */
    --primary-hover: #1d4ed8;
    --primary-light: rgba(30, 64, 175, 0.08);
    
    /* Card Glassmorphic tokens */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.06);
    --glass-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.02);
    
    /* Sizing shapes */
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Official SG Transit Line Hex Codes */
    --mrt-nsl: #e11d48; /* Red (North-South) */
    --mrt-ewl: #16a34a; /* Green (East-West) */
    --mrt-nel: #8b5cf6; /* Purple (North-East) */
    --mrt-ccl: #d97706; /* Amber/Yellow (Circle) */
    --mrt-dtl: #2563eb; /* Blue (Downtown) */
    --mrt-tel: #854d0e; /* Brown (Thomson-East Coast) */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Base Headings & SEO */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.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;
}

/* Premium Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 16px;
    transition: var(--transition);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Logo & Branding */
.brand-bar {
    display: flex;
    justify-content: center;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.brand-logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 9px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.logo-accent-dot {
    animation: accentPulse 2.5s infinite;
}

@keyframes accentPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.brand-name .accent-text {
    color: var(--primary-color);
}

/* Floating Search Bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-field {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.search-field .search-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

#stationSearch {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    background: #ffffff;
    font-size: 15px;
    outline: none;
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    color: var(--text-primary);
    font-family: inherit;
}

#stationSearch::placeholder {
    color: var(--text-muted);
}

#stationSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px -2px rgba(30, 64, 175, 0.12), 0 0 0 3px rgba(30, 64, 175, 0.15);
}

/* Search Dropdown Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    margin-top: 6px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    z-index: 1000;
    display: none;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.search-result-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.search-result-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-highlight {
    background-color: rgba(217, 119, 6, 0.18);
    color: var(--mrt-ccl);
    padding: 1px 3px;
    border-radius: 4px;
    font-weight: 700;
}

/* Elegant Icons & Buttons */
.icon-btn,
.location-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.icon-btn svg,
.location-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.icon-btn:hover,
.location-btn:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
}

.location-btn:hover {
    color: var(--mrt-nsl);
    border-color: var(--mrt-nsl);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.1);
}

.icon-btn:active,
.location-btn:active {
    transform: scale(0.96);
}

/* Quick Station Pills */
.popular-stations-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.pills-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.station-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.station-pill {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
}

.station-pill:hover {
    background: var(--primary-light);
    border-color: rgba(30, 64, 175, 0.2);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.station-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
}

/* System Map Section (Overview) */
.system-map-section {
    background: var(--glass-bg);
    margin: 24px auto;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 1000px;
    border: 1px solid var(--glass-border);
}

.system-map-container h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.system-map-figure {
    margin: 0;
    text-align: center;
}

.system-map-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: var(--transition);
}

.system-map-image:hover {
    transform: scale(1.015);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.system-map-figure figcaption {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 14px;
    font-weight: 500;
}

/* Google Maps Container Styles */
.map-view {
    background: var(--glass-bg);
    margin: 24px auto;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 1000px;
    border: 1px solid var(--glass-border);
}

.map-view-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.google-map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    overflow: hidden;
}

.map-view-info {
    text-align: center;
}

.map-view-info h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.map-view-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Fullscreen Map Mode Setup */
html.map-view-active {
    height: 100%;
    overflow: hidden;
}

html.map-view-active body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

html.map-view-active body>header {
    flex-shrink: 0;
}

html.map-view-active body>main {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

html.map-view-active body>footer {
    display: none;
}

html.map-view-active #map-view {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #ffffff;
}

html.map-view-active .map-view-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    gap: 0;
}

html.map-view-active .google-map {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

html.map-view-active .map-view-info {
    flex-shrink: 0;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html.map-view-active .map-view-info h3 {
    font-size: 15px;
    margin-bottom: 3px;
}

html.map-view-active .map-view-info p {
    font-size: 12px;
}

html.map-view-active .mrt-info {
    display: none;
}

/* GPS smart finder card customization */
.mrt-info {
    max-width: 1000px;
    margin: 24px auto;
    padding: 32px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.mrt-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
}

.gps-card-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.gps-visual {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(30, 64, 175, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gps-icon {
    width: 36px;
    height: 36px;
    z-index: 2;
}

.radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(30, 64, 175, 0.25);
    border-radius: 50%;
    animation: pulseRadar 2s infinite ease-out;
    z-index: 1;
}

@keyframes pulseRadar {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.gps-content {
    flex: 1;
}

.page-h1 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.gps-content p {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
    margin: 24px 0;
}

.gps-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gps-feat-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.feat-icon {
    font-size: 1.1rem;
    background: rgba(15, 23, 42, 0.04);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.gps-feat-item strong {
    color: var(--text-primary);
}

/* System overview & lines */
.system-card h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.system-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.system-card h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Lines Grid */
.mrt-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.line-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01);
}

.line-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.line-badge {
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

.line-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.line-item p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Official Line styles */
.line-ns { border-left: 3.5px solid var(--mrt-nsl); }
.line-ns:hover { border-left-color: var(--mrt-nsl); box-shadow: 0 8px 24px -10px rgba(225, 29, 72, 0.15); transform: translateY(-1px); }
.ns-badge { background: var(--mrt-nsl); }

.line-ew { border-left: 3.5px solid var(--mrt-ewl); }
.line-ew:hover { border-left-color: var(--mrt-ewl); box-shadow: 0 8px 24px -10px rgba(22, 163, 74, 0.15); transform: translateY(-1px); }
.ew-badge { background: var(--mrt-ewl); }

.line-ne { border-left: 3.5px solid var(--mrt-nel); }
.line-ne:hover { border-left-color: var(--mrt-nel); box-shadow: 0 8px 24px -10px rgba(139, 92, 246, 0.15); transform: translateY(-1px); }
.ne-badge { background: var(--mrt-nel); }

.line-cc { border-left: 3.5px solid var(--mrt-ccl); }
.line-cc:hover { border-left-color: var(--mrt-ccl); box-shadow: 0 8px 24px -10px rgba(217, 119, 6, 0.15); transform: translateY(-1px); }
.cc-badge { background: var(--mrt-ccl); }

.line-dt { border-left: 3.5px solid var(--mrt-dtl); }
.line-dt:hover { border-left-color: var(--mrt-dtl); box-shadow: 0 8px 24px -10px rgba(37, 99, 237, 0.15); transform: translateY(-1px); }
.dt-badge { background: var(--mrt-dtl); }

.line-te { border-left: 3.5px solid var(--mrt-tel); }
.line-te:hover { border-left-color: var(--mrt-tel); box-shadow: 0 8px 24px -10px rgba(133, 77, 14, 0.15); transform: translateY(-1px); }
.te-badge { background: var(--mrt-tel); }

/* Guide Steps UI */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.guide-step {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.guide-step div {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.guide-step strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

/* Modal enlarged view style adjustments */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    cursor: default;
}

.modal h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.15rem;
    position: absolute;
    top: 24px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 20px;
    border-radius: 99px;
    backdrop-filter: blur(10px);
}

#modalDescription {
    color: #94a3b8;
    margin: 0;
    font-size: 13.5px;
    position: absolute;
    bottom: 24px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 20px;
    border-radius: 99px;
    backdrop-filter: blur(10px);
}

.close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    font-weight: 300;
    transition: var(--transition);
    z-index: 1001;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Modal Controls */
.zoom-controls {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.fullscreen-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Premium Charcoal Slate Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 0 24px;
    border-top: 4px solid var(--primary-color);
    font-size: 14px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-brand .brand-name {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand .accent-text {
    color: var(--primary-color);
}

.footer-section p {
    line-height: 1.6;
    margin: 0;
    font-size: 13px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 13.5px;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin: 4px 0;
    font-size: 12px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.station-btn-link {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
    font-weight: 500;
    font-size: 13.5px;
    text-align: left;
}

.station-btn-link:hover {
    color: #ffffff;
}

/* Custom Marker Labels in Google Maps */
.exit-label {
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Overrides */
@media (min-width: 1400px) {
    .mrt-info, .system-map-section, .map-view {
        max-width: 1100px;
    }
}

@media (max-width: 1024px) {
    .mrt-info, .system-map-section, .map-view {
        max-width: 95%;
        padding: 24px;
    }
    
    .gps-card-inner {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    .brand-name {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        padding: 5px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    #stationSearch {
        font-size: 14px;
        padding: 10px 12px 10px 38px;
    }
    
    .search-field .search-icon {
        left: 12px;
    }

    .icon-btn, .location-btn {
        width: 38px;
        height: 38px;
    }
    
    .popular-stations-bar {
        margin-top: 4px;
    }
    
    .pills-label {
        font-size: 9px;
    }
    
    .station-pill {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .mrt-info {
        padding: 20px;
    }
    
    .gps-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .gps-visual {
        width: 68px;
        height: 68px;
    }
    
    .gps-icon {
        width: 30px;
        height: 30px;
    }
    
    .page-h1 {
        font-size: 1.35rem;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .gps-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gps-feat-item {
        font-size: 13px;
    }
    
    .mrt-lines-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .google-map {
        height: 350px;
    }
    
    .close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    
    .zoom-controls {
        left: 16px;
    }
    
    .zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .fullscreen-controls {
        bottom: 16px;
        right: 16px;
    }
    
    .fullscreen-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px;
    }
}