/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #607D8B;
    --primary-dark: #455A64;
    --secondary-color: #00BCD4;
    --accent-color: #00BCD4;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #ffffff;
    --background-light: #EEEEEE;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Material 3 type scale - optimized for mobile */
    --font-display-lg: 57px;   /* Display Large */
    --font-display-md: 45px;   /* Display Medium */
    --font-display-sm: 36px;   /* Display Small */
    --font-headline-lg: 32px;  /* Headline Large */
    --font-headline-md: 28px;  /* Headline Medium */
    --font-headline-sm: 24px;  /* Headline Small */
    --font-title-lg: 22px;     /* Title Large */
    --font-title-md: 18px;     /* Title Medium - increased for mobile */
    --font-title-sm: 16px;     /* Title Small */
    --font-body-lg: 16px;      /* Body Large */
    --font-body-md: 15px;      /* Body Medium - increased for mobile */
    --font-body-sm: 14px;      /* Body Small */
    --font-label-lg: 14px;     /* Label Large */
    --font-label-md: 13px;     /* Label Medium - increased for mobile */
    --font-label-sm: 11px;     /* Label Small */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

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

/* Header y navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

/* Station extra info */
.station-extra { margin: 40px 0; }
.info-card {
    padding: 0;
}
.info-header h2 {
    font-size: var(--font-body-md);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.summary-block { margin: 12px 0 20px; }
.summary-block p {
    font-size: var(--font-body-lg);
    line-height: 1.7;
    letter-spacing: 0.2px;
    color: var(--text-primary);
}

.transport-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px; /* space below grid before next cards */
}
@media (min-width: 768px) {
    .transport-grid { grid-template-columns: repeat(3, 1fr); }
}
.transport-card, .poi-card, .tips-card {
    padding: 1rem 0;
}
.poi-card { margin-top: 20px; }
.tips-card { margin-top: 20px; }
.transport-title {
    font-size: var(--font-body-md);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.15px;
    color: var(--text-primary);
}

.line-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    font-size: var(--font-label-md);
    letter-spacing: 0.5px;
}

/* Metro chips with line colors (approximate Madrid Metro palette) */
.metro-row { display: flex; flex-direction: column; gap: 8px; }
.metro-station { display: block; color: var(--text-secondary); font-size: var(--font-body-md); }
.metro-chip { color: #fff; border: none; }
.metro-chip[data-line="L1"]  { background: #00A1DE; }
.metro-chip[data-line="L2"]  { background: #E4002B; }
.metro-chip[data-line="L3"]  { background: #FFB612; color:#212121; }
.metro-chip[data-line="L4"]  { background: #8D5A2B; }
.metro-chip[data-line="L5"]  { background: #00A94F; }
.metro-chip[data-line="L6"]  { background: #9D9D9C; color:#212121; }
.metro-chip[data-line="L7"]  { background: #F28E00; }
.metro-chip[data-line="L8"]  { background: #E2007A; }
.metro-chip[data-line="L9"]  { background: #6E1E78; }
.metro-chip[data-line="L10"] { background: #005AA7; }
.metro-chip[data-line="L11"] { background: #78BE20; color:#212121; }
.metro-chip[data-line="L12"] { background: #6CBE45; color:#212121; }
.metro-chip[data-line="ML1"],
.metro-chip[data-line="ML2"],
.metro-chip[data-line="ML3"]  { background: #84BD00; color:#212121; }

.transport-list, .poi-list { list-style: none; padding-left: 0; margin: 0; }
.transport-list li, .poi-list li {
    position: relative;
    padding-left: 18px;
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: var(--font-body-md);
    line-height: 1.6;
    letter-spacing: 0.2px;
}
.transport-list li::before, .poi-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.cta-button {
    background: var(--accent-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 188, 212, 0.3);
}

.cta-button:hover {
    background: #00ACC1;
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.4);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(to bottom, var(--background-light), var(--background));
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    background: #00ACC1;
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--background);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

.badge-google-play {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--background-light);
    border-radius: 30px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--background);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: var(--background-light);
}

.screenshots-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.screenshot-card img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: var(--background-light);
}

.screenshot-card p {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Web Features Section */
.web-features {
    padding: 80px 0;
    background: var(--background);
}

.web-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.web-feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.web-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.web-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.web-feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.web-feature-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.web-feature-link:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* Media Section */
.media {
    padding: 80px 0;
    background: var(--background-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.media-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.media-source {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.media-logo {
    font-size: 1.5rem;
}

.media-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.media-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.media-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.media-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.media-link::after {
    content: ' →';
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.media-link:hover::after {
    transform: translateX(2px);
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.download .section-title {
    color: white;
}

.download-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-buttons {
    margin-bottom: 3rem;
}

.download-badge {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.app-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    opacity: 0.8;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Icono de bicicleta en feature cards */
.feature-icon svg {
    width: 48px;
    height: 48px;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 2px solid var(--accent-color);
}

.cookie-consent.show {
    transform: translateY(0);
}

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

.cookie-consent-content h3 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.cookie-consent-content p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    max-width: 800px;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: var(--accent-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: #00ACC1;
    transform: translateY(-2px);
}

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

.cookie-btn-essential:hover {
    background: var(--primary-dark);
}

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

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

.cookie-consent-links {
    font-size: 0.875rem;
    margin-top: 10px;
}

.cookie-consent-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-consent-links a:hover {
    text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-settings-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-close:hover {
    color: var(--text-primary);
}

.cookie-settings-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cookie-category p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--accent-color);
}

input:disabled + .cookie-slider {
    background-color: var(--primary-color);
    cursor: not-allowed;
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-settings-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

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

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

/* Station Detail Styles */
.station-detail {
    padding-top: 120px; /* Add top padding to avoid header overlap */
}

.current-status {
    padding: 40px 0;
}

.station-loading {
    padding: 120px 0 80px;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

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

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

.station-error {
    padding: 120px 0 80px;
    text-align: center;
    min-height: 50vh;
}

.error-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.station-header {
    padding: 120px 0 32px;
    background: linear-gradient(to bottom, #F5F5F5, #FAFAFA);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.station-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.station-id-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 24px;
    font-size: var(--font-title-lg);
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 188, 212, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.station-info {
    flex: 1;
    min-width: 200px;
}

.station-info h1 {
    font-size: var(--font-headline-lg);
    font-weight: 500;
    margin: 0 0 0.375rem 0;
    color: var(--text-primary);
    line-height: 1.25;
}

.station-info p {
    font-size: var(--font-body-lg);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.status-badge {
    padding: 0.5rem 1.125rem;
    border-radius: 20px;
    font-size: var(--font-label-lg);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-badge.operational {
    background: #e8f5e8;
    color: #2d5a2d;
}

.status-badge.maintenance {
    background: #fff3cd;
    color: #856404;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.current-status {
    padding: 2.5rem 0;
}

.current-status h2 {
    font-size: var(--font-headline-md);
    font-weight: 500;
    margin-bottom: 1.75rem;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.3;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
}

.status-card.bikes {
    border-left: 4px solid var(--accent-color);
}

.status-card.docks {
    border-left: 4px solid var(--primary-color);
}

.status-card.total {
    border-left: 4px solid var(--secondary-color);
}

.status-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.status-icon svg {
    width: 48px;
    height: 48px;
}

.status-info h3 {
    font-size: var(--font-display-sm);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    line-height: 1.1;
}

.status-info p {
    font-size: var(--font-body-lg);
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.occupation-bar {
    width: 100%;
    height: 8px;
    background: var(--background-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0 0.5rem;
}

.occupation-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.last-update {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.last-update small {
    color: var(--text-secondary);
    font-size: var(--font-body-md);
    line-height: 1.4;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: rotate(180deg);
}


.ai-insights {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent-color);
    margin-top: 2rem;
}

.ai-insights h3 {
    font-size: var(--font-headline-sm);
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: #F8F9FA;
    padding: 1.25rem;
    border-radius: 16px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card h4 {
    font-size: var(--font-title-sm);
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.insight-card p {
    font-size: var(--font-title-lg);
    font-weight: 600;
    margin: 0;
    color: var(--accent-color);
    line-height: 1.2;
}

.nearby-stations {
    padding: 2.5rem 0;
}

.nearby-stations h2 {
    font-size: var(--font-headline-md);
    font-weight: 500;
    margin-bottom: 1.75rem;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.3;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.nearby-station-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.nearby-station-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
    border-color: rgba(0, 0, 0, 0.08);
}

.nearby-station-card .station-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.nearby-station-card .station-info h3 {
    font-size: var(--font-title-md);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.nearby-station-card .station-info p {
    color: var(--text-secondary);
    font-size: var(--font-body-md);
    margin: 0;
    line-height: 1.4;
}

.station-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.metric-item-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.metric-number {
    font-size: var(--font-headline-sm);
    font-weight: 700;
    color: var(--accent-color);
}

.metric-status {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
}

.status-icon {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4CAF50;
}

/* Color for inactive stations - need to handle via PHP/JS since CSS :contains is not standard */
.status-inactive {
    color: #f44336 !important;
}

.nearby-station-card .metric-label {
    font-size: var(--font-label-md);
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.nearby-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.nearby-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.nearby-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.nearby-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nearby-id {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.nearby-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.nearby-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.nearby-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.nearby-stat {
    text-align: center;
}

.nearby-stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--accent-color);
}

.nearby-stat small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Historical Data Section - Material 3 */
.historical-data {
    padding: 2.5rem 0;
    background: linear-gradient(to bottom, #FAFAFA, #F5F5F5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: var(--font-headline-md);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.time-filters {
    display: flex;
    gap: 0.375rem;
    background: white;
    padding: 0.25rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.time-filter {
    padding: 0.625rem 1.125rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: var(--font-label-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-filter:hover {
    background: rgba(0, 0, 0, 0.04);
}

.time-filter.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 188, 212, 0.3);
}

/* Chart Container */
.chart-container {
    padding: 0;
    height: 350px;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
}

/* Loading indicator for chart */
.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    gap: 1rem;
}

.chart-loading p {
    color: var(--text-secondary);
    font-size: var(--font-body-md);
    margin: 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Chart anomalies section */
.chart-anomalies {
    margin-top: 1.5rem;
}

.chart-anomalies p {
    font-size: var(--font-body-md);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* Recommendations section */
.recommendations-section {
    margin-top: 1.5rem;
}

.recommendations-title {
    font-size: var(--font-body-md);
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.recommendations-list {
    margin: 0;
}

.recommendations-bullets {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.recommendations-bullets li {
    font-size: var(--font-body-md);
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.recommendations-bullets li:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo a {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    .nav-links {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        display: none;
    }
    
    .badge-google-play {
        height: 50px;
        max-width: 200px;
    }
    
    .download-badge {
        height: 70px;
        max-width: 220px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshots-carousel {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .media-card {
        padding: 1.5rem;
    }
    
    .app-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Station page mobile styles */
    .station-title {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .station-info h1 {
        font-size: var(--font-headline-md);
        text-align: center;
    }

    .status-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .chart-container {
        padding: 0;
        height: 250px; /* Reduced height for mobile */
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0 0 0;
    }
    
    .chart-loading {
        height: 230px; /* Adjusted for mobile container height */
    }
    
    .historical-data {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: var(--font-headline-sm);
    }
    
    .time-filter {
        font-size: var(--font-label-md);
        padding: 0.5rem 0.875rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nearby-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Stations List Page Styles */
.stations-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background) 100%);
    text-align: center;
}

.stations-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.system-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

.search-section {
    padding: 40px 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
}

.search-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.3s;
}

.search-button:hover {
    color: var(--accent-color);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.stations-loading {
    padding: 80px 0;
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.stations-error {
    padding: 80px 0;
    text-align: center;
    min-height: 40vh;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.stations-list {
    padding: 40px 0 80px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.list-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.view-options {
    display: flex;
    gap: 0.5rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.view-btn.active,
.view-btn:hover {
    background: white;
    color: var(--accent-color);
    box-shadow: var(--shadow);
}

.stations-container {
    margin-bottom: 2rem;
}

.stations-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stations-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stations-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.station-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.station-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

/* Station Header Actions */
.station-header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Google Maps Link */
.google-maps-link {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    color: #455A64;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.google-maps-link:hover {
    background: #f8f9fa;
    border-color: #00BCD4;
    color: #00ACC1;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Share Button */
.share-button {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    color: #455A64;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
}

.share-button:hover {
    background: #f8f9fa;
    border-color: #00BCD4;
    color: #00ACC1;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.station-card.list-view {
    padding: 1rem 1.5rem;
}

.station-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.station-card.list-view .station-header {
    margin-bottom: 0;
}

.station-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.station-card.list-view .station-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.station-details {
    flex: 1;
    min-width: 0;
}

.station-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.station-card.list-view .station-name {
    font-size: 1.1rem;
}

.station-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.station-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.station-card.list-view .station-status {
    margin-top: 0;
    margin-left: auto;
    min-width: 200px;
    justify-content: flex-end;
    gap: 2rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-number {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.status-label {
    color: var(--text-secondary);
}

.station-operational-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.operational {
    background: #e8f5e8;
    color: #2d5a2d;
}

.maintenance {
    background: #fff3cd;
    color: #856404;
}

.inactive {
    background: #f8d7da;
    color: #721c24;
}

.load-more-container {
    text-align: center;
    padding: 2rem 0;
}

.nav-links .active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Mobile-only download button */
.mobile-download-btn {
    display: none;
}

.mobile-download-btn .cta-button {
    background: var(--accent-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 188, 212, 0.3);
}

.mobile-download-btn .cta-button:hover {
    background: #00ACC1;
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.4);
}

@media (max-width: 768px) {
    .mobile-download-btn {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stations-hero h1 {
        font-size: 2.5rem;
    }
    
    .system-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: unset;
    }
    
    .filters {
        justify-content: center;
    }
    
    .list-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .stations-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .station-card.list-view .station-header {
        flex-wrap: wrap;
    }
    
    .station-card.list-view .station-status {
        margin-left: 0;
        min-width: unset;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
    }
}

/* Android-style Station Card */
.station-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.station-id-circle {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: var(--font-title-lg);
    color: white;
    box-shadow: 0 3px 12px rgba(0, 188, 212, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-details {
    flex: 1;
}

.station-details h3 {
    font-size: var(--font-headline-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.375rem 0;
    line-height: 1.25;
}

.station-details p {
    color: var(--text-secondary);
    font-size: var(--font-body-lg);
    margin: 0;
    line-height: 1.5;
}

.station-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.metric-chart {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-chart canvas {
    width: 80px;
    height: 80px;
}

.metric-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--font-headline-md);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.metric-label {
    font-size: var(--font-body-md);
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* Responsive adjustments for station card */
@media (max-width: 480px) {
    .station-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .station-metrics {
        gap: 2rem;
    }
    
    .station-id-circle {
        min-width: 50px;
        height: 50px;
        font-size: var(--font-title-md);
    }
    
    .station-details h3 {
        font-size: var(--font-title-lg);
    }
    
    .station-details p {
        font-size: var(--font-body-md);
    }
    
    .metric-chart {
        width: 70px;
        height: 70px;
    }
    
    .metric-chart canvas {
        width: 70px;
        height: 70px;
    }
    
    .metric-value {
        font-size: var(--font-headline-sm);
    }
    
    .metric-label {
        font-size: var(--font-label-lg);
    }
    
    .system-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
}

/* Station Insights Styles */
.station-insights {
    margin-top: 1.5rem;
}

.station-insights h4 {
    font-size: var(--font-body-md);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.insights-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.insight-description-container {
    padding: 0;
}

.insight-description {
    font-size: var(--font-body-lg);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.usage-category {
    font-size: var(--font-label-md);
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.insights-times {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: center;
}

.time-group {
    flex: 0 1 auto;
    min-width: 150px;
}

.time-icon {
    display: inline-block;
    margin-right: 0.5rem;
    color: #4CAF50;
    font-size: 0.9rem;
}

.time-group .time-icon.warning {
    color: #FF9800;
}

.time-label {
    font-size: var(--font-label-lg);
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.time-values {
    font-size: var(--font-body-lg);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

/* Color coding for different time groups */
.time-group:first-child .time-icon {
    color: #4CAF50; /* Green checkmark for optimal times */
}

.time-group:last-child .time-icon {
    color: #FF9800; /* Orange warning for risk times */
}

@media (max-width: 768px) {
    .insights-content {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .insights-times {
        flex-direction: column;
        gap: 1rem;
    }
    
    .station-detail {
        padding-top: 90px; /* Slightly less padding on mobile */
    }
    
    .station-header {
        padding: 90px 0 24px;
    }
    
    .station-id-badge {
        font-size: var(--font-title-md);
        padding: 0.75rem 1rem;
        min-width: 70px;
    }
    
    .status-card {
        padding: 1.5rem;
    }
    
    .status-info h3 {
        font-size: var(--font-headline-lg);
    }
    
    .status-info p {
        font-size: var(--font-body-md);
    }
    
    .last-update small {
        font-size: var(--font-body-sm);
    }
    
    .ai-insights {
        padding: 1.5rem;
    }
    
    .ai-insights h3 {
        font-size: var(--font-title-lg);
    }
    
    .insight-card {
        padding: 1rem;
    }
    
    .insight-card h4 {
        font-size: var(--font-body-lg);
    }
    
    .insight-card p {
        font-size: var(--font-title-md);
    }
    
    .nearby-stations h2 {
        font-size: var(--font-headline-sm);
    }
    
    .nearby-station-card .station-info h3 {
        font-size: var(--font-title-sm);
    }
    
    .nearby-station-card .station-info p {
        font-size: var(--font-body-sm);
    }
    
    .current-status {
        padding: 1.5rem 0;
    }
    
    .current-status h2 {
        font-size: var(--font-headline-sm);
    }
    
    .nearby-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nearby-station-card {
        padding: 1rem;
    }
    
    .station-metrics-grid {
        gap: 0.5rem;
    }
    
    .metric-number {
        font-size: var(--font-title-lg);
    }
}

/* About BiciMAD Section */
.about-bicimad {
    background: var(--background-light);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.about-content h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.useful-info {
    list-style: none;
    padding: 0;
}

.useful-info li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
}

.useful-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.about-links h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.official-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    gap: 1rem;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.link-card.app-link:hover {
    border-color: var(--primary-color);
}

.link-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.link-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0.25rem;
}

.link-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.link-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.data-info {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.data-info small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive for About section */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-bicimad {
        padding: 3rem 0;
    }
    
    .about-content h2 {
        font-size: 1.75rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .link-card {
        padding: 0.875rem;
    }
}
