/* ============================================
   OPERATORS/JOINUP v3.0 — Glass Redesign
   
   Glass layers on fields (bottom -> top):
   1. Background gradient (168deg, white 0.12 -> 0.06)
   2. Directional borders (bright top, fade to bottom)
   3. ::before — specular highlight line (top center)
   4. ::after — inner light bloom (top center radial)
   5. Depth via inset + outer box-shadows
   
   Tab slider: round pill (100px radius), stretch animation
   Uses design system variables from variables.css
   Screen padding handled by base.css .screen
   ============================================ */

/* ── OPERATORS SCREEN — Glass cards ──────── */
.ju-operators-title {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255,255,255,0.93);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.ju-op-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: linear-gradient(168deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.13);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ju-op-card:active { transform: scale(0.98); }

.ju-op-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ju-op-icon-placeholder {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.ju-op-icon-placeholder svg {
    width: 24px; height: 24px;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ju-op-info {
    flex: 1;
    min-width: 0;
}
.ju-op-name {
    font-size: 17px;
    font-weight: 700;
    color: rgba(255,255,255,0.93);
    margin-bottom: 2px;
}
.ju-op-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

.ju-op-arrow {
    width: 20px; height: 20px;
    stroke: rgba(255,255,255,0.25);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ju-op-badge {
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Disabled card */
.ju-op-disabled {
    opacity: 0.40;
    cursor: default;
    pointer-events: none;
}

/* ── SLIDING TAB SWITCHER ────────────────── 
   iOS-style pill slider with stretch animation.
   Round container, round pill.
   ============================================ */
.ju-tab-slider {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;

    /* Very round container */
    background: linear-gradient(
        168deg,
        rgba(255,255,255,0.08) 0%,
        rgba(255,255,255,0.04) 100%
    );
    border: 1px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.12);
    border-radius: 100px;
    padding: 4px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 8px rgba(0,0,0,0.2);

    display: flex;
    align-items: center;

    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Sliding pill — absolute behind tabs */
.ju-tab-pill {
    position: absolute !important;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);

    /* Very round */
    border-radius: 100px;

    background: linear-gradient(
        168deg,
        rgba(255,255,255,0.14) 0%,
        rgba(255,255,255,0.08) 100%
    );
    border: 1px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 2px 6px rgba(0,0,0,0.15);

    pointer-events: none;
    z-index: 1;

    /* Controlled by JS — no CSS transition */
    transition: none;
    will-change: left, width;
}

/* Specular on pill */
.ju-tab-pill::before {
    content: '';
    position: absolute !important;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25) 50%, transparent);
    border-radius: 1px;
}

/* Tab labels */
.ju-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 8px;

    background: transparent !important;
    border: none;
    border-radius: 100px;

    color: rgba(255,255,255,0.30);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: inherit;

    position: relative;
    z-index: 2;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.3s ease;
}

.ju-tab-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor; stroke-width: 1.8;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.ju-tab-btn.active {
    color: rgba(255,255,255,0.93);
}

/* ── SEARCH FORM ─────────────────────────── */
.joinup-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* ── PAGE HEADER ─────────────────────────── */
.ju-page-header {
    position: relative; z-index: 1;
    display: flex;
    align-items: center; justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ju-page-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.93);
}

.ju-operator-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.ju-operator-badge:active { transform: scale(0.95); }

.ju-operator-badge-dot {
    width: 8px; height: 8px;
    background: #f7c948;
    border-radius: 2px;
    transform: rotate(45deg);
}

.ju-operator-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

/* ── GLASS FIELD — 6-layer depth ──────────── 
   The main input container with glass effect.
   Active: scale(0.98) + stronger inner highlight.
   ============================================ */
.ju-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 0;
}
/* When label sits outside glass-field (e.g. date row, chips) — add spacing */
.ju-field > .ju-field-label { margin-bottom: 8px; }

.ju-glass-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 16px;
    padding-right: 48px;

    /* Layer 1: Glass gradient */
    background: linear-gradient(
        168deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.06) 100%
    );

    /* Directional borders — bright top, fade to bottom */
    border: 1px solid transparent;
    border-top-color: rgba(255,255,255,0.18);
    border-left-color: rgba(255,255,255,0.10);
    border-right-color: rgba(255,255,255,0.06);
    border-bottom-color: rgba(255,255,255,0.04);
    border-radius: 16px;

    /* Depth shadows */
    box-shadow:
        /* Inner top light — glass edge */
        inset 0 1px 0 rgba(255,255,255,0.12),
        /* Inner left light */
        inset 1px 0 0 rgba(255,255,255,0.05),
        /* Inner bottom dark — glass thickness */
        inset 0 -1px 2px rgba(0,0,0,0.15),
        /* Outer ambient */
        0 2px 8px rgba(0,0,0,0.2),
        /* Outer subtle lift */
        0 1px 3px rgba(0,0,0,0.15);

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

/* Layer 2: Specular highlight line — top center */
.ju-glass-field::before {
    content: '';
    position: absolute !important;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25) 50%, transparent);
    pointer-events: none;
}

/* Layer 3: Inner light bloom — top center radial */
.ju-glass-field::after {
    content: '';
    position: absolute !important;
    top: 0; left: 20%; right: 20%;
    height: 40%;
    background: radial-gradient(ellipse at center top, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Press state */
.ju-glass-field:active {
    transform: scale(0.98);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 1px 0 0 rgba(255,255,255,0.08),
        inset 0 -1px 2px rgba(0,0,0,0.15),
        0 1px 4px rgba(0,0,0,0.15);
}

/* Content inside glass field */
.ju-glass-field-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

/* Label — small, muted */
.ju-field-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.01em;
}

.ju-field-hint {
    font-weight: 400;
    color: rgba(255,255,255,0.25);
    margin-left: 3px;
    font-size: 12px;
}

/* Value — main text in field */
.ju-glass-field-value {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Icon — right side */
.ju-glass-field-icon {
    position: absolute !important;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    color: rgba(255,255,255,0.30);
    pointer-events: none;
    z-index: 2;
}

.ju-glass-field-icon svg {
    width: 20px; height: 20px;
    stroke: currentColor; stroke-width: 1.6;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* Select as visible inline element inside glass field.
   NO overlay, NO opacity:0, NO position:absolute.
   iOS WKWebView opens picker for normal-flow selects. */
.ju-glass-value,
select.ju-glass-value {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    color: rgba(255,255,255,0.88);
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.3;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
select.ju-glass-value option {
    background: #1a1628;
    color: rgba(255,255,255,0.88);
}
select.ju-glass-value:disabled {
    color: rgba(255,255,255,0.40);
    opacity: 1;
}

/* Hidden native input for date fields — these use WheelDatePicker click handler */
.ju-native-input {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 5;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
}

/* ── COMPACT ROW ─────────────────────────── */
.ju-compact-row {
    display: flex;
    gap: 12px;
}
.ju-compact-row > .ju-field { flex: 1; min-width: 0; }

/* ── DATE ROW (Від — До) ─────────────────── */
.ju-date-row {
    display: flex;
    gap: 4px;
    align-items: center;
}
.ju-date-row > .ju-glass-field {
    flex: 1;
    min-width: 0;
    padding-right: 36px;
}
.ju-date-separator {
    padding: 0;
    color: rgba(255,255,255,0.25);
    font-size: 13px;
    flex-shrink: 0;
}

/* ── TOURISTS DISPLAY ─────────────────────── */
.ju-tourists-display {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
}

/* ── NIGHTS COMPACT ──────────────────────── */
.ju-nights-compact {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ju-nights-input,
input.ju-nights-input,
input.ju-nights-input[type="number"] {
    width: 36px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(255,255,255,0.88) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 5;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}
input.ju-nights-input[type="number"]::-webkit-inner-spin-button,
input.ju-nights-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.ju-nights-input::-webkit-inner-spin-button,
.ju-nights-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ju-nights-dash {
    color: rgba(255,255,255,0.30);
    font-size: 14px;
}

/* ── TOURISTS POPUP ──────────────────────── */
.ju-tourists-popup {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(168deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    border-top-color: rgba(255,255,255,0.15);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 4px 16px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: juSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes juSlideIn {
    from { opacity: 0 !important; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ju-tourists-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ju-tourists-row > span {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

/* ── EXPAND TOGGLE ───────────────────────── */
.ju-expand-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    color: #667eea;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: opacity 0.2s ease;
}
.ju-expand-toggle:active { opacity: 0.7; }
.ju-expand-toggle svg {
    color: #667eea;
    transition: transform 0.3s ease;
}
.ju-expand-toggle.open svg { transform: rotate(45deg); }

.ju-expand-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px 0;
    animation: juSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── CHIPS (legacy, kept for hotel picker star chips) ── */
.ju-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ju-chip {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.ju-chip.active {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #c4b5fd;
}
.ju-chip:active { transform: scale(0.95); }

/* ── FILTER LIST — JoinUp-style checkmark rows ─── */
.ju-filter-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ju-filter-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    padding: 4px 0 10px;
}

.ju-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ju-filter-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 2px;
    border-top: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
}
.ju-filter-item:first-child { border-top: none; }
.ju-filter-item:active { opacity: 0.7; }

/* Checkmark circle — default: gray */
.ju-filter-checkmark {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    background: transparent;
}
.ju-filter-checkmark svg {
    width: 14px; height: 14px;
    stroke: transparent;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: stroke 0.25s ease;
}

/* Checked state — green (via JS class on parent label) */
.ju-filter-item.checked .ju-filter-checkmark {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.15);
}
.ju-filter-item.checked .ju-filter-checkmark svg {
    stroke: #34d399;
}

/* Unchecked: dim text */
.ju-filter-item:not(.checked) .ju-filter-stars {
    opacity: 0.35;
}
.ju-filter-item:not(.checked) .ju-filter-label,
.ju-filter-item:not(.checked) .ju-filter-desc {
    opacity: 0.35;
}

/* Star rating display */
.ju-filter-stars {
    font-size: 20px;
    color: #f7c948;
    letter-spacing: 2px;
    line-height: 1;
}

/* Meal label + description */
.ju-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    min-width: 32px;
}
.ju-filter-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}
/* Separator between label and desc */
.ju-filter-label::after {
    content: ' \2014 ';
    color: rgba(255,255,255,0.20);
    font-weight: 400;
}

/* ── SEARCH BUTTON — Plain blue CTA ──────── */
.ju-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin-top: 8px;
    border-radius: 16px;
    border: none;
    background: #667eea;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 2px 12px rgba(102, 126, 234, 0.3),
        0 1px 4px rgba(0,0,0,0.2);
}
.ju-search-btn:active { transform: scale(0.97); }
.ju-search-btn:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

/* ── CHILD AGES ───────────────────────────── */
.joinup-child-ages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.joinup-child-ages select {
    flex: 1; min-width: 22px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88);
    font-size: var(--input-font-size);
    -webkit-appearance: none;
    appearance: none;
}

/* ── RESULTS ──────────────────────────────── */
.joinup-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 var(--screen-padding-x, 16px);
    margin-bottom: 16px;
}
.joinup-results-info { flex: 1; }
.joinup-results-title {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255,255,255,0.93);
    letter-spacing: -0.02em;
}
.joinup-results-count {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
    font-weight: 500;
}
.joinup-results-list {
    padding: 0 var(--screen-padding-x, 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── TOUR CARD v2 — Glass with SVG icons ── */
.jt-card {
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(168deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.jt-card:active { transform: scale(0.98); }

/* Header: hotel name + stars */
.jt-card-header {
    margin-bottom: 10px;
}
.jt-hotel-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.93);
    line-height: 1.3;
    margin-bottom: 3px;
}
.jt-stars {
    color: #f7c948;
    font-size: 13px;
    letter-spacing: 1px;
}

/* SVG icon base — used in tags */
.jt-ico {
    width: 14px; height: 14px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Tags row */
.jt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.jt-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
}

/* Color variants */
.jt-tag.location { color: rgba(255,255,255,0.65); }
.jt-tag.location .jt-ico { stroke: #f87171; }

.jt-tag.flight {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.12);
    color: #60a5fa;
}
.jt-tag.flight .jt-ico { stroke: #60a5fa; }

.jt-tag.nights { color: rgba(255,255,255,0.55); }
.jt-tag.nights .jt-ico { stroke: #fbbf24; }

.jt-tag.meal {
    background: rgba(16,185,129,0.06);
    border-color: rgba(16,185,129,0.10);
    color: #34d399;
}
.jt-tag.meal .jt-ico { stroke: #34d399; }

.jt-tag.room { color: rgba(255,255,255,0.50); }
.jt-tag.room .jt-ico { stroke: rgba(255,255,255,0.40); }

.jt-tag.guests { color: rgba(255,255,255,0.50); }
.jt-tag.guests .jt-ico { stroke: rgba(255,255,255,0.40); }

/* Bottom: price + availability */
.jt-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.jt-price-block { }
.jt-price {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    letter-spacing: -0.02em;
}
.jt-price-note {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

.jt-avail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.jt-avail.green {
    background: rgba(52,211,153,0.12);
    color: #34d399;
}
.jt-avail.white {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
}
.jt-avail.red {
    background: rgba(248,113,113,0.10);
    color: #f87171;
}

/* ── DETAILS v2 — Glass cards with SVG icons ── */
.jd-content {
    padding: 0 var(--screen-padding-x, 16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
}

.jd-title {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255,255,255,0.93);
    margin-bottom: 4px;
}

.jd-card {
    border-radius: 16px;
    padding: 14px 16px;
    background: linear-gradient(168deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-top-color: rgba(255,255,255,0.11);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 2px 6px rgba(0,0,0,0.15);
}

.jd-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.50);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.jd-card-ico {
    width: 18px; height: 18px;
    stroke: rgba(255,255,255,0.40);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.jd-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}
.jd-row + .jd-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}

.jd-label {
    font-size: 13px;
    color: rgba(255,255,255,0.40);
    flex-shrink: 0;
}

.jd-value {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    text-align: right;
    word-break: break-word;
}
.jd-value-sm {
    font-size: 12px;
    color: rgba(255,255,255,0.60);
    line-height: 1.4;
}

.jd-stars {
    color: #f7c948;
    letter-spacing: 1px;
}

.jd-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #34d399;
}

/* Price card accent */
.jd-card-price {
    border-color: rgba(52, 211, 153, 0.12);
    border-top-color: rgba(52, 211, 153, 0.18);
}
.jd-card-price .jd-card-ico {
    stroke: #34d399;
}
.jd-card-price .jd-card-title {
    color: #34d399;
    border-bottom-color: rgba(52, 211, 153, 0.10);
}

/* Book button inside price card */
.jd-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.jd-book-btn:active { transform: scale(0.97); }
.jd-book-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

/* ── SHAKE ANIMATION ──────────────────────── */
@keyframes juShake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-4px); }
    30%, 60%, 90% { transform: translateX(4px); }
}
.shake { animation: juShake 0.4s ease-in-out; }

/* ── FIX: Native selects inside glass fields ── */
.ju-native-select,
.ju-glass-field .ju-native-select {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important; min-height: 0 !important; max-height: 100% !important;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 5;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    background: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
}
.ju-native-input,
.ju-glass-field .ju-native-input {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 5;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    background: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
}

/* ── FIX: Country & Departure fields — less vertical padding ── */
#joinupCountryField,
#joinupDepartureField {
    min-height: 40px;
    padding: 5px 14px;
    padding-right: 40px;
}

/* ── Override base.css global select styles ── */
.ju-glass-field .ju-native-select,
.ju-glass-field select {
    height: 100% !important;
    min-height: 0 !important;
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: transparent !important;
}

/* PC dropdown: dark background for option/optgroup so text is readable */
.ju-native-select option,
.ju-native-select optgroup,
.ju-glass-field select option,
.ju-glass-field select optgroup {
    background: #1a1628;
    color: rgba(255,255,255,0.88);
    font-size: 14px;
}
.ju-native-select optgroup,
.ju-glass-field select optgroup {
    color: rgba(255,255,255,0.50);
    font-weight: 600;
}

/* ── TAB SWITCHING: flight vs no-flight ── */
.ju-flight-only { display: flex; }
.ju-no-flight-only { display: none; }

/* ── HOTEL FIELD: disabled state ─────────── */
.ju-glass-field-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── HOTEL FIELD: clear button ──────────── */
.ju-hotel-clear {
    position: absolute !important;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}
.ju-hotel-clear:active {
    background: rgba(255,255,255,0.18);
}

/* ── HOTEL ERROR NOTICE ─────────────────── */
.ju-hotel-error {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-top: -8px;
    border-radius: 12px;
    background: rgba(248,113,113,0.10);
    border: 1px solid rgba(248,113,113,0.20);
    animation: juSlideIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.ju-hotel-error.visible { display: flex; }
.ju-hotel-error-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: #f87171;
}
.ju-hotel-error-icon svg {
    width: 18px; height: 18px;
    stroke: currentColor; stroke-width: 2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.ju-hotel-error-text {
    font-size: 13px;
    color: #fca5a5;
    line-height: 1.3;
}

/* ── HOTEL PICKER — Fullscreen overlay ──── 
   Transparent background — aurora shines through.
   Sits above everything (z-index 200).
   ============================================ */
.ju-hotel-picker {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: rgba(13, 11, 26, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    animation: juPickerIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes juPickerIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header: back + search — offset below Telegram system buttons */
.ju-hotel-picker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    /* 56px for Telegram top bar + safe area */
    padding-top: calc(env(safe-area-inset-top, 0px) + 56px);
    flex-shrink: 0;
}

.ju-hotel-picker-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(168deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 6px rgba(0,0,0,0.2);
}
.ju-hotel-picker-back:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.12);
}

.ju-hotel-picker-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.ju-hotel-picker-search-icon {
    position: absolute;
    left: 14px;
    width: 18px; height: 18px;
    color: rgba(255,255,255,0.30);
    pointer-events: none;
    stroke: currentColor; stroke-width: 2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}

/* Search input — glass style */
.ju-hotel-picker-input,
input.ju-hotel-picker-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 0 !important;
    padding: 0 14px 0 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-top-color: rgba(255,255,255,0.15) !important;
    background: linear-gradient(168deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%) !important;
    color: rgba(255,255,255,0.88) !important;
    font-size: var(--input-font-size) !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 2px 6px rgba(0,0,0,0.15) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.2s ease;
}
.ju-hotel-picker-input:focus,
input.ju-hotel-picker-input:focus {
    border-color: rgba(102, 126, 234, 0.35) !important;
}
.ju-hotel-picker-input::placeholder {
    color: rgba(255,255,255,0.30);
}

/* Results count */
.ju-hotel-picker-count {
    padding: 6px 16px 2px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.30);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Scrollable list */
.ju-hotel-picker-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Individual hotel item — glass card */
.ju-hotel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(168deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-top-color: rgba(255,255,255,0.10);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 1px 4px rgba(0,0,0,0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.ju-hotel-item:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.08);
}

.ju-hotel-item.selected {
    background: linear-gradient(168deg, rgba(102,126,234,0.12) 0%, rgba(102,126,234,0.06) 100%);
    border-color: rgba(102,126,234,0.20);
    border-top-color: rgba(102,126,234,0.25);
}

/* Hotel icon in list */
.ju-hotel-item-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
}
.ju-hotel-item-icon svg {
    width: 18px; height: 18px;
    stroke: rgba(255,255,255,0.35);
    stroke-width: 1.6;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.ju-hotel-item.selected .ju-hotel-item-icon {
    background: rgba(102,126,234,0.15);
    border-color: rgba(102,126,234,0.20);
}
.ju-hotel-item.selected .ju-hotel-item-icon svg {
    stroke: #a5b4fc;
}

.ju-hotel-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ju-hotel-item-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ju-hotel-item-stars {
    font-size: 11px;
    color: #f7c948;
    letter-spacing: 1px;
}

.ju-hotel-item-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.25);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* "Any hotel" special item */
.ju-hotel-item-any {
    background: linear-gradient(168deg, rgba(102,126,234,0.08) 0%, rgba(102,126,234,0.03) 100%);
    border-color: rgba(102,126,234,0.12);
    border-top-color: rgba(102,126,234,0.18);
    margin-bottom: 4px;
}
.ju-hotel-item-any .ju-hotel-item-icon {
    background: rgba(102,126,234,0.15);
    border-color: rgba(102,126,234,0.20);
}
.ju-hotel-item-any .ju-hotel-item-icon svg {
    stroke: #a5b4fc;
}
.ju-hotel-item-any .ju-hotel-item-name {
    color: #c4b5fd;
    font-weight: 600;
}
.ju-hotel-item-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.30);
}

/* Empty / loading state */
.ju-hotel-item-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
}
.ju-hotel-item-empty-icon {
    width: 48px; height: 48px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.20);
}
.ju-hotel-item-empty-icon svg {
    width: 48px; height: 48px;
    stroke: currentColor; stroke-width: 1.2;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.ju-hotel-item-empty-text {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
}
