/* Merkezi Marmaray ana sefer tablosu */

.marmaray-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 20px 0; }
.marmaray-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 40px; border-radius: 50px; text-decoration: none; font-size: 17px; font-weight: 600; color: white !important; transition: all 0.3s ease; min-width: 280px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.marmaray-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); color: white !important; }
.btn-ucret { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.btn-sure { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
@media (max-width: 640px) { .marmaray-buttons { flex-direction: column; } .marmaray-btn { width: 100%; min-width: unset; } }

.canli-button-container { display: flex; justify-content: center; margin: 25px 0; }
.canli-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 50px; border-radius: 50px; text-decoration: none; font-size: 17px; font-weight: 600; color: white !important; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.canli-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); background: linear-gradient(135deg, #2980b9 0%, #1c6ea4 100%); color: white !important; }
@media (max-width: 640px) { .canli-button { width: 100%; padding: 16px 30px; font-size: 15px; } }


.marmaray-container, .marmaray-container * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .marmaray-container {
        font-family: 'Inter', sans-serif;
        background: #f8fafc;
        min-height: 100vh;
        padding: 2rem 1rem;
        line-height: 1.6;
    }

    .marmaray-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        background: white;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .marmaray-header {
        background: linear-gradient(135deg, #005baa 0%, #003d7a 100%);
        color: white;
        padding: 2.5rem 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .marmaray-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
        animation: marmaray-float 20s linear infinite;
    }

    @keyframes marmaray-float {
        0% {
            transform: translateX(-50px) translateY(-50px);
        }

        100% {
            transform: translateX(50px) translateY(50px);
        }
    }

    .marmaray-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 1;
    }

    .marmaray-header .subtitle {
        font-size: 1.1rem;
        opacity: 0.9;
        font-weight: 400;
        position: relative;
        z-index: 1;
    }

    .marmaray-search-section {
        padding: 2rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .marmaray-ticker-wrapper {
        background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
        margin: 1.5rem 2rem;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(12, 74, 110, 0.2);
        display: flex;
        align-items: stretch;
    }

    .marmaray-ticker-label {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
        padding: 0.75rem 1.25rem;
        font-weight: 700;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        z-index: 2;
    }

    .marmaray-ticker-label i {
        font-size: 1rem;
        animation: pointBounce 1s ease-in-out infinite;
    }

    @keyframes pointBounce {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(3px); }
    }

    .marmaray-ticker-content {
        flex: 1;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
    }

    .marmaray-ticker-content::before,
    .marmaray-ticker-content::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 1;
        pointer-events: none;
    }

    .marmaray-ticker-content::before {
        left: 0;
        background: linear-gradient(90deg, #075985 0%, transparent 100%);
    }

    .marmaray-ticker-content::after {
        right: 0;
        background: linear-gradient(-90deg, #075985 0%, transparent 100%);
    }

    .marmaray-ticker-text {
        display: inline-flex;
        align-items: center;
        gap: 3rem;
        white-space: nowrap;
        padding: 0.75rem 0;
    }

    .marmaray-ticker-item {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: white;
        font-size: 0.9rem;
    }

    .marmaray-ticker-item i {
        color: #fbbf24;
        font-size: 0.75rem;
    }

    .marmaray-ticker-item .highlight {
        color: #fde68a;
        font-weight: 600;
    }

    .marmaray-ticker-item .highlight-green {
        color: #4ade80;
        font-weight: 700;
        text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    }

    .marmaray-ticker-item .live-dot {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: rgba(52, 211, 153, 0.2);
        padding: 0.2rem 0.6rem;
        border-radius: 20px;
        margin-left: 0.25rem;
    }

    .marmaray-ticker-item .live-dot::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #34d399;
        border-radius: 50%;
        animation: livePulse 1.5s ease-in-out infinite;
    }

    .marmaray-ticker-item .live-dot span {
        color: #34d399;
        font-weight: 600;
        font-size: 0.8rem;
    }

    @keyframes livePulse {
        0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
        50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
    }

    .marmaray-search-container {
        position: relative !important;
        max-width: 400px;
        margin: 0 auto;
    }

    .marmaray-search-input {
        width: 100% !important;
        padding: 1rem 1rem 1rem 3rem !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 50px !important;
        font-size: 1rem !important;
        transition: all 0.3s ease;
        background: white !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
        text-indent: 0 !important;
        padding-inline-start: 3rem !important;
    }

    .marmaray-search-input::placeholder {
        padding-left: 0 !important;
        text-indent: 0 !important;
    }

    .marmaray-search-input:focus {
        outline: none !important;
        border-color: #005baa !important;
        box-shadow: 0 0 0 3px rgba(0, 91, 170, 0.1) !important;
    }

    .marmaray-search-icon {
        position: absolute !important;
        left: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #64748b !important;
        font-size: 1rem !important;
        pointer-events: none !important;
        z-index: 5 !important;
    }

    .marmaray-direction-filters {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }

    .marmaray-filter-btn {
        padding: 0.75rem 1.5rem;
        border: 2px solid #005baa;
        background: white;
        color: #005baa;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .marmaray-filter-btn:hover,
    .marmaray-filter-btn.active {
        background: #005baa;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 91, 170, 0.3);
    }

    .marmaray-table-container {
        padding: 2rem;
        overflow-x: auto;
    }

    .marmaray-timetable {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .marmaray-timetable thead th {
        background: linear-gradient(135deg, #005baa 0%, #003d7a 100%);
        color: white;
        padding: 1.25rem 0.5rem;
        /* Padding biraz azaltıldı */
        text-align: center;
        /* Ortalandı */
        vertical-align: middle;
        /* Dikey ortalandı */
        font-weight: 600;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* Yön sütunu daraltma */
    .marmaray-timetable th:nth-child(2),
    .marmaray-timetable td:nth-child(2) {
        width: 130px;
        max-width: 130px;
        text-align: center;
    }

    @media (max-width: 768px) {

        .marmaray-timetable th:nth-child(2),
        .marmaray-timetable td:nth-child(2) {
            width: 100px;
            max-width: 100px;
            font-size: 0.8rem;
            padding: 0.5rem !important;
        }

        .marmaray-direction-halkali,
        .marmaray-direction-gebze {
            padding-left: 0.5rem !important;
            border-left-width: 3px;
        }
    }

    .marmaray-timetable tbody tr {
        transition: all 0.2s ease;
        border-bottom: 1px solid #f1f5f9;
    }

    .marmaray-timetable tbody tr:nth-child(even) {
        background: #f8fafc;
    }

    .marmaray-timetable tbody tr:hover {
        background: linear-gradient(135deg, rgba(0, 91, 170, 0.05) 0%, rgba(0, 61, 122, 0.05) 100%);
        transform: scale(1.01);
        box-shadow: 0 4px 12px rgba(0, 91, 170, 0.1);
    }

    .marmaray-timetable tbody td {
        padding: 1rem;
        border-right: 1px solid #f1f5f9;
        font-size: 0.9rem;
        color: #334155;
    }

    .marmaray-timetable tbody td:first-child {
        font-weight: 600;
        color: #1e293b;
        background: rgba(0, 91, 170, 0.03);
    }

    .marmaray-timetable tbody td:first-child a {
        color: #1e293b;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .marmaray-timetable tbody td:first-child a:hover {
        color: #005baa;
        text-decoration: underline;
    }

    .marmaray-timetable tbody td:last-child {
        border-right: none;
    }

    .marmaray-time-cell {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        color: #1e293b;
        position: relative;
        background: rgba(0, 91, 170, 0.05);
        border-radius: 6px;
        padding: 0.75rem 1rem !important;
        text-align: center;
        /* Ortalandı */
    }

    .marmaray-direction-cell {
        position: relative;
    }

    .marmaray-direction-halkali {
        color: #059669;
        font-weight: 600;
        background: rgba(5, 150, 105, 0.1);
        border-left: 4px solid #059669;
        padding-left: 1rem !important;
    }

    .marmaray-direction-gebze {
        color: #dc2626;
        font-weight: 600;
        background: rgba(220, 38, 38, 0.1);
        border-left: 4px solid #dc2626;
        padding-left: 1rem !important;
    }

    .marmaray-hidden {
        display: none !important;
    }

    .marmaray-no-results {
        display: none;
        text-align: center;
        padding: 3rem 2rem;
        color: #64748b;
    }

    .marmaray-no-results i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

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

    @media (max-width: 768px) {
        .marmaray-container {
            padding: 0.5rem 0.25rem;
        }

        .marmaray-wrapper {
            border-radius: 12px;
        }

        .marmaray-header {
            padding: 1.5rem 1rem;
        }

        .marmaray-header h2 {
            font-size: 1.5rem;
        }

        .marmaray-header .subtitle {
            font-size: 0.85rem;
        }

        .marmaray-table-container {
            padding: 0.5rem;
        }

        .marmaray-timetable thead th {
            padding: 0.75rem 0.3rem;
            font-size: 0.7rem;
            letter-spacing: 0px;
        }

        .marmaray-timetable tbody td {
            padding: 0.6rem 0.3rem;
            font-size: 0.75rem;
        }

        .marmaray-timetable tbody td:first-child {
            font-size: 0.8rem;
            font-weight: 600;
        }

        .marmaray-time-cell {
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.4rem 0.5rem !important;
        }

        .marmaray-search-section {
            padding: 1rem;
        }

        .marmaray-search-input {
            padding: 0.75rem 0.75rem 0.75rem 2.5rem !important;
            font-size: 0.9rem !important;
            padding-inline-start: 2.5rem !important;
        }

        .marmaray-search-icon {
            left: 0.75rem !important;
            font-size: 0.9rem !important;
        }

        .marmaray-direction-filters {
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .marmaray-filter-btn {
            padding: 0.5rem 0.75rem;
            font-size: 0.75rem;
        }

        .marmaray-timetable thead th i {
            display: none;
        }

        .marmaray-direction-cell::before {
            display: none;
        }

        .marmaray-direction-halkali {
            background: rgba(5, 150, 105, 0.1);
            border-left: 3px solid #059669;
            padding-left: 0.6rem !important;
        }

        .marmaray-direction-gebze {
            background: rgba(220, 38, 38, 0.1);
            border-left: 3px solid #dc2626;
            padding-left: 0.6rem !important;
        }

        .marmaray-ticker-wrapper {
            margin: 1rem 0.5rem;
            border-radius: 8px;
        }

        .marmaray-ticker-label {
            padding: 0.6rem 0.9rem;
            font-size: 0.75rem;
        }

        .marmaray-ticker-label i {
            font-size: 0.85rem;
        }

        .marmaray-ticker-item {
            font-size: 0.8rem;
            gap: 0.4rem;
        }

        .marmaray-ticker-text {
            gap: 2rem;
        }
    }

    @media (max-width: 480px) {
        .marmaray-header h2 {
            font-size: 1.25rem;
        }

        .marmaray-header h2 i {
            display: none;
        }

        .marmaray-header .subtitle {
            font-size: 0.75rem;
        }

        .marmaray-timetable thead th {
            padding: 0.6rem 0.2rem;
            font-size: 0.65rem;
        }

        .marmaray-timetable tbody td {
            padding: 0.5rem 0.2rem;
            font-size: 0.7rem;
        }

        .marmaray-time-cell {
            font-size: 0.7rem;
            padding: 0.3rem 0.4rem !important;
        }

        .marmaray-filter-btn {
            padding: 0.4rem 0.6rem;
            font-size: 0.7rem;
        }

        .marmaray-search-input {
            padding: 0.7rem 0.7rem 0.7rem 2.5rem !important;
            font-size: 0.85rem !important;
            padding-inline-start: 2.5rem !important;
        }

        .marmaray-search-icon {
            left: 0.75rem !important;
            font-size: 0.8rem !important;
        }

        .marmaray-ticker-wrapper {
            margin: 0.75rem 0.5rem;
            border-radius: 6px;
        }

        .marmaray-ticker-label {
            padding: 0.5rem 0.7rem;
            font-size: 0.65rem;
            gap: 0.3rem;
        }

        .marmaray-ticker-label i {
            font-size: 0.75rem;
        }

        .marmaray-ticker-item {
            font-size: 0.7rem;
            gap: 0.3rem;
        }

        .marmaray-ticker-item i {
            font-size: 0.6rem;
        }

        .marmaray-ticker-text {
            gap: 1.5rem;
            padding: 0.5rem 0;
        }

        .marmaray-ticker-item .live-dot {
            padding: 0.15rem 0.4rem;
        }

        .marmaray-ticker-item .live-dot span {
            font-size: 0.65rem;
        }
    }
