/* Scoped to Explore; does not change the homepage or shared navigation. */
.fe-explore {
    --fe-yellow: #ffbf00;
    --fe-ink: #171717;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 110px;
    color: var(--fe-ink);
}

    .fe-explore *, .fe-explore *::before, .fe-explore *::after {
        box-sizing: border-box;
    }

    .fe-explore [hidden] {
        display: none !important;
    }

    .fe-explore a {
        color: inherit;
        text-decoration: none;
    }

    .fe-explore button, .fe-explore input {
        font: inherit;
    }

    .fe-explore button, .fe-explore a {
        -webkit-tap-highlight-color: transparent;
    }

    .fe-explore button {
        cursor: pointer;
    }

    .fe-explore :focus-visible {
        outline: 3px solid #171717;
        outline-offset: 3px;
    }

    .fe-explore .fe-sr {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

.fe-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.fe-back, .fe-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 21px;
}

.fe-search-box {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    border: 1px solid #dedede;
    border-radius: 17px;
    background: white;
    box-shadow: 0 3px 12px #00000008;
}

    .fe-search-box input {
        flex: 1;
        min-width: 0;
        width: 100%;
        border: 0;
        background: transparent;
        padding: 15px 4px;
        font-size: 14px;
        color: #111;
    }

.fe-search-submit {
    width: 46px;
    min-width: 46px;
    height: 46px;
    background: transparent;
    border: 0;
    color: #555;
}

.fe-filter-open {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 44px;
    border-left: 1px solid #e8e8e8;
    font-size: 18px;
}

.fe-filter-count {
    position: absolute;
    right: 3px;
    top: 0;
    border-radius: 20px;
    background: var(--fe-yellow);
    color: #111;
    font-size: 10px;
    padding: 1px 5px;
    font-weight: 800;
}

.fe-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

    .fe-section-heading h1, .fe-section-heading h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.35;
    }

    .fe-section-heading p {
        margin: 5px 0 0;
        color: #666;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

.fe-clear {
    background: none;
    border: 0;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.fe-recents {
    margin-bottom: 25px;
}

.fe-recent-list, .fe-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fe-recent-chip {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fff;
}

    .fe-recent-chip button {
        border: 0;
        background: transparent;
        min-height: 36px;
        color: #555;
        font-size: 12px;
    }

        .fe-recent-chip button:first-child {
            padding: 7px 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .fe-recent-chip button:last-child {
            min-width: 36px;
        }

.fe-applied {
    margin-bottom: 15px;
}

    .fe-applied span {
        background: #fff6d9;
        border: 1px solid #ffe8a0;
        border-radius: 8px;
        padding: 5px 9px;
        font-size: 11px;
        overflow-wrap: anywhere;
    }

.fe-results {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.fe-card {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px #00000008;
}

.fe-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    flex: 0 0 110px;
    align-self: stretch;
    min-height: 116px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
    color: #888 !important;
    font-size: 25px;
}

    .fe-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.fe-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 5px;
}

.fe-card h2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.fe-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #777;
    margin: 0;
}

    .fe-location i {
        color: var(--fe-yellow);
        flex-shrink: 0;
    }

    .fe-location span, .fe-service {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.fe-service {
    margin: 0;
    color: #555;
    font-size: 11px;
}

.fe-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.fe-price {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
}

    .fe-price span {
        font-size: 10px;
        color: #666;
        font-weight: 400;
        white-space: nowrap;
    }

.fe-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    background: var(--fe-yellow);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 3px 9px #ffbf0026;
}

    .fe-book:hover, .fe-apply:hover {
        background: #efb100;
    }

.fe-empty {
    padding: 36px 20px;
    text-align: center;
    background: #fafafa;
    border-radius: 18px;
}

    .fe-empty > i {
        font-size: 28px;
    }

    .fe-empty h2 {
        margin: 15px 0 8px;
        font-size: 18px;
        font-weight: 800;
    }

    .fe-empty p {
        font-size: 13px;
        color: #666;
        margin-bottom: 18px;
    }

.fe-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 26px;
    font-size: 12px;
}

    .fe-pagination a {
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 10px;
    }
/* The form remains usable inline when JavaScript is unavailable. */
.fe-filter-panel {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    margin-bottom: 24px;
}

.fe-filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f1f1;
}

    .fe-filter-header h2 {
        flex: 1;
        font-size: 18px;
        font-weight: 800;
        margin: 0;
    }

.fe-sheet-handle {
    display: none;
}

.fe-filter-content {
    padding: 4px 24px 16px;
}

    .fe-filter-content fieldset {
        border: 0;
        padding: 0;
        margin: 22px 0 0;
        min-width: 0;
    }

    .fe-filter-content legend {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        margin-bottom: 12px;
        font-size: 14px;
        font-weight: 800;
    }

        .fe-filter-content legend i {
            color: var(--fe-yellow);
        }

.fe-service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 165px;
    overflow-y: auto;
    padding: 4px;
}

.fe-chip {
    position: relative;
    cursor: pointer;
    max-width: 100%;
}

    .fe-chip input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

    .fe-chip span {
        display: block;
        padding: 9px 12px;
        border: 1px solid #e2e2e2;
        border-radius: 99px;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .fe-chip input:checked + span {
        background: #fff5ce;
        border-color: var(--fe-yellow);
        color: #111;
        font-weight: 700;
    }

    .fe-chip input:focus-visible + span {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

.fe-hint {
    color: #777;
    font-size: 11px;
    margin: 0 0 12px;
}

.fe-dual-range {
    height: 32px;
    position: relative;
    margin: 8px 10px 12px;
}

    .fe-dual-range::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 13px;
        height: 6px;
        border-radius: 99px;
        background: linear-gradient(to right,#e6e6e6 var(--low),var(--fe-yellow) var(--low),var(--fe-yellow) var(--high),#e6e6e6 var(--high));
    }

    .fe-dual-range input {
        position: absolute;
        width: 100%;
        height: 32px;
        margin: 0;
        padding: 0;
        top: 0;
        left: 0;
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        pointer-events: none;
    }

        .fe-dual-range input::-webkit-slider-thumb {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--fe-yellow);
            border: 2px solid #fff;
            box-shadow: 0 1px 5px #0002;
            pointer-events: auto;
            cursor: grab;
        }

        .fe-dual-range input::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--fe-yellow);
            border: 2px solid white;
            pointer-events: auto;
            cursor: grab;
        }

.fe-price-fields {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

    .fe-price-fields label {
        font-size: 11px;
        color: #666;
        max-width: 46%;
    }

    .fe-price-fields input {
        display: block;
        width: 120px;
        max-width: 100%;
        padding: 8px 10px;
        margin-top: 5px;
        border: 1px solid #ddd;
        border-radius: 9px;
        color: #111;
        font-size: 13px;
    }

.fe-duration-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    margin-bottom: 8px;
}

    .fe-duration-label output {
        font-weight: 700;
        white-space: nowrap;
    }

.fe-duration-range {
    width: 100%;
    accent-color: var(--fe-yellow);
    min-height: 30px;
    cursor: pointer;
}

.fe-scale {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #777;
}

.fe-sort-options {
    display: grid;
    gap: 4px;
}

    .fe-sort-options label {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 32px;
        font-size: 12px;
        cursor: pointer;
    }

    .fe-sort-options input {
        accent-color: var(--fe-yellow);
    }

.fe-filter-footer {
    padding: 16px 24px max(20px,env(safe-area-inset-bottom));
    border-top: 1px solid #f0f0f0;
    background: white;
    border-radius: 0 0 22px 22px;
}

.fe-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    background: var(--fe-yellow);
    color: #111;
    font-size: 13px;
    font-weight: 800;
    min-height: 46px;
}

.fe-filter-footer .fe-apply {
    width: 100%;
}

.fe-dialog {
    color: #171717;
    width: min(540px,calc(100% - 32px));
    max-height: 90vh;
    max-height: 90dvh;
    padding: 0;
    border: 0;
    border-radius: 24px;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 20px 80px #0003;
    background: #fff;
}

    .fe-dialog::backdrop {
        background: rgb(0 0 0 / 48%);
    }

    .fe-dialog .fe-filter-panel {
        display: flex;
        flex-direction: column;
        max-height: 90vh;
        max-height: 90dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .fe-dialog .fe-filter-header, .fe-dialog .fe-filter-footer {
        flex-shrink: 0;
    }

    .fe-dialog .fe-filter-content {
        overflow-y: auto;
        overscroll-behavior: contain;
        min-height: 0;
    }

@media(max-width:900px) {
    .fe-results {
        grid-template-columns: minmax(0,1fr);
    }
}

@media(max-width:600px) {
    .fe-explore {
        padding: 14px 16px calc(100px + env(safe-area-inset-bottom));
    }

    .fe-search-header {
        gap: 4px;
        margin-bottom: 20px;
    }

    .fe-back {
        width: 30px;
        min-width: 30px;
    }

    .fe-search-box {
        border-radius: 14px;
    }

        .fe-search-box input {
            font-size: 16px;
            padding-block: 12px;
        }

            .fe-search-box input::placeholder {
                font-size: 12px;
            }

    .fe-search-submit {
        width: 36px;
        min-width: 36px;
    }

    .fe-filter-open {
        min-width: 44px;
    }

    .fe-section-heading h1, .fe-section-heading h2 {
        font-size: 16px;
    }

    .fe-card {
        gap: 11px;
        padding: 11px;
        border-radius: 15px;
    }

    .fe-photo {
        width: 82px;
        flex-basis: 82px;
        min-height: 110px;
    }

    .fe-card h2 {
        font-size: 13px;
    }

    .fe-location {
        font-size: 10px;
    }

    .fe-service {
        font-size: 10px;
    }

    .fe-card-bottom {
        gap: 5px;
    }

    .fe-price {
        font-size: 11px;
    }

        .fe-price span {
            display: block;
            font-size: 10px;
        }

    .fe-book {
        padding: 7px 11px;
        min-height: 40px;
        font-size: 10px;
    }

    .fe-dialog {
        width: 100%;
        max-width: 100%;
        margin: auto 0 0;
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 28px 28px 0 0;
    }

    .fe-sheet-handle {
        display: block;
        width: 42px;
        height: 4px;
        background: #111;
        border-radius: 99px;
        margin: 11px auto 0;
        flex-shrink: 0;
    }

    .fe-filter-header {
        padding: 8px 18px 12px;
    }

        .fe-filter-header h2 {
            text-align: center;
        }

    .fe-filter-content {
        padding-inline: 22px;
    }

    .fe-filter-footer {
        border-radius: 0;
    }
}

@media(prefers-reduced-motion:no-preference) {
    .fe-book, .fe-apply {
        transition: background .15s,box-shadow .15s;
    }
}
