/* ═══════════════════════════════════════════════════════════════
   Udaipur Travel — Booking Filter Bar
   Premium MakeMyTrip / Booking.com style
   ═══════════════════════════════════════════════════════════════ */

/* ── Wrap ── */
.utbf-wrap {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 100;
}
.utbf-wrap.utbf-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ── Bar ── */
.utbf-bar {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 20px 60px -10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    overflow: visible;
    min-height: 72px;
    padding: 0 6px;
    gap: 0;
}

/* ── Separator ── */
.utbf-sep {
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e2e8f0 30%, #e2e8f0 70%, transparent);
    margin: 14px 0;
    flex-shrink: 0;
}

/* ── Field ── */
.utbf-field {
    position: relative;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    border-radius: 14px;
    transition: background 0.2s ease;
    outline: none;
}
.utbf-field:hover,
.utbf-field:focus-within {
    background: rgba(37, 99, 235, 0.04);
}
.utbf-field.active {
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 2px rgba(26, 60, 110, 0.15);
}

.utbf-field-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    height: 100%;
    box-sizing: border-box;
}
.utbf-field-inner-center {
    justify-content: center;
}

/* ── Icon ── */
.utbf-icon {
    color: #1a3c6e;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.utbf-field:hover .utbf-icon,
.utbf-field.active .utbf-icon { opacity: 1; }

.utbf-icon-only { opacity: 0.6; }
.utbf-field-more:hover .utbf-icon-only { opacity: 1; }

/* ── Field Text ── */
.utbf-field-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.utbf-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a3c6e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.utbf-value {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.utbf-value.utbf-selected {
    color: #1e293b;
    font-weight: 600;
}

/* ── Chevron ── */
.utbf-chevron {
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
}
.utbf-field.active .utbf-chevron { transform: rotate(180deg); }

/* ── Dropdown Base ── */
.utbf-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 25px 50px -12px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    overflow: hidden;
}
.utbf-field.active .utbf-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ── Destination Dropdown ── */
.utbf-dropdown-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #94a3b8;
}
.utbf-dest-search {
    border: none;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    width: 100%;
    background: transparent;
}
.utbf-dest-search::placeholder { color: #cbd5e1; }

.utbf-dropdown-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.utbf-dropdown-list::-webkit-scrollbar { width: 4px; }
.utbf-dropdown-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.utbf-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
}
.utbf-dropdown-item:hover {
    background: #f0f7ff;
    color: #1a3c6e;
}
.utbf-dropdown-item.selected {
    background: #eff6ff;
    color: #1a3c6e;
    font-weight: 600;
}
.utbf-item-icon { font-size: 16px; width: 22px; text-align: center; }

/* ── Activity Dropdown ── */
.utbf-dropdown-activity {
    padding: 8px 0;
}

/* ── Date Input ── */
.utbf-date-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    border: none;
    background: transparent;
}
.utbf-field-date { overflow: visible; }

/* ── Guest Dropdown ── */
.utbf-dropdown-guests {
    padding: 16px;
    min-width: 280px;
}
.utbf-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.utbf-guest-row:last-of-type { border-bottom: none; }
.utbf-guest-info { display: flex; flex-direction: column; gap: 2px; }
.utbf-guest-type { font-size: 14px; font-weight: 600; color: #1e293b; }
.utbf-guest-sub  { font-size: 12px; color: #94a3b8; }

.utbf-guest-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}
.utbf-guest-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #475569;
    transition: all 0.2s;
    flex-shrink: 0;
}
.utbf-guest-btn:hover {
    background: #1a3c6e;
    color: #fff;
    border-color: #1a3c6e;
}
.utbf-guest-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.utbf-guest-btn:disabled:hover {
    background: #fff;
    color: #475569;
    border-color: #cbd5e1;
}
.utbf-guest-count {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    min-width: 20px;
    text-align: center;
}
.utbf-guest-done {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: #1a3c6e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.utbf-guest-done:hover { background: #0f2a52; }

/* ── More / Filter Dropdown ── */
.utbf-dropdown-more {
    padding: 16px;
    min-width: 220px;
    left: auto;
    right: 0;
    transform-origin: top right;
}
.utbf-more-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}
.utbf-more-row:last-child { border-bottom: none; }
.utbf-more-label { font-size: 13px; font-weight: 600; color: #374151; }

.utbf-sort-sel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    color: #374151;
    background: #f8fafc;
    outline: none;
    cursor: pointer;
}

/* ── Toggle Switch ── */
.utbf-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.utbf-toggle input { opacity: 0; width: 0; height: 0; }
.utbf-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.25s;
}
.utbf-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.utbf-toggle input:checked + .utbf-toggle-slider { background: #1a3c6e; }
.utbf-toggle input:checked + .utbf-toggle-slider::before { transform: translateX(18px); }

/* ── Search Button ── */
.utbf-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    background: #1a3c6e;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    margin: 8px 4px 8px 8px;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(26, 60, 110, 0.35);
    letter-spacing: 0.02em;
}
.utbf-search-btn:hover {
    background: #0f2a52;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 60, 110, 0.45);
}
.utbf-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 60, 110, 0.3);
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
    .utbf-bar {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 8px;
        gap: 4px;
    }
    .utbf-sep { display: none; }
    .utbf-field {
        flex: 1 1 calc(50% - 8px);
        min-width: 160px;
        border: 1px solid #f1f5f9;
    }
    .utbf-field-more { flex: 0 0 auto; }
    .utbf-search-btn {
        flex: 1 1 100%;
        justify-content: center;
        margin: 4px 0 0;
        padding: 14px;
        border-radius: 12px;
    }
}

/* ── Responsive: Mobile ── */
@media (max-width: 600px) {
    .utbf-bar { border-radius: 14px; padding: 6px; }
    .utbf-field { flex: 1 1 100%; }
    .utbf-field-more { flex: 0 0 auto; }
    .utbf-dropdown { min-width: calc(100vw - 40px); left: 50%; transform: translateX(-50%) translateY(-8px) scale(0.98); }
    .utbf-field.active .utbf-dropdown { transform: translateX(-50%) translateY(0) scale(1); }
    .utbf-dropdown-more { left: auto; right: 0; transform: translateY(-8px) scale(0.98); }
    .utbf-field-more.active .utbf-dropdown-more { transform: translateY(0) scale(1); }
    .utbf-label { font-size: 10px; }
    .utbf-value { font-size: 13px; }
}
