/**
 * Travel Search — frontend styles (mobile-first).
 * Χρησιμοποιεί δικές μας classes (er-tv-/er-tf-/er-tr-) ώστε να μην πατιέται από
 * global CSS. Τα floating κουμπιά (chat/καλάθι/taxi) είναι fixed στο κάτω μέρος —
 * η φόρμα είναι στη ροή στο πάνω μέρος, οπότε δεν καλύπτεται· τα αποτελέσματα
 * έχουν κάτω περιθώριο ασφαλείας στο κινητό.
 */

.er-travel-tabnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 12px;
    justify-content: center;
}
.er-tv-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, border-color .15s;
    min-height: 44px;
}
.er-tv-tab:hover { background: rgba(255, 255, 255, 0.24); }
.er-tv-tab.is-active {
    background: #C9A96E;
    color: #0d1b2a;
    border-color: #C9A96E;
}

/* Panels: μόνο το ενεργό φαίνεται. */
.er-travel-tabs [data-tp]:not(.er-tv-tab) { display: none; }
.er-travel-tabs [data-tp].is-active:not(.er-tv-tab) { display: block; }

.er-travel-panel {
    max-width: 900px;
    margin: 0 auto;
}

.er-travel-form {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    padding: 18px;
    text-align: left;
    color: #2c3e50;
}

.er-tf-trip { display: flex; gap: 18px; margin-bottom: 14px; }
.er-tf-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #2c3e50; cursor: pointer; }
.er-tf-radio input { accent-color: #C9A96E; width: 18px; height: 18px; }

.er-tf-row { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-end; }
.er-tf-field { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.er-tf-field label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #6b7280; font-weight: 700; margin-bottom: 5px; }
.er-tf-field input[type="text"],
.er-tf-field input[type="date"] {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    color: #0d1b2a;
    font-family: inherit;
    background: #fff;
    min-height: 46px;
    outline: none;
}
.er-tf-field input:focus { border-color: #C9A96E; box-shadow: 0 0 0 3px rgba(201, 169, 110, .2); }

.er-tf-swap {
    flex: 0 0 auto;
    width: 44px;
    height: 46px;
    border: 1px solid #e5e7eb;
    background: #f4f6f9;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #b8925a;
    margin-bottom: 0;
}
.er-tf-swap:hover { background: #eef1f5; }

/* Autocomplete dropdown */
.er-tf-ac-drop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 300;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}
/* Μεγάλα, ευανάγνωστα στοιχεία — στόχος αφής ≥44px για κινητό. */
.er-tf-ac-item { padding: 12px 16px; min-height: 48px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 2px; -webkit-tap-highlight-color: rgba(201, 169, 110, .18); }
.er-tf-ac-item:hover, .er-tf-ac-item.is-active { background: #f4f6f9; }
.er-tf-ac-main { font-size: 16px; font-weight: 600; color: #0d1b2a; }
.er-tf-ac-sub { font-size: 13px; color: #6b7280; }

/* Passenger counters */
.er-tf-pax-row { flex-wrap: wrap; align-items: center; }
.er-tf-counter { display: flex; flex-direction: column; gap: 5px; }
.er-tf-counter-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #6b7280; font-weight: 700; }
.er-tf-counter-ctrl { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.er-tf-dec, .er-tf-inc {
    width: 44px; height: 44px; border: none; background: #f4f6f9; color: #0d1b2a;
    font-size: 20px; cursor: pointer; line-height: 1;
}
.er-tf-dec:hover, .er-tf-inc:hover { background: #eef1f5; }
.er-tf-count { width: 44px; height: 44px; text-align: center; border: none; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; font-size: 16px; font-weight: 700; color: #0d1b2a; background: #fff; }
.er-tf-vehicle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #2c3e50; cursor: pointer; margin-left: auto; }
.er-tf-vehicle input { width: 20px; height: 20px; accent-color: #C9A96E; }

.er-tf-error { color: #d63638; font-size: 14px; margin: 4px 0 10px; font-weight: 600; }

.er-tf-submit {
    width: 100%;
    background: #C9A96E;
    color: #0d1b2a;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    transition: background .15s;
}
.er-tf-submit:hover { background: #b8925a; }
.er-tf-submit.is-busy { opacity: .7; cursor: progress; }
.er-tf-spinner {
    width: 18px; height: 18px; border: 3px solid rgba(13, 27, 42, .3);
    border-top-color: #0d1b2a; border-radius: 50%; animation: er-tv-spin .7s linear infinite;
}
@keyframes er-tv-spin { to { transform: rotate(360deg); } }

.er-tf-disclosure { font-size: 12px; color: #6b7280; text-align: center; margin: 10px 0 0; }
.er-tf-unavailable { color: #6b7280; text-align: center; padding: 24px; }

/* Results */
.er-travel-results { max-width: 900px; margin: 16px auto 0; text-align: left; }
.er-tr-toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.er-tr-sort { display: flex; align-items: center; gap: 8px; }
.er-tr-sort label { font-size: 13px; color: #6b7280; font-weight: 600; }
.er-tr-sort-select { padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 14px; min-height: 40px; }
.er-tr-onlydirect { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #2c3e50; font-weight: 600; cursor: pointer; margin-left: auto; }
.er-tr-onlydirect input { width: 18px; height: 18px; accent-color: #C9A96E; }
.er-tr-status { color: #6b7280; font-size: 14px; padding: 4px 2px; }
.er-tr-notice { background: #fff8e8; border: 1px solid #f0e0b8; color: #7a5c1e; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }

.er-tr-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.er-tr-carrier { font-weight: 700; color: #0d1b2a; font-size: 15px; min-width: 120px; }
.er-tr-mid { flex: 1; min-width: 0; }
.er-tr-times { font-size: 15px; color: #0d1b2a; font-weight: 600; }
.er-tr-meta { display: flex; gap: 12px; font-size: 13px; color: #6b7280; margin-top: 3px; }
.er-tr-stops.is-direct { color: #008a20; font-weight: 700; }
.er-tr-price { font-size: 20px; font-weight: 800; color: #0d1b2a; white-space: nowrap; }
.er-tr-book, .er-tr-cta {
    background: #0d1b2a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.er-tr-book:hover, .er-tr-cta:hover { background: #1e3a5f; }
.er-tr-deeplink { text-align: center; padding: 16px; }
.er-tr-cta { background: #C9A96E; color: #0d1b2a; font-size: 16px; padding: 14px 28px; }
.er-tr-cta:hover { background: #b8925a; }
.er-tr-empty { color: #6b7280; padding: 24px; text-align: center; }

/* Standalone shortcode pages */
.er-travel-standalone { max-width: 900px; margin: 24px auto 64px; padding: 0 16px; }
.er-travel-h2 { text-align: center; font-size: 26px; font-weight: 700; color: #0d1b2a; margin-bottom: 16px; }

@media (max-width: 720px) {
    .er-tf-row { flex-direction: column; align-items: stretch; }
    .er-tf-swap { align-self: center; transform: rotate(90deg); width: 46px; }
    .er-tf-pax-row { flex-direction: row; gap: 14px; }
    .er-tf-vehicle { margin-left: 0; width: 100%; margin-top: 8px; }
    .er-tr-card { flex-wrap: wrap; }
    .er-tr-carrier { min-width: 0; width: 100%; }
    .er-tr-book, .er-tr-cta { width: 100%; justify-content: center; }
    .er-travel-results { margin-bottom: 90px; } /* χώρος πάνω από τα floating κουμπιά */
}

/* 13/10/2026: γραμμικά εικονίδια (αντί για emoji) στα tabs + δεύτερη επιλογή πτήσεων (Kiwi.com). */
.er-tv-ico { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
.er-tf-alt { margin: 8px 0 0; text-align: center; font-size: 13px; }
.er-tf-alt a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.er-tf-alt a:hover { opacity: 1; }

/* 13/10/2026: κάρτες σύγκρισης συνεργατών πτήσεων. */
.er-tr-compare { margin: 6px 0 4px; }
.er-tr-compare-t { font-weight: 700; color: #0d1b2a; margin: 0 0 10px; font-size: 15px; text-align: center; }
.er-tr-pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.er-tr-pcard { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1.5px solid #e6dcc8; border-radius: 14px; text-decoration: none; color: #0d1b2a; transition: border-color .15s, box-shadow .15s, transform .15s; }
.er-tr-pcard:hover { border-color: #C9A96E; box-shadow: 0 8px 22px rgba(13,27,42,.10); transform: translateY(-1px); }
.er-tr-plogo { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 32px; }
.er-tr-ptxt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.er-tr-ptxt b { font-size: 16px; }
.er-tr-ptxt small { font-size: 12.5px; color: #6b7280; line-height: 1.35; }
.er-tr-pgo { font-size: 20px; color: #C9A96E; font-weight: 700; }

/* 13/10/2026: ηλικίες επιβατών. */
.er-tf-age { font-weight: 500; text-transform: none; letter-spacing: 0; color: #8a8f98; font-size: 11px; margin-left: 4px; }
.er-tr-date { display:inline-block; background:#fff4dc; color:#8a6418; border-radius:6px; padding:1px 6px; font-size:12px; font-weight:700; margin-right:4px; }
.er-tr-carrier { display:flex; align-items:center; gap:8px; }
.er-tr-allogo { width:28px; height:28px; border-radius:6px; flex:0 0 28px; background:#fff; }
/* 13/10/2026: λευκό κουτί σύγκρισης (φαίνεται και πάνω στο σκούρο φόντο της αρχικής) + ετικέτες. */
.er-tr-compare { background:#fff; border-radius:16px; padding:14px; box-shadow:0 6px 20px rgba(13,27,42,.10); margin-top:10px; }
.er-tr-none { background:#fff; border-radius:12px; padding:12px 14px; color:#0d1b2a; font-weight:600; text-align:center; margin-bottom:8px; }
.er-tr-leg { display:inline-block; border-radius:6px; padding:1px 6px; font-size:12px; font-weight:700; margin-right:4px; background:#e8f1ff; color:#1d4ed8; }
.er-tr-leg--back { background:#ecfdf3; color:#15803d; }

/* 17/10/2026: ευανάγνωστο «Απλή μετάβαση / Με επιστροφή» στο σκούρο φόντο της αρχικής */
.er-hero .er-fs-form .er-tf-radio { color: #f1f5f9; }
.er-hero .er-fs-form .er-tf-field > label { color: #cbd5e1; }
