/* ============================================
   ДЕСКТОПНАЯ ВЕРСИЯ
   ============================================ */
.rtcl-trip-filter-desktop {
    display: block;
    max-width: 1100px;
    margin: 20px auto;
    padding: 24px 30px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.rtcl-trip-desktop-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.rtcl-trip-desktop-field {
    flex: 1;
    min-width: 140px;
}

.rtcl-trip-desktop-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.rtcl-trip-desktop-label i {
    color: #1a8293;
    font-size: 14px;
}

.rtcl-trip-desktop-place,
.rtcl-trip-desktop-date {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 2px solid #e8ecf0;
    border-radius: 10px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rtcl-trip-desktop-place:hover,
.rtcl-trip-desktop-date:hover {
    border-color: #c5d0d9;
    background: #fff;
}

.rtcl-trip-desktop-place:focus,
.rtcl-trip-desktop-date:focus {
    border-color: #1a8293;
    box-shadow: 0 0 0 4px rgba(26, 130, 147, 0.08);
    outline: none;
}

.rtcl-trip-desktop-place i,
.rtcl-trip-desktop-date i {
    color: #a0b3c4;
    font-size: 12px;
}

.rtcl-trip-desktop-value {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rtcl-trip-desktop-swap {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7f9;
    border: 2px solid #e8ecf0;
    border-radius: 50%;
    color: #1a8293;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 0px;
}

.rtcl-trip-desktop-swap:hover {
    background: #1a8293;
    border-color: #1a8293;
    color: #fff;
    transform: rotate(180deg);
}

.rtcl-trip-desktop-swap i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.rtcl-trip-desktop-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 32px;
    background: #1a8293;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.rtcl-trip-desktop-submit:hover {
    background: #0f6a7a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 130, 147, 0.3);
}

.rtcl-trip-desktop-submit i {
    font-size: 16px;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ (как на скриншоте)
   ============================================ */
.rtcl-trip-filter {
    display: none;
    max-width: 500px;
    margin: 16px auto;
    padding: 20px 24px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf0f6;
    position: relative;
}

/* ===== ROW ===== */
.rtcl-trip-row {
    position: relative;
}

.rtcl-trip-row:first-child::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: #e0e5ef;
}

/* ===== FIELD ===== */
.rtcl-trip-field {
    padding: 12px 0 12px 34px;
    position: relative;
}

.rtcl-trip-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #7a7f8a;
    margin-bottom: 4px;
}

.rtcl-trip-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a8293;
    position: absolute;
    left: 0;
    top: 16px;
    box-shadow: 0 0 0 4px #fff;
}

.rtcl-trip-flag {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #1a8293;
    border-radius: 2px 2px 2px 6px;
    position: absolute;
    left: -2px;
    top: 16px;
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px #fff;
}

.rtcl-trip-flag::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rtcl-trip-field-value {
    display: block;
    width: 100%;
    padding: 4px 0;
    background: transparent;
    border: none;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rtcl-trip-field-value:hover {
    color: #1a8293;
}

.rtcl-trip-field-value:focus {
    outline: none;
}

.rtcl-trip-field-value span {
    display: block;
}

/* ===== SWAP BUTTON ===== */
.rtcl-trip-swap-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e8ecf0;
    background: #fff;
    color: #1a8293;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

.rtcl-trip-swap-btn:hover {
    background: #1a8293;
    color: #fff;
    border-color: #1a8293;
    transform: translateY(-50%) rotate(180deg);
}

.rtcl-trip-swap-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== ACTIONS ROW ===== */
.rtcl-trip-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf0f6;
}

.rtcl-trip-date-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e0e5ef;
    border-radius: 10px;
    background: #fff;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rtcl-trip-date-btn:hover {
    border-color: #1a8293;
    background: #f8fafc;
}

.rtcl-trip-date-btn svg {
    flex-shrink: 0;
    color: #1a8293;
}

.rtcl-trip-submit-btn {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: #1a8293;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rtcl-trip-submit-btn:hover {
    background: #0f6a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 130, 147, 0.3);
}

.rtcl-trip-submit-btn svg {
    flex-shrink: 0;
}

/* ===== HIDDEN DATE INPUT ===== */
.rtcl-trip-native-date {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.rtcl-trip-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.rtcl-trip-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 29, .45);
}

.rtcl-trip-modal-box {
    width: min(430px, calc(100% - 28px));
    max-height: 76vh;
    margin: 10vh auto 0;
    padding: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, .22);
}

.rtcl-trip-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.rtcl-trip-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #090d1d;
}

.rtcl-trip-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f5f9;
    color: #101426;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.rtcl-trip-modal-search {
    height: 46px;
    margin-bottom: 12px;
    padding: 0 14px;
    border: 1px solid #e0e5ef;
    border-radius: 10px;
    font-size: 16px;
}

.rtcl-trip-city-list {
    overflow-y: auto;
    display: grid;
    gap: 6px;
}

.rtcl-trip-city {
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #101426;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 650;
}

.rtcl-trip-city:hover,
.rtcl-trip-city.is-active {
    background: #eef4ff;
    color: #075dff;
}

/* ============================================
   АДАПТИВ
   ============================================ */

/* Десктоп */
@media (min-width: 769px) {
    .rtcl-trip-filter-desktop {
        display: block;
    }
    .rtcl-trip-filter {
        display: none !important;
    }
}

/* Планшет */
@media (min-width: 769px) and (max-width: 1024px) {
    .rtcl-trip-desktop-row {
        flex-wrap: wrap;
    }
    
    .rtcl-trip-desktop-field {
        min-width: 140px;
        flex: 1 1 30%;
    }
    
    .rtcl-trip-desktop-submit {
        flex: 1 1 100%;
        margin-top: 8px;
    }
}

/* Мобилка */
@media (max-width: 768px) {
    .rtcl-trip-filter-desktop {
        display: none !important;
    }
    .rtcl-trip-filter {
        display: block;
    }

    .rtcl-trip-filter {
        padding: 16px 18px 18px;
        border-radius: 14px;
        margin: 12px auto;
    }

    .rtcl-trip-field {
        padding: 8px 0 8px 30px;
    }

    .rtcl-trip-dot {
        width: 8px;
        height: 8px;
        top: 12px;
        box-shadow: 0 0 0 3px #fff;
    }

    .rtcl-trip-flag {
        width: 12px;
        height: 12px;
        top: 12px;
        left: -1px;
        box-shadow: 0 0 0 3px #fff;
    }

    .rtcl-trip-flag::after {
        width: 4px;
        height: 4px;
    }

    .rtcl-trip-field-value {
        font-size: 22px;
    }

    .rtcl-trip-swap-btn {
        width: 38px;
        height: 38px;
        right: 4px;
    }

    .rtcl-trip-swap-btn svg {
        width: 16px;
        height: 16px;
    }

    .rtcl-trip-actions-row {
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
    }

    .rtcl-trip-date-btn {
        height: 44px;
        font-size: 13px;
        padding: 0 12px;
    }

    .rtcl-trip-submit-btn {
        height: 44px;
        font-size: 13px;
        padding: 0 16px;
    }

    .rtcl-trip-date-btn svg,
    .rtcl-trip-submit-btn svg {
        width: 16px;
        height: 16px;
    }

    .rtcl-trip-row:first-child::after {
        left: 6px;
        top: 40px;
    }
}

/* Маленькие мобилки */
@media (max-width: 420px) {
    .rtcl-trip-filter {
        padding: 12px 14px 14px;
        border-radius: 12px;
    }

    .rtcl-trip-field {
        padding: 6px 0 6px 26px;
    }

    .rtcl-trip-dot {
        width: 7px;
        height: 7px;
        top: 10px;
        box-shadow: 0 0 0 2px #fff;
    }

    .rtcl-trip-flag {
        width: 10px;
        height: 10px;
        top: 10px;
        left: 0;
        box-shadow: 0 0 0 2px #fff;
    }

    .rtcl-trip-flag::after {
        width: 3px;
        height: 3px;
    }

    .rtcl-trip-field-value {
        font-size: 18px;
    }

    .rtcl-trip-field-label {
        font-size: 11px;
    }

    .rtcl-trip-swap-btn {
        width: 32px;
        height: 32px;
        right: 2px;
    }

    .rtcl-trip-swap-btn svg {
        width: 14px;
        height: 14px;
    }

    .rtcl-trip-actions-row {
        flex-direction: column;
        gap: 8px;
    }

    .rtcl-trip-date-btn,
    .rtcl-trip-submit-btn {
        height: 40px;
        font-size: 13px;
        width: 100%;
    }

    .rtcl-trip-row:first-child::after {
        left: 5px;
        top: 34px;
    }
}