/**
 * Guest onboarding quick-search bottom sheet.
 * Slides up from the bottom over the index page; mobile-first, centered on wider screens.
 */

.dk-quick-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 28, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 11000;
}

.dk-quick-overlay.dk-quick-open {
    opacity: 1;
}

.dk-quick-overlay[hidden] {
    display: none;
}

.dk-quick-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-white, #fff);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 50px rgba(31, 16, 41, 0.22);
    z-index: 11001;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.dk-quick-sheet.dk-quick-open {
    transform: translateX(-50%) translateY(0);
}

.dk-quick-sheet[hidden] {
    display: none;
}

.dk-quick-sheet-inner {
    padding: 10px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.dk-quick-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(31, 16, 41, 0.14);
    margin: 4px auto 14px;
    cursor: pointer;
}

.dk-quick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dk-quick-title {
    font-family: var(--font-family-title, "Poppins", sans-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--title, #232954);
    margin: 0;
}

.dk-quick-close {
    border: none;
    background: var(--rgba-primary-5, rgba(254, 61, 150, 0.08));
    color: var(--primary, #fe3d96);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.dk-quick-close:hover {
    background: var(--rgba-primary-1, rgba(254, 61, 150, 0.14));
}

.dk-quick-error {
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 14px;
}

.dk-quick-error[hidden] {
    display: none;
}

.dk-quick-field {
    margin-bottom: 20px;
}

.dk-quick-label {
    display: block;
    font-family: var(--font-family-title, "Poppins", sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--title, #232954);
    margin-bottom: 8px;
}

/* Select fields */
.dk-quick-select-wrap {
    position: relative;
}

.dk-quick-select {
    width: 100%;
    height: 54px;
    padding: 0 44px 0 18px;
    border: 1.5px solid rgba(31, 16, 41, 0.1);
    border-radius: 14px;
    background: var(--bg-light, #f7f5f9);
    color: var(--title, #232954);
    font-family: "Nunito Sans", "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dk-quick-select:focus {
    outline: none;
    border-color: var(--primary, #fe3d96);
    box-shadow: 0 0 0 4px var(--rgba-primary-5, rgba(254, 61, 150, 0.08));
}

.dk-quick-select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary, #fe3d96);
    font-size: 18px;
    pointer-events: none;
}

/* Age slider */
.dk-quick-age-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dk-quick-age-value {
    font-family: var(--font-family-title, "Poppins", sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #fe3d96);
}

.dk-quick-age-value .dk-quick-age-min::after {
    content: "\00b7";
    margin: 0 4px;
    color: rgba(31, 16, 41, 0.3);
}

.dk-quick-slider.noUi-target.noUi-horizontal {
    height: 4px;
    margin: 8px 14px 8px 4px;
    border: none;
    box-shadow: none;
    background: var(--rgba-primary-5, rgba(254, 61, 150, 0.1));
    border-radius: var(--border-radius, 4px);
}

.dk-quick-slider .noUi-connect {
    background: var(--primary, #fe3d96);
}

.dk-quick-slider .noUi-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--primary, #fe3d96);
    background-color: var(--bg-white, #fff);
    box-shadow: 0 2px 6px rgba(254, 61, 150, 0.35);
    top: -8px;
    cursor: pointer;
}

.dk-quick-slider .noUi-handle::before,
.dk-quick-slider .noUi-handle::after {
    display: none;
    content: none;
}

html:not([dir=rtl]) .dk-quick-slider .noUi-handle {
    right: -9px;
    left: auto;
}

.dk-quick-age-fallback[hidden] {
    display: none;
}

.dk-quick-age-fallback {
    margin-top: 8px;
}

.dk-quick-actions {
    margin-top: 6px;
}

.dk-quick-submit.dk-quick-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Lock background scroll while the sheet is open */
body.dk-quick-search-open {
    overflow: hidden;
}
