/**
 * Single hotel — Layout 2 (booking-flow layout).
 *
 * Colours, fonts and sizes come from the theme variables only
 * (style.css :root + inc/admin/css_inline.php), so a retheme carries over.
 */



.jwshb-l2__wrap {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── atoms ────────────────────────────────────────────────────── */

.jwshb-l2-eyebrow {
    display: block;
    font-size: var(--fs-small2);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--body3);
}


/* buttons use the theme's global .button-default / .button-border;
   this class only carries the layout tweaks below. */
.jwshb-l2-btn {
    min-height: 48px;
    background: var(--main);
    border-color: var(--main);
}

.jwshb-l2-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--main);
    font-size: var(--fs-small2);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--main);
}

/* ── title row ────────────────────────────────────────────────── */

/* ── top search bar ───────────────────────────────────────────
   Layout 1's bar, moved under the header here so a guest can look up
   another hotel without leaving the page. The plugin stylesheet dresses
   .jwshb-search-bar / .jwshb-search-form; this only places it. */



.jwshb-l2-searchbar .jwshb-search-bar {
    margin-bottom: 0;
}


/* the picker hangs off the date cell (.jwshb-sf-cell--dates is already
   positioned by the plugin stylesheet) */
.jwshb-l2-searchbar .datepicker {
    top: calc(100% + 10px);
    left: 0;
}

.jwshb-l2-title {
    padding: 30px 0 22px;
}

/* the theme's own breadcrumb markup: <a> … <span class="delimiter"> … <span class="current"> */
.jwshb-l2-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 30px;
    font-size: var(--fs-small2);
    color: var(--body);
}

.jwshb-l2-crumbs a {
    color: var(--body);
}

.jwshb-l2-crumbs a:hover {
    color: var(--heading);
}

.jwshb-l2-crumbs .current {
    color: var(--heading);
}

.jwshb-l2-crumbs .delimiter {
    color: var(--border-cl2);
}

.jwshb-l2-title__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.jwshb-l2-title__main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.jwshb-l2-title__tags {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.jwshb-l2-title__name {
    margin: 0;
}

.jwshb-l2-title__address {
    display: flex;
    align-items: baseline;
    gap: 6px 14px;
    flex-wrap: wrap;
    margin: 0;
    color: var(--heading);
}

/* Pin + street in one item, so only the map link may drop to its own
   line when the row runs out of room. */
.jwshb-l2-title__address-text {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.jwshb-l2-title__address i {
    flex: none;
    font-size: 16px;
    /* a text line tall, so the pin sits on the address's first line
       rather than in the middle of a wrapped one */
    line-height: inherit;
    color: var(--heading);
}

.jwshb-l2-title__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex: none;
}

.jwshb-l2-title__from {
    font-size: var(--fs-small2);
    color: var(--body);
}

.jwshb-l2-title__from strong {
    font-size: var(--fs-body);
    color: var(--heading);
}

.jwshb-l2-score {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.jwshb-l2-score__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jwshb-l2-score__label {
    color: var(--heading);
}

.jwshb-l2-score__count {
    font-size: var(--fs-small2);
    color: var(--body);
}

.jwshb-l2-score__chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 39px;
    background: var(--third);
    color: var(--light);
    font-family: var(--font2);
    font-size: var(--fs-medium2);
    border-radius: 5px;
    font-weight: bold;
}

/* ── gallery ──────────────────────────────────────────────────── */

/* ── gallery ──────────────────────────────────────────────────
   Same shape as the room single gallery (jws-room-gallery-layout1);
   those rules are scoped to .jws-room-header, so restate them here. */

.jwshb-l2-gallery {
    padding: 20px 0 0;
}

.jwshb-l2-gallery .jws-room-gallery {
    display: grid;
    gap: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.jwshb-l2-gallery .jws-room-gallery-layout1 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.jwshb-l2-gallery .jws-gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.jwshb-l2-gallery .jws-gallery-main {
    grid-row: span 2;
    height: 100%;
}

.jwshb-l2-gallery .jws-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    will-change: transform;
}

.jwshb-l2-gallery .jws-gallery-item:hover img {
    transform: scale(1.04);
}

.jwshb-l2-gallery .jws-gallery-more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    color: var(--light);
    font-size: 24px;
    pointer-events: none;
}

.jwshb-l2-gallery .jws-view-all-gallery {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    background: var(--background-body);
    border: 1px solid var(--border-cl);
    border-radius: 8px;
    font-family: inherit;
    font-size: var(--fs-small2);
    font-weight: bold;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--heading);
    cursor: pointer;
    line-height: 30px;
}

.jwshb-l2-gallery .jws-view-all-gallery i {
    font-size: 20px;
    line-height: 1;
}

.jwshb-l2-gallery .jws-view-all-gallery:hover {
    background: var(--main);
    border-color: var(--main);
    color: var(--light);
}

/* ── section nav ──────────────────────────────────────────────
   Sticks under the header; hotel-layout2.js keeps --jwshb-l2-nav-top
   at the pinned header's height and marks the link in view. */

.jwshb-l2-nav {
    position: sticky;
    top: var(--jwshb-l2-nav-top, 0px);
    z-index: 5;
    margin-top: 10px;
    background: var(--background-body);

    transition: top .3s ease;
}

.jwshb-l2-nav__list {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-cl);
}

.jwshb-l2-nav__list::-webkit-scrollbar {
    display: none;
}

/* pinned (hotel-layout2.js adds .is-stuck): the rule runs edge to edge,
   so move it from the list inside the wrap to the nav itself */
.jwshb-l2-nav.is-stuck {
    box-shadow: 0 1px 0 var(--border-cl);
}

.jwshb-l2-nav.is-stuck .jwshb-l2-nav__list {
    border: 0;
}

.jwshb-l2-nav__link {
    display: block;
    position: relative;
    padding: 16px 10px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--body);
}

.jwshb-l2-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--main);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.jwshb-l2-nav__link:hover,
.jwshb-l2-nav__link.is-active {
    color: var(--heading);
}

.jwshb-l2-nav__link.is-active::after {
    transform: scaleX(1);
}

/* phones: waiting for the nav's own place under the gallery is a long
   scroll, so it floats in as soon as the page passes the header
   (hotel-layout2.js toggles .is-shown). Just under .jws_header (z 100). */
@media (max-width: 767px) {
    .jwshb-l2-nav {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 99;
        margin-top: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-100%);
        transition: top .3s ease, transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    }

    .jwshb-l2-nav.is-shown {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: top .3s ease, transform .3s ease, opacity .3s ease;
    }

    .jwshb-l2-nav__list {
        gap: 24px;
    }

    .jwshb-l2-nav__link {
        padding: 13px 0;
    }
}

/* ── body grid ────────────────────────────────────────────────── */

.jwshb-l2__body {
    padding: 36px 0 72px;
}

.jwshb-l2__content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
}

.jwshb-l2__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.jwshb-l2-section {
    scroll-margin-top: 100px;
}

.jwshb-l2-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.jwshb-l2-section__headings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jwshb-l2-section__title {
    margin: 0;
}

/* ── overview ─────────────────────────────────────────────────── */

.jwshb-l2-overview__text {
    color: var(--body);
    margin-block-start: 30px;
}

.jwshb-l2-overview__title {
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--heading);
    font-size: var(--fs-medium);
    line-height: var(--fh-medium);
}

.jwshb-l2-overview__text p {
    margin: 0 0 16px;
}

/* facility chips — a row at the top of the overview */
.jwshb-l2-facilities__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.jwshb-l2-facilities__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--border-cl);
    border-radius: 8px;
    color: var(--heading);
}

.jwshb-l2-facilities__item i {
    color: var(--main);
    flex: none;
    font-size: 15px;
    line-height: 1;
}

.jwshb-l2-facilities__item img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex: none;
}

/* ── availability ─────────────────────────────────────────────── */

/* stay bar — the design's compact control, wired to the plugin's own
   datepicker and guests dropdown (hence the .jwshb-sf-* classes). */
.jwshb-l2-stay {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: wrap;
    position: relative;
    background: var(--background-body);
    border: 1px solid var(--border-cl);
    border-radius: 10px;
}

.jwshb-l2-stay .datepicker {
    top: calc(100% + 6px);
}

.jwshb-l2-stay__cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-right: 1px solid var(--border-cl);
    font-size: var(--fs-small);
    color: var(--heading);
    cursor: pointer;
}

.jwshb-l2-stay__cell i {
    flex: none;
    font-size: 15px;
    line-height: 1;
    color: var(--heading);
}

.jwshb-l2-stay__cell .jwshb-l2-stay__chevron {
    font-size: 10px;
}

.jwshb-l2-stay__dates,
.jwshb-l2-stay__guests {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jwshb-l2-stay__sep {
    color: var(--border-cl2);
}

.jwshb-l2-stay__nights {
    color: var(--body);
}

.jwshb-l2-stay__chevron {
    color: var(--main);
}

/* the bar's own submit: .button-default, stretched to the bar height */
.jwshb-l2-stay__change {
    align-self: stretch;
    padding-block: 0;
    border: 0;
    background: var(--btn-bgcolor);
    color: var(--btn-color);
    padding: 0 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* the plugin's own cell rules match with the same weight, so raise ours */
.jwshb-l2-stay .jwshb-l2-stay__cell {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 10px;
    padding: 13px 18px;
}

.jwshb-l2-stay #jwshb-nights-count {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: var(--body);
}

/* the plugin's cells bring their own box model; neutralise it in the bar */
.jwshb-l2-stay .jwshb-sf-cell {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    background: none;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
}

.jwshb-l2-stay .jwshb-guests-selector {
    position: static;
}

.jwshb-l2-stay .jwshb-guests-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.jwshb-l2-stay .jwshb-guests-dropdown {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    z-index: 20;
}

/* The picker is printed inside the dates cell; hang it from the whole bar
   instead, so it can be lined up with either end of it. */
.jwshb-l2-stay .jwshb-sf-cell--dates {
    position: static;
}

.jwshb-l2-stay .datepicker {
    left: 0;
    right: auto;
}

/* set by hotel-layout2.js when the picker would run off the right edge */
.jwshb-l2-stay.is-picker-right .datepicker {
    left: auto;
    right: 0;
}

/* phones: dates on their own row, guests and Change share the second one */
@media (max-width: 767px) {
    .jwshb-l2-title {
        padding: 10px 0 10px;
    }

    .jwshb-l2-stay {
        display: flex;
        width: 100%;
    }

    .jwshb-l2-stay .jwshb-l2-stay__cell {
        padding: 12px 14px;
    }

    .jwshb-l2-stay .jwshb-sf-cell--dates {
        flex: 1 0 100%;
        border-right: 0;
        border-bottom: 1px solid var(--border-cl);
    }

    .jwshb-l2-stay__dates {
        flex-wrap: wrap;
        min-width: 0;
        row-gap: 2px;
    }

    .jwshb-l2-stay .jwshb-sf-cell--guests {
        position: static;
        flex: 1 1 auto;
        min-width: 0;
    }

    .jwshb-l2-stay__change {
        flex: 0 0 auto;
        border-top-right-radius: 0;
    }

    /* the cell is narrower than the dropdown: span the bar instead */
    .jwshb-l2-stay .jwshb-guests-dropdown {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

.jwshb-l2-rooms__empty {
    margin: 0;
    padding: 34px 24px;
    background: var(--secondary);
    text-align: center;
    color: var(--body);
}

.jwshb-l2-title__cta {
    display: flex;
    align-items: center;
    gap: 5px;
}

.jwshb-l2-title__cta .jwshb-fav {
    flex: none;
    background: none;
    width: 48px;
    height: 48px;
    color: var(--main);
}

.jwshb-l2-title__cta .jwshb-fav:hover {
    background: var(--background-item);
}

.jwshb-l2-title__cta .jwshb-fav i {
    font-size: 25px;
    line-height: 1;
}

.jwshb-l2-title__cta .jwshb-l2-share {
    flex: none;
}

/* share — same round button as the heart, with a menu underneath */
.jwshb-l2-share {
    position: relative;
}

.jwshb-l2-share__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--main);
    cursor: pointer;
    width: 48px;
    height: 48px;
}

.jwshb-l2-share__toggle i {
    font-size: 25px;
    line-height: 1;
}

.jwshb-l2-share__toggle:hover,
.jwshb-l2-share.is-open .jwshb-l2-share__toggle {
    background: var(--background-item);
}

.jwshb-l2-share__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    padding: 16px 0 8px;
    border-radius: 8px;
    background: var(--background-body);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.jwshb-l2-share__menu[hidden] {
    display: none;
}

/* the little caret points back at the button */
.jwshb-l2-share__menu:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 34px;
    width: 12px;
    height: 12px;
    background: var(--background-body);
    transform: rotate(45deg);
}

/* opened too close to the right edge: hang it from the other side */
.jwshb-l2-share.is-flipped .jwshb-l2-share__menu {
    left: auto;
    right: -16px;
}

.jwshb-l2-share.is-flipped .jwshb-l2-share__menu:before {
    left: auto;
    right: 34px;
}

.jwshb-l2-share__title {
    padding: 0 20px 8px;
    font-weight: 600;
    color: var(--heading);
}

.jwshb-l2-share__item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    background: transparent;
    color: var(--heading);
    text-align: left;
    cursor: pointer;
}

.jwshb-l2-share__item:hover {
    background: var(--background-item);
    color: var(--heading);
}

.jwshb-l2-share__item i {
    flex: none;
    width: 20px;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

/* ── right column ─────────────────────────────────────────────── */

.jwshb-l2__aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.jwshb-l2-aside-card {
    border: 1px solid var(--border-cl);
    background: var(--background-body);
    border-radius: 10px;
}

.jwshb-l2-contact {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    gap: 12px;
}

.jwshb-l2-contact__lead {
    color: var(--heading);
}

.jwshb-l2-contact__row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--body);
    word-break: break-word;
}

.jwshb-l2-contact__row:hover {
    color: var(--main);
}

.jwshb-l2-contact__row i {
    flex: none;
    font-size: 16px;
    color: var(--main);
}

/* mini map — the button opens the same overlay as the search page's cards */
.jwshb-l2-mapcard {
    position: relative;
    overflow: hidden;
}

.jwshb-l2-mapcard__canvas {
    height: 190px;
    background: var(--background-item) center / cover no-repeat;
}

.jwshb-l2-mapcard__btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    min-height: 44px;
    white-space: nowrap;
}

/* ── responsive ───────────────────────────────────────────────── */

@media (max-width: 991px) {

    .jwshb-l2__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 767px) {
    .jwshb-l2-title__row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }


    .jwshb-l2-title__aside {
        align-items: flex-start;
        width: 100%;
    }

    .jwshb-l2-title__aside .jwshb-l2-btn {
        width: 100%;
    }

    .jwshb-l2-gallery .jws-room-gallery-layout1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .jwshb-l2-gallery .jws-gallery-main {
        grid-column: span 2;
        grid-row: auto;
    }

    .jwshb-l2-gallery .jws-gallery-thumb:nth-child(n+4) {
        display: none;
    }

    .jwshb-l2-gallery .jws-view-all-gallery {
        right: 10px;
        bottom: 10px;
    }

    .jwshb-l2__content {
        gap: 36px;
    }

    .jwshb-l2-section__head {
        flex-direction: column;
        align-items: stretch;
    }

    /* facility chips — two rows, swipe sideways for the rest */
    .jwshb-l2-facilities__list {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        grid-auto-columns: max-content;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .jwshb-l2-facilities__list::-webkit-scrollbar {
        display: none;
    }

    .jwshb-l2-facilities__item {
        white-space: nowrap;
    }

    /* The name is set at 42px here; at this width that is four or five
       words a line for a long hotel name. */
    .jwshb-l2-title__name {
        font-size: 34px;
        line-height: 1.2;
    }

    .jwshb-l2__wrap {
        padding: 0 16px;
    }

}

@media (max-width: 991px) {

    /* Text links that act as controls: a 40px band to tap, with the
       text left where it was. */
    .jwshb-l2-title__address .jwshb-l2-link,
    .jwshb-l2-contact__row {
        min-height: 40px;
    }

    .jwshb-l2-contact__row {
        align-items: center;
    }
}