/* <!-- 地点选择器样式 --> */

.location-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1100;
}

.location-picker-overlay.show {
    display: block;
}

.location-picker-popup {
    position: absolute;
    width: 480px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #E0E0E0;
    box-shadow: 0px 8px 16px 0px rgba(27, 27, 27, 0.05), 0px 1px 3px 0px rgba(27, 27, 27, 0.05);
    z-index: 1101;
    padding: 16px;
    gap: 16px;
}

.location-picker-themes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.location-picker-theme-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.location-picker-theme-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #7BA3A8;
}

.location-picker-theme-item:hover {
    opacity: 0.85;
}

.location-picker-theme-item.selected {
    outline: 2px solid #E60023;
    outline-offset: -2px;
}

.location-picker-theme-text {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 22px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


/* <!-- 时间选择器样式 --> */

.time-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1100;
}

.time-picker-overlay.show {
    display: block;
}

.time-picker-popup {
    position: absolute;
    width: 480px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1101;
}

.time-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.time-picker-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-picker-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 22px;
}

.time-picker-time-display {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 22px;
}

.time-picker-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-picker-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-picker-tag.active {
    background: #E60023;
    color: #fff;
    border: 1px solid #E60023;
}

.time-picker-tag:not(.active) {
    background: #F1F7F9;
    border: 1px solid #E60023;
    color: #E60023;
}

.time-picker-slider-container {
    position: relative;
    padding: 12px 24px 0;
    height: 56px;
}

.time-picker-slider-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: #E9EAEB;
    border-radius: 4px;
    margin-top: 8px;
}

.time-picker-slider-progress {
    position: absolute;
    height: 4px;
    background: #E60023;
    border-radius: 4px;
    top: 0;
}

.time-picker-slider-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid #E60023;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0px 2px 4px -2px rgba(10, 13, 18, 0.06), 0px 4px 8px -2px rgba(10, 13, 18, 0.1);
    z-index: 2;
}

.time-picker-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.time-picker-time-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.time-picker-time-label {
    font-size: 10px;
    font-weight: 400;
    color: #666;
    line-height: 18px;
}

.time-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
}

.time-picker-btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}

.time-picker-btn-cancel {
    background: #fff;
    border: 1px solid #E0E0E0;
    color: #666;
}

.time-picker-btn-cancel:hover {
    border-color: #999;
}

.time-picker-btn-confirm {
    background: #E60023;
    border: 1px solid #E60023;
    color: #fff;
}

.time-picker-btn-confirm:hover {
    background: #c2001e;
}


/* <!-- 停留时长选择器样式 --> */

.duration-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1100;
}

.duration-picker-overlay.show {
    display: block;
}

.duration-picker-popup {
    position: absolute;
    width: 480px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1101;
    padding: 24px;
}

.duration-picker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.duration-picker-title {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: 24px;
}

.duration-picker-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 24px;
}

.duration-picker-slider-container {
    position: relative;
    padding: 0 8px;
    margin-bottom: 32px;
}

.duration-picker-slider-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: #E9EAEB;
    border-radius: 4px;
}

.duration-picker-slider-progress {
    position: absolute;
    height: 4px;
    background: #E60023;
    border-radius: 4px;
    top: 0;
}

.duration-picker-slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #E60023;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0px 2px 4px -2px rgba(10, 13, 18, 0.06), 0px 4px 8px -2px rgba(10, 13, 18, 0.1);
    z-index: 2;
}

.duration-picker-slider-handle::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(230, 0, 35, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.duration-picker-slider-handle:hover::after {
    opacity: 1;
}

.duration-picker-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 4px;
}

.duration-picker-label {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 22px;
}

.duration-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.duration-picker-btn {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-picker-btn-cancel {
    background: #fff;
    border: 1px solid #E0E0E0;
    color: #666;
}

.duration-picker-btn-cancel:hover {
    border-color: #999;
}

.duration-picker-btn-confirm {
    background: #E60023;
    border: 1px solid #E60023;
    color: #fff;
}

.duration-picker-btn-confirm:hover {
    background: #c2001e;
}

/* <!-- 预算input样式 --> */
/* 组件容器样式 */
.budget-input-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
    cursor: default;
}

/* 标签样式 */
.budget-label {
    font-size: 12px;
    color: #999;
    display: block;
    position: absolute;
    top: 4px;
    left: 12px;
    pointer-events: none;
    /* 避免遮挡input点击 */
}

/* 输入框样式 */
.budget-input {
    font-size: 14px;
    color: #333;
    border: none;
    outline: none;
    background: transparent;
    margin-top: 12px;
    /* 给标签留空间 */
    flex: 1;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 箭头容器（默认隐藏） */
.budget-arrows {
    display: none;
    flex-direction: column;
    margin-left: 8px;
    position: absolute;
    top: 0;
    right: 1px;
    height: 100%;
    border-left: 1px solid #ddd;
}

.budget-line {
    width: 100%;
    border-bottom: 1px solid #ddd;
    height: 0.1px;
}

/* hover时显示箭头 */
.budget-input-group:hover .budget-arrows {
    display: flex !important;
}

/* 箭头按钮样式 */
.arrow-btn {
    border: none;
    background: #fff;
    width: 20px;
    height: 50%;
    padding: 0;
    font-size: 10px;
    line-height: 10px;
    cursor: pointer;
    border-radius: 2px;
    color: #999;
}

.arrow-btn:hover {
    background: #f5f5f5;
}