﻿/* Transfer route detail — aligned with vehicle-detail design. Primary: #d64045 */

.transfer-detail-page {
    padding: 32px 0 64px;
    background: #f9fafb;
}

.transfer-detail-container {
    max-width: 1200px;
}

.transfer-detail-two-col {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.transfer-detail-col-left {
    flex: 1 1 70%;
    min-width: 0;
}

.transfer-detail-col-right {
    flex: 0 0 calc(30% - 32px);
    max-width: 380px;
    position: sticky;
    top: 96px;
    align-self: flex-start;
}

/* Gallery */
.td-gallery {
    margin-bottom: 8px;
}

.td-gallery-main {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    background: #e5e7eb;
    transition: opacity 0.2s ease;
}

.td-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.td-gallery-thumb-wrap {
    flex: 1;
    min-width: 0;
}

.td-gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.td-gallery-thumb:hover,
.td-gallery-thumb.active {
    border-color: #d64045;
}

.td-img-hidden {
    display: none !important;
}

.td-vehicle-title {
    margin: 24px 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
}

.td-vehicle-subtitle {
    color: #8b8b9f;
    font-size: 1rem;
    margin-bottom: 16px;
}

.td-specs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.td-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #4a4a68;
}

.td-badge i {
    color: #d64045;
}

.td-description {
    margin-bottom: 24px;
    color: #4a4a68;
    line-height: 1.7;
    font-size: 0.95rem;
}

.td-description p {
    margin-bottom: 12px;
}

.td-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.td-comfort-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.td-comfort-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.td-comfort-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.td-comfort-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d64045;
    font-size: 18px;
}

.td-comfort-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.td-comfort-subtitle {
    font-size: 0.85rem;
    color: #8b8b9f;
    line-height: 1.4;
    margin: 0;
}

.td-specs-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

.td-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.td-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.td-specs-table tr:last-child {
    border-bottom: none;
}

.td-specs-table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    vertical-align: middle;
}

.td-specs-table td:first-child {
    color: #8b8b9f;
    font-weight: 500;
    width: 35%;
}

.td-specs-table td:last-child {
    color: #1a1a2e;
    font-weight: 500;
}

.td-prices-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.td-price-table {
    width: 100%;
    border-collapse: collapse;
}

.td-price-table th,
.td-price-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.td-price-table th {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.td-price-table td {
    color: #4a4a68;
}

.td-price-table tr:last-child td {
    border-bottom: none;
}

.td-price-cell {
    font-weight: 600;
    color: #d64045;
}

.td-price-old {
    text-decoration: line-through;
    color: #8b8b9f;
    font-weight: 500;
    margin-right: 8px;
    font-size: 0.9em;
}

.td-extra-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.td-process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.td-process-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.td-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fef2f2;
    color: #d64045;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1a1a2e;
}

.td-step-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #4a4a68;
}

.td-faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.td-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a1a2e;
}

.td-faq-item p {
    margin: 8px 0 0;
    color: #4a4a68;
    font-size: 0.9rem;
}

.td-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.td-related-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.td-related-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.td-related-img-wrap {
    height: 100px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.td-related-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.td-related-img-wrap.td-related-img--empty {
    min-height: 100px;
}

.td-related-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-related-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.td-related-price {
    font-size: 0.85rem;
    color: #d64045;
    font-weight: 600;
}

/* Sidebar */
.td-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.td-sidebar-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.td-price-display {
    font-size: 1.35rem;
    font-weight: 700;
    color: #d64045;
    margin-bottom: 20px;
    line-height: 1.3;
}

.td-specs-dl dt {
    font-size: 0.8rem;
    color: #8b8b9f;
    margin-bottom: 2px;
}

.td-specs-dl dd {
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 12px;
    margin-left: 0;
}

.td-specs-dl dd:last-of-type {
    margin-bottom: 0;
}

.td-help-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.td-help-icon {
    font-size: 1.25rem;
    color: #d64045;
    margin-top: 2px;
}

.td-help-text {
    font-size: 0.9rem;
    color: #4a4a68;
    margin-bottom: 8px;
}

.td-help-link {
    color: #d64045;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.td-help-link:hover {
    text-decoration: underline;
}

/* Stacked search (same components as home, vertical) */
.transfer-search-pane-stacked .transfer-search-stacked-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transfer-search-pane-stacked .form-fields-row {
    flex-direction: column;
}

.transfer-search-pane-stacked .form-field-stacked {
    width: 100%;
    flex-wrap: nowrap;
}

.transfer-search-pane-stacked .form-field-stacked .field-content {
    flex: 1;
    min-width: 100%;
}

/* Location fields with swap button overlay */
.transfer-search-pane-stacked .location-fields-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.transfer-search-pane-stacked .location-fields-wrapper .form-field-location {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 14px 16px;
    padding-right: 56px;
}

.transfer-search-pane-stacked .location-fields-wrapper .form-field-location:first-of-type {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.transfer-search-pane-stacked .location-fields-wrapper .form-field-location:last-of-type {
    border-radius: 0 0 12px 12px;
}

.transfer-search-pane-stacked .form-field-swap-stacked {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    margin: 0;
    display: flex;
    justify-content: center;
}

.transfer-search-pane-stacked .form-field-swap-stacked .btn-swap {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: #888;
    font-size: 13px;
}

.transfer-search-pane-stacked .field-content-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.transfer-search-pane-stacked .form-field-submit-stacked {
    margin-top: 8px;
}

.transfer-search-pane-stacked .btn-search-stacked {
    width: 100%;
    justify-content: center;
}

.transfer-search-pane-stacked .btn-search-stacked.is-loading {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

.transfer-search-pane-stacked .btn-search-stacked.is-loading .fas.fa-search {
    display: none;
}

.transfer-search-pane-stacked .btn-search-stacked.is-loading::after {
    content: "";
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: td-spin 0.7s linear infinite;
    vertical-align: middle;
}

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

.return-transfer-row-stacked {
    margin-top: 8px;
}

/* Reservation Form Header */
.reservation-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reservation-form-header .td-sidebar-card-title {
    margin-bottom: 0;
}

.reservation-cancel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: #d64045;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.reservation-cancel-btn:hover {
    opacity: 0.7;
}

.reservation-cancel-btn i {
    font-size: 0.75rem;
}

/* DateTime Section */
.datetime-section {
    margin-bottom: 0;
}

.datetime-single-row .form-field-stacked {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.datetime-split-row {
    display: flex;
    gap: 12px;
}

.datetime-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.datetime-box .field-icon-circle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.datetime-box .field-icon-circle i {
    font-size: 12px;
}

.datetime-box .datetime-column {
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.datetime-box .field-label-upper {
    font-size: 9px;
    margin-bottom: 2px;
}

.datetime-box .datetime-value {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.datetime-box .datetime-column {
    cursor: pointer;
}

.datetime-column input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.datetime-display {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.datetime-single-row .datetime-date {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.datetime-single-row .datetime-time {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* Gidiş-dönüş modunda tarih üstte saat altta */
.datetime-split-row .datetime-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.datetime-split-row .datetime-date,
.datetime-box .datetime-date {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.datetime-split-row .datetime-time,
.datetime-box .datetime-time {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    line-height: 1.2;
}

.datetime-single-row .datetime-column,
.datetime-box .datetime-column {
    cursor: pointer;
}

.datetime-box-return {
    border-style: dashed;
}

/* Form Bottom Row */
.form-bottom-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding-top: 0;
}

.roundtrip-toggle-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.roundtrip-toggle-section .field-label-upper {
    font-size: 9px;
}

.roundtrip-toggle-section .toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.roundtrip-toggle-section .toggle-switch {
    margin-bottom: 0;
}

.discount-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(214, 64, 69, 0.1);
    color: #d64045;
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}

.passengers-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.passengers-section .field-label-upper {
    font-size: 9px;
}

.passengers-section .field-select-flat {
    font-size: 13px;
}

.btn-search-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d64045;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(214, 64, 69, 0.25);
    flex-shrink: 0;
    margin-top:10px;
}

.btn-search-icon:hover {
    background: #bf2f3a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(214, 64, 69, 0.35);
}

/* Location field clear button always visible */
.transfer-search-pane-stacked .location-clear {
    display: flex !important;
    position: absolute;
    right: 0;
    top: 1%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.transfer-search-pane-stacked .location-clear:hover {
    opacity: 1;
}

.transfer-search-pane-stacked .location-autocomplete {
    position: relative;
    padding-right: 24px;
}

@media (max-width: 992px) {
    .transfer-detail-two-col {
        flex-direction: column;
    }

    .transfer-detail-col-left,
    .transfer-detail-col-right {
        flex: none;
        width: 100%;
        max-width: none;
        position: static;
    }

    .td-comfort-grid {
        grid-template-columns: 1fr;
    }

    .td-gallery-main {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .td-gallery-thumbs {
        flex-wrap: wrap;
    }

    .td-gallery-thumb-wrap {
        flex: 0 0 calc(50% - 6px);
    }
}
