/* ---------- Native uygulama teması ----------
   Marka: kırmızı + açık gri + koyu gri. Sistem yazı tipi, küçük sönük etiket + koyu değer. */

html,
body,
button,
input,
select,
textarea {
    font-family: var(--native-font);
}

body {
    color: #2b2f36;
    background: #e9ebef;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0;
}

h1, h2, h3, h4, strong, b { letter-spacing: -0.01em; }

/* Kartlar: beyaz/açık gri yüzey, ince gri çerçeve, yumuşak gölge */
.card-surface,
.card-box,
.search-route-card,
.checkout-section,
.checkout-summary-card,
.hub-card,
.trip-card,
.offer-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    border: 1px solid #e4e6ea;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(30, 34, 42, 0.07);
}

/* Etiket: küçük, sönük gri, normal harf */
.field-label,
.form-field > span,
.login-field > span,
.hub-eyebrow,
.ticket-detail-label,
.detail-meta-item span,
.account-ticket-info-item span {
    color: #7a808c;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    display: block;
}

.field-label::first-letter,
.form-field > span::first-letter,
.login-field > span::first-letter,
.hub-eyebrow::first-letter,
.ticket-detail-label::first-letter,
.detail-meta-item span::first-letter,
.account-ticket-info-item span::first-letter {
    text-transform: uppercase;
}

.route-trigger .field-label,
.date-trigger .field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a808c;
}

.route-trigger .field-label::before,
.date-trigger .field-label::before {
    content: '';
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fde7e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d73b34' d='M12 4.5a5 5 0 0 0-5 5c0 3.6 5 9 5 9s5-5.4 5-9a5 5 0 0 0-5-5zm0 6.8a1.8 1.8 0 1 1 0-3.6 1.8 1.8 0 0 1 0 3.6z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Değer: büyük, yarı kalın, koyu gri */
.field-trigger strong,
.route-trigger strong,
.date-trigger strong {
    color: #1f2329;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.rail-dot { border-color: #d73b34; }
.rail-dash { background: repeating-linear-gradient(to bottom, #cfd3da 0 4px, transparent 4px 9px); }
.field-divider { background: #e4e6ea; }

/* Girdi alanları */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
    color: #1f2329;
    background: #fff;
    border: 1.5px solid #dcdfe5;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
}

input::placeholder,
textarea::placeholder { color: #a3a8b3; font-weight: 400; }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #d73b34;
    box-shadow: 0 0 0 4px rgba(215, 59, 52, 0.12);
}

/* Birincil düğmeler: kırmızı */
.hub-primary-btn,
.primary-btn,
.search-btn,
.login-submit-btn {
    background: linear-gradient(180deg, #e04540 0%, #c92d28 100%);
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(201, 45, 40, 0.26);
}

/* Alt menü */
.home-bottom-nav { background: #fff; border-top: 1px solid #e9ebef; }
.home-bottom-item { color: #7a808c; font-weight: 600; font-size: 11px; letter-spacing: 0; }
.home-bottom-item.active { color: #d73b34; }
.home-bottom-item--center { color: #5b616c; }
.home-bottom-item--center .bottom-icon { background: linear-gradient(180deg, #e04540 0%, #c92d28 100%); box-shadow: 0 10px 22px rgba(201, 45, 40, 0.34); }

/* Yolcum Nerede */
.yolcum-tab.is-active,
.yolcum-link,
.yolcum-back-btn,
.yolcum-route-link strong,
.yolcum-ghost { color: #c92d28; }

/* Otobüs Ara: marka dışı bilinçli yeşil CTA */
.primary-search-btn {
    background: linear-gradient(180deg, #16bd95 0%, #0eb18b 100%);
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(14, 177, 139, 0.28);
}

/* ---------- Arama ekranı: referans görünüm (yalnızca görsel) ---------- */
#searchScreen .search-route-card,
#searchScreen .search-date-card {
    background: #fff;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
}

#searchScreen .field-label,
#searchScreen .route-trigger .field-label,
#searchScreen .date-trigger .field-label {
    display: block;
    margin-bottom: 4px;
    color: #c0403c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

#searchScreen .field-label::before { content: none; display: none; }

#searchScreen .field-trigger strong,
#searchScreen .route-trigger strong,
#searchScreen .date-trigger strong {
    color: #111;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Ray: üstte ve altta gri pin, arada noktalı çizgi */
#searchScreen .route-rail {
    width: 26px;
    padding: 14px 0 16px;
    justify-content: space-between;
}

#searchScreen .rail-dot {
    width: 24px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath fill='%239e9e9e' d='M12 1a8.5 8.5 0 0 0-8.5 8.5C3.5 16.5 12 27 12 27s8.5-10.500 8.5-17.500A8.5 8.5 0 0 0 12 1z'/%3E%3Ccircle cx='12' cy='9.500' r='3.200' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

#searchScreen .rail-dash {
    flex: 1;
    width: 5px;
    height: auto;
    margin: 4px 0;
    background: radial-gradient(circle, #9e9e9e 2px, transparent 2.500px) center top / 5px 12px repeat-y;
}

#searchScreen .field-divider { background: #e6e6e6; }

#searchScreen .route-swap-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #555;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

/* Tarih kartı: solda gri takvim simgesi */
#searchScreen .search-date-card::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 38px;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239e9e9e' d='M5 3.500h2V2h2v1.500h6V2h2v1.500h1.500A1.500 1.500 0 0 1 20 5v14.500a1.500 1.500 0 0 1-1.500 1.500h-13A1.500 1.500 0 0 1 4 19.500V5a1.500 1.500 0 0 1 1-1.500zM6 9v9.500h12V9H6zm2 1.500h2v2H8v-2zm3 0h2v2h-2v-2zm3 0h2v2h-2v-2zM8 14h2v2H8v-2zm3 0h2v2h-2v-2zm3 0h2v2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#searchScreen .date-trigger {
    margin-left: 40px;
    padding-left: 0;
}

#searchScreen .date-shortcuts { margin-left: 40px; gap: 12px; }

#searchScreen .date-shortcut {
    min-width: 88px;
    min-height: 40px;
    border: 2px solid #555;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 17px;
    font-weight: 400;
}

#searchScreen .date-shortcut.active {
    background: #d43b38;
    border-color: #d43b38;
    color: #fff;
}

#searchScreen .primary-search-btn {
    display: block;
    width: calc(100% - 64px);
    min-height: 40px;
    margin: 18px auto 10px;
    border: 0;
    border-radius: 0;
    background: #0fb086;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ---------- Sefer listesi: yükleme iskeleti, kalan koltuk ---------- */
.trip-seats-left {
    margin-top: 4px;
    color: #c0322f;
    font-size: 11.5px;
    font-weight: 700;
    text-align: right;
}

.trip-card--skeleton { pointer-events: none; }

.skeleton-block {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #e9ecf1;
}

.skeleton-block::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: skeleton-shimmer 1.2s infinite;
}

.skeleton-block--logo { width: 64px; height: 28px; }
.skeleton-block--time { flex: 1; height: 28px; margin: 0 14px; }
.skeleton-block--price { width: 72px; height: 28px; }
.skeleton-block--route { height: 14px; margin-top: 14px; width: 70%; }
.trip-card--skeleton .trip-main-row { display: flex; align-items: center; }

@keyframes skeleton-shimmer { to { transform: translateX(100%); } }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Uygulama içi bildirim (alert yerine) ve hatalı alan işareti ---------- */
.app-toast-host {
    position: fixed;
    left: 50%;
    bottom: calc(max(env(safe-area-inset-bottom, 0px), 0px) + 96px);
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 400px);
    pointer-events: none;
}

body.is-android .app-toast-host { bottom: calc(max(env(safe-area-inset-bottom, 0px), 48px) + 96px); }

.app-toast {
    padding: 12px 16px;
    border-radius: 14px;
    background: #2b2f36;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    animation: app-toast-in 0.2s ease-out;
}

.app-toast--error { background: #c0322f; }
.app-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }

@keyframes app-toast-in { from { opacity: 0; transform: translateY(8px); } }

.field-invalid input,
.field-invalid select,
input.field-invalid,
.field-invalid.agreement-box,
.field-invalid.checkbox-line {
    border-color: #d43b38;
    box-shadow: 0 0 0 4px rgba(212, 59, 56, 0.16);
    animation: field-shake 0.28s;
}

.field-invalid > span:first-child { color: #c0322f; }

@keyframes field-shake {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ---------- Sefer kartı (yeni düzen) ---------- */
.trip-card--v2 {
    padding: 16px 14px 14px;
    background: #fff;
    border: 1px solid #ebedf1;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(30, 34, 42, 0.07);
}

.tc2-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 6px;
}

.tc2-end { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc2-end--right { align-items: flex-end; text-align: right; }
.tc2-label { color: #4a505b; font-size: 13px; font-weight: 600; }

.tc2-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f2329;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.tc2-time .fa { color: #d43b38; font-size: 16px; }
.tc2-stop { color: #2b2f36; font-size: 15px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }

.tc2-mid {
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    margin-top: 8px;
}

.tc2-dot { width: 9px; height: 9px; border-radius: 50%; background: #d43b38; }

.tc2-duration {
    padding: 8px 10px;
    border-radius: 10px;
    background: #fdeceb;
    color: #8a2623;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.trip-card--v2 .trip-night-badge { display: inline-block; margin-top: 10px; }

.tc2-info {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid #e8eaee;
    background: none;
    color: #2b2f36;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.tc2-features {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 22px;
    padding: 12px 2px 14px;
    color: #4a505b;
    font-size: 17px;
}

.tc2-features:empty { display: none; }

.tc2-bottom { display: flex; gap: 10px; align-items: stretch; }

.tc2-price-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    padding: 6px 8px;
    border-radius: 12px;
    background: #fdeceb;
    color: #c0322f;
}

.tc2-price { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.tc2-price-box .trip-seats-left { margin: 0; text-align: center; font-size: 11px; }
.tc2-price-box .trip-sold-out-badge { margin: 0; }

.tc2-select {
    flex: 1;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #e04540 0%, #c92d28 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(201, 45, 40, 0.25);
}

.tc2-select:disabled { background: #cfd3da; box-shadow: none; color: #fff; cursor: default; }
.trip-card--v2.expanded .tc2-select { background: #4a505b; box-shadow: none; }

/* ---------- Pencereler: sabit başlığın (z-index 95) ve alt menünün üstünde açılsın ---------- */
.sheet-backdrop { z-index: 125; }
.station-sheet { z-index: 126; }
.detail-modal { z-index: 130; }
.date-picker-modal { z-index: 130; }
.gender-modal { z-index: 135; }

.detail-modal {
    place-items: center;
    padding: 24px 14px;
}

/* Pencere sayfanın ortasında, ekranı doldurmadan açılır; uzun içerik kendi içinde kayar */
.detail-dialog {
    width: min(100%, 380px);
    max-height: min(74vh, 600px);
    max-height: min(74dvh, 600px);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
}

.detail-dialog-content { flex: 1; min-height: 0; max-height: none; }

body.is-android .detail-modal { padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 48px) + 24px); }

/* ---------- Sefer detayı: saatler yan yana (liste kartındaki gibi) ---------- */
.detail-route-pill {
    background: #fdeceb;
    border: 1px solid #f6d3d1;
    color: #8a2623;
}

.detail-timing-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    align-items: start;
}

.detail-timing-card {
    padding: 4px 0;
    border: 0;
    background: transparent;
    gap: 3px;
}

.detail-timing-card.align-end { text-align: right; }
.detail-timing-card span { color: #4a505b; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.detail-timing-card strong { color: #1f2329; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.detail-timing-card small { color: #6f7480; font-size: 11.5px; line-height: 1.25; }

.detail-duration-pill {
    position: relative;
    align-self: center;
    margin-top: 10px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    background: #fdeceb;
    color: #8a2623;
    font-size: 12.5px;
    font-weight: 600;
}

.detail-duration-pill::before,
.detail-duration-pill::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: #d43b38;
}

.detail-duration-pill::before { left: -12px; }
.detail-duration-pill::after { right: -12px; }

/* =====================================================================
   ÖDEME SAYFASI — kurumsal görünüm
   ===================================================================== */
#checkoutScreen .checkout-main {
    padding: 12px 12px 40px;
    background: var(--bg);
}

/* ---- Sefer özeti: biniş kartı ---- */
#checkoutScreen .checkout-summary-card--ticket {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 0;
    overflow: visible;
    background: #fff;
    border: 1px solid #e3e5ea;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(30, 34, 42, 0.1);
}

#checkoutScreen .summary-ticket-head {
    padding: 12px 16px;
    border: 0;
    border-radius: 15px 15px 0 0;
    background: #2b2f36;
    color: #fff;
}

#checkoutScreen .summary-ticket-title-wrap { gap: 10px; }

#checkoutScreen .summary-ticket-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d43b38;
    color: #fff;
    font-size: 13px;
}

#checkoutScreen .summary-ticket-title-wrap strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

#checkoutScreen .summary-ticket-body { padding: 16px 16px 18px; background: transparent; }

#checkoutScreen .summary-route-legend {
    padding: 0 0 8px;
    gap: 10px;
    color: #7a808c;
}

#checkoutScreen .summary-route-legend > span {
    color: #7a808c;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

#checkoutScreen .summary-route-stops {
    padding: 0 0 16px;
    color: #1f2329;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#checkoutScreen .summary-ticket-simple-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0;
}

#checkoutScreen .summary-ticket-simple-item { gap: 5px; min-width: 0; }

#checkoutScreen .summary-ticket-simple-label {
    color: #7a808c;
    font-size: 12px;
    font-weight: 500;
}

#checkoutScreen .summary-ticket-simple-value {
    align-items: flex-start;
    gap: 7px;
    color: #1f2329;
    font-size: 15px;
    font-weight: 600;
}

#checkoutScreen .summary-ticket-simple-value i { margin-top: 2px; color: #d43b38; font-size: 14px; }
#checkoutScreen .summary-ticket-simple-value strong { color: #1f2329; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

#checkoutScreen .summary-warning {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff6e5;
    border: 1px solid #f6e0ad;
    color: #7a5200;
    font-size: 13px;
    font-weight: 500;
}

/* Delikli ayırıcı: iki yanda bilet yuvası */
#checkoutScreen .summary-ticket-divider {
    position: relative;
    height: 0;
    margin: 18px -16px 0;
    border-top: 2px dashed #d9dce2;
    background: none;
}

#checkoutScreen .summary-ticket-divider::before,
#checkoutScreen .summary-ticket-divider::after {
    content: '';
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px #e3e5ea;
}

#checkoutScreen .summary-ticket-divider::before { left: -11px; clip-path: inset(0 0 0 50%); }
#checkoutScreen .summary-ticket-divider::after { right: -11px; clip-path: inset(0 50% 0 0); }

#checkoutScreen .summary-ticket-footer {
    align-items: center;
    padding: 16px 0 0;
}

#checkoutScreen .summary-ticket-footer span {
    margin: 0;
    color: #7a808c;
    font-size: 13px;
    font-weight: 600;
}

#checkoutScreen .summary-ticket-footer strong {
    color: #c92d28;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---- Bölüm başlıkları: hap yerine sol çizgili başlık ---- */
#checkoutScreen .checkout-section {
    margin: 0 0 14px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #e3e5ea;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(30, 34, 42, 0.06);
}

#checkoutScreen .section-pill {
    display: block;
    width: auto;
    min-height: 0;
    margin: 0 0 14px;
    padding: 0 0 0 10px;
    border-left: 3px solid #d43b38;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #1f2329;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-transform: lowercase;
}

#checkoutScreen .section-pill::first-letter { text-transform: uppercase; }

#checkoutScreen .form-field { margin-top: 14px; }
#checkoutScreen .form-field:first-of-type { margin-top: 0; }

#checkoutScreen .form-field > span,
#checkoutScreen .payment-form-field span {
    margin-bottom: 6px;
    color: #4a505b;
    font-size: 13px;
    font-weight: 600;
}

#checkoutScreen .form-field input,
#checkoutScreen .form-field select,
#checkoutScreen .form-field textarea,
#checkoutScreen .phone-field-row select {
    min-height: 50px;
    padding: 0 14px;
    border: 1.5px solid #d6dae1;
    border-radius: 12px;
    background: #fff;
    color: #1f2329;
    font-size: 16px;
    font-weight: 500;
}

#checkoutScreen .form-field textarea { padding: 12px 14px; }

#checkoutScreen .checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    color: #4a505b;
    font-size: 13px;
    line-height: 1.45;
}

#checkoutScreen .checkbox-line input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: #d43b38; }

#checkoutScreen .section-helper-text,
#checkoutScreen .payment-note { color: #7a808c; font-size: 12.5px; line-height: 1.5; }

/* ---- Fiyat dökümü ---- */
#checkoutScreen .info-row {
    min-height: 46px;
    color: #4a505b;
    font-size: 15px;
    border-bottom: 1px solid #eceef1;
}

#checkoutScreen .info-row strong { color: #1f2329; font-weight: 600; }
#checkoutScreen .info-row-total { margin-top: 4px; border-bottom: 0; }
#checkoutScreen .info-row-total span { color: #1f2329; font-weight: 700; }
#checkoutScreen .info-row-total strong { color: #c92d28; font-size: 20px; font-weight: 700; }

/* ---- Ödeme kartı bölümü ---- */
#checkoutScreen .payment-card-head { margin-bottom: 14px; }
#checkoutScreen .payment-card-title { color: #1f2329; font-size: 16px; font-weight: 700; }
#checkoutScreen .payment-card-head p { margin: 2px 0 0; color: #7a808c; font-size: 13px; }

#checkoutScreen .payment-card-title-icon {
    background: #fdeceb;
    color: #c92d28;
    border-radius: 12px;
}

/* ---- Öde düğmesi ---- */
#checkoutScreen .checkout-pay-btn {
    width: 100%;
    margin: 4px 0 12px;
    min-height: 62px;
    border-radius: 14px;
    background: linear-gradient(180deg, #e04540 0%, #c92d28 100%);
    box-shadow: 0 10px 22px rgba(201, 45, 40, 0.28);
    cursor: pointer;
}

#checkoutScreen .checkout-pay-btn strong { color: #fff; font-size: 20px; font-weight: 700; }
#checkoutScreen .checkout-pay-btn small { color: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 500; }
#checkoutScreen .checkout-pay-btn:disabled { opacity: 0.6; }
#checkoutScreen .payment-note { text-align: center; padding: 0 12px; }

/* Sefer detayı: Araç / Sefer tipi / Durak sayısı yan yana (dar ekranda da) */
.detail-meta-grid,
.detail-overview-card .detail-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.detail-meta-item {
    padding: 10px 8px;
    min-width: 0;
}

.detail-meta-item span { font-size: 11.5px; line-height: 1.2; }

.detail-meta-item strong {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

@media (max-width: 360px) {
    .detail-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
   KOLTUK HARİTASI — web (trips/search) ile aynı otobüs gövdesi ve kolçaklı koltuk
   ===================================================================== */
.bus-drag-scroll {
    --seat-w: 46px;
    --seat-h: 40px;
    --aisle-h: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
}

.trip-expanded-layout {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    width: max-content;
    margin: 0 14px;
    padding: 0;
    border: 1.5px solid #cbd3da;
    border-left: 0;
    border-radius: 48px 14px 14px 48px;
    background: #f1f5f8;
}

.bus-floor-label {
    position: absolute;
    top: 4px;
    left: 60px;
    z-index: 3;
    color: #6f7784;
    font-size: 11px;
    font-weight: 600;
}

/* Ön kısım: cam, şoför bölmesi ve direksiyon (web'deki SVG) */
.bus-front,
.obilet-shell {
    position: relative;
    width: 118px;
    min-width: 118px;
    min-height: 100%;
    margin: -1.5px 0;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 118 240' preserveAspectRatio='none'><path d='M118,1 L62,1 L40,5.5 C16,10 1.5,22 1.5,52 L1.5,188 C1.5,218 16,230 40,234.5 L62,239 L118,239' fill='%23f1f5f8' stroke='%23cbd3da' stroke-width='1.5'/><path d='M42,6 C24,18 17,44 17,120 C17,196 24,222 42,234' fill='none' stroke='%23cbd3da' stroke-width='1.3'/><path d='M56,3 L56,12 L100,12 L108,1.5 M78,2 L78,12' fill='none' stroke='%23cbd3da' stroke-width='1.3'/><line x1='106' y1='138' x2='106' y2='239' stroke='%23cbd3da' stroke-width='1.5'/><g transform='translate(64, 186)'><circle cx='0' cy='0' r='22' fill='none' stroke='%23b5bfc8' stroke-width='1.6'/><circle cx='0' cy='0' r='17.5' fill='none' stroke='%23b5bfc8' stroke-width='1.5'/><circle cx='0' cy='0' r='2.5' fill='none' stroke='%23b5bfc8' stroke-width='1.4'/><path d='M-5,-17 L-5,-5 L-17,-2 M-5,17 L-5,5 L-17,2 M5,-5 L16,-9 M5,5 L16,9' fill='none' stroke='%23b5bfc8' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></g></svg>") no-repeat left center / 100% 100%;
    box-shadow: none;
    overflow: visible;
}

.obilet-shell::before,
.obilet-shell::after { display: none; content: none; }
.bus-front > * { display: none; }

.seat-grid-panel {
    min-width: max-content;
    padding: 16px 24px 16px 0;
    border-left: 0;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(var(--seat-columns, 8), var(--seat-w));
    gap: 5px 8px;
    align-items: center;
    justify-items: center;
    justify-content: start;
    min-width: max-content;
    padding: 0;
}

.seat-btn {
    width: var(--seat-w);
    height: var(--seat-h);
    min-height: 0;
    padding: 0 6px 0 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: none;
    color: #2e3842;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.2px;
    opacity: 1;
    -webkit-tap-highlight-color: transparent;
}

.seat-btn.aisle { visibility: hidden; pointer-events: none; }
.seat-btn:disabled { opacity: 1; }

.seat-btn.male {
    color: #24313c;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/></svg>");
}

.seat-btn.female {
    color: #24313c;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/></svg>");
}

.seat-btn.restricted-male,
.seat-btn.restricted-female { box-shadow: none; border: 0; }

.seat-btn.selected {
    background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/></svg>") center / 100% 100% no-repeat;
    color: #fff;
    font-weight: 600;
}

.seat-btn.selected::after {
    top: -7px;
    right: -3px;
    width: 18px;
    height: 18px;
    background: #2b2f36;
    font-size: 13px;
}

/* Gösterge (web ile aynı kolçaklı kutular) */
.legend-box {
    width: 28px;
    height: 24px;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%23ffffff' stroke='%23c6cfd6' stroke-width='1.4'/></svg>") center / 100% 100% no-repeat;
}

.legend-box.male { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%23bfe2fe' stroke='%2358a6f0' stroke-width='1.4'/></svg>") center / 100% 100% no-repeat; }
.legend-box.female { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%23ead1d6' stroke='%23b86b77' stroke-width='1.4'/></svg>") center / 100% 100% no-repeat; }
.legend-box.selected { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'><rect x='1.2' y='2' width='33' height='32' rx='6.5' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/><rect x='12.5' y='1' width='20' height='5' rx='2.5' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/><rect x='12.5' y='30' width='20' height='5' rx='2.5' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/><rect x='31' y='1.2' width='9.5' height='33.6' rx='3.8' fill='%235cb85c' stroke='%233d8b3d' stroke-width='1.5'/></svg>") center / 100% 100% no-repeat; }

/* =====================================================================
   ARAMA (ANA) EKRAN — sayfa kaymaz, ekrana tam oturur; logo daha büyük
   ===================================================================== */
body[data-screen="search"] {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

body[data-screen="search"] .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
}

/* İçerik ekrandan kısaysa kayma olmaz; çok küçük ekranda yalnızca içeride kayar */
body[data-screen="search"] #searchScreen {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

body.is-android[data-screen="search"] #searchScreen {
    padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 48px) + 92px);
}

/* Ana sayfa logosu: daha büyük ve okunaklı (yazı ve alt yazı seçilsin) */
.header-logo-image--home {
    height: 50px;
    max-width: 78vw;
}

.home-header-row { min-height: 50px; }
.results-brand-row .header-logo-image--results,
.header-logo-image--results,
.header-logo-image--checkout { height: 44px; }

/* ---- Yolcu formu: yan yana alanlar aynı hizada ---- */
#checkoutScreen .field-split-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 14px;
}

/* Satır içindeki alanların kendi üst boşluğu olmaz: aksi halde ikinci sütun aşağı kayıyordu */
#checkoutScreen .field-split-row > .form-field,
#checkoutScreen .field-split-row > .form-field:first-of-type {
    margin-top: 0;
    min-width: 0;
}

#checkoutScreen .form-field.passenger-profile-field { margin-top: 12px; }

#checkoutScreen .field-split-row .form-field > span {
    min-height: 18px;
    line-height: 18px;
    white-space: nowrap;
}

#checkoutScreen .field-split-row input,
#checkoutScreen .field-split-row select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 12px;
    font-size: 15px;
    text-overflow: ellipsis;
}

/* Tarayıcı otomatik doldurma mavisini kaldır: alanlar hep beyaz */
#checkoutScreen input:-webkit-autofill,
#checkoutScreen input:-webkit-autofill:hover,
#checkoutScreen input:-webkit-autofill:focus,
#checkoutScreen select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #1f2329;
    caret-color: #1f2329;
}

#checkoutScreen .passenger-card-header { align-items: center; }
#checkoutScreen .passenger-gender-chip { margin-top: 10px; }

/* =====================================================================
   SONUÇ EKRANI ÜST BİLGİ — güzergâh ve tarih seçici
   ===================================================================== */
.results-context-bar {
    padding: 12px 12px 14px;
    background: #fff;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid #eceef2;
}

.results-context-copy { gap: 0; }

.results-leg-banner {
    min-height: 24px;
    margin: 0 auto 8px;
    padding: 0 12px;
    background: #fdeceb;
    color: #c0322f;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.results-route-title {
    gap: 10px;
    color: #1f2329;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.results-route-title > span {
    min-width: 0;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-swap-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f2f5;
    color: #c0322f;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.results-date-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.date-nav-btn,
.results-date-pill {
    min-height: 44px;
    border-radius: 12px;
    line-height: 1.15;
}

.date-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
    border: 0;
    background: #f1f2f5;
    color: #4a505b;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.date-nav-btn.prev-day::before { content: '‹'; font-size: 20px; font-weight: 500; line-height: 1; margin-top: -2px; }
.date-nav-btn.next-day::after { content: '›'; font-size: 20px; font-weight: 500; line-height: 1; margin-top: -2px; }
.date-nav-btn:disabled { opacity: 0.45; cursor: default; }

.results-date-pill {
    gap: 7px;
    padding: 0 8px;
    border: 1.5px solid #d43b38;
    background: #fff;
    color: #1f2329;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.results-date-pill::before {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d43b38' d='M5 3.500h2V2h2v1.500h6V2h2v1.500h1.500A1.500 1.500 0 0 1 20 5v14.500a1.500 1.500 0 0 1-1.500 1.500h-13A1.500 1.500 0 0 1 4 19.500V5a1.500 1.500 0 0 1 1-1.500zM6 9v9.500h12V9H6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
