/* ZungoStay discovery: compact search, photo-led cards and clear prices. */
.explore-tools { padding-top: 24px; }
.explore-search {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
    align-items: center;
    max-width: 680px;
    margin-inline: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: white;
    box-shadow: 0 5px 18px #203b3510;
}
.explore-field { display: flex; align-items: center; min-width: 0; padding: 0 16px; gap: 10px; }
.explore-field > div { min-width: 0; width: 100%; }
.explore-field > .icon { color: var(--orange); width: 19px; }
.explore-field label { display: block; font-size: .73rem; font-weight: 750; color: var(--ink); }
.explore-field input, .explore-field select {
    display: block; width: 100%; min-width: 0; min-height: 30px;
    padding: 2px 0; border: 0; border-radius: 4px; background: transparent; color: var(--text);
}
.explore-field input::placeholder { color: var(--muted); opacity: 1; }
.explore-field :is(input, select):focus-visible { outline-offset: 1px; }
.explore-type { border-inline-start: 1px solid var(--line); }
.explore-submit { min-height: 48px; padding: 10px 17px; border-radius: 30px; }
.explore-submit > .icon { width: 19px; height: 19px; }
.explore-categories {
    display: flex; gap: clamp(12px, 3vw, 34px); margin-top: 20px;
    overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin;
}
.explore-categories a {
    display: grid; flex: 0 0 auto; justify-items: center; align-content: center;
    gap: 5px; padding: 8px 8px 11px; min-width: 58px; min-height: 58px;
    border-bottom: 2px solid transparent; color: var(--muted); font-size: .78rem; font-weight: 650;
}
.explore-categories a:focus-visible { outline-offset: -3px; }
.explore-categories a:is(:hover, [aria-current]) { border-color: var(--orange); color: var(--orange); }
.explore-results { padding-block: 24px 44px; }
.explore-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 19px; }
.explore-heading h1 { font-size: clamp(1.55rem, 3vw, 2.2rem); overflow-wrap: anywhere; }
.explore-heading .muted { font-size: .86rem; margin-top: 4px; }
.explore-clear { color: var(--orange); min-height: 44px; display: flex; align-items: center; text-decoration: underline; font-size: .84rem; }
.explore-page .listing-grid { gap: 26px 19px; }
.explore-page .card-photo { aspect-ratio: 1.18; border-radius: 16px; }
.listing-card .card-content { display: grid; gap: 3px; padding: 10px 1px 0; }
.listing-card .card-content h3 { margin: 0; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.card-location, .card-rate { font-size: .83rem; line-height: 1.4; overflow-wrap: anywhere; }
.card-location, .card-rate span { color: var(--muted); }
.card-rate { margin-top: 3px; }
.card-rate strong { color: var(--ink); white-space: nowrap; }
.card-photo > .listing-favorite { position: absolute; top: 8px; right: 8px; }
.card-photo > .favorite-button, .listing-favorite > .favorite-button { display: inline-flex; height: 44px; }
.favorite-button .icon { width: 19px; height: 19px; }
.favorite-button[aria-pressed="true"] { color: var(--orange); }
.favorite-button[aria-pressed="true"] .icon { fill: currentColor; }
.explore-host { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; border-top: 1px solid var(--line); padding-top: 24px; }
.explore-host h2 { font-size: 1.2rem; }
.explore-host p { font-size: .89rem; }
.explore-bottom-nav { display: none; }

/* Listing gallery and reservation entry. */
.stay-page { max-width: 1120px; }
.stay-page .breadcrumbs a { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; }
.stay-page .breadcrumbs .icon, .stay-heading .muted .icon { width: 16px; height: 16px; }
.stay-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block: 5px 19px; }
.stay-heading > div { min-width: 0; }
.stay-heading h1 { font-size: clamp(1.6rem, 4.7vw, 2.55rem); overflow-wrap: anywhere; }
.stay-heading .muted { margin-top: 5px; font-size: .88rem; }
.stay-gallery { position: relative; }
.stay-gallery .photo-gallery { gap: 5px; }
.stay-gallery .photo-gallery a:focus-visible { outline-offset: -4px; z-index: 1; }
.stay-gallery .photo-gallery img { height: 100%; width: 100%; }
.gallery-open { position: absolute; inset-inline-end: 13px; bottom: 13px; border-color: transparent !important; box-shadow: 0 2px 12px #0002; }
.gallery-open .icon { width: 17px; height: 17px; }
.stay-page .host-mini { background: transparent; padding: 0; }
.stay-page .stay-summary .price-large { margin: 0 0 14px; }
.stay-page .stay-summary .fine-print { text-align: center; }
.photo-dialog-toolbar, .photo-dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: white; }
.photo-dialog-toolbar { margin-bottom: 10px; }
.photo-dialog-toolbar .button { margin: 0; }
.photo-dialog > img { max-height: 66dvh; }
.photo-dialog-controls { justify-content: center; margin-top: 10px; }
.photo-dialog-controls [hidden] { display: none; }

@media (min-width: 850px) {
    .stay-gallery .photo-gallery { grid-template-rows: repeat(2, clamp(130px, 16vw, 220px)); }
    .stay-gallery .gallery-1 { grid-template-rows: clamp(300px, 35vw, 460px); }
    .stay-gallery .gallery-2, .stay-gallery .gallery-3 { grid-template-columns: 1.6fr 1fr; }
    .stay-gallery .gallery-2 > a:last-child, .stay-gallery .gallery-4 > a:last-child { grid-row: 1 / 3; }
}

@media (max-width: 849px) {
    .explore-tools { padding-top: 14px; }
    .explore-field { padding-inline: 11px; }
    .explore-submit { width: 48px; padding: 0; }
    .explore-submit > span { display: none; }
    .explore-categories { margin-top: 11px; }
    .explore-bottom-nav {
        position: fixed; inset: auto 0 0; z-index: 10;
        display: flex; justify-content: center; gap: clamp(0px, 3vw, 22px);
        padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -3px 16px #203b350a;
    }
    .explore-bottom-nav a {
        display: grid; justify-items: center; align-content: center; gap: 4px;
        width: min(24%, 104px); min-height: 48px; color: var(--muted); font-size: .74rem; font-weight: 650;
    }
    .explore-bottom-nav a[aria-current] { color: var(--orange); }
    body:has(.explore-bottom-nav) { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .stay-gallery .photo-gallery {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
        border-radius: 14px; gap: 4px;
    }
    .stay-gallery .photo-gallery a { flex: 0 0 100%; scroll-snap-align: start; }
    .stay-gallery .photo-gallery img { aspect-ratio: 1.34; height: auto; max-height: 420px; }
    .stay-page .detail-columns { padding-top: 0; }
}

@media (max-width: 559px) {
    .explore-page > .shell { width: calc(100% - 32px); }
    .explore-search { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
    .explore-field > .icon { display: none; }
    .explore-type {
        grid-column: 1 / -1; grid-row: 2; border-inline-start: 0;
        border-top: 1px solid var(--line); padding-top: 3px;
    }
    .explore-type > div { display: flex; align-items: center; gap: 12px; }
    .explore-type select { min-height: 44px; }
    .explore-submit { grid-column: 2; grid-row: 1; }
    .explore-search { border-radius: 22px; }
    .explore-categories { gap: 4px; }
    .explore-categories a { min-width: 54px; padding-inline: 5px; font-size: .74rem; }
}

@media (min-width: 360px) and (max-width: 559px) {
    .explore-page .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .explore-page .card-photo { aspect-ratio: 1.03; border-radius: 13px; }
    .explore-page .listing-card h3 { font-size: .9rem; }
    .explore-page .card-location, .explore-page .card-rate { font-size: .78rem; }
}
