/*
 * Search, landing and guide listing pages of the redesign (docs/redesign 02, 04–10).
 * Loaded by those views through @push('styles'), after app.css.
 */

/* Order of the results (HLED-Z3) */
.search_sort {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 16px;
    margin: -16px 0 24px;
    font-size: 15px;
}

.search_sort_label {
    color: var(--muted-color);
}

.search_sort a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px 2px;
}

.search_sort a[aria-current] {
    color: var(--black-color);
    font-weight: 600;
    text-decoration: none;
}

/* Active filters, each removable (HLED-Z9) */
.search_active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin: -8px 0 20px;
}

.search_active_label {
    color: var(--muted-color);
    font-size: 15px;
}

.search_active ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search_chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--dch-line);
    border-radius: 999px;
    background: var(--dch-soft);
    color: var(--black-color);
    font-size: 14px;
    text-decoration: none;
}

.search_chip:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.search_chip_x {
    font-size: 18px;
    line-height: 1;
}

/* One filter form in the sidebar (HLED-Z5) */
.search_filters_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.search_filters_count {
    font-size: 14px;
    color: var(--muted-color);
}

.search_filters_fields {
    display: grid;
    gap: 16px;
}

.search_field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--black-color);
}

.search_field .form-select {
    font-size: 16px;
}

/* The name field (HLED-Z11) looks like the selects below it, not like the template's dashed form fields */
.search_field .form-control {
    height: auto;
    padding: .375rem .75rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    font-size: 16px;
}

.search_field .form-control:focus {
    border-color: #86b7fe;
}

.search_field_hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted-color);
}

.search_page_results.section_padding {
    padding-top: 48px;
}

.search_filters fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.search_filters legend.left_side_search_heading {
    float: none;
    width: 100%;
    font-size: inherit;
}

.search_filters legend .h5 {
    margin: 0;
}

.search_filters .form-check.is-empty label {
    color: var(--muted-color);
    opacity: .7;
}

.search_filters_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 24px 0 32px;
}

.search_filters_clear,
.search_chip--clear {
    color: var(--main-color);
    text-decoration: underline;
}

.search_chip--clear {
    border-style: dashed;
    background: transparent;
}

.search_results_head {
    margin-bottom: 24px;
}

/* Search panel: offcanvas below 992 px, sidebar above (HLED-Z4) */
.search_filters_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-bottom: 24px;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    background: var(--white-color);
    color: var(--main-color);
    font-weight: 600;
}

.search_filters_toggle:hover,
.search_filters_toggle:focus-visible {
    background: var(--main-color);
    color: var(--white-color);
}

.search_panel {
    --bs-offcanvas-width: min(400px, 92vw);
}

@media (max-width: 991.98px) {
    .search_page_results.section_padding {
        padding-top: 24px;
    }

    .search_panel .offcanvas-header {
        border-bottom: 1px solid var(--dch-line);
    }

    .search_panel .search_filters_head {
        display: none;
    }

    .search_panel .search_filters_actions {
        position: sticky;
        bottom: 0;
        margin: 16px -16px -16px;
        padding: 12px 16px;
        background: var(--white-color);
        border-top: 1px solid var(--dch-line);
    }
}

@media (min-width: 992px) {
    .search_panel .offcanvas-header {
        display: none;
    }

    .search_panel .offcanvas-body {
        display: block;
    }
}

/* No results: ways on (HLED-Z7) */
.search_empty {
    padding: 24px;
    border: 1px solid var(--dch-line);
    border-radius: var(--dch-radius);
    background: var(--dch-soft);
}

.search_empty p {
    margin: 16px 0 8px;
}

.search_empty_relax {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search_empty_cities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search_empty_cities a,
.search_empty_contact a {
    text-decoration: underline;
}

.search_empty .btn {
    margin-top: 16px;
}

/* Destination without its own accommodation (DEST-Z1) */
.landing_nearby_intro {
    margin: -8px 0 24px;
    text-align: center;
}

.landing_nearby_contact {
    margin-top: 8px;
    text-align: center;
}

.landing_nearby_contact a {
    text-decoration: underline;
}

/* Trips, beaches and other destinations under a destination's offer (DEST-Z5) */
.search_page_results.section_padding {
    padding-bottom: 48px;
}

.destination_more.section_padding_bottom {
    padding-bottom: 48px;
}

/* Regions listing: photo of the main destination and the offer (OBL-Z2) */
.region_box_photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.region_box_offer {
    margin: -4px 0 12px;
    font-size: 17px;
    color: var(--black-color);
}

/* Region page: destinations and, for a small region, more of the offer (OBL-Z3) */
.region_more_links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.region_more_links a {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--dch-line);
    border-radius: 8px;
    background: var(--dch-soft);
    font-weight: 500;
    text-decoration: underline;
}

/* Photos of beaches and tourist targets: 1 + 4 grid and a full-screen viewer (PLAZ-Z2, CIL-Z5) */
.guide_gallery {
    position: relative;
    margin-bottom: 24px;
}

.guide_gallery_grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    aspect-ratio: 16 / 7;
}

.guide_gallery_grid--single {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.guide_gallery_tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--dch-soft);
}

.guide_gallery_tile.is-main {
    grid-row: span 2;
}

.guide_gallery_tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.guide_gallery_tile:hover img {
    transform: scale(1.03);
}

.guide_gallery_tile:focus-visible {
    outline-offset: -3px;
    box-shadow: inset 0 0 0 5px #fff;
}

.guide_gallery_more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.guide_gallery_all {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--black-color);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.guide_gallery_all i {
    color: var(--main-color);
    margin-right: 4px;
}

@media (max-width: 767.98px) {
    .guide_gallery_grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        aspect-ratio: auto;
    }

    .guide_gallery_tile.is-main {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .guide_gallery_tile:not(.is-main) {
        aspect-ratio: 1;
    }

    .guide_gallery_all {
        bottom: auto;
        top: 12px;
    }
}

html.guide-noscroll {
    overflow: hidden;
}

.guide_lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, .95);
    touch-action: pan-y;
}

.guide_lightbox_figure {
    margin: 0;
    text-align: center;
}

.guide_lightbox_img {
    max-width: 94vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
}

.guide_lightbox_caption {
    margin-top: 8px;
    color: #fff;
}

.guide_lightbox_bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    color: #fff;
}

.guide_lightbox_count {
    font-size: 15px;
    font-weight: 600;
}

.guide_lightbox_close,
.guide_lightbox_nav {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 20px;
}

.guide_lightbox_close:hover,
.guide_lightbox_nav:hover {
    background: rgba(255, 255, 255, .28);
}

.guide_lightbox_close:focus-visible,
.guide_lightbox_nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.guide_lightbox_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.guide_lightbox_nav--prev {
    left: 18px;
}

.guide_lightbox_nav--next {
    right: 18px;
}

@media (max-width: 767.98px) {
    .guide_lightbox_nav {
        display: none;
    }
}

/* Under a blog article: where to stay, a call and the Facebook group (BLOG-Z1) */
.blog_stay {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--dch-line);
}

.blog_stay > h2 {
    margin-bottom: 20px;
}

.blog_stay_box {
    height: 100%;
    padding: 20px 24px;
    border: 1px solid var(--dch-line);
    border-radius: var(--dch-radius);
    background: var(--dch-soft);
}

.blog_stay_box .btn {
    margin-right: 16px;
    max-width: 100%; /* the e-mail button of German pages (PREK-Z3) is wider than the phone one */
    overflow-wrap: anywhere;
}

.blog_stay_link {
    font-weight: 600;
    text-decoration: underline;
}

/* Landing page: link to the offer under the H1 and a collapsed long description (DEST-Z3) */
.landing_offer_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--white-color);
    color: var(--black-color);
    font-weight: 600;
    text-decoration: none;
}

.landing_offer_link:hover,
.landing_offer_link:focus-visible {
    color: var(--main-color);
}

#nabidka {
    scroll-margin-top: 120px;
}

#nabidka:focus {
    outline: none;
}

.landing_desc_toggle {
    margin-top: 8px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--main-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.landing_intro.section_padding_top {
    padding-top: 48px;
}

@media (max-width: 991.98px) {
    .landing_intro.section_padding_top {
        padding-top: 24px;
    }
}
