/* =========================================
   HERO + ARAMA KUTUSU
   ========================================= */

.hero {
    position: relative;
    min-height: 560px;
    padding: 40px 0 70px;
    isolation: isolate;
}

/* ===== HERO ARKA PLAN SLIDER (renk → görsel → video, otomatik geçişli) ===== */
.hero__slider {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    /* her zaman görünür taban — slayt yüklenemese de beyaz boşluk olmaz */
    background: linear-gradient(135deg, #4d1a9e 0%, #6929d4 50%, #9b6cff 100%);
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: opacity;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__slide--color {
    background: linear-gradient(135deg, #4d1a9e 0%, #6929d4 50%, #9b6cff 100%);
}

/* görsel & video slaytında yumuşak Ken Burns zoom */
.hero__slide--image.is-active,
.hero__slide--video.is-active {
    animation: heroZoom 7s ease-out forwards;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 30, 60, 0.55) 0%, rgba(0, 30, 60, 0.35) 50%, rgba(0, 30, 60, 0.75) 100%);
}

@keyframes heroZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    position: relative;
}

/* ===== HERO BAŞLIK ===== */
.hero__heading {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__badge {
    display: inline-block;
    background: var(--color-orange);
    color: #1c2536;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-shadow: none;
}

.hero__heading h1 {
    font-size: clamp(22px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero__heading h1 span {
    background: linear-gradient(90deg, var(--color-orange) 0%, #ffd28a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 4px;
}

.hero__heading p {
    font-size: clamp(13px, 1.2vw, 15px);
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

/* ===== ARAMA KUTUSU ===== */
.search-box {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.search-box__tabs {
    display: flex;
    gap: 6px;
    padding-left: 8px;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-tab:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-tab.is-active {
    background: #fff;
    color: var(--color-cyan-dark);
    transform: translateY(1px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.search-tab svg {
    opacity: 0.9;
}

.search-box__body {
    background: #fff;
    border-radius: 14px;
    border-top-left-radius: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== FORM ===== */
.search-form {
    display: none;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 12px;
}

.search-form.is-active {
    display: flex;
}

.search-field {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.15s ease;
    cursor: text;
    position: relative;
    overflow: visible;
}

.search-field:hover {
    background: var(--color-bg-soft);
}

.js-field { cursor: pointer; }
.js-field .search-field__control { user-select: none; }
.js-field.is-open { background: var(--color-bg-soft); }

.search-field--grow {
    flex: 1.3 1 0;
}

.search-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.search-field__control {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.search-field__icon {
    color: var(--color-cyan);
    flex-shrink: 0;
}

.search-field input {
    flex: 1 1 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text);
    padding: 4px 0;
    min-width: 0;
    width: 100%;
}

.search-field input::placeholder {
    color: var(--color-text-muted);
    font-weight: 500;
}

.search-field__display {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text);
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-field__display--placeholder {
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===========================================================
   FIELD POPUP (ortak)
   =========================================================== */
.field-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.18);
    padding: 16px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    color: var(--color-text);
}

.js-field.is-open .field-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === YUKARI AÇILMA (aşağıda yer yoksa) === */
.js-field.popup-up .field-popup {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(4px);
}

.js-field.popup-up.is-open .field-popup {
    transform: translateY(0);
}

/* === SAĞA YAPIŞIK (sağa taşıyorsa) === */
.js-field.popup-right .field-popup {
    left: auto;
    right: 8px;
}

/* Eski statik sağ-yapışıklık kaldırıldı, JS dinamik yönetiyor */

.popup-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

.popup-apply {
    background: var(--color-cyan);
    color: #fff;
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.popup-apply:hover {
    background: var(--color-cyan-dark);
    transform: translateY(-1px);
}

.popup-section + .popup-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.popup-section__title {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ===========================================================
   DATE PICKER
   =========================================================== */
.field-popup--date {
    width: 260px;
    padding: 10px 12px;
    min-width: 260px;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dp-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--color-text);
}

.dp-nav {
    display: flex;
    gap: 2px;
}

.dp-nav-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.dp-nav-btn svg {
    width: 13px;
    height: 13px;
}

.dp-nav-btn:hover {
    background: var(--color-bg-soft);
    color: var(--color-cyan-dark);
}

.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 2px;
}

.dp-weekdays span {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--color-text-muted);
    padding: 3px 0;
}

.dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.dp-day {
    aspect-ratio: 1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    transition: background 0.12s ease, color 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}

.dp-day:hover:not(:disabled):not(.is-selected) {
    background: var(--color-bg-soft);
}

.dp-day--muted {
    color: #c8cdd6;
    cursor: default;
}

.dp-day.is-today:not(.is-selected) {
    color: var(--color-cyan);
    background: rgba(12, 192, 223, 0.08);
}

.dp-day.is-selected {
    background: var(--color-cyan);
    color: #fff;
    box-shadow: 0 3px 8px rgba(12, 192, 223, 0.35);
}

.dp-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--color-border);
}

.dp-link {
    color: var(--color-cyan);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.dp-link:hover {
    background: rgba(12, 192, 223, 0.08);
}

/* ===========================================================
   COUNTER ROW (Yetişkin/Çocuk/Bebek)
   =========================================================== */
.counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 4px;
}

.counter-row + .counter-row {
    border-top: 1px solid var(--color-border);
}

.counter-row__info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.counter-row__info small {
    font-size: 12px;
    color: var(--color-text-muted);
}

.counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.counter__btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-cyan-dark);
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    border: 1px solid var(--color-border);
}

.counter__btn:hover:not(:disabled) {
    background: var(--color-cyan);
    color: #fff;
    border-color: var(--color-cyan);
}

.counter__btn:active:not(:disabled) { transform: scale(0.92); }

.counter__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.counter__val {
    min-width: 32px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

/* ===========================================================
   CHIP GROUP (Kabin Sınıfı)
   =========================================================== */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    cursor: pointer;
    display: inline-flex;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover span {
    border-color: var(--color-cyan);
    color: var(--color-cyan-dark);
}

.chip input:checked + span {
    background: var(--color-cyan);
    color: #fff;
    border-color: var(--color-cyan);
}

/* ===========================================================
   SELECT (custom dropdown)
   =========================================================== */
.field-popup--select {
    padding: 8px;
}

.select-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.select-list__item:hover {
    background: var(--color-bg-soft);
}

.select-list__check {
    opacity: 0;
    color: var(--color-cyan);
}

.select-list__item.is-selected {
    color: var(--color-cyan-dark);
    background: rgba(12, 192, 223, 0.08);
}

.select-list__item.is-selected .select-list__check {
    opacity: 1;
}

/* ===========================================================
   TIME PICKER
   =========================================================== */
.field-popup--time {
    width: 240px;
    padding: 10px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.time-grid::-webkit-scrollbar { width: 6px; }
.time-grid::-webkit-scrollbar-thumb { background: #d9dde5; border-radius: 4px; }

.time-slot {
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg-soft);
    transition: background 0.12s ease, color 0.12s ease;
}

.time-slot:hover {
    background: rgba(12, 192, 223, 0.12);
    color: var(--color-cyan-dark);
}

.time-slot.is-selected {
    background: var(--color-cyan);
    color: #fff;
}

/* ===== SUBMIT BUTTON ===== */
.search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    min-width: 158px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff9933 100%);
    color: #1c2536;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-radius: 10px;
    margin: 4px;
    box-shadow: 0 8px 18px rgba(255, 153, 51, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 153, 51, 0.45);
    filter: brightness(1.05);
}

.search-submit:active {
    transform: translateY(0);
}

/* ===== KARUSEL NOKTALARI ===== */
.hero__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.hero__dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--color-orange);
}

/* ===== RESPONSIVE (tablet — mobil için mobile.css) ===== */
@media (max-width: 1100px) and (min-width: 769px) {
    .search-form {
        flex-wrap: wrap;
    }
    .search-field {
        flex: 1 1 50%;
        border-right: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }
    .search-field:nth-child(even) {
        border-right: none;
    }
    .search-submit {
        flex: 1 1 100%;
        min-height: 56px;
        margin-top: 6px;
    }
}

@media (max-width: 768px) {
    .search-box__tabs {
        overflow-x: auto;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding-left: 0;
    }
    .search-box__tabs::-webkit-scrollbar { display: none; }
}
