/* Merkezi Marmaray içerik bileşenleri */

.wtw-line-route, .wtw-line-route * { box-sizing: border-box; }


        .wtw-line-route {
            background: white;
            border-radius: 8px;
            padding: 15px 10px;
            max-width: 100%;
            overflow: visible;
        }

        .wtw-line-route-head h2 {
            color: #003d7a;
            margin-top: 15px;
            margin-bottom: 10px;
            text-align: center;
            font-size: 22px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .wtw-line-route-note {
            background: #f0f4f8;
            padding: 10px 15px;
            border-radius: 6px;
            border-left: 3px solid #003d7a;
            margin-top: 10px;
            color: #003d7a;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
        }

        .timeline-box {
            overflow-x: auto;
            overflow-y: visible;
            padding: 80px 20px 10px 20px;
            background: white;
            position: relative;
        }

        /* Custom scrollbar */
        .timeline-box::-webkit-scrollbar {
            height: 10px;
        }

        .timeline-box::-webkit-scrollbar-track {
            background: #f0f4f8;
            border-radius: 5px;
        }

        .timeline-box::-webkit-scrollbar-thumb {
            background: #003d7a;
            border-radius: 5px;
        }

        .timeline-box::-webkit-scrollbar-thumb:hover {
            background: #002855;
        }

        .ngx-mat-timeline {
            display: flex !important;
            align-items: center;
            min-width: max-content;
            position: relative;
            height: 60px;
        }

        .ngx-mat-timeline-content {
            display: flex !important;
            align-items: center;
            position: relative;
        }

        .ngx-mat-timeline-item {
            display: flex !important;
            flex-direction: column;
            align-items: center;
            position: relative;
            margin-right: 0;
            min-width: 85px;
            flex-shrink: 0;
        }

        .ngx-mat-timeline-item-fill {
            display: none;
        }

        .ngx-mat-timeline-item-timeline {
            position: relative;
            display: flex !important;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2;
            height: 24px;
        }

        .custom-label {
            width: 16px !important;
            height: 16px !important;
            background: white !important;
            border-radius: 50% !important;
            border: 3px solid #003d7a !important;
            position: relative;
            z-index: 3;
            cursor: default;
            transition: all 0.3s ease;
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(0, 61, 122, 0.2);
        }

        .custom-label:hover {
            transform: scale(1.15);
            box-shadow: 0 3px 8px rgba(0, 61, 122, 0.3);
        }

        /* AKTIF İSTASYON STILI */
        .custom-label-active {
            background: #d32f2f !important;
            border-color: #d32f2f !important;
            width: 22px !important;
            height: 22px !important;
            border-width: 4px !important;
            box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
        }

        .custom-label-active::after {
            content:'';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
        }

        .custom-label-active:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 16px rgba(211, 47, 47, 0.5);
        }

        .ngx-mat-timeline-item-line {
            position: absolute;
            top: 50%;
            left: 100%;
            transform: translateY(-50%);
            width: 67px;
            height: 3px;
            background: #003d7a;
            z-index: 1;
        }

        .ngx-mat-timeline-item:last-child .ngx-mat-timeline-item-line {
            display: none;
        }

        .ngx-mat-timeline-item-content {
            position: relative;
            width: 100%;
            height: 15px;
        }

        .custom-content {
            position: absolute;
            top: -50px;
            left: 50%;
            transform: translateX(-50%) rotate(30deg);
            transform-origin: center center;
            font-size: 12px !important;
            font-weight: 500;
            color: #003d7a !important;
            text-decoration: none !important;
            white-space: nowrap;
            background: transparent;
            padding: 0;
            margin: 0;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            display: block !important;
            visibility: visible !important;
        }

        .custom-content-active {
            color: #d32f2f !important;
            text-decoration: none !important;
            font-weight: 700 !important;
            font-size: 14px !important;
        }

        /* KIRMIZI OK İŞARETİ */
        .current-station-marker {
            position: absolute;
            top: -85px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
            text-align: center;
            width: max-content;
        }

        .current-station-text {
            background: #d32f2f;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 3px 10px rgba(211, 47, 47, 0.3);
            margin-bottom: 6px;
            letter-spacing: 0.3px;
        }

        .current-station-arrow {
            width: 0;
            height: 0;
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-top: 20px solid #d32f2f;
            margin: 0 auto;
            filter: drop-shadow(0 2px 6px rgba(211, 47, 47, 0.3));
        }

        .timeline-box-showed {
            display: block !important;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .wtw-line-route {
                padding: 10px 5px;
            }

            .wtw-line-route-head h2 {
                font-size: 18px;
                margin-top: 10px;
                margin-bottom: 8px;
            }

            .wtw-line-route-note {
                font-size: 11px;
                padding: 8px 12px;
                margin-top: 8px;
            }

            .timeline-box {
                padding: 70px 10px 8px 10px;
            }

            .ngx-mat-timeline-item {
                min-width: 65px;
            }

            .ngx-mat-timeline-item-line {
                width: 50px;
            }

            .custom-content {
                font-size: 10px !important;
                top: -45px;
            }

            .custom-content-active {
                font-size: 11px !important;
            }

            .custom-label {
                width: 14px !important;
                height: 14px !important;
                border-width: 2px !important;
            }

            .custom-label-active {
                width: 18px !important;
                height: 18px !important;
                border-width: 3px !important;
            }

            .custom-label-active::after {
                width: 6px;
                height: 6px;
            }

            .current-station-marker {
                top: -75px;
            }

            .current-station-text {
                font-size: 11px;
                padding: 6px 12px;
            }

            .current-station-arrow {
                border-left: 10px solid transparent;
                border-right: 10px solid transparent;
                border-top: 16px solid #d32f2f;
            }
        }

/* Screen reader only class */
    .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;
    }
.marmaray-station-container, .marmaray-station-container * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .marmaray-station-container {
        font-family: -apple-system, BlinkMacSystemFont,'Segoe UI', Roboto,'Helvetica Neue', Arial, sans-serif;
        background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
        min-height: 100vh;
        padding: 8px;
        color: #000000;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-display: swap;
    }

    .marmaray-station-wrapper {
        max-width: 100%;
        margin: 0 auto;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    @media (min-width: 768px) {
        .marmaray-station-wrapper {
            max-width: 1100px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        .marmaray-station-container {
            padding: 20px;
        }
    }

    .marmaray-station-header {
        background: linear-gradient(135deg, #001f3f 0%, #0074D9 100%);
        color: white;
        padding: 16px;
        text-align: center;
    }

    .marmaray-station-header h2 {
        font-size: 1.5rem;
        font-weight: 400;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .marmaray-station-header p {
        font-size: 0.9rem;
        opacity: 0.9;
        font-weight: 300;
    }

    @media (min-width: 768px) {
        .marmaray-station-header {
            padding: 30px;
        }

        .marmaray-station-header h2 {
            font-size: 2.5rem;
            font-weight: 300;
            margin-bottom: 10px;
            letter-spacing: 2px;
        }

        .marmaray-station-header p {
            font-size: 1.1rem;
        }
    }

    .marmaray-station-table-container {
        padding: 0;
        overflow-x: auto;
    }

    .marmaray-station-schedule-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.75rem;
    }

    @media (min-width: 768px) {
        .marmaray-station-schedule-table {
            font-size: 0.95rem;
        }
    }

    .marmaray-station-schedule-table thead th {
        background: #f5f5f5;
        color: #000000;
        padding: 10px 3px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #666666;
        position: sticky;
        top: 0;
        z-index: 10;
        font-size: 0.7rem;
        width: 25%;
    }

    @media (min-width: 768px) {
        .marmaray-station-schedule-table thead th {
            padding: 18px 7px;
            letter-spacing: 1px;
            border-bottom: 3px solid #666666;
            font-size: 0.9rem;
        }
    }

    .marmaray-station-schedule-table tbody tr:nth-child(even) {
        background: #f8f8f8;
    }

    .marmaray-station-schedule-table tbody tr:nth-child(odd) {
        background: #ffffff;
    }

    .marmaray-station-schedule-table td {
        padding: 8px 2px;
        text-align: center;
        border-bottom: 1px solid #dddddd;
        font-weight: 500;
        font-size: 0.8rem;
        color: #333333;
        width: 25%;
    }

    @media (min-width: 768px) {
        .marmaray-station-schedule-table td {
            padding: 14px 6px;
            font-size: 1rem;
        }
    }

    .marmaray-station-time-cell {
        font-family:'Courier New', monospace;
        font-weight: 700;
        color: #000000;
        position: relative;
        font-size: 0.85rem;
    }

    @media (min-width: 768px) {
        .marmaray-station-time-cell {
            font-size: 1.05rem;
        }
    }

    .marmaray-station-schedule-table tbody tr:nth-child(odd) .marmaray-station-time-cell {
        font-weight: 900;
    }

    .marmaray-station-destination-cell {
        font-weight: 600;
        color: #0074D9;
        font-size: 0.75rem;
    }

    @media (min-width: 768px) {
        .marmaray-station-destination-cell {
            font-size: 0.95rem;
        }
    }

    .marmaray-station-time-cell.night-service,
    .marmaray-station-destination-cell.night-service {
        color: #ff0000;
    }

    .marmaray-station-time-cell.night-service::after {
        content:'';
        color: #ff0000;
        font-weight: bold;
        margin-left: 2px;
    }

    .marmaray-station-no-service {
        color: #999999;
        font-weight: bold;
        font-size: 1rem;
    }

    .marmaray-station-footer {
        background: #f5f5f5;
        padding: 25px;
        text-align: center;
        border-top: 1px solid #dddddd;
    }

    .marmaray-station-legend {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: #ffffff;
        padding: 12px 20px;
        border-radius: 25px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        color: #ff0000;
        font-size: 0.95rem;
    }

    .marmaray-station-legend::before {
        content:'*';
        color: #ff0000;
        font-weight: bold;
        font-size: 1.2rem;
    }

    /* Touch-friendly interactions */
    .marmaray-station-schedule-table tbody tr {
        cursor: default;
    }

    /* Mobile touch targets */
    @media (max-width: 767px) {
        .marmaray-station-schedule-table tbody tr {
            min-height: 40px;
        }

        .marmaray-station-time-cell {
            font-size: 0.8rem;
        }

        .marmaray-station-destination-cell {
            font-size: 0.7rem;
        }
    }

    @media (max-width: 480px) {
        .marmaray-station-schedule-table td {
            padding: 6px 3px;
        }

        .marmaray-station-time-cell {
            font-size: 0.75rem;
        }

        .marmaray-station-destination-cell {
            font-size: 0.65rem;
        }
    }

.marmaray-travel-times {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

.marmaray-travel-times h2 {
    color: #003d7a;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.marmaray-travel-times p {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.travel-times-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.travel-times-column {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 61, 122, 0.1);
}

.travel-times-table {
    width: 100%;
    border-collapse: collapse;
}

.travel-times-table thead {
    background: #003d7a;
    color: white;
}

.travel-times-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.travel-times-table tbody tr {
    border-bottom: 1px solid #e8f0f7;
    transition: background-color 0.2s ease;
}

.travel-times-table tbody tr:last-child {
    border-bottom: none;
}

.travel-times-table tbody tr:hover {
    background-color: #f0f4f8;
}

.travel-times-table tbody td {
    padding: 10px 15px;
    font-size: 13px;
    color: #333;
}

.travel-times-table tbody td:first-child {
    font-weight: 500;
    color: #003d7a;
}

.travel-times-table tbody td:last-child {
    text-align: center;
    font-weight: 600;
    color: #d32f2f;
    min-width: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .travel-times-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .marmaray-travel-times h2 {
        font-size: 18px;
    }

    .marmaray-travel-times p {
        font-size: 13px;
    }

    .travel-times-table thead th {
        padding: 10px 12px;
        font-size: 13px;
    }

    .travel-times-table tbody td {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.bus-list ul {
      list-style: none;
      padding-left: 0;
    }
    .bus-list li {
      font-size: 1rem;
      margin: 6px 0;
      line-height: 1.5;
    }
    .bus-code {
      color: red;
      font-weight: bold;
    }
    @media (min-width:768px){
      .bus-list li{font-size:1.1rem;}
    }

[class^="marmaray-"][class$="-section"] * { box-sizing: border-box; }
[class^="marmaray-"][class$="-section"] h2,
[class^="marmaray-"][class$="-section"] h3,
[class^="marmaray-"][class$="-section"] h4 { font-weight: 700; margin-bottom: 8px; }
[class^="marmaray-"][class$="-section"] p,
[class^="marmaray-"][class$="-section"] li { font-size: 1rem; line-height: 1.6; }
[class^="marmaray-"][class$="-section"] ul { list-style: none; padding-left: 0; margin: 10px 0; }
[class^="marmaray-"][class$="-section"] .bus-code { color: red; font-weight: bold; }
[class^="marmaray-"][class$="-section"] .faq { margin-top: 20px; }
[class^="marmaray-"][class$="-section"] .faq-item { margin-bottom: 14px; }

/* İstasyon ulaşım rehberi */
.marmaray-access,
.marmaray-access * {
    box-sizing: border-box;
}

.marmaray-access {
    --access-navy: #0b315c;
    --access-blue: #1769aa;
    --access-sky: #eaf4ff;
    --access-border: #d8e6f3;
    --access-text: #19324a;
    margin: clamp(24px, 4vw, 42px) 0;
    overflow: hidden;
    border: 1px solid var(--access-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(11, 49, 92, 0.1);
}

.marmaray-access-header {
    padding: clamp(24px, 4vw, 38px);
    background:
        radial-gradient(circle at 90% 0, rgba(118, 190, 255, 0.3), transparent 34%),
        linear-gradient(135deg, var(--access-navy), var(--access-blue));
    color: #fff;
}

.marmaray-access-header .marmaray-access-eyebrow {
    display: inline-flex;
    margin: 0 0 11px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.marmaray-access-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.8vw, 2.1rem);
    line-height: 1.18;
}

.marmaray-access-header p {
    max-width: 780px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.65;
}

.marmaray-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: clamp(18px, 3vw, 28px);
    background: #f7fbff;
}

.marmaray-access-card {
    display: flex;
    gap: 13px;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--access-border);
    border-radius: 17px;
    background: #fff;
}

.marmaray-access-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--access-sky);
    color: var(--access-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.marmaray-access-card h3 {
    margin: 1px 0 7px;
    color: var(--access-navy);
    font-size: 1rem;
    line-height: 1.35;
}

.marmaray-access-card p {
    margin: 0;
    color: var(--access-text);
    font-size: 0.92rem;
    line-height: 1.6;
}

.marmaray-access-mode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marmaray-access-mode-list li {
    margin: 0;
    padding: 6px 9px;
    border: 1px solid #cae0f5;
    border-radius: 999px;
    background: var(--access-sky);
    color: var(--access-navy);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.25;
}

.marmaray-access-routes {
    margin: 0 clamp(18px, 3vw, 28px) 20px;
    overflow: hidden;
    border: 1px solid var(--access-border);
    border-radius: 16px;
    background: #fff;
}

details.marmaray-access-routes summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: var(--access-navy);
    font-weight: 750;
    line-height: 1.35;
    cursor: pointer;
}

details.marmaray-access-routes summary:hover,
details.marmaray-access-routes summary:focus-visible {
    background: #f3f8fd;
}

.marmaray-access-route-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--access-navy);
    color: #fff;
    font-size: 0.76rem;
    line-height: 1;
}

.marmaray-access-route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0 18px 18px;
    list-style: none;
}

.marmaray-access-route-list li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    padding: 10px;
    border-top: 1px solid #edf2f7;
    color: var(--access-text);
    font-size: 0.88rem;
    line-height: 1.45;
}

.marmaray-access-route-code {
    flex: 0 0 auto;
    min-width: 40px;
    padding: 3px 7px;
    border-radius: 7px;
    background: var(--access-sky);
    color: var(--access-blue);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.marmaray-access-routes-empty {
    padding: 16px 18px;
    color: var(--access-text);
}

.marmaray-access-routes-empty strong {
    color: var(--access-navy);
}

.marmaray-access-routes-empty p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.marmaray-access-note {
    margin: 0;
    padding: 0 clamp(18px, 3vw, 28px) 24px;
    color: #5d7186;
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .marmaray-access-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .marmaray-access {
        border-radius: 18px;
    }

    .marmaray-access-header {
        padding: 22px 19px;
    }

    .marmaray-access-grid {
        gap: 10px;
        padding: 14px;
    }

    .marmaray-access-card {
        padding: 15px;
    }

    .marmaray-access-routes {
        margin-right: 14px;
        margin-left: 14px;
    }

    .marmaray-access-route-list {
        grid-template-columns: 1fr;
        padding-right: 10px;
        padding-left: 10px;
    }

    .marmaray-access-note {
        padding-right: 17px;
        padding-left: 17px;
    }
}
