/* =============================================================
   StayZiro — Explore Page
   Mobile-first, clean, travel-grade UI
   ============================================================= */

/* ── Page ──────────────────────────────────────────────────── */
.explore-body {
    background: #f5f5f2;
}

/* Accent override for Activities (Bright Orange) */
.explore-type-activity {
    --c-primary: #FF6B00;
    --c-primary-deep: #E65100;
    --c-primary-dark: #BF360C;
    --c-primary-light: #FFF3E0;
    --c-primary-glow: rgba(255, 107, 0, 0.25);
}

.explore-type-activity .chip:hover,
.explore-type-activity .chip-city:hover,
.explore-type-activity .chip-sort:hover {
    border-color: rgba(255, 107, 0, 0.45);
    background: rgba(255, 107, 0, 0.05);
}

.explore-type-activity .struct-card:hover {
    border-color: rgba(255, 107, 0, 0.35);
}

.explore-type-activity .card-trust {
    color: #e65100;
}

.explore-type-activity .filter-amenity-item:has(input:checked) {
    border-color: var(--c-primary);
    background: rgba(255, 107, 0, 0.06);
    color: var(--c-primary-dark);
}

.explore-main {
    padding-bottom: 6rem;
}

/* ── Intro: tagline + search ────────────────────────────────── */
.explore-intro {
    padding-top: 94px;
}

.explore-tagline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-text-sec);
    letter-spacing: 0.01em;
}

.explore-tagline svg {
    color: var(--c-primary);
    flex-shrink: 0;
}

/* Search pill */
.explore-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 10px 10px 22px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 39, 43, 0.08);
}

.explore-search-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.explore-search-label {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7a9099;
}

.explore-search-input {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    color: var(--c-text);
    padding: 0;
    min-height: 26px;
    outline: none;
    width: 100%;
}

.explore-search-input::placeholder {
    color: #b4bec1;
}

.explore-date-field {
    flex: 0 0 140px;
}

.explore-date-field input[type="date"] {
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}

.explore-search-divider {
    width: 1px;
    height: 38px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 6px;
    flex-shrink: 0;
}

.explore-search-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.explore-search-submit:hover {
    background: var(--c-primary-dark);
}

.explore-search-submit:active {
    transform: scale(0.98);
}

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 22px 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
}

.filter-bar-sep {
    width: 1px;
    height: 22px;
    background: rgba(0, 0, 0, 0.10);
    flex-shrink: 0;
    margin: 0 2px;
}

/* Base chip */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #fff;
    color: var(--c-text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
    line-height: 1;
}

.chip:hover {
    border-color: rgba(0, 191, 207, 0.45);
    background: rgba(0, 191, 207, 0.05);
    transform: translateY(-1px);
}

.chip.is-active {
    background: #0d2326;
    color: #fff;
    border-color: #0d2326;
    box-shadow: 0 2px 10px rgba(13, 35, 38, 0.18);
}

.chip.is-active:hover {
    background: #1a3338;
    border-color: #1a3338;
}

/* City select — styled as chip */
.chip-city-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.chip-city {
    -webkit-appearance: none;
    appearance: none;
    height: 38px;
    padding: 0 32px 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #fff;
    color: var(--c-text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    outline: none;
    min-width: 130px;
    max-width: 180px;
    transition: border-color 0.18s, background 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-city:hover,
.chip-city:focus {
    border-color: rgba(0, 191, 207, 0.45);
}

.chip-city.is-active {
    background: #0d2326;
    color: #fff;
    border-color: #0d2326;
}

.chip-city-chevron {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: #9aabae;
    transition: color 0.18s;
}

.chip-city.is-active~.chip-city-chevron {
    color: rgba(255, 255, 255, 0.7);
}

/* End group: Filtri button + sort */
.chip-group-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* "Filtri" button with badge */
.chip-filters-btn {
    position: relative;
}

.chip-filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #f5f5f2;
    line-height: 1;
}

/* Sort select */
.chip-sort {
    -webkit-appearance: none;
    appearance: none;
    height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #fff;
    color: var(--c-text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    outline: none;
    min-width: 140px;
    transition: border-color 0.18s;
}

.chip-sort:hover,
.chip-sort:focus {
    border-color: rgba(0, 191, 207, 0.45);
}

/* ── Results header ─────────────────────────────────────────── */
.results-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-primary);
    margin-bottom: 6px;
}

.results-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-text);
    line-height: 1.1;
    margin-bottom: 6px;
}

.results-subtitle {
    font-size: 0.88rem;
    color: var(--c-text-sec);
    margin-bottom: 28px;
}

/* ── Results grid ───────────────────────────────────────────── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* ── Skeletons ──────────────────────────────────────────────── */
@keyframes shimmer {
    from {
        background-position: -500px 0;
    }

    to {
        background-position: 500px 0;
    }
}

.skeleton-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.skeleton-img {
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, #ececea 25%, #e3e3e0 50%, #ececea 75%);
    background-size: 500px 100%;
    animation: shimmer 1.3s ease infinite;
}

.skeleton-body {
    padding: 14px 16px 16px;
}

.skel {
    border-radius: 5px;
    background: linear-gradient(90deg, #ececea 25%, #e3e3e0 50%, #ececea 75%);
    background-size: 500px 100%;
    animation: shimmer 1.3s ease infinite;
    margin-bottom: 8px;
}

.skel:last-child {
    margin-bottom: 0;
}

.skel-xs {
    height: 9px;
    width: 40%;
}

.skel-sm {
    height: 14px;
    width: 70%;
    margin-bottom: 12px;
}

.skel-md {
    height: 10px;
    width: 88%;
}

.skel-lg {
    height: 10px;
    width: 62%;
}

/* ── Cards ──────────────────────────────────────────────────── */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.struct-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s;
}

/* Stagger */
.struct-card[data-index="0"] {
    animation-delay: 0.04s;
}

.struct-card[data-index="1"] {
    animation-delay: 0.09s;
}

.struct-card[data-index="2"] {
    animation-delay: 0.14s;
}

.struct-card[data-index="3"] {
    animation-delay: 0.19s;
}

.struct-card[data-index="4"] {
    animation-delay: 0.24s;
}

.struct-card[data-index="5"] {
    animation-delay: 0.29s;
}

.struct-card[data-index="6"] {
    animation-delay: 0.33s;
}

.struct-card[data-index="7"] {
    animation-delay: 0.37s;
}

.struct-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 191, 207, 0.35);
}

/* Image wrapper */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #e6e5e2;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.struct-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Badge — small pill, top-left */
.card-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #1e3336;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    /* No box-shadow — keeps it light */
}

/* Heart — circle, top-right */
.wishlist-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    color: #7a9099;
    padding: 0;
    line-height: 1;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wishlist-toggle:hover {
    background: #fff;
    color: #c8384f;
    transform: scale(1.12);
}

.wishlist-toggle.is-active {
    background: #fff0f2;
    color: #c8384f;
}

/* Card body */
.card-body {
    padding: 14px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Meta: city + trust */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.card-city {
    font-size: 0.8rem;
    font-weight: 700;
    color: #526469;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.card-trust {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d8a8a;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Title */
.card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--c-text);
    line-height: 1.25;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Description */
.card-desc {
    font-size: 0.86rem;
    color: var(--c-text-sec);
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 13px;
}

/* Footer: fascia pill + CTA */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f0eeec;
    flex-wrap: nowrap;
}

/* Fascia pill */
.price-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.price-euro {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--c-primary-dark);
    letter-spacing: 0.02em;
}

.price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8a9fa3;
}

/* CTA */
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.card-cta:hover {
    background: var(--c-primary-dark);
    transform: scale(1.03);
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-results {
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.empty-results h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--c-text);
}

.empty-results p {
    color: var(--c-text-sec);
    font-size: 0.9rem;
}

/* ── Filter sheet (bottom modal) ────────────────────────────── */
.filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

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

.filter-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 22, 0.50);
    cursor: pointer;
}

.filter-sheet-panel {
    position: relative;
    width: min(680px, calc(100% - 20px));
    margin: 0 10px 10px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.filter-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f0eeec;
    flex-shrink: 0;
}

.filter-sheet-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--c-text);
}

.filter-sheet-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e8e8e5;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #888;
    transition: background 0.15s;
    line-height: 1;
}

.filter-sheet-close:hover {
    background: #f5f5f2;
}

.filter-sheet-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex-grow: 1;
}

.filter-sheet-section {
    margin-bottom: 26px;
}

.filter-sheet-section:last-child {
    margin-bottom: 0;
}

.filter-sheet-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #98a8ac;
    margin-bottom: 12px;
}

.filter-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 7px;
}

.filter-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #eeece9;
    background: #fafaf8;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-text);
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.filter-amenity-item:has(input:checked) {
    border-color: var(--c-primary);
    background: rgba(0, 191, 207, 0.06);
    color: var(--c-primary-dark);
}

.filter-amenity-item input {
    accent-color: var(--c-primary);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

.filter-sheet-footer {
    padding: 14px 22px;
    border-top: 1px solid #f0eeec;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-sheet-apply {
    flex: 1;
    padding: 13px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sheet-apply:hover {
    background: var(--c-primary-dark);
}

.btn-sheet-reset {
    display: inline-flex;
    align-items: center;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: transparent;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sheet-reset:hover {
    border-color: #bbb;
    color: #555;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
    .explore-intro {
        padding-top: 80px;
    }

    .chip-group-end {
        margin-left: 0;
    }

    .filter-bar {
        row-gap: 10px;
    }
}

@media (max-width: 600px) {
    .explore-intro {
        padding-top: 72px;
    }

    /* Search goes full-column on mobile */
    .explore-search-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 14px 16px;
        gap: 10px;
    }

    .explore-search-divider {
        width: 100%;
        height: 1px;
        margin: 2px 0;
    }

    .explore-search-input[type="date"] {
        min-width: 140px;
        font-size: 0.9rem;
        -webkit-appearance: none;
        appearance: none;
    }

    .explore-date-field {
        flex: 1;
    }

    .explore-search-submit {
        justify-content: center;
        padding: 13px;
        margin-top: 5px;
    }

    /* Filter bar scrolls horizontally */
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 7px;
        padding-bottom: 16px;
        margin-bottom: 20px;
        scrollbar-width: none;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-bar-sep {
        display: none;
    }

    .chip-group-end {
        flex-shrink: 0;
    }

    /* Grid single column */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    /* Cards a bit smaller radius */
    .struct-card {
        border-radius: 15px;
        animation-delay: 0.05s !important;
    }

    .results-title {
        font-size: 1.4rem;
    }

    .results-subtitle {
        margin-bottom: 20px;
    }

    /* Sheet full-width, rounded top */
    .filter-sheet-panel {
        width: 100%;
        margin: 0;
        border-radius: 22px 22px 0 0;
        max-height: 90vh;
    }

    .filter-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .card-body {
        padding: 12px 13px 14px;
    }

    .card-title {
        font-size: 1rem;
    }
}
