/* ============================================================
   Search Widget — AcenteCode (MakeMyTrip-style)
   Prefix: dc-sw-   (dreamstour .banner-form, .form-item ile çakışmasın)
   Ikonografi: isax-*  (Bootstrap Icons kullanmıyoruz)
   ============================================================ */

.dc-sw-container {
    position: relative;
    width: 100%;
    max-width: 1210px;
    margin: 0 auto;
}

/* Hero (non-compact) modunda floating tabs slogan'la çakışmasın diye üst boşluk —
   tab'lar transform: translateY(-75%) ile container üstüne ~60px taşıyor,
   slogan font-size clamp 2.5rem (~50px line-height) + buffer hesabı: 6rem güvenli. */
.dc-sw-container:not(.dc-sw-compact) {
    margin-top: 6rem;
}

/* ---------- Floating Tabs ---------- */
.dc-sw-tabs {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -75%);
    display: flex;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    padding: 10px 40px;
    gap: 60px;
    z-index: 2;
}

.dc-sw-tab {
    background: none;
    border: none;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #9B9B9B;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    min-width: 70px;
    transition: color 0.15s ease;
}

.dc-sw-tab i { font-size: 28px; line-height: 1; }
.dc-sw-tab:hover { color: color-mix(in srgb, var(--brand-primary) 70%, #fff); }
.dc-sw-tab.dc-sw-active { color: var(--brand-primary); font-weight: 600; }
.dc-sw-tab.dc-sw-active::after {
    content: "";
    position: absolute;
    bottom: -10px; left: 15%; right: 15%;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* ---------- Search Card ---------- */
.dc-sw-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    padding: 46px 24px 36px;
    position: relative;
}

.dc-sw-panel { display: none; }
.dc-sw-panel.dc-sw-active { display: block; }

/* ---------- Trip Row (radio + checkbox + book-link) ---------- */
.dc-sw-trip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 20px;
}
.dc-sw-trip-options { display: flex; gap: 36px; }

.dc-sw-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #4A4A4A;
    user-select: none;
    margin: 0;
}
.dc-sw-radio input { position: absolute; opacity: 0; pointer-events: none; }

.dc-sw-radio-circle {
    width: 20px; height: 20px;
    border: 2px solid #C4C4C4;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}
/* İç tik — isax yerine pseudo-element ile cizildi (guaranteed render) */
.dc-sw-radio-circle::after {
    content: "";
    display: none;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.dc-sw-radio.dc-sw-checked .dc-sw-radio-circle { background: var(--brand-primary); border-color: var(--brand-primary); }
.dc-sw-radio.dc-sw-checked .dc-sw-radio-circle::after { display: block; }
.dc-sw-radio.dc-sw-checked .dc-sw-radio-label { color: #1A1A1A; font-weight: 700; }

.dc-sw-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #4A4A4A;
    user-select: none;
    margin: 0;
}
.dc-sw-check input { position: absolute; opacity: 0; pointer-events: none; }
.dc-sw-check-square {
    width: 20px;
    height: 20px;
    border: 2px solid #C4C4C4;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}
.dc-sw-check-square::after {
    content: "";
    display: none;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.dc-sw-check.dc-sw-checked .dc-sw-check-square { background: var(--brand-primary); border-color: var(--brand-primary); }
.dc-sw-check.dc-sw-checked .dc-sw-check-square::after { display: block; }
.dc-sw-check.dc-sw-checked .dc-sw-radio-label { color: #1A1A1A; font-weight: 700; }

.dc-sw-book-link {
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.dc-sw-book-link:hover { color: var(--brand-primary); }

/* ---------- Form Row (5 cols flight, 4 cols hotel) ---------- */
.dc-sw-row {
    display: flex;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    position: relative;
    background: #fff;
    align-items: stretch;
}

.dc-sw-col {
    flex: 1;
    padding: 16px 22px;
    border-right: 1px solid #E5E7EB;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* "Nereye" col swap button ile çakışmasın — swap absolute konumla "Nereden"/"Nereye"
   sınırına oturduğundan sağ yarısı "Nereye" alanına taşıyor. Swap görünür olduğu
   tüm breakpoint'lerde (>=576px, <576'da swap gizli) sol padding artırılır. */
@media (min-width: 576px) {
    .dc-sw-flights-form .dc-sw-col[data-field="to"] {
        padding-left: 48px;
    }
}

/* Hotel formu oranları */
.dc-sw-hotels-form .dc-sw-col[data-field="hotel-city"] { flex: 2; }
.dc-sw-hotels-form .dc-sw-col[data-field="checkin"] { flex: 1; }
.dc-sw-hotels-form .dc-sw-col[data-field="checkout"] { flex: 1; }
.dc-sw-hotels-form .dc-sw-col[data-field="rooms-guests"] { flex: 1.5; }

.dc-sw-col:last-child { border-right: none; }
.dc-sw-col:hover { background: #F9FAFB; }
.dc-sw-col.dc-sw-active {
    background: rgba(var(--bs-primary-rgb), 0.15);
}
.dc-sw-col.dc-sw-active .dc-sw-field-label,
.dc-sw-col.dc-sw-active .dc-sw-field-label i,
.dc-sw-col.dc-sw-active .dc-sw-field-value {
    color: var(--brand-primary);
}

/* Invalid state — SEARCH/APPLY validation flag'i */
.dc-sw-col.dc-sw-invalid {
    background: #FEF2F2;
    box-shadow: inset 0 0 0 2px #EF4444;
    animation: dc-sw-shake 0.3s ease;
}
.dc-sw-col.dc-sw-invalid .dc-sw-field-label,
.dc-sw-col.dc-sw-invalid .dc-sw-field-label i,
.dc-sw-col.dc-sw-invalid .dc-sw-field-value,
.dc-sw-col.dc-sw-invalid .dc-sw-field-sub,
.dc-sw-col.dc-sw-invalid .dc-sw-field-placeholder {
    color: #B91C1C !important;
}
.dc-sw-col.dc-sw-invalid.dc-sw-active {
    background: rgba(var(--bs-primary-rgb), 0.15);
    box-shadow: inset 0 0 0 2px var(--brand-primary);
}

.dc-sw-child-age-select.dc-sw-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

@keyframes dc-sw-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Return clear button (× - round trip'ten one way'e dön) */
.dc-sw-clear-return {
    display: none;
    align-items: center;
    justify-content: center;
    background: #D1D5DB;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    color: #4A4A4A;
    cursor: pointer;
    margin-left: 4px;
    font-size: 11px;
    padding: 0;
    line-height: 1;
    transition: all 0.15s;
}
.dc-sw-clear-return:hover { background: #9CA3AF; color: #fff; }
.dc-sw-col[data-field="return"].dc-sw-show-clear .dc-sw-clear-return {
    display: inline-flex;
}

.dc-sw-field-label {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dc-sw-field-label i { font-size: 12px; color: #6B7280; line-height: 1; }

.dc-sw-field-value {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1.1;
    margin-bottom: 6px;
    min-height: 36px; /* empty state'te col yüksekliği bozulmasın */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Empty value: SW_X lokalize metin büyük ama yumuşak renk — placeholder hissi korunur */
.dc-sw-field-value.dc-sw-empty {
    margin-bottom: 0;
    color: #9CA3AF;
    font-weight: 600;
}
.dc-sw-field-value span {
    font-size: 16px;
    font-weight: 500;
    color: #4A4A4A;
    margin-left: 2px;
}
.dc-sw-date-value { font-size: 34px; }
.dc-sw-date-value.dc-sw-empty { margin-bottom: 0; }

.dc-sw-field-sub {
    font-size: 13px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-sw-hidden { display: none !important; }

.dc-sw-field-placeholder {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 10px;
    line-height: 1.5;
    white-space: normal;
}

/* ---------- Swap Button ---------- */
.dc-sw-swap {
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    color: #4A4A4A;
    transition: all 0.15s ease;
    font-size: 14px;
    padding: 0;
}
.dc-sw-swap:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb),0.1);
}
.dc-sw-swap i { line-height: 1; }

/* ---------- SEARCH Submit ---------- */
.dc-sw-submit {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 7px 56px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 60%, #fff) 0%, var(--brand-primary) 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 10px rgba(var(--bs-primary-rgb), 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    z-index: 3;
}
.dc-sw-submit:hover {
    transform: translate(-50%, calc(50% - 2px));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 8px 18px rgba(var(--bs-primary-rgb),0.38);
}
.dc-sw-submit:active { transform: translate(-50%, 50%); }

/* ============================================================
   Dropdown Panels (ortak base)
   ============================================================ */
.dc-sw-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    z-index: 10;
    cursor: default;
    animation: dc-sw-dropdown-in 0.15s ease;
}
.dc-sw-dropdown.dc-sw-open { display: block; }

@keyframes dc-sw-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- City Dropdown ---------- */
.dc-sw-city-dd {
    width: 420px;
    max-width: 90vw;
    padding: 16px;
}
.dc-sw-input-wrap {
    position: relative;
    margin-bottom: 16px;
}
.dc-sw-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}
.dc-sw-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}
.dc-sw-input:focus { border-color: var(--brand-primary); }

.dc-sw-section-label {
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 4px 0 6px;
}

.dc-sw-city-list {
    max-height: 320px;
    overflow-y: auto;
}
.dc-sw-city-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
}
.dc-sw-city-item:hover, .dc-sw-city-item.dc-sw-active { background: rgba(var(--bs-primary-rgb), 0.10); }
.dc-sw-iata {
    font-size: 13px;
    font-weight: 700;
    background: #F3F4F6;
    padding: 4px 8px;
    border-radius: 4px;
    color: #4A4A4A;
    min-width: 44px;
    text-align: center;
}
.dc-sw-city-icon {
    flex-shrink: 0;
    width: 30px;
    font-size: 18px;
    color: var(--brand-primary);
    text-align: center;
    line-height: 1;
}
.dc-sw-city-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.2;
}
.dc-sw-city-country {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}
.dc-sw-city-text { flex: 1; min-width: 0; }
.dc-sw-city-name, .dc-sw-city-country {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-sw-no-results { padding: 20px; text-align: center; color: #9CA3AF; font-size: 14px; }
.dc-sw-loading { padding: 16px; text-align: center; color: #9CA3AF; font-size: 13px; }

/* ---------- Calendar Popup (shared) ---------- */
.dc-sw-cal-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 620px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    z-index: 10;
    display: none;
    animation: dc-sw-dropdown-in 0.15s ease;
    cursor: default;
    padding: 0;
}
.dc-sw-cal-popup.dc-sw-open { display: block; }

.dc-sw-cal-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
}
.dc-sw-cal-tab {
    background: none;
    border: none;
    padding: 6px 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #1A1A1A;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.2;
}
.dc-sw-cal-tab:hover { color: var(--brand-primary); }
.dc-sw-cal-tab.dc-sw-active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}
.dc-sw-cal-tab i { font-size: 16px; color: currentColor; line-height: 1; }
.dc-sw-cal-tab-date { line-height: 1.2; }
.dc-sw-cal-tab-date.dc-sw-empty { color: #9CA3AF; font-weight: 400; }
.dc-sw-cal-sep { color: #9CA3AF; font-size: 16px; user-select: none; }

.dc-sw-cal-body { padding: 20px; position: relative; }

.dc-sw-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.dc-sw-cal-nav {
    background: none;
    border: none;
    padding: 6px 10px;
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.15s;
    line-height: 1;
}
.dc-sw-cal-nav:hover { color: color-mix(in srgb, var(--brand-primary) 82%, #000); }
.dc-sw-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.dc-sw-cal-nav i { line-height: 1; }

.dc-sw-cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.dc-sw-cal-month-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}
.dc-sw-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.dc-sw-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 600;
    padding: 4px 0;
}
.dc-sw-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.dc-sw-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    color: #1A1A1A;
    transition: all 0.1s;
    user-select: none;
}
.dc-sw-cal-day:hover:not(.dc-sw-disabled):not(.dc-sw-empty) {
    background: rgba(var(--bs-primary-rgb), 0.10);
    color: var(--brand-primary);
}
.dc-sw-cal-day.dc-sw-disabled {
    color: #D1D5DB;
    cursor: not-allowed;
}
.dc-sw-cal-day.dc-sw-empty { cursor: default; }
.dc-sw-cal-day.dc-sw-selected {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 2px;
}
.dc-sw-cal-day.dc-sw-today {
    border: 1px solid var(--brand-primary);
    font-weight: 600;
}
.dc-sw-cal-day.dc-sw-in-range {
    background: rgba(var(--bs-primary-rgb),0.12);
    color: #1A1A1A;
    border-radius: 0;
}
.dc-sw-cal-day.dc-sw-in-range:hover {
    background: rgba(var(--bs-primary-rgb),0.22);
    color: var(--brand-primary);
}
.dc-sw-cal-day.dc-sw-selected.dc-sw-range-start:not(.dc-sw-range-end) {
    border-radius: 2px 0 0 2px;
}
.dc-sw-cal-day.dc-sw-selected.dc-sw-range-end:not(.dc-sw-range-start) {
    border-radius: 0 2px 2px 0;
}
.dc-sw-cal-day.dc-sw-selected.dc-sw-range-start.dc-sw-range-end {
    border-radius: 2px;
}

/* ---------- Travellers Dropdown ---------- */
.dc-sw-trav-dd {
    width: 360px;
    max-width: 90vw;
    padding: 20px;
    right: 0; left: auto;
}
.dc-sw-tr-section {
    font-size: 11px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 10px;
}
.dc-sw-tr-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.dc-sw-tr-info {
    display: flex;
    flex-direction: column;
}
.dc-sw-tr-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
}
.dc-sw-tr-hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}
.dc-sw-tr-ctrls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 24px;
    padding: 2px 4px;
    background: #fff;
    flex-shrink: 0;
}
.dc-sw-tr-btn {
    width: 28px; height: 28px;
    border: none;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4A4A4A;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}
.dc-sw-tr-btn:hover:not(:disabled) {
    background: rgba(var(--bs-primary-rgb), 0.10);
    color: var(--brand-primary);
}
.dc-sw-tr-btn:disabled { opacity: 0.3; cursor: not-allowed; color: #9CA3AF; }
.dc-sw-tr-value { font-size: 15px; font-weight: 700; min-width: 26px; text-align: center; color: #1A1A1A; }

.dc-sw-tr-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 14px 0;
}

.dc-sw-tr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.dc-sw-tr-pill {
    padding: 8px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    color: #4A4A4A;
    cursor: pointer;
    transition: all 0.15s;
}
.dc-sw-tr-pill:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.dc-sw-tr-pill.dc-sw-active {
    background: rgba(var(--bs-primary-rgb), 0.10);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
}

.dc-sw-tr-done {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.15s;
}
.dc-sw-tr-done:hover { background: color-mix(in srgb, var(--brand-primary) 82%, #000); }

/* ---------- Rooms & Guests Dropdown ---------- */
.dc-sw-rg-dd {
    width: 400px;
    max-width: 90vw;
    padding: 20px;
    right: 0;
    left: auto;
}
.dc-sw-rg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 12px;
}
.dc-sw-rg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dc-sw-rg-label {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
}
.dc-sw-rg-hint {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

.dc-sw-rg-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 24px;
    padding: 2px 4px;
    background: #fff;
    flex-shrink: 0;
}
.dc-sw-rg-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A4A4A;
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}
.dc-sw-rg-btn:hover:not(:disabled) {
    background: rgba(var(--bs-primary-rgb), 0.10);
    color: var(--brand-primary);
}
.dc-sw-rg-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.dc-sw-rg-value {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    min-width: 26px;
    text-align: center;
}

.dc-sw-rg-info-text {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
    padding: 4px 0 10px;
}
.dc-sw-rg-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 12px 0;
}

.dc-sw-pets-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    margin: 4px 0 14px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s;
}
.dc-sw-pets-card:hover { border-color: var(--brand-primary); }
.dc-sw-pets-cb {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--brand-primary);
    cursor: pointer;
    margin-top: 2px;
}
.dc-sw-pets-info {
    flex: 1;
    min-width: 0;
}
.dc-sw-pets-title {
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
}
.dc-sw-pets-desc {
    font-size: 11px;
    color: #6B7280;
    margin-top: 4px;
    line-height: 1.5;
}
.dc-sw-pets-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #9CA3AF;
    line-height: 1;
}

.dc-sw-apply-wrap {
    display: flex;
    justify-content: flex-end;
}
.dc-sw-apply-btn {
    padding: 10px 34px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 60%, #fff) 0%, var(--brand-primary) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.dc-sw-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb),0.35);
}

/* Child ages */
.dc-sw-child-ages {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #E5E7EB;
}
.dc-sw-child-age-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.dc-sw-child-age-label {
    font-size: 14px;
    color: #4A4A4A;
    font-weight: 500;
}
.dc-sw-child-age-select {
    padding: 6px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    min-width: 110px;
    color: #1A1A1A;
    transition: border-color 0.15s;
    font-family: inherit;
}
.dc-sw-child-age-select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* ============================================================
   Mobile summary bar + drawer — compact widget result sayfalarında
   ============================================================ */

/* Summary bar — desktop'ta gizli, mobile compact'ta görünür */
.dc-sw-summary {
    display: none;
    width: 100%;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
    font-family: inherit;
}
.dc-sw-summary:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.dc-sw-summary-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dc-sw-summary-main {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-sw-summary-meta {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-sw-summary-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--bs-primary-rgb), 0.08);
}
.dc-sw-summary-edit i { font-size: 16px; line-height: 1; }

/* Drawer close button — sadece mobile drawer açıkken görünür */
.dc-sw-drawer-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: #4A4A4A;
    cursor: pointer;
    z-index: 11;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}
.dc-sw-drawer-close:hover { background: rgba(0, 0, 0, 0.12); }
.dc-sw-drawer-close i { font-size: 22px; line-height: 1; }

/* ============================================================
   Desktop sticky — CSS-only (parent: .dc-sw-results-wrap tall enough)
   Result page Razor'larında widget .dc-sw-results-wrap'in direct child
   olduğunda sticky scope tüm sayfaya yayılır.
   ============================================================ */
@media (min-width: 992px) {
    .dc-sw-results-wrap {
        position: relative;
    }
    /* Widget header.fixed altına yapışsın. JS getStickyTop() header.offsetHeight'ı
       --dc-sw-sticky-top var'a yazar (default 80px). Header'ı gizlemiyoruz —
       layout shift / scroll-anchor karmaşası olmasın. Widget header'ın altında
       z-index 50 ile yapışır, header z-index 100 üstte normal görünür. */
    .dc-sw-container.dc-sw-compact {
        position: sticky;
        top: var(--dc-sw-sticky-top, 80px);
        z-index: 50;
    }
}

/* Result page wrapper — Bootstrap container davranışı + sticky scope.
   Widget direct child olduğu için sticky'nin containing block'u wrap.
   overflow-anchor: none — stuck class layout shift yapsa bile browser
   scroll-anchor mekanizması sayfayı yukarı çekmesin. */
.dc-sw-results-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 12px 0;
    position: relative;
    overflow-anchor: none;
}
@media (min-width: 576px) { .dc-sw-results-wrap { max-width: 540px; } }
@media (min-width: 768px) { .dc-sw-results-wrap { max-width: 720px; } }
@media (min-width: 992px) { .dc-sw-results-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .dc-sw-results-wrap { max-width: 1140px; } }
@media (min-width: 1400px) { .dc-sw-results-wrap { max-width: 1320px; } }

/* Wrap içindeki nested .container'ları gereksiz padding'den kurtar */
.dc-sw-results-wrap .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* ============================================================
   Mobile (<992px) — full widget gizli, summary bar BOTTOM-FIXED görünür
   (mobile filter butonu pattern'i gibi). Summary bar tıklanınca
   drawer (full-screen overlay) açılır.
   ============================================================ */
@media (max-width: 991.98px) {
    .dc-sw-container.dc-sw-compact > .dc-sw-tabs,
    .dc-sw-container.dc-sw-compact > .dc-sw-card,
    .dc-sw-container.dc-sw-compact > .dc-sw-submit { display: none; }

    /* Summary bar — fixed bottom, full width (filter button gibi) */
    .dc-sw-container.dc-sw-compact .dc-sw-summary {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1058; /* filter btn 1055'in üstünde */
        border-radius: 0;
        border: none;
        border-top: 1px solid #E5E7EB;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }
    .dc-sw-container.dc-sw-compact .dc-sw-summary:hover {
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
    }

    /* Filter button summary bar üstünde — bottom: 0'dan summary bar yüksekliği kadar yukarı */
    body.dc-sw-mobile-bottom-bar .dc-mobile-filter-btn {
        bottom: 64px !important;
        padding-right: 64px !important; /* back-to-top butonu için sağda yer */
    }
    /* Back-to-top butonu mobile'da filtre bar'ının sağ ucunda görünür.
       Asıl fixed konumlu element .back-to-top-icon (child anchor),
       parent .back-to-top değil. */
    body.dc-sw-mobile-bottom-bar .back-to-top-icon {
        bottom: 72px !important;
        right: 12px !important;
        z-index: 1056 !important; /* filter btn 1055 üzerinde, tıklanabilir */
    }
    /* Body padding hem summary hem filter btn için */
    body.dc-sw-mobile-bottom-bar { padding-bottom: 128px !important; }

    /* Drawer açıkken bottom-fixed yerine full-screen overlay.
       Bottom padding submit btn yüksekliği kadar — form son alanı butonun altında kalmasın.
       scroll-padding-top close X butonu için tampon — scrollIntoView aktif alanı X altına
       sokmasın.
       Slide-up animation (Oturum 43): drawer alt kenardan yukarı doğru kayarak açılır
       (~280ms). Material Design "decelerated easing" cubic-bezier(0.4, 0, 0.2, 1) ile
       doğal his. prefers-reduced-motion ayarında animasyon disable. Kapanış animasyonu
       yok (instant) — JS class kaldırma anında container görünmez olur. */
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open {
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: #fff;
        overflow-y: auto;
        padding: 56px 16px 96px;
        margin: 0;
        max-width: 100%;
        scroll-padding-top: 56px;
        scroll-padding-bottom: 96px;
        animation: dcSwSlideUp 280ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    @keyframes dcSwSlideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    @media (prefers-reduced-motion: reduce) {
        .dc-sw-container.dc-sw-compact.dc-sw-mobile-open {
            animation: none;
        }
    }
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open .dc-sw-summary { display: none; }
    /* Tabs drawer'da gizli — sayfa bağlamı (otel/uçuş) zaten aktif paneli belirler */
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open > .dc-sw-tabs { display: none; }
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open > .dc-sw-card { display: block; }
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open .dc-sw-drawer-close { display: inline-flex; }

    /* ARA butonu drawer'da viewport bottom'a sabit — scroll konumundan bağımsız her zaman görünür */
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open > .dc-sw-submit {
        display: block;
        position: fixed;
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
        top: auto;
        transform: none !important;
        width: auto;
        margin: 0;
        padding: 14px 24px;
        font-size: 17px;
        z-index: 10000;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open > .dc-sw-submit:hover {
        transform: translateY(-1px) !important;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open > .dc-sw-submit:active {
        transform: translateY(0) !important;
    }

    /* Drawer içinde dropdown/popup'lar absolute yerine inline akışta — container scroll'u
       takvim/şehir listesi/oda paneli yüksekliğini dahil etsin, alt satırlar kapanmasın */
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open .dc-sw-dropdown.dc-sw-open,
    .dc-sw-container.dc-sw-compact.dc-sw-mobile-open .dc-sw-cal-popup.dc-sw-open {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        margin-top: 8px;
        width: 100%;
        max-width: 100%;
        animation: none;
    }
}

/* Body scroll lock when drawer open */
body.dc-sw-drawer-active { overflow: hidden; }

/* ============================================================
   Compact mode = behavior marker (sticky + drawer). Görsel olarak
   hero ile birebir aynı. Liste sayfasında widget ilk açılışta hero
   look. Slogan list'te yok (Home'da @ViewBag.BrandSlogan).
   ============================================================ */
.dc-sw-container.dc-sw-compact {
    margin-top: 4rem; /* Floating tabs breadcrumb area'ya çakışmasın */
}

/* ============================================================
   Stuck (scroll'da sticky tetiklendiğinde) — kompak görünüm
   JS IntersectionObserver ile .dc-sw-stuck class toggle edilir.
   ============================================================ */
@media (min-width: 992px) {
    /* margin-top SABİT 4rem — stuck class değişimi layout'u değiştirmez,
       yalnızca görsel kompaktlaşma. Aksi halde IntersectionObserver
       feedback loop oluşur (widget pozisyonu değişir, sentinel değişir, flicker). */
    .dc-sw-container.dc-sw-compact.dc-sw-stuck > .dc-sw-tabs {
        display: none;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck > .dc-sw-card {
        padding: 12px 96px 12px 16px; /* sağda submit için boşluk */
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.10);
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(8px);
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-trip-row {
        display: none;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-col {
        padding: 6px 14px;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-field-value {
        font-size: 16px;
        min-height: 20px;
        margin-bottom: 0;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-date-value {
        font-size: 16px;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-field-label {
        font-size: 11px;
        margin-bottom: 2px;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-field-sub,
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-field-placeholder {
        display: none;
    }
    /* Submit hero floating yerine inline sağ kenar */
    .dc-sw-container.dc-sw-compact.dc-sw-stuck > .dc-sw-submit {
        position: absolute !important;
        bottom: auto !important;
        left: auto !important;
        right: 16px;
        top: 50%;
        transform: translateY(-50%) !important;
        padding: 8px 22px;
        font-size: 13px;
        margin: 0;
    }
    .dc-sw-container.dc-sw-compact.dc-sw-stuck > .dc-sw-submit:hover {
        transform: translateY(calc(-50% - 1px)) !important;
    }
    /* Stuck içinde dropdownlar widget altına açılsın */
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-dropdown,
    .dc-sw-container.dc-sw-compact.dc-sw-stuck .dc-sw-cal-popup {
        top: calc(100% + 4px);
    }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .dc-sw-row { flex-wrap: wrap; }
    .dc-sw-col {
        flex: 1 1 50%;
        border-bottom: 1px solid #E5E7EB;
    }
    .dc-sw-col:nth-child(even) { border-right: none; }
    .dc-sw-col:nth-last-child(-n+2) { border-bottom: none; }
    .dc-sw-swap { left: 50%; top: 25%; }

    .dc-sw-hotels-form .dc-sw-col[data-field="hotel-city"],
    .dc-sw-hotels-form .dc-sw-col[data-field="checkin"],
    .dc-sw-hotels-form .dc-sw-col[data-field="checkout"],
    .dc-sw-hotels-form .dc-sw-col[data-field="rooms-guests"] {
        flex: 1 1 50%;
    }

    .dc-sw-cal-popup {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    .dc-sw-rg-dd,
    .dc-sw-trav-dd,
    .dc-sw-city-dd {
        width: 100%;
        left: 0;
        right: 0;
    }
    .dc-sw-cal-months { grid-template-columns: 1fr; }
    .dc-sw-cal-months > *:nth-child(n+2) { display: none; }
}

@media (max-width: 575.98px) {
    .dc-sw-card { padding: 42px 14px 70px; }
    .dc-sw-col { flex: 1 1 100%; border-right: none; }
    .dc-sw-col:not(:last-child) { border-bottom: 1px solid #E5E7EB; }

    .dc-sw-hotels-form .dc-sw-col[data-field="hotel-city"],
    .dc-sw-hotels-form .dc-sw-col[data-field="checkin"],
    .dc-sw-hotels-form .dc-sw-col[data-field="checkout"],
    .dc-sw-hotels-form .dc-sw-col[data-field="rooms-guests"] {
        flex: 1 1 100%;
    }

    .dc-sw-field-value, .dc-sw-date-value { font-size: 24px; }
    .dc-sw-trip-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .dc-sw-trip-options { gap: 20px; flex-wrap: wrap; }
    .dc-sw-tabs { padding: 8px 24px; gap: 30px; }
    .dc-sw-tab i { font-size: 24px; }
    .dc-sw-submit { padding: 14px 50px; font-size: 18px; }
    .dc-sw-swap { display: none; }

    .dc-sw-city-dd, .dc-sw-trav-dd, .dc-sw-rg-dd { width: 100%; }
    .dc-sw-child-age-row { flex-wrap: wrap; gap: 6px; }
    .dc-sw-child-age-select { min-width: 100%; }

    /* Compact mobile — SEARCH butonu padding'i azalt */
    .dc-sw-compact .dc-sw-card { padding: 16px 12px 20px; }
    .dc-sw-compact .dc-sw-submit { width: 100%; padding: 12px; }
}
