.tcdd-schedule {
    max-width: 1180px;
    margin: 30px auto;
    padding: 10px;
    font-family: Arial, sans-serif;
}

.tcdd-title {
    text-align: center;
    font-size: 28px;
    letter-spacing: 4px;
    color: #44475f;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.35;
}

.tcdd-title strong {
    font-weight: 800;
    letter-spacing: 2px;
}

.tcdd-title span {
    color: #9aa8b8;
}

/* Kart */
.tcdd-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    background: #ffffff;
    border-radius: 22px;
    margin-bottom: 28px;
    box-shadow: 0 12px 28px rgba(22, 34, 51, 0.12);
    overflow: hidden;
}

.tcdd-content {
    padding: 24px 32px 20px;
}

.tcdd-train-name {
    color: #2f3653;
    font-size: 15px;
    letter-spacing: 0.4px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.tcdd-train-name strong {
    font-weight: 900;
}

/* Ana rota alanı */
.tcdd-route {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.tcdd-left,
.tcdd-middle,
.tcdd-right {
    width: 100%;
    min-width: 0;
}

.tcdd-station-name {
    color: #8795a8;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tcdd-time {
    color: #38405f;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
}

.tcdd-right {
    text-align: right;
}

.tcdd-middle {
    text-align: center;
    padding-top: 2px;
}

.tcdd-duration {
    color: #8795a8;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tcdd-direct {
    color: #8795a8;
    font-size: 13px;
    font-weight: 800;
}

/* Duraklar butonu */
.tcdd-stops {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 12px;
}

.tcdd-stops summary {
    list-style: none;
    cursor: pointer;
    color: #6d7f97;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.tcdd-stops summary::-webkit-details-marker {
    display: none;
}

/* Renkli ok */
.tcdd-stops summary::after {
    content: "";
    width: 28px;
    height: 22px;
    border-radius: 6px;
    background: #eaf2fb;
    display: inline-block;
    position: relative;
    transition: background 0.2s ease;
}

.tcdd-stops summary::before {
    content: "";
    position: absolute;
}

/* Ok üçgeni */
.tcdd-stops summary {
    position: relative;
}

.tcdd-stops summary::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-35%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 10px solid #0d4a8d;
    z-index: 2;
    transition: transform 0.25s ease;
}

.tcdd-stops[open] summary::before {
    transform: translateY(-60%) rotate(180deg);
}

.tcdd-stops summary:hover::after {
    background: #dcecff;
}

/* Açılan durak tablosu */
.tcdd-stop-table {
    margin: 18px auto 4px;
    padding: 10px 0 4px;
    max-width: 560px;
    color: #3e425d;
    font-size: 14px;
    text-align: left;
}

.tcdd-stop-head,
.tcdd-stop-row {
    display: grid;
    grid-template-columns: 1fr 70px 70px;
    gap: 10px;
    align-items: center;
}

.tcdd-stop-head {
    color: #3f3d61;
    font-weight: 900;
    margin-bottom: 14px;
}

.tcdd-stop-row {
    position: relative;
    min-height: 34px;
    color: #4d5368;
    font-weight: 600;
}

.tcdd-stop-row div:first-child {
    position: relative;
    padding-left: 22px;
}

.tcdd-stop-row div:first-child::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #8b9ab0;
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 7px;
    z-index: 2;
}

.tcdd-stop-row div:first-child::after {
    content: "";
    width: 1px;
    height: 34px;
    background: #c9d1dd;
    position: absolute;
    left: 7px;
    top: 10px;
    z-index: 1;
}

.tcdd-stop-row:last-child div:first-child::after {
    display: none;
}

.tcdd-stop-row.active {
    color: #ff6568;
    font-weight: 800;
}


/* Eski çizgi / daire kullanılmışsa tamamen gizle */
.tcdd-icon,
.tcdd-line,
.tcdd-line span,
.tcdd-line i {
    display: none !important;
}

/* Mobil */
@media (max-width: 768px) {

    .tcdd-schedule {
        margin: 20px auto;
        padding: 0 12px;
    }

    .tcdd-title {
        font-size: 20px;
        letter-spacing: 3px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .tcdd-card {
        display: block;
        border-radius: 18px;
        margin-bottom: 22px;
    }

    .tcdd-content {
        padding: 24px 20px 16px;
    }

    .tcdd-train-name {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .tcdd-route {
        display: block;
    }

    .tcdd-station {
        margin-bottom: 18px;
    }

    .tcdd-right {
        text-align: left;
        margin-bottom: 8px;
    }

    .tcdd-station-name {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .tcdd-time {
        font-size: 27px;
    }

    .tcdd-middle {
        text-align: left;
        margin: 8px 0 18px;
        padding-top: 0;
    }

    .tcdd-duration {
        margin-bottom: 6px;
    }

    .tcdd-direct {
        display: none;
    }

    .tcdd-stops {
        text-align: left;
        margin-top: 4px;
    }

 
    .tcdd-stop-table {
        max-width: 100%;
        margin-top: 16px;
        padding-top: 10px;
        font-size: 13px;
    }

    .tcdd-stop-head,
    .tcdd-stop-row {
        grid-template-columns: 1fr 55px 55px;
        gap: 8px;
    }

    .tcdd-stop-row {
        min-height: 32px;
    }

    .tcdd-stop-row div:first-child {
        padding-left: 20px;
    }
}
