/* =============================================================
   JWS Hotel Booking – Frontend Styles
   ============================================================= */
/* ── Variables ─────────────────────────────────────── */
:root {
    --jwshb-gray: #666;
    --jwshb-light-gray: #f5f5f5;
    --jwshb-green: #46b450;
    --jwshb-red: #d63638;
    --jwshb-radius: 0px;
    --jwshb-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
}

.jwshb-single-hotel {
    padding-bottom: 70px;
    background: #f5f0e8;
}

#wpadminbar {
    z-index: 110;
}

/* =============================================================
   SEARCH PAGE
   ============================================================= */
.jwshb-search-page {
    padding-bottom: 80px;
    background: #FEFAF5;
}

/* ── Search Bar ────────────────────────────────────── */
.jwshb-search-bar {
    background: var(--light);
    border-radius: var(--jwshb-radius);
    padding: 20px 15px;
    margin-bottom: 33px;
    box-shadow: var(--jwshb-shadow);
    overflow: visible;
}

.jwshb-search-bar .jwshb-btn-search {
    background: transparent;
    border: 0px;
    padding: 0px;
    color: #1F71A4;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.jwshb-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 30px;
    justify-content: center;
    max-width: 1024px;
    margin: 0 auto;
}

.jwshb-search-form #datepicker-date-range-hidden {
    top: calc(100% + 6px);
}

/* Each cell */
.jwshb-sf-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--jwshb-gray);
    white-space: nowrap;
}

#jwshb-nights-count {
    background-color: var(--main);
    color: var(--light);
    border-radius: 20px;
    padding: 1px 10px;
    font-size: 13px;
    font-weight: 500;
    text-transform: lowercase;
    margin-inline-start: 10px;
}

.jwshb-sf-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Dates display */
.jwshb-sf-dates-display {
    display: flex;
    align-items: center;
    gap: 30px;
}

.jwshb-sf-date-block {
    display: flex;
    gap: 10px;
    align-items: center;
    line-height: 1.1;
    min-width: 46px;
}

.jwshb-sf-date-day {
    font-size: 30px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1;
}

.jwshb-sf-date-sub {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.jwshb-sf-date-dow {
    display: block;
    margin-top: 2px;
}

.jwshb-sf-date-placeholder {
    font-size: 15px;
    font-weight: 500;
    color: #bbb;
}

.jwshb-sf-date-arrow {
    font-size: 18px;
    color: #bbb;
}

/* Nights badge */
.jwshb-sf-nights-badge {
    background: #c8862a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Guests display (new design) */
.jwshb-sf-guests-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jwshb-sf-gval {
    font-size: 27px;
    font-weight: 500;
    color: var(--heading);
}

/* Promo code input */
.jwshb-sf-promo {
    border: 0 !important;
    border-bottom: 1px solid var(--border-cl) !important;
    padding: 0 !important;
    min-height: 35px !important;
    text-transform: uppercase;
    border-radius: 0 !important;
}

/* Hotel Datepicker — override & integration */
.jwshb-hdp-wrap {
    position: relative;
}

.jwshb-hdp-input {
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 10px center;
    padding-right: 34px !important;
}

.jwshb-hdp-input:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 2px rgba(var(--main-rgb, 24, 93, 163), 0.15);
}

/* Ensure datepicker popup sits above everything */
.datepicker__wrapper {
    z-index: 10000 !important;
}

.jwshb-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jwshb-date-arrow {
    color: var(--jwshb-gray);
    font-size: 16px;
}

/* Guests dropdown */
.jwshb-guests-selector {
    position: relative;
}

.jwshb-guests-selector:focus-within .jwshb-guests-dropdown,
.jwshb-guests-selector.open .jwshb-guests-dropdown {
    display: block;
}

.jwshb-guests-display .jwshb-sf-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.jwshb-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.jwshb-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-cl);
    border-radius: 5px;
}

.jwshb-counter input[type="number"] {
    width: 40px;
    padding: 0;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
    min-height: auto;
}

.jwshb-counter input[type="number"]::-webkit-inner-spin-button {
    display: none;
}

.jwshb-count-btn {
    width: 28px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

/* ── Toolbar (Show by / View by) ───────────────────── */
.jwshb-show-by {
    display: flex;
    align-items: center;
}

.jwshb-show-by>span {
    font-size: 14px;
    font-weight: 500;
    color: var(--heading);
    margin-inline-end: 12px;
}

.jwshb-view-btn {
    padding: 5px 15px;
    border: 1px solid var(--border-cl);
    background: var(--light);
    border-radius: var(--jwshb-radius);
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;

}

.jwshb-view-btn[data-view="rooms"] {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.jwshb-view-btn[data-view="rates"] {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}



.jwshb-view-btn.active {
    background: var(--main);
    color: var(--light);
    border-color: var(--main);
}

.jwshb-view-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jwshb-view-toggle>span {
    font-size: 14px;
    font-weight: 500;
    color: var(--heading);
}

.jwshb-layout-btn {
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    opacity: 0.5;
}

.jwshb-layout-btn.active {
    opacity: 1;
}

/* ── Results Toolbar ───────────────────────────────── */
.jwshb-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .jwshb-results-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.jwshb-toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.jwshb-toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .jwshb-toolbar-right {
        gap: 6px;
    }
}

/* ── Filter Dropdown Button (pill) ─────────────────── */
.jwshb-fdb {
    position: relative;
    display: inline-block;
    /* Price panel specific */
}

.jwshb-fdb.open .jwshb-fdb-arrow {
    transform: rotate(180deg);
}

.jwshb-fdb.open .jwshb-fdb-panel {
    display: block;
}

.jwshb-fdb[data-filter="price"] .jwshb-fdb-panel {
    min-width: 260px;
}

.jwshb-fdb-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 5px 14px;
    border: 1px solid var(--border-cl);
    background: var(--light);
    font-size: var(--fs-small);
    color: var(--heading);
    cursor: pointer;
    white-space: nowrap;
    border-radius: 5px;
}

.jwshb-fdb-btn:hover {
    border-color: var(--main);
}

.jwshb-fdb-btn.active {
    border-color: var(--main);
    color: var(--main);
}

@media (max-width: 900px) {
    .jwshb-fdb-btn {
        padding: 6px 11px;
        font-size: 12px;
    }
}

.jwshb-fdb-arrow {
    transition: transform 0.15s;
}

.jwshb-fdb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--main);
    color: var(--light);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* ── Filter Dropdown Panel ─────────────────────────── */
.jwshb-fdb-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--light);
    border: 1px solid var(--border-cl);
    z-index: 200;
    padding: 10px 15px;
    border-radius: 8px;
}

/* Checkbox items inside panel */
.jwshb-fdb-cb {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--fs-small);
    color: var(--heading);
    padding: 5px 2px;
    border-radius: 4px;
    transition: background 0.1s;
}

.jwshb-fdb-count {
    font-size: 11px;
    color: var(--jwshb-gray);
}

/* Apply/Reset row inside panel */
.jwshb-fdb-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--border-cl);
    gap: 8px;
}

.jwshb-fdb-reset {
    background: none;
    border: none;
    font-size: var(--fs-small);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.jwshb-fdb-reset:hover {
    color: var(--heading);
}

.jwshb-fdb-apply {
    padding: 2px 14px;
    background: var(--main);
    color: var(--light);
    border: none;
    font-size: var(--fs-small);
    border-radius: 3px;
}

.jwshb-fdb-apply:hover {
    opacity: 0.85;
}

/* ── "Other filters" dropdown ──────────────────────── */
.jwshb-fdb-other {
    margin-left: auto;
}

.jwshb-fdb-other .jwshb-fdb-btn {
    background: transparent;
    padding: 5px 0;
    border: 0;
}

.jwshb-other-panel {
    min-width: 260px;
    max-height: 420px;
    overflow-y: auto;
    right: 0;
    left: auto;
}

/* Section title inside Other filters panel */
.jwshb-other-section+.jwshb-other-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-cl);
}

.jwshb-other-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading);
    margin-bottom: 6px;
}

/* ── Occupancy Modal ─────────────────────────────────────────── */
#jwshb-occupancy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.jwshb-occ-dialog {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.jwshb-occ-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-cl, #e5e7eb);
}

.jwshb-occ-header h3,
.jwshb-occ-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--heading, #111827);
}

.jwshb-occ-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-size: 18px;
    color: var(--jwshb-gray, #6b7280);
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.jwshb-occ-close:hover {
    color: var(--heading, #111827);
    background: var(--jwshb-light, #f3f4f6);
}

.jwshb-occ-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jwshb-occ-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jwshb-occ-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jwshb-occ-label span {
    font-size: 15px;
    font-weight: 600;
    color: var(--heading, #111827);
}

.jwshb-occ-label small {
    font-size: 12px;
    color: var(--jwshb-gray, #6b7280);
}

.jwshb-occ-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jwshb-occ-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border-cl, #d1d5db);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading, #111827);
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.jwshb-occ-btn:hover:not(:disabled) {
    border-color: var(--main, #2563eb);
    color: var(--main, #2563eb);
    background: var(--main-light, #eff6ff);
}

.jwshb-occ-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.jwshb-occ-val {
    min-width: 28px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--heading, #111827);
}

.jwshb-occ-divider {
    height: 1px;
    background: var(--border-cl, #e5e7eb);
    margin: 0;
}

.jwshb-occ-charge-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--jwshb-gray, #6b7280);
}

.jwshb-occ-charge-info #jwshb-occ-charge-value {
    font-weight: 600;
}

.jwshb-occ-price-row,
.jwshb-occ-price-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jwshb-occ-price-row .jwshb-occ-price-label,
.jwshb-occ-price-preview .jwshb-occ-price-label,
.jwshb-occ-price-row span,
.jwshb-occ-price-preview span {
    font-size: 14px;
    color: var(--jwshb-gray, #6b7280);
}

.jwshb-occ-price-row #jwshb-occ-price-preview,
.jwshb-occ-price-preview #jwshb-occ-price-preview,
.jwshb-occ-price-row strong,
.jwshb-occ-price-preview strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading, #111827);
}

.jwshb-occ-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border-cl, #e5e7eb);
}

.jwshb-occ-cancel {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--border-cl, #d1d5db);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--heading, #111827);
    transition: background 0.15s;
}

.jwshb-occ-cancel:hover {
    background: var(--jwshb-light, #f3f4f6);
}

.jwshb-occ-apply {
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    background: var(--main, #2563eb);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.jwshb-occ-apply:hover {
    background: var(--main-dark, #1d4ed8);
}

/* Price range slider */
.jwshb-price-range-track {
    position: relative;
    height: 4px;
    background: var(--border-cl);
    border-radius: 2px;
    margin: 10px 0 10px;
}

.jwshb-price-range-fill {
    position: absolute;
    top: 0;
    height: 4px;
    background: var(--main);
    border-radius: 2px;
    pointer-events: none;
}

.jwshb-range-input {
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    left: 0;
}

.jwshb-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--light);
    border: 2px solid var(--main);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.jwshb-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--light);
    border: 2px solid var(--main);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.jwshb-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--heading);
    margin-top: 6px;
}

/* Active filter tags + result count */
.jwshb-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.jwshb-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light);
    border: 1px solid var(--border-cl);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: var(--fs-small);
    text-transform: capitalize;
}

.jwshb-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--main);
    font-size: 11px;
    padding: 0;
    line-height: 1;
}

.jwshb-clear-all-filters {
    background: none;
    border: none;
    font-size: 12px;
    font-size: var(--fs-small);
    cursor: pointer;
    padding: 3px 6px;
    text-decoration: underline;
}

.jwshb-clear-all-filters:hover {
    color: var(--heading);
}

/* ── Room Card ─────────────────────────────────────── */
.jwshb-room-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;

    /* Grid-mode card: no outer padding, column direction */
}

.jwshb-room-card.layout-list {
    box-shadow: var(--jwshb-shadow);
    border-radius: 10px;
}

.jwshb-room-card:has(.jwshb-room-card-grid) {
    padding: 0;
    flex-direction: column;
    margin-bottom: 0;
    background: transparent;
}

.jwshb-room-card .jwshb-room-card-left {
    max-width: 370px;
    flex: 0 0 370px;
}

@media (max-width: 900px) {
    .jwshb-room-card {
        flex-direction: column;
    }
}

.jwshb-room-card-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.jwshb-room-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 369 / 254;
    object-fit: cover;
    border-radius: 8px;
}

.jwshb-room-card-image .jwshb-gallery-count {
    position: absolute;
    bottom: 12px;
    right: 10px;
    background: rgba(19, 19, 19, 0.6);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0px 8px;
    font-size: var(--fs-small);
    color: var(--light);
}

.jwshb-room-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #DF2928;
    color: #fff;
    font-size: var(--fs-small);
    padding: 0px 10px;
    border-radius: 5px;
    white-space: nowrap;
    line-height: var(--fh-small);
    width: fit-content;
}

@keyframes jwshb-badge-pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
    }

    50% {
        box-shadow: 0 2px 16px rgba(239, 68, 68, 0.75);
    }
}

.jwshb-room-card-info {
    flex: 1;
    padding-inline-start: 25px;
    padding-block-start: 13px;
}

.jwshb-room-title {
    margin: 0 0 8px;
}

.jwshb-room-desc {
    margin-bottom: 12px;
}

.jwshb-room-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: var(--fs-small);
    line-height: var(--fh-small);
    margin-bottom: 17px;
    align-items: center;
}

.jwshb-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.jwshb-meta-item.adult_item {
    gap: 2px;
    align-items: baseline;
}

.jwshb-meta-item.adult_item .child {
    height: 17px;
}

.jwshb-room-card-left .jwshb-room-size {
    flex: 0 0 100%;
}

.jwshb-meta-separator {
    height: 14px;
    background: var(--border-cl);
    width: 1px;
    display: block;
}

.jwshb-meta-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--main);
}

.jwshb-room-details-link {
    color: var(--main);
    text-decoration: underline !important;
}

/* ── Rate Item ─────────────────────────────────────── */
.jwshb-rate-list {
    flex: 1 1 100%;
    border-top: 1px dashed var(--border-cl);
    margin-top: 10px;
}

.jwshb-rate-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 0 22px;
    border-bottom: 1px dashed var(--border-cl);
    gap: 13px 20px;
    flex-wrap: wrap;
}

.jwshb-rate-item-content {
    flex: 1;
    min-width: 0;
}

/* Rate name row: title + save badge inline */
.jwshb-rate-name-row {
    margin-bottom: 5px;
}

.jwshb-rate-name-row .jwshb-rate-name {
    color: var(--heading);
    font-size: var(--fs-small);
    line-height: var(--fh-small);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jwshb-rate-name-row .jwshb-rate-name::before {
    font-size: 10px;
    transition: transform 0.2s;
    content: '\e827';
    font-family: 'jws_icon';
    width: 16px;
    height: 16px;
    background: var(--heading);
    color: var(--light);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jwshb-rate-name-row .jwshb-rate-name.jwshb-rate-name--collapsed::before {
    content: '\e814';
}

.jwshb-rate-name-row .jwshb-rateplan-title {
    margin-bottom: 7px;
}

.jwshb-rate-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Save badge — green like in screenshot */
.jwshb-save-badge {
    display: inline-block;
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
}

/* Coupon applied badge on rate item */
.jwshb-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f59e0b;
    color: #fff;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* "You will get..." label */
.jwshb-rate-benefits-label {
    color: var(--heading);
    font-size: var(--fs-small);
    line-height: var(--fh-small);
    font-weight: 700;
    margin: 0 0 8px;
}

/* Benefits condensed summary (shown when collapsed) */
.jwshb-rate-benefits-summary {
    display: none;
    font-size: var(--fs-small);
    line-height: var(--fh-small);
    margin-bottom: 8px;
    color: var(--cl-body);
}

.jwshb-benefit-first {
    color: var(--cl-body);
}

.jwshb-more-benefits {
    color: var(--heading);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-inline-start: 6px;
    transition: color 0.15s;
}

.jwshb-more-benefits:hover {
    color: var(--main);
}

/* Benefits two-column grid */
.jwshb-rate-benefits {
    margin-top: 8px;
}

.jwshb-rate-benefits .jwshb-rate-benefits-grid {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    gap: 10px 20px;
    -webkit-columns: 150px 2;
    -moz-columns: 150px 2;
    columns: 150px 2;
    grid-column-gap: 40px;
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
}

.jwshb-rate-benefits .jwshb-rate-benefits-grid li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: var(--fs-small);
    line-height: var(--fh-small);
    margin-bottom: 6px;
}

@media (max-width: 600px) {
    .jwshb-rate-benefits .jwshb-rate-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.jwshb-benefit-icon {
    flex-shrink: 0;
    font-size: 20px;
    width: 20px;
    text-align: center;
    color: var(--main);
    /* fallback + sign when no icon font class */
}

.jwshb-benefit-icon.jwshb-benefit-icon--plus {
    color: var(--heading);
    font-size: 16px;
}

/* Policy badges row */
.jwshb-rate-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.jwshb-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-small);
    line-height: var(--fh-small);
    font-weight: 700;
    color: #00AA6C;
}

.jwshb-policy-badge svg {
    stroke: #00AA6C;
}

/* Booking conditions collapsible */
.jwshb-booking-conditions {
    flex: 0 0 100%;
}

.jwshb-bc-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: var(--fs-small2);
    color: var(--heading);
    line-height: var(--fh-small2);
}

.jwshb-bc-toggle:hover {
    color: var(--main);
}

.jwshb-bc-chevron {
    transition: transform 0.2s;
    stroke: currentColor;
}

.jwshb-bc-chevron--open {
    transform: rotate(180deg);
}

.jwshb-bc-body {
    margin-top: 15px;
    font-size: var(--fs-small2);
    color: var(--heading);
    line-height: var(--fh-small2);
}

.jwshb-orig-price {
    color: var(--jwshb-gray);
    font-size: 13px;
    text-decoration: line-through;
}

.jwshb-rate-price-col {
    flex: 0 0 270px;
    text-align: right;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-end;
}

.jwshb-rate-price-col small {
    font-size: var(--fs-small2);
    color: var(--heading);
    font-weight: 500;
    line-height: var(--fh-small2);
}

.jwshb-rate-price-inner {
    display: flex;
    flex-direction: column;
}

.jwshb-rate-price {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--heading);
}

.jwshb-rate-price strong {
    font-size: 28px;
}

.jwshb-btn-book-now.added {
    background: var(--jwshb-green) !important;
    border-color: var(--jwshb-green) !important;
}

.jwshb-show-more-rates {
    color: var(--main);
    font-size: var(--fs-small);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

/* Loading */
.jwshb-loading {
    text-align: center;
    padding: 40px;
    color: var(--jwshb-gray);
    grid-column: 1 / -1;
    /* span all columns when container is a grid */
    width: 100%;
}

/* Standalone loader (spinner only, no text) — shared across rooms, rates
   and hotel-search results. Modern black gradient-tail ring, spins smoothly. */
.jwshb-loading .jwshb-spinner {
    width: 40px;
    height: 40px;
    border: none;
    margin: 0;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(17, 17, 17, 0) 0%, #111 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3.5px));
    animation: jwshb-spin 0.8s linear infinite;
}

.jwshb-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid var(--border-cl);
    border-top-color: var(--main);
    border-radius: 50%;
    animation: jwshb-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes jwshb-spin {
    to {
        transform: rotate(360deg);
    }
}

.jwshb-search-prompt {
    text-align: center;
    padding: 40px;
    color: var(--jwshb-gray);
}

/* =============================================================
   BOOKING PAGE
   ============================================================= */
.jwshb-booking-page {
    padding-bottom: 80px;
    background: #FEFAF5;
}

/* ── Booking Nav ───────────────────────────────────── */
.jwshb-booking-nav {
    padding: 14px 0;
    background-color: var(--light);
    margin-bottom: 30px;
}

.jwshb-booking-nav-inner {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.jwshb-back-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fs-small);
    font-weight: 500;
    text-transform: uppercase;
}

.jwshb-secure-badge {
    font-size: var(--fs-small);
    color: var(--heading);
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Steps Indicator ───────────────────────────────── */
.jwshb-steps {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    position: relative;
    align-items: center;
    color: var(--heading);
    font-size: var(--fs-small);
    font-weight: 600;
    text-transform: uppercase;
}

.jwshb-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 18px;
    height: 18px;
    font-weight: 700;
    background-color: #E0E1E3;
    border-radius: 3px;
    line-height: 18px;
}

.jwshb-step.active {
    background-color: var(--heading);
    color: var(--light);
}

/* Step 1 is always clickable (back to search) */
.jwshb-step[data-step="1"] {
    cursor: pointer;
}

.jwshb-step[data-step="1"]:hover::before {
    border-color: var(--main);
    color: var(--main);
}

.jwshb-step-label {
    font-size: 10px;
    color: var(--jwshb-gray);
    white-space: nowrap;
    transition: color 0.2s;
}

/* ── Booking Layout ────────────────────────────────── */
.jwshb-booking-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}


.jwshb-booking-main {
    flex: 0 0 calc(100% - 410px);
    min-width: 0;
    background: var(--light);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.jwshb-booking-sidebar {
    flex: 0 0 410px;
    position: sticky;
    top: 24px;
}

@media (max-width: 900px) {
    .jwshb-booking-layout {
        flex-direction: column-reverse;
    }

    .jwshb-booking-main {
        flex: none;
        width: 100%;
    }
}


@media (max-width: 900px) {
    .jwshb-booking-sidebar {
        position: static;
        flex: none;
        width: 100%;
    }
}

/* ── Booking Section ───────────────────────────────── */
.jwshb-booking-section {
    margin-bottom: 36px;
}

.jwshb-booking-section h5 {
    margin: 0 0 13px;
}

/* ── Form Grid ─────────────────────────────────────── */
.jwshb-form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 15px;
}

.jwshb-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1290px) {
    .jwshb-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jwshb-grid-4 {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 600px) {
    .jwshb-grid-2 {
        grid-template-columns: 1fr;
    }
}

.jwshb-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Required asterisk — added via JS on required fields */
    /* Error state */
    /* Inline field-level error message */
}

.jwshb-form-group label {
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 0;
}

.jwshb-form-group label .jwshb-required-star {
    color: var(--jwshb-red);
    margin-left: 2px;
    font-size: 13px;
}

.jwshb-form-group input[type="text"],
.jwshb-form-group input[type="email"],
.jwshb-form-group input[type="tel"],
.jwshb-form-group select,
.jwshb-form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-cl);
    border-radius: var(--jwshb-radius);
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.jwshb-form-group input:focus,
.jwshb-form-group select:focus,
.jwshb-form-group textarea:focus {
    border-color: var(--main);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 128, 42, 0.12);
}

.jwshb-form-group.jwshb-field-error input[type="text"],
.jwshb-form-group.jwshb-field-error input[type="email"],
.jwshb-form-group.jwshb-field-error input[type="tel"],
.jwshb-form-group.jwshb-field-error select,
.jwshb-form-group.jwshb-field-error textarea {
    border-color: var(--jwshb-red);
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1);
    animation: jwshb-shake 0.35s ease;
}

.jwshb-form-group.jwshb-field-error label {
    color: var(--jwshb-red);
}

.jwshb-form-group .jwshb-field-error-msg {
    display: none;
    font-size: 12px;
    color: var(--jwshb-red);
    margin-top: -2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jwshb-form-group .jwshb-field-error-msg::before {
    content: '⚠';
    font-size: 11px;
}

/* Shake animation for invalid fields */
@keyframes jwshb-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Checkbox error state */
.jwshb-checkbox-label.jwshb-field-error {
    color: var(--jwshb-red);
}

.jwshb-checkbox-label.jwshb-field-error input[type="checkbox"] {
    outline: 2px solid var(--jwshb-red);
    outline-offset: 2px;
    animation: jwshb-shake 0.35s ease;
}

.jwshb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    cursor: pointer;
    color: var(--heading);
}

.jwshb-note {
    font-size: 12px;
    color: var(--heading);
    margin-top: 4px;
    margin-block-start: 10px;
}

.jwshb-currency-convert-notice {
    font-size: var(--fs-small);
    background: #fff8e6;
    border: 1px solid #f0dfa0;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 12px;
}

/* ── Payment ───────────────────────────────────────── */
.jwshb-payment-methods {
    margin-bottom: 16px;
}

.jwshb-checkbox-label-agree a {
    text-decoration: underline;
    font-weight: 700;
}

.jwshb-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--main);
    color: var(--heading);
    cursor: pointer;
    background: #ffffff;
    border-radius: 5px;
    transition: 0.3s all;
}

.jwshb-payment-option .jwshb-pm-check {
    opacity: 0;
}

.jwshb-payment-option svg {
    display: none;
}

.jwshb-payment-option.active {
    background: var(--secondary);
}

.jwshb-payment-option.active .jwshb-pm-check {
    opacity: 1;
}

.jwshb-payment-option.active svg {
    display: block;
}

.jwshb-payment-option input[type="radio"] {
    display: none;
}

.jwshb-pm-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jwshb-pm-logo {
    display: block;
    height: 24px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: auto;
}

.jwshb-pm-check {
    margin-left: auto;
    color: var(--main);
    font-weight: 700;
}

.jwshb-credit-card-form {
    background: var(--jwshb-light-gray);
    padding: 16px;
    border-radius: var(--jwshb-radius);
}

.jwshb-card-icons {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.jwshb-card-icon {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    border: 1px solid var(--border-cl);
    background: var(--light);
}

.jwshb-card-icon.visa {
    color: #1a1f71;
}

.jwshb-card-icon.mastercard {
    color: #eb001b;
}

.jwshb-security-note {
    font-size: 12px;
    color: var(--jwshb-gray);
    margin-top: 12px;
    background: #fff3cd;
    padding: 10px 12px;
    border-radius: var(--jwshb-radius);
}

.jwshb-tooltip {
    display: inline-block;
    background: var(--jwshb-gray);
    color: var(--light);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    cursor: help;
}

/* ── Room Options ──────────────────────────────────── */
.jwshb-options-room-group {
    margin-bottom: 20px;
}

.jwshb-options-room-group:last-child {
    margin-bottom: 0;
}

.jwshb-options-room-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--main);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--jwshb-radius);
    padding: 7px 12px;
    margin-bottom: 12px;
}

.jwshb-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwshb-option-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.jwshb-option-item .jwshb-opt-right {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.jwshb-opt-image {
    flex: 0 0 150px;
}

.jwshb-opt-image img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--jwshb-radius);
}

.jwshb-opt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 10px;
}

.jwshb-opt-content {
    flex: 1;
}

.jwshb-opt-content h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.jwshb-opt-desc {
    margin-bottom: 6px;
}

.jwshb-view-more {
    font-size: 13px;
    color: var(--main);
    text-decoration: none;
}

.jwshb-opt-action {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.jwshb-opt-price {
    display: flex;
    gap: 7px;
    align-items: baseline;
}

.jwshb-opt-action .jwshb-btn-add-option {
    padding: 9px 20px;
    min-width: 107px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jwshb-opt-action .jwshb-btn-add-option svg {
    flex-shrink: 0;
}

.jwshb-opt-action .jwshb-btn-add-option.added {
    background: var(--main);
    border-color: var(--main);
    color: var(--light);
}

/* Summary option rows injected by JS */
.jwshb-summary-option-name {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted, #666);
}

.jwshb-summary-option-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--main) 12%, transparent);
    color: var(--main);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Submit ────────────────────────────────────────── */
.jwshb-booking-submit {
    margin-top: 8px;
}

.jwshb-btn-book {
    width: 100%;
    padding: 16px;
    background: var(--heading);
    color: var(--light);
    border: none;
    border-radius: var(--jwshb-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.jwshb-btn-book:hover {
    background: #333;
}

.jwshb-booking-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--jwshb-radius);
    font-size: 14px;
    text-align: center;
}

.jwshb-booking-message.success {
    background: #d4edda;
    color: #155724;
}

.jwshb-booking-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* ── Reservation Summary ───────────────────────────── */
.jwshb-reservation-summary {
    background: var(--light);
    padding: 24px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.jwshb-reservation-summary h3 {
    margin: 0 0 16px;
}

.jwshb-summary-hotel {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.jwshb-summary-hotel-img {
    width: 67px;
    height: auto;
    object-fit: cover;
}

.jwshb-summary-hotel-info {
    display: flex;
    flex-direction: column;
}

.jwshb-stars-visual {
    font-size: 15px;
    color: #FDA043;
    width: 98px;
    position: relative;
    display: block;
    letter-spacing: 3px;
}

.jwshb-stars-visual::before {
    font-family: "jws_icon";
    content: "\e823\e823\e823\e823\e823";
}

.jwshb-stars-visual span {
    overflow: hidden;
    position: absolute;
    text-indent: -999em;
    color: #FDA043;
    padding-top: 20px;
    left: 0;
    top: -1px;
}

.jwshb-stars-visual span:before {
    left: 0;
    top: 1px;
    position: absolute;
    text-indent: 0;
    color: #FDA043;
    font-family: "jws_icon";
    content: "\E81E\E81E\E81E\E81E\E81E";
}

.jwshb-summary-dates {
    margin-bottom: 12px;
    display: flex;
    gap: 4px;
}

.jwshb-summary-room {
    background-color: #F0F4F5;
    border-radius: 5px;
    border: 1px solid #E0E1E3;
    padding: 15px;
    margin-bottom: 10px;
    overflow-y: auto;
    max-height: 275px;
}

.jwshb-summary-totals {
    margin-bottom: 16px;
}

.jwshb-total-row {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
    color: var(--third);
}

/* Coupon discount row in booking summary */
.jwshb-coupon-row {
    background: #fefce8;
    border: 1px dashed #fbbf24;
    border-radius: 6px;
    padding: 6px 10px !important;
    margin-bottom: 4px;
    font-size: 13px;
    color: #92400e;
}

.jwshb-coupon-row small {
    font-size: 11px;
    opacity: 0.75;
    margin-left: 4px;
}

#jwshb-total {
    font-weight: 700;
}

#jwshb-total span {
    font-size: 20px;
}

.jwshb-coupon-saving {
    color: #16a34a;
    font-weight: 700;
    white-space: nowrap;
}

.jwshb-grand-total {
    background-color: var(--secondary);
    padding: 7px 10px 4px;
    border-radius: 5px;
    margin: 10px 0;
}

@media (max-width: 600px) {
    .jwshb-secure-badge {
        display: none;
    }
}

/* ── Success state ─────────────────────────────────── */
/* ══════════════════════════════════════════════════════
   BOOKING SUCCESS PAGE
   ══════════════════════════════════════════════════════ */
.jwshb-booking-success {
    padding: 48px 0 80px;
}

/* Hero banner */
.jwshb-success-hero {
    text-align: center;
    padding: 48px 24px 40px;
    background: var(--light);
    border: 1px solid var(--border-cl);
    border-radius: var(--jwshb-radius) var(--jwshb-radius) 0 0;
    border-bottom: none;
}

.jwshb-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--jwshb-green) 12%, transparent);
    color: var(--jwshb-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.jwshb-success-icon svg {
    width: 38px;
    height: 38px;
    stroke: var(--jwshb-green);
}

.jwshb-success-subtitle {
    color: var(--text-muted, #666);
    font-size: 15px;
    margin: 0 0 24px;
}

/* Reference badge */
.jwshb-success-ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--main) 8%, transparent);
    border: 1.5px dashed var(--main);
    border-radius: 8px;
    padding: 10px 18px;
}

.jwshb-success-ref-number {
    font-weight: 700;
    color: var(--main);
}

.jwshb-copy-ref-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--main);
    opacity: 0.6;
    transition: opacity 0.15s;
}

.jwshb-copy-ref-btn:hover {
    opacity: 1;
}

/* Body: two columns */
.jwshb-success-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border-cl);
    border-radius: 0 0 var(--jwshb-radius) var(--jwshb-radius);
    overflow: hidden;
}

.jwshb-success-summary,
.jwshb-success-next {
    padding: 32px 28px;
    background: var(--light);
}

.jwshb-success-summary {
    border-right: 1px solid var(--border-cl);
}

/* Section title */
.jwshb-success-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-cl);
}

.jwshb-success-section-title svg {
    color: var(--main);
    flex-shrink: 0;
}

/* Room info row */
.jwshb-success-room-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-cl);
}

.jwshb-success-room-thumb {
    width: 90px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.jwshb-success-room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jwshb-success-hotel-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--main);
    margin-bottom: 4px;
}

/* Detail rows */
.jwshb-success-details {
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jwshb-success-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.jwshb-success-detail-row dt {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 400;
}

.jwshb-success-detail-row dt svg {
    flex-shrink: 0;
}

.jwshb-success-detail-row dd {
    font-weight: 600;
    color: var(--heading);
    margin: 0;
}

/* Price block */
.jwshb-success-price-block {
    background: color-mix(in srgb, var(--main) 8%, transparent);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jwshb-success-price-row {
    display: flex;
    justify-content: space-between;
}

.jwshb-success-price-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    padding-top: 8px;
    border-top: 1px solid var(--border-cl);
    margin-top: 4px;
}

.jwshb-success-room-divider {
    border: none;
    border-top: 1px solid var(--border-cl);
    margin: 18px 0;
}

.jwshb-success-grand-total-block {
    background: var(--secondary);
    border: 1px solid var(--main);
    margin-top: 8px;
}

/* What's next */
.jwshb-success-next-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.jwshb-success-next-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.jwshb-success-next-list li strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.jwshb-success-next-list li p {
    font-size: 13px;
    color: var(--text-muted, #777);
    margin: 0;
    line-height: 1.5;
}

.jwshb-success-next-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--main) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Action buttons */
.jwshb-success-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.jwshb-success-actions .jwshb-btn-print,
.jwshb-success-actions .jwshb-btn-home,
.jwshb-success-actions .jwshb-btn-continue {
    padding: 10px 20px;
}

/* Print styles */
@media print {

    /* Hide entire page — JS clone appends #jwshb-print-clone directly to body */
    body>*:not(#jwshb-print-clone) {
        display: none !important;
    }

    #jwshb-print-clone {
        display: block !important;
        position: static !important;
        width: 100% !important;
        padding: 24px !important;
        box-sizing: border-box !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #jwshb-print-clone * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #jwshb-print-clone .jwshb-success-body {
        grid-template-columns: 1fr 1fr;
        border: none;
    }

    #jwshb-print-clone .jwshb-success-hero {
        padding: 0 0 20px;
        border: none;
        border-radius: 0;
    }

    #jwshb-print-clone .jwshb-success-summary,
    #jwshb-print-clone .jwshb-success-next {
        padding: 0 10px;
        border: none;
    }

    #jwshb-print-clone .jwshb-success-next-cancellation {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .jwshb-success-body {
        grid-template-columns: 1fr;
    }

    .jwshb-success-summary {
        border-right: none;
        border-bottom: 1px solid var(--border-cl);
    }

    .jwshb-success-ref-badge {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════
   RATES VIEW LAYOUT (grouped by Rate Plan)
   ══════════════════════════════════════════════════════ */
.jwshb-rateplan-card {
    display: flex;
    background: var(--light);
    border-radius: var(--jwshb-radius);
    margin-bottom: 28px;
    box-shadow: var(--jwshb-shadow);
    padding: 20px;
    border-radius: 10px;
    /* Grid mode: server renders .jwshb-rateplan-grid-card only */
}

.jwshb-rateplan-card:has(.jwshb-rateplan-grid-card) {
    display: block;
}

@media (max-width: 768px) {
    .jwshb-rateplan-card {
        flex-direction: column;
    }
}

.jwshb-rateplan-left {
    flex: 0 0 369px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .jwshb-rateplan-left {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border-cl);
    }
}

.jwshb-rateplan-right {
    padding-inline-start: 20px;
    flex: 1;
}

.jwshb-rateplan-rooms {
    display: flex;
    flex-direction: column;
    border-top: 1px dashed var(--border-cl);
    padding-top: 3px;
    margin-top: 10px;
}

.jwshb-rateplan-conditions {
    border-top: 1px solid var(--border-cl);
}

.jwshb-rateplan-image {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    aspect-ratio: 368 / 254;

}

.jwshb-rateplan-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.jwshb-rateplan-left .jwshb-rateplan-image {
    position: sticky;
    top: 0;
    border-radius: 8px;
    overflow: hidden;
}

.jwshb-room-card-left .jwshb-room-card-left-inner {
    position: sticky;
    top: 0;
}

.jwshb-rateplan-no-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.jwshb-rateplan-discount-badge {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--light);
    position: relative;
    text-align: center;
}

.jwshb-rateplan-save-label {
    color: #ffc57f;
    margin-bottom: 0;
}

.jwshb-rateplan-name-on-img {
    font-size: var(--fs-small);
    line-height: var(--fh-small);
    font-weight: bold;
}

.jwshb-rateplan-benefits {
    flex: 1;
    padding: 18px 20px;
    border-top: 1px solid var(--border-cl);
    background: #fafafa;
}

.jwshb-rateplan-you-get {
    font-size: 13px;
    font-weight: 700;
    color: var(--main);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jwshb-rateplan-perks-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    columns: 1;
    font-size: 13px;
    color: var(--heading);
    line-height: 1.6;
}

.jwshb-rateplan-perks-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 2px 0;
    break-inside: avoid;
}

.jwshb-rateplan-perks-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--jwshb-green);
}

@media (max-width: 600px) {
    .jwshb-rateplan-perks-list {
        columns: 1;
    }
}

.jwshb-rateplan-policies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.jwshb-rateplan-room-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0px;
    border-bottom: 1px solid var(--border-cl);
    transition: background 0.15s;
    flex-wrap: wrap;
    /* Name row: name + hurry + save badge inline */
    /* Price col */
}

.jwshb-rateplan-room-row:last-child {
    border-bottom: none;
}

.jwshb-rateplan-room-row .jwshb-rate-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jwshb-rateplan-room-row .jwshb-rate-price-col {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.jwshb-rpr-thumb-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .jwshb-rpr-thumb-wrap {
        width: 100%;
    }
}

.jwshb-rpr-thumb {
    width: 161px;
    object-fit: cover;
    aspect-ratio: 161 / 111;
    border-radius: 6px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .jwshb-rpr-thumb {
        width: 80px;
        height: 60px;
    }
}

.jwshb-rpr-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.jwshb-rpr-info .jwshb-room-details-link {
    font-size: var(--fs-small);
}

.jwshb-rpr-info .jwshb-room-meta {
    margin-bottom: 3px;
}

.jwshb-rpr-title {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: var(--fh-small);
    text-transform: uppercase;
}

.jwshb-rpr-meta {
    font-size: 12px;
    color: var(--jwshb-gray);
}

.jwshb-rpr-capacity {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--jwshb-gray);
    margin-top: 2px;
}

.jwshb-rpr-availability {
    flex: 0 0 auto;
}

.jwshb-rpr-hurry {
    background: #DF2928;
    color: #fff;
    font-size: var(--fs-small);
    padding: 1px 10px;
    border-radius: 5px;
    white-space: nowrap;
    line-height: var(--fh-small);
    width: fit-content;
    margin-bottom: 10px;
}

.jwshb-rpr-price-col {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.jwshb-rpr-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.1;
}

.jwshb-rpr-price strong {
    color: var(--main);
}

.jwshb-rpr-per-night,
.jwshb-rpr-tax-note {
    font-size: 11px;
    color: var(--jwshb-gray);
}

.jwshb-rpr-book-btn {
    margin-top: 6px;
    padding: 9px 18px;
    font-size: 12px;
}

.jwshb-conditions-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--main);
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jwshb-conditions-toggle:hover {
    color: #a86820;
}

.jwshb-conditions-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.jwshb-conditions-body {
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--jwshb-gray);
    line-height: 1.7;
    background: #fffbf5;
    border-top: 1px solid var(--border-cl);
}

.jwshb-conditions-body p {
    margin: 12px 0 0;
}

/* ══════════════════════════════════════════════════════
   ROOMS — GRID CARD (layout5 style)
   ══════════════════════════════════════════════════════ */
.jwshb-room-card-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.jwshb-room-card-grid .jwshb-room-card-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 17px;
    border-radius: 8px;
}

.jwshb-room-card-grid .jwshb-room-card-image a {
    display: block;
}

.jwshb-room-card-grid .jwshb-room-card-image img {
    width: 100%;
    display: block;
    aspect-ratio: 413 / 225;
    object-fit: cover;
    transition: transform 0.4s ease;

}

.jwshb-room-card-grid .jwshb-room-card-image:hover img {
    transform: scale(1.04);
}

.jwshb-room-card-grid .jwshb-room-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jwshb-room-card-grid .jwshb-room-title {
    margin: 0 0 9px;
}

.jwshb-room-card-grid .jwshb-room-rates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.jwshb-room-card-grid .jwshb-room-view-rate-btn {
    padding: 10px 20px;
    min-width: 150px;
}

.jws-rcta-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.jws-rcta-price-wrap .jws-rcta-price {
    font-size: 20px;
    color: var(--heading);
}

/* ══════════════════════════════════════════════════════
   ROOMS — GRID LAYOUT
   ══════════════════════════════════════════════════════ */
#jwshb-results-container.jwshb-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 30px;
    align-items: start;
}

#jwshb-results-container.jwshb-grid-layout .jwshb-room-card {
    margin-bottom: 0;
    padding: 0;

}

@media (max-width: 900px) {
    #jwshb-results-container.jwshb-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #jwshb-results-container.jwshb-grid-layout {
        grid-template-columns: 1fr;
    }
}

#jwshb-results-container:not(.jwshb-grid-layout) .jwshb-room-grid-footer {
    display: none;
}

.jwshb-room-from-price {
    font-size: 14px;
    color: var(--heading);
}

.jwshb-room-from-price strong {
    color: var(--main);
    font-size: 18px;
}

/* ══════════════════════════════════════════════════════
   RATES — GRID LAYOUT
   ══════════════════════════════════════════════════════ */
#jwshb-rates-container.jwshb-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

#jwshb-rates-container.jwshb-grid-layout .jwshb-rateplan-card {
    margin-bottom: 0;
    overflow: hidden;
    padding: 0;
    height: 100%;
}

@media (max-width: 900px) {
    #jwshb-rates-container.jwshb-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #jwshb-rates-container.jwshb-grid-layout {
        grid-template-columns: 1fr;
    }
}

.jwshb-rateplan-grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jwshb-rpgc-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.jwshb-rpgc-save {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fbbf24;
}

.jwshb-rpgc-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.jwshb-rpgc-extra {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.jwshb-rpgc-body {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jwshb-rpgc-body .jwshb-rpgc-view-btn {
    padding: 10px 20px;
    min-width: 150px;
}

.jwshb-rpgc-title {
    margin: 0 0 10px;
}

.jwshb-rpgc-desc {
    margin: 0 0 10px;
}

.jwshb-rpgc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.jwshb-rpgc-price {
    font-size: 13px;
    color: var(--heading);
}

.jwshb-rpgc-price strong {
    font-size: 17px;
    color: var(--main);
}

.jwshb-rpgc-view-btn.active,
.jwshb-rateplan-card.jwshb-rpgc-expanded .jwshb-rpgc-view-btn,
.jwshb-room-card.jwshb-rpgc-expanded .jwshb-room-view-rate-btn {
    background: var(--main) !important;
    color: #fff !important;
    border-color: var(--main) !important;
}

.jwshb-grid-expander {
    grid-column: 1 / -1;
    background: var(--light);
    position: relative;
    padding: 20px;
    box-shadow: var(--jwshb-shadow);
    border-radius: 10px;
}

.jwshb-grid-expander[style*="display: none"],
.jwshb-grid-expander[style*="display:none"] {
    grid-column: unset !important;
}

.jwshb-expander-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--jwshb-gray);
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.jwshb-expander-close:hover {
    background: var(--jwshb-light-gray);
    color: var(--heading);
}

.jwshb-rates-expander {
    display: flex;
}

.jwshb-rates-expander .jwshb-rateplan-rooms {
    grid-area: rooms;
}

.jwshb-rates-expander .jwshb-rateplan-conditions {
    grid-area: conds;
    border-top: 1px solid var(--border-cl);
}

.jwshb-rooms-expander {
    padding: 20px 24px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    /* Left column: same sizing as list card */
    /* Right column: fill remaining space */
}

.jwshb-rooms-expander .jwshb-room-card-left {
    max-width: 370px;
    flex: 0 0 370px;
}

.jwshb-rooms-expander .jwshb-room-card-info {
    flex: 1;
    min-width: 0;
    padding-left: 24px;
}

.jwshb-expander-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
}

/* =============================================================
   RATE-ITEM: QTY SELECTOR + ADD-TO-CART
   ============================================================= */
.jwshb-atc-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.jwshb-atc-wrap .jwshb-btn-add-cart {
    padding: 10px;
    width: 100%;
}

.jwshb-qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-cl);
    overflow: hidden;
    padding: 3px 10px;
    width: 100%;
}

.jwshb-qty-selector .jwshb-qty-input {
    border: 0;
    min-height: 25px;
}

.jwshb-qty-btn {
    width: 20px;
    height: 20px;
    background: var(--main);
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--light);
    transition: background 0.15s;
    flex-shrink: 0;
    border-radius: 100%;
}

.jwshb-qty-input {
    width: 38px;
    height: 30px;
    border: none;
    border-left: 1px solid var(--border-cl);
    border-right: 1px solid var(--border-cl);
    text-align: center;
    font-size: 14px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.jwshb-qty-input::-webkit-inner-spin-button,
.jwshb-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =============================================================
   STICKY BOOKING CART (bottom bar)
   ============================================================= */
.jwshb-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--dark);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    border-top: 3px solid var(--main);
}

.jwshb-sticky-cart-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.jwshb-sticky-cart-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.jwshb-sticky-cart-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.jwshb-sticky-nights {
    font-size: 13px;
    color: #ccc;
    white-space: nowrap;
}

.jwshb-sticky-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--main);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.jwshb-cart-icon {
    flex-shrink: 0;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.jwshb-cart-icon:hover {
    color: #fff;
}

.jwshb-cart-icon--open {
    color: var(--main);
    transform: scale(1.15);
}

.jwshb-sticky-cart-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jwshb-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
}

.jwshb-cart-item-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jwshb-cart-item-name em {
    color: #bbb;
    font-style: normal;
}

.jwshb-cart-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.jwshb-cart-qty-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}

.jwshb-cart-qty-btn {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s;
}

.jwshb-cart-qty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.jwshb-cart-qty-num {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.jwshb-cart-remove {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s;
}

.jwshb-cart-remove:hover {
    color: var(--jwshb-red);
}

.jwshb-sticky-cart-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 20px;
}

.jwshb-sticky-total-wrap {
    text-align: right;
}

.jwshb-sticky-total-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #aaa;
    display: block;
}

.jwshb-sticky-total-price {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.jwshb-sticky-excl {
    font-size: 11px;
    color: #aaa;
    display: block;
}

.jwshb-btn-reserve {
    display: inline-block;
    background: var(--main);
    color: #fff;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}


/* =============================================================
   STICKY CART — MOBILE
   ============================================================= */
@media (max-width: 767px) {

    .jwshb-cart-icon,
    .jwshb-sticky-cart-items {
        display: none !important;
    }

    .jwshb-sticky-cart-inner {
        padding: 10px 16px;
        justify-content: flex-end;
        gap: 12px;
    }

    .jwshb-sticky-cart-right {
        gap: 12px;
    }

    .jwshb-sticky-total-label {
        display: none;
    }

    .jwshb-sticky-excl {
        display: none;
    }

    .jwshb-sticky-total-price {
        font-size: 17px;
    }

    .jwshb-btn-reserve {
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* =============================================================
   TOAST NOTICE
   ============================================================= */
.jwshb-cart-notice {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: none;
}

.jwshb-cart-notice--success {
    background: #1e6b3c;
    color: #fff;
}

.jwshb-cart-notice--error {
    background: var(--jwshb-red);
    color: #fff;
}

/* ── Returning Customer PIN Lookup ── */
.jwshb-pin-lookup-box {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 5px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.jwshb-pin-lookup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}


.jwshb-pin-lookup-sub {
    font-size: var(--fs-small);
}

.jwshb-pin-lookup-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.jwshb-pin-lookup-fields input {
    flex: 1;
    min-width: 160px;
    padding: 9px 12px;
}

#jwshb-pin-code {
    max-width: 140px;
    letter-spacing: 1px;
    text-align: center;
}

.jwshb-btn-pin {
    height: 44px;
}

.jwshb-btn-pin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#jwshb-pin-msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

#jwshb-pin-msg.jwshb-pin-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

#jwshb-pin-msg.jwshb-pin-err {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ================================================================
   ROOM DETAIL MODAL
   ================================================================ */
body.jwshb-modal-open {
    overflow: hidden;
}

.jwshb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.jwshb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.jwshb-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    animation: jwshb-modal-in 0.22s ease;
    border-radius: 10px;
}

@keyframes jwshb-modal-in {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.jwshb-modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.15s, color 0.15s;
}

.jwshb-modal-close:hover {
    background: var(--main, #c8862a);
    color: #fff;
}

.jwshb-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    width: 100%;
}

/* ── Room modal: scroll on the outer overlay, not the content box ── */
#jwshb-room-modal {
    overflow-y: auto;
    align-items: flex-start;
    padding: 40px 16px 16px;
}

#jwshb-room-modal .jwshb-modal-content {
    max-height: none;
    overflow: visible;
}

/* ================================================================
   ROOM DETAIL CONTENT
   ================================================================ */
.jwshb-room-detail {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Top: gallery ── */
.jwshb-room-detail-left {
    width: 100%;
    flex-shrink: 0;
}

.jwshb-room-gallery {
    width: 100%;
    overflow: hidden;
    padding: 20px 20px 0px;
}

.jwshb-room-gallery .swiper-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.jwshb-room-gallery .swiper-button-prev,
.jwshb-room-gallery .swiper-button-next {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.jwshb-room-gallery .swiper-button-prev::after,
.jwshb-room-gallery .swiper-button-next::after {
    font-size: 18px;
}

/* Thumbnail strip */
.jwshb-room-swiper-thumbs {
    padding: 6px 0;
}

.jwshb-room-swiper-thumbs .swiper-slide {
    width: 68px !important;
    height: 50px;
    cursor: pointer;
}

.jwshb-room-swiper-thumbs .swiper-slide img {
    opacity: 0.55;
    transition: opacity 0.15s;
    border: 2px solid transparent;
}

.jwshb-room-swiper-thumbs .swiper-slide.swiper-slide-thumb-active img {
    opacity: 1;
    border-color: var(--main, #c8862a);
}

.jwshb-room-swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Bottom: info ── */
.jwshb-room-detail-right {
    width: 100%;
    min-width: 0;
}

.jwshb-room-detail-body {
    padding: 20px 20px 24px;
}

@media (max-width: 640px) {
    .jwshb-room-detail-body {
        padding: 20px 18px 24px;
    }
}

.jwshb-room-detail-title {
    margin: 0 0 16px;
}

.jwshb-room-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-cl, #e5e7eb);
}

.jwshb-rd-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
}

.jwshb-rd-meta-item svg {
    flex-shrink: 0;
    color: var(--main, #c8862a);
}

.jwshb-rd-meta-item em {
    color: #888;
    font-style: normal;
}

.jwshb-room-detail-desc {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.jwshb-room-detail-desc p {
    margin: 0 0 10px;
}

.jwshb-room-detail-desc p:last-child {
    margin-bottom: 0;
}

.jwshb-room-detail-amenities {
    margin-bottom: 22px;
}

.jwshb-room-detail-amenities div {
    margin: 0 0 12px;
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--heading);
}

.jwshb-amenities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 15px;
}

.jwshb-amenities-list .jws-amenity-icon {
    font-size: 24px;
}

.jwshb-amenities-list .jws-amenity-icon img {
    width: 24px;
    display: block;
}

.jwshb-amenities-list li {
    flex: 0 0 calc(50% - 15px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.jwshb-rate-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jwshb-rate-plan-item {
    background: #fafafa;
    border: 1px solid var(--border-cl, #e5e7eb);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jwshb-rate-plan-item strong {
    color: var(--heading, #1a1a2e);
}

.jwshb-rate-plan-item span {
    color: #666;
    font-size: 13px;
}

/* ================================================================
   HOTEL SEARCH PAGE
   ================================================================ */
/* ================================================================
   HOTEL SEARCH PAGE
   ================================================================ */
.jwshb-hs-page {
    background: #f5f0e8;
    padding-bottom: 50px;
}

/* ── Search bar ─────────────────────────────────────────────── */
.jwshb-hs-bar {
    margin-bottom: 28px;
    padding-top: 28px;
}

.jwshb-hs-form {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 68px;
    gap: 12px;
    flex-wrap: wrap;
}

.jwshb-hs-form .jwshb-sf-cell--dates {
    flex: 0 0 369px;
}

.jwshb-hs-form .jwshb-sf-cell--dates>div {
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .jwshb-hs-form .jwshb-sf-cell--dates {
        flex: 0 0 100%;
    }
}

.jwshb-hs-form #datepicker-date-range-hidden {
    top: calc(100% + 6px);
}

.jwshb-hs-form .jwshb-sf-cell {}

.jwshb-hs-form .jwshb-sf-cell--input {
    background: #ffffff;
    border: 1px solid var(--border-cl);
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 5px 12px;
    gap: 12px;
    height: 45px;
    position: relative;
    width: 100%;
    border-radius: 5px;
}

.jwshb-hs-form .jwshb-dest-wrap {
    height: 100%;
}

.jwshb-hs-form .jwshb-sf-cell--location {
    gap: 15px;
    padding: 0px;
}

.jwshb-hs-form .jwshb-sf-cell--location .jwshb-dest-input {
    border: 0;
    padding: 0;
    min-height: auto;
    padding-right: 20px;
}

.jwshb-hs-form .jwshb-sf-cell--promo .jwshb-sf-promo-input {
    border: 0;
    padding: 0px 0px 6px;
    border-bottom: 1px solid var(--border-cl) !important;
    min-height: auto;
    font-size: 13px;
    border-radius: 0;
}

.jwshb-hs-form .jwshb-btn-search {
    text-decoration: none;
    --btn-bgcolor: var(--main);
    min-width: 134px;
    height: 45px;
}

.jwshb-hs-form .jwshb-sf-cell--guests #jwshb-guests-display-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 18px;
}

/* Each cell in search bar */
.jwshb-sf-cell {
    display: flex;
    gap: 1px;
    cursor: pointer;
    flex: 1;
    position: relative;
    min-width: 0;
}

.jwshb-sf-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jwshb-sf-cell--dates {
    flex: 0 0 auto;
    cursor: pointer;
    position: relative;
}

.jwshb-sf-cell--guests {
    flex: 0 0 auto;
}

.jwshb-sf-cell--code {
    flex: 0 0 100px;
}

.jwshb-sf-cell--hotel {
    flex: 0 0 287px;
}

.jwshb-sf-cell--hotel .jwshb-dest-input {
    padding-right: 30px;
}

.jwshb-sf-cell--hotel .jwshb-dest-clear {
    right: 12px;
    position: absolute;
}

.jwshb-sf-cell--location {
    flex: 1.4;
    min-width: 160px;
}

.jwshb-sf-cell--checkin,
.jwshb-sf-cell--checkout {
    flex: 1.3;
    min-width: 140px;
}

.jwshb-sf-cell--guests {
    flex: 1.2;
    min-width: 140px;
}

.jwshb-sf-cell--promo {
    flex: 1;
    min-width: 110px;
}

.jwshb-sf-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.jwshb-sf-field-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    height: 100%;
}

.jwshb-sf-field-label {
    font-size: 13px;
    white-space: nowrap;
    line-height: 18px;
}

.jwshb-sf-field-val {
    font-size: 13px;
    font-weight: bold;
    color: var(--heading);
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 18px;
}

/* Location select */
.jwshb-sf-select--location {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    padding: 0;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

/* Promo code input */
.jwshb-sf-promo-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    padding: 0;
    width: 100%;
    border-radius: 0;
}

.jwshb-sf-promo-input::placeholder {
    color: #9ca3af;
}

/* ── Guests dropdown inside sf-cell ─────────────────────────── */
.jwshb-guests-selector {
    position: static;
    width: 100%;
}

.jwshb-guests-display {
    cursor: pointer;
}

.jwshb-sf-chevron {
    margin-top: 30px;
    margin-inline-start: 4px;
}

.jwshb-guests-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-cl);
    padding: 14px 16px;
    display: none;
    z-index: 200;
    min-width: 220px;
    border-radius: 8px;
}

.jwshb-sf-cell--guests.open .jwshb-guests-dropdown {
    display: block;
}

/* ── Results area (full width, no sidebar) ──────────────────── */
.jwshb-hs-results-area {
    width: 100%;
}

/* ── Toolbar ─────────────────────────────────────────────────── */
.jwshb-hs-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.jwshb-hs-toolbar>div {
    display: flex;
    align-items: center;
    gap: 3vw;
}

/* Active filter pills (booking.com style) */
.jwshb-hs-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* Single-item flat tag (no dropdown) */
.jwshb-hs-simple-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--border-cl);
    border-radius: 20px;
    font-size: var(--fs-small);
}

.jwshb-hs-simple-tag .jwshb-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
}

/* Pill wrapper */
.jwshb-hs-filter-pill {
    position: relative;
    display: inline-flex;
}

/* Pill button */
.jwshb-hs-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid #63574A;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.jwshb-hs-filter-pill.is-open .jwshb-hs-pill-btn,
.jwshb-hs-pill-btn:hover {
    background: #f5f1ee;
    border-color: #3d342c;
}

.jwshb-hs-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #63574A;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.jwshb-hs-pill-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.jwshb-hs-filter-pill.is-open .jwshb-hs-pill-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.jwshb-hs-pill-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid var(--border-cl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    padding: 8px 0 0;
    white-space: nowrap;
    border-radius: 8px;
}

.jwshb-hs-filter-pill.is-open .jwshb-hs-pill-dropdown {
    display: block;
}

/* Checkbox items in dropdown */
.jwshb-hs-pill-items {
    padding: 0 4px;
    max-height: 240px;
    overflow-y: auto;
}

.jwshb-hs-pill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: var(--fs-small);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.12s;
}

.jwshb-hs-pill-item:hover {
    background-color: var(--secondary);
}

/* Info row for single-value filters (price, bedrooms…) */
.jwshb-hs-pill-info {
    padding: 8px 16px;
    font-size: 13px;
}

/* Footer with clear button */
.jwshb-hs-pill-footer {
    border-top: 1px solid var(--border-cl);
    padding: 8px 12px;
    margin-top: 4px;
}

.jwshb-pill-clear {
    background: none;
    border: none;
    font-size: var(--fs-small);
    padding: 0;
}

/* Clear all button */
.jwshb-clear-all-filters {
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--fs-small);
    padding: 6px 4px;
    text-decoration: underline;
}

.jwshb-hs-sort {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jwshb-hs-sort>span {
    white-space: nowrap;
}

.jwshb-hs-sort-select {
    min-height: 34px;
    font-size: var(--fs-small);
    padding-inline-end: 40px;
}

.jwshb-hs-other-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 0;
    border: 0;
    color: var(--heading);
}

/* ── Filters panel (dropdown, hidden by default) ─────────────── */
/* Legacy old panel — kept for compat */
.jwshb-hs-filters-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 20px 24px;
}

/* ── Search-page filter panel (v1: fixed drawer) ── */
.jwshb-hs-filter-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 460px;
    max-width: 92vw;
    max-height: 88vh;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -48%) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.jwshb-hs-filter-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.jwshb-hs-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-cl);
    flex-shrink: 0;
    color: var(--heading);
}

.jwshb-hs-filter-panel__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.jwshb-hs-filter-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}

.jwshb-hs-filter-panel__foot {
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.jwshb-hs-filter-panel__foot .button-default {
    width: 100%;
    text-align: center;
}

.jwshb-hs-fsection {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.jwshb-hs-fsection:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.jwshb-hs-fsection__title {
    color: var(--heading);
    font-weight: 700;
    margin-bottom: 8px;
}

.jwshb-hs-fp-range-labels {
    display: flex;
    font-size: var(--fs-small);
    margin-bottom: 10px;
    color: var(--heading);
    gap: 5px;
}

.jwshb-hs-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    backdrop-filter: blur(1px);
}

.jwshb-hs-filter-overlay.is-active {
    display: block;
}

.jwshb-hs-filter-inner {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.jwshb-hs-filter-section {
    flex: 1;
    min-width: 200px;
}

.jwshb-hs-filter-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #374151;
    margin: 0 0 12px;
}

.jwshb-hs-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jwshb-hs-filter-actions {
    display: flex;
    align-items: flex-end;
}

.jwshb-btn-secondary {
    background: var(--main, #c8802a);
    color: #fff;
    border: none;
    padding: 11px 20px;
}

.jwshb-btn-secondary:hover {
    opacity: 0.88;
}

.jwshb-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
}

@media (max-width: 1220px) {
    .jwshb-rooms-expander .jwshb-room-card-left {
        max-width: 270px;
        flex: 0 0 270px;
    }

    .jwshb-room-card .jwshb-room-card-left {
        max-width: 270px;
        flex: 0 0 270px;
    }

    .jwshb-rateplan-left {
        max-width: 270px;
        flex: 0 0 270px;
    }
}

@media (max-width: 991px) {
    .jwshb-search-form {
        gap: 0 15px;
    }

    .jwshb-search-form .jwshb-sf-cell {
        padding: 10px;
        flex: 0 0 calc(33% - 15px);
    }

    .jwshb-sf-cell--hotel {
        flex: 0 0 100% !important;
    }

    .jwshb-rooms-expander {
        display: block;
    }

    .jwshb-rooms-expander .jwshb-room-card-left {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .jwshb-rooms-expander .jwshb-room-card-info {
        padding-left: 0;
        padding-top: 16px;
    }

    .jwshb-expander-close {
        top: 0;
        right: 0;
    }

    .jwshb-room-card .jwshb-room-card-left {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .jwshb-grid-expander .jwshb-room-card-image {
        display: none;
    }

    .jwshb-room-card-info {
        padding-inline-start: 0;
    }

    .jwshb-rateplan-card {
        flex-direction: column;
    }

    .jwshb-rateplan-left {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .jwshb-grid-expander .jwshb-rateplan-left {
        display: none;
    }

    .jwshb-rateplan-right {
        padding-left: 0;
        padding-top: 16px;
    }

    .jwshb-hs-form {
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .jwshb-results-toolbar {
        flex-direction: column;
    }

    .jwshb-toolbar-left {
        justify-content: space-between;
        width: 100%;
    }

    .jwshb-toolbar-right {
        justify-content: space-between;
        width: 100%;
    }

    .jwshb-view-toggle>span {
        display: none;
    }

    .jwshb-rate-item {
        flex-direction: column;
    }

    .jwshb-rate-price-inner {
        text-align: start;
    }

    .jwshb-rate-price-col {
        flex: 0 0 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .jwshb-search-form .jwshb-sf-cell {
        flex: 0 0 100%;
        justify-content: center;
    }

    .jwshb-sf-label {
        text-align: center;
    }

    .jwshb-sf-dates-display {
        justify-content: center;
    }

    .jwshb-guests-display {
        justify-content: center;
    }

    .jwshb-search-bar .jwshb-btn-search {
        margin-bottom: 10px;
    }

    .jwshb-rateplan-room-row {
        flex-direction: column;
    }

    .jwshb-rateplan-room-row .jwshb-rate-price-col {
        flex-direction: row;
        flex: 0 0 100%;
    }
}

@media(max-width: 480px) {
    .jwshb-hs-form .jwshb-btn-search {
        width: 100%;
    }
}

/* ================================================================
   GUARANTEE PAYMENT FORM
   ================================================================ */
.jwshb-guarantee-form {
    border-radius: 10px;
    border: 2px solid #00AA6C;
    overflow: hidden;
}

.guarantee-center {
    padding: 0 23px 24px;
}

.guarantee-footer {
    display: flex;
    background: #00AA6C;
    color: var(--light);
    align-items: center;
    padding: 12px 20px;
    font-size: 12px;
    line-height: 16.6px;
    font-weight: 500;
    gap: 12px;
}

.guarantee-footer svg {
    flex: 0 0 57px;
}

.guarantee-top {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 23px 23px 27px;
}

.guarantee-top>div {
    display: flex;
    gap: 5px;
    color: #00AA6C;
}

.guarantee-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guarantee-card-info ul {
    list-style-type: none;
    padding: 0;
}

.guarantee-card-info ul li {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
    align-items: center;
}

.guarantee-card-info ul li:before {
    content: '\e803';
    font-family: "jws_icon";
    color: #00AA6C;
    font-size: 16px;
}

.jwshb-card-display-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.jwshb-card-display-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.jwshb-card-display-value {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    min-height: 18px;
}

.jwshb-card-type-icon {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    min-width: 44px;
    text-align: center;
}

.jwshb-guarantee-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .jwshb-guarantee-inputs {
        grid-template-columns: 1fr;
    }
}

.jwshb-guarantee-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jwshb-guarantee-field.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .jwshb-guarantee-field.full-width {
        grid-column: 1;
    }
}

.jwshb-guarantee-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
}

.jwshb-cvv-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.jwshb-cvv-wrapper .jwshb-guarantee-input {
    padding-right: 42px;
}

#jwshb-guarantee-error {
    display: none;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 14px;
}

.jwshb-accept-logos {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.jwshb-accept-logos span {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
    color: #374151;
    background: #f9fafb;
    letter-spacing: 0.5px;
}

.jwshb-accept-logos .visa {
    color: #1a1f71;
    border-color: #1a1f71;
}

.jwshb-accept-logos .mc {
    color: #eb5c13;
    border-color: #eb5c13;
}

.jwshb-accept-logos .amex {
    color: #007bc1;
    border-color: #007bc1;
}

.jwshb-accept-logos .jcb {
    color: #00812f;
    border-color: #00812f;
}

/* Destination autocomplete base styles (.jwshb-dest-wrap and family) now
   live in the theme's main.less — the widget renders on every page via the
   global booking popup, so frontend.css only needs to load on plugin pages. */

/* ============================================================
   HOTEL CARD (.jwshb-hc) — Horizontal layout
   ============================================================ */
.jwshb-hotel-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 0;
}

.jwshb-hc {
    display: flex;
    background: #fff;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
    margin-bottom: 30px;
    border-radius: 8px;
}

.jwshb-hc:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.11);
}

/* ── Image panel ── */
.jwshb-hc-image {
    width: 462px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    padding: 12px;
}

/* ── Hotel Gallery Modal ──────────────────────────────────────── */
.jwshb-gallery-modal {
    display: none;
    overflow: hidden;
    padding: 0;
}

.jwshb-gallery-modal.is-open {
    display: flex;
}

.jwshb-gallery-modal .jwshb-modal-content {
    max-width: calc(100% - 30px);
    max-height: calc(100% - 30px);
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 10px;
}

.jwshb-gallery-modal__header {
    padding: 20px 24px 0;
    flex-shrink: 0;
}

.jwshb-gallery-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
}

/* Tabs — thumbnail + label (booking.com style) */
.jwshb-gallery-modal__tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    padding-bottom: 12px;
}

.jwshb-gallery-modal__tabs::-webkit-scrollbar {
    display: none;
}

.jwshb-gm-tab {
    flex-shrink: 0;
    width: 96px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.jwshb-gm-tab-thumb {
    display: block;
    width: 96px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.jwshb-gm-tab-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jwshb-gm-tab-label {
    font-size: var(--fs-small);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
    transition: color 0.2s;
}

.jwshb-gm-tab:hover .jwshb-gm-tab-label {
    color: var(--heading);
}

.jwshb-gm-tab.is-active .jwshb-gm-tab-thumb {
    border-color: var(--main);
}

.jwshb-gm-tab.is-active .jwshb-gm-tab-label {
    color: var(--main);
}

/* Body / panels */
.jwshb-gallery-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
}

.jwshb-gm-panel {
    display: none;
}

.jwshb-gm-panel.is-active {
    display: block;
}

/* Mosaic grid — cell size driven by image orientation */
.jwshb-gm-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: dense;
    gap: 10px;
}

.jwshb-gm-grid-item {
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    /* aspect-ratio on the ITEM drives the row height (responsive to column width) */
    aspect-ratio: 3 / 2;
}

/* Portrait → spans 2 rows, so it's twice the height of a landscape cell */
.jwshb-gm-grid-item.vertical {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
}

.jwshb-gm-grid-item.horizon {
    grid-row: span 1;
    aspect-ratio: 3 / 2;
}

.jwshb-gm-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.jwshb-gm-grid-item:hover img {
    transform: scale(1.03);
}

.jwshb-gm-empty {
    color: #9ca3af;
    font-size: 13px;
    padding: 32px 0;
    text-align: center;
}

/* Loading state */
.jwshb-gallery-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {
    .jwshb-gm-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .jwshb-gallery-modal__header {
        padding: 16px 16px 0;
    }

    .jwshb-gallery-modal__body {
        padding: 14px 16px 20px;
    }
}

@media (max-width: 480px) {
    .jwshb-gm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Gallery / Slider shared modal — mode switching ──────────── */
/* Header sub-sections */
.jwshb-gallery-modal__header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jwshb-gm-header-gallery {
    flex: 1;
    min-width: 0;
}

.jwshb-gm-header-slider {
    display: none;
    /* hidden in gallery mode */
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* Back button (slider mode) */
.jwshb-gm-back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 6px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.jwshb-gm-back-btn:hover {
    background: #f3f4f6;
}

.jwshb-gm-counter {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Body views */
.jwshb-gm-gallery-view {
    display: block;
    /* shown in gallery mode */
}

.jwshb-gm-slider-view {
    display: none;
    /* hidden in gallery mode */
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* ── .is-slider mode overrides ───────────────────────────────── */
.jwshb-gallery-modal.is-slider .jwshb-modal-content {
    /* Definite height so the slider's flex:1 children resolve (images use max-height:100%) */
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jwshb-gallery-modal.is-slider .jwshb-gallery-modal__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    /* no padding — slider fills edge-to-edge */
}

.jwshb-gallery-modal.is-slider .jwshb-gm-header-gallery {
    display: none;
}

.jwshb-gallery-modal.is-slider .jwshb-gm-header-slider {
    display: flex;
}

.jwshb-gallery-modal.is-slider .jwshb-gm-gallery-view {
    display: none;
}

.jwshb-gallery-modal.is-slider .jwshb-gm-slider-view {
    display: flex;
}

/* ── Slider view internals ───────────────────────────────────── */
.jwshb-lb__main {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.jwshb-lb__swiper {
    width: 100%;
    height: 100%;
}

.jwshb-lb__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jwshb-lb__slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
}

/* Arrows */
.jwshb-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.15s, opacity 0.15s;
    color: #1f2937;
}

.jwshb-lb__nav:hover {
    background: #fff;
}

.jwshb-lb__nav.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.jwshb-lb__nav--prev {
    left: 16px;
}

.jwshb-lb__nav--next {
    right: 16px;
}

/* Thumbnail strip */
.jwshb-lb__thumbs {
    flex-shrink: 0;
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
}

.jwshb-lb__thumbs-swiper {
    height: 72px;
}

.jwshb-lb__thumb-slide {
    width: 108px !important;
    height: 72px;
    flex-shrink: 0;
    opacity: 0.55;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}

.jwshb-lb__thumb-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.jwshb-lb__thumb-slide.swiper-slide-thumb-active {
    opacity: 1;
    border-color: #1f2937;
}

@media (max-width: 640px) {
    .jwshb-lb__nav {
        width: 36px;
        height: 36px;
    }

    .jwshb-lb__nav--prev {
        left: 8px;
    }

    .jwshb-lb__nav--next {
        right: 8px;
    }

    .jwshb-lb__thumbs {
        padding: 8px;
    }

    .jwshb-lb__thumbs-swiper {
        height: 58px;
    }

    .jwshb-lb__thumb-slide {
        width: 86px !important;
        height: 58px;
    }
}

.jwshb-hc-swiper .swiper-slide img,
.jwshb-hc-no-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 462 / 279;
    border-radius: 8px;
}

.jwshb-hc-no-img {
    height: 210px;
    background: #e5e7eb;
}

/* Custom nav buttons (hide default swiper arrows) */
.jwshb-hc-swiper .swiper-button-next,
.jwshb-hc-swiper .swiper-button-prev {
    display: none;
}

.jwshb-hc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: background 0.15s;
    padding: 0;
}

.jwshb-hc-nav:hover {
    background: #fff;
}

.jwshb-hc-nav--prev {
    left: 8px;
}

.jwshb-hc-nav--next {
    right: 8px;
}

/* Thumbnail strip */
.jwshb-hc-thumbs-swiper {
    padding: 12px 0 0 0 !important;
}

.jwshb-hc-thumbs-swiper .swiper-slide {
    width: 93px !important;
    height: 60px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.15s, border-color 0.15s;
}

.jwshb-hc-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.jwshb-hc-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
}

/* ── Body ── */
.jwshb-hc-body {
    flex: 1;
    display: flex;
    gap: 16px;
    min-width: 0;
}

.jwshb-hc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 25px;
}

.jwshb-hc-rating {
    display: flex;
    align-items: center;
    gap: 0 15px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.jwshb-hc-rating .jwshb-stars-visual {
    letter-spacing: 1px;
    font-size: 14px;
    width: 83px;
}

/* Title */
.jwshb-hc-title {
    margin: 0;
}

/* "Show on map" link */
.jwshb-hc-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.jwshb-hc-map-link span {
    color: #1F71A4;
    text-decoration: underline;
}

.jwshb-hc-map-link:hover {
    color: #c8a96e;
}

/* ── Hotel Map Modal — Booking.com style (sidebar + fullscreen map) ─ */
body.jwshb-map-open {
    overflow: hidden;
}

.jwshb-map-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.22s ease;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.jwshb-map-modal.is-open {
    display: flex;
    opacity: 1;
}

/* Inner container — 95 vw × 95 dvh, centred inside the backdrop */
.jwshb-map-modal__inner {
    position: relative;
    width: 95vw;
    height: 95dvh;
    height: min(95dvh, 95vh);
    /* fallback for browsers without dvh */
    background: #fff;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    max-height: 100%;
    border-radius: 10px;
}

/* Global close — floating top-right inside the inner modal */
.jwshb-map-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, transform 0.15s ease;
}

.jwshb-map-modal__close:hover {
    background: #f3f4f6;
    transform: scale(1.04);
}

/* Left sidebar — floats over the map at top-left */
.jwshb-mm-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.jwshb-mm-card__head {
    display: flex;
    padding: 14px;
    gap: 12px;
    position: relative;
    align-items: flex-start;
}

.jwshb-mm-card__thumb {
    width: 80px;
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.jwshb-mm-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jwshb-mm-card__heading {
    flex: 1;
    min-width: 0;
    padding-right: 36px;
}

.jwshb-mm-card__title {
    display: block;
}

.jwshb-mm-card__stars {
    display: inline-flex;
    gap: 1px;
    color: #febb02;
    vertical-align: middle;
}

.jwshb-mm-card__head-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.jwshb-mm-card__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.15s ease, color 0.15s ease;
}

.jwshb-mm-card__btn:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Offer block */
.jwshb-mm-card__offer {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #f1f1f1;
    align-items: flex-start;
}

.jwshb-mm-offer__main {
    flex: 1;
    min-width: 0;
}

.jwshb-mm-offer__meta {
    font-size: 12px;
    margin-bottom: 4px;
}

.jwshb-mm-offer__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.jwshb-mm-offer__orig {
    color: #dc2626;
    text-decoration: line-through;
    font-size: 13px;
}

.jwshb-mm-offer__orig:empty {
    display: none;
}

.jwshb-mm-offer__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
}

.jwshb-mm-offer__incl {
    font-size: 11px;
    margin-top: 2px;
}

.jwshb-mm-offer__cancel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    margin-top: 6px;
}

.jwshb-mm-offer__btn {
    padding: 8px 16px;
    border: 0;
}

.jwshb-mm-card__address {
    padding: 0 14px 14px;
}

.jwshb-mm-card__section {
    padding: 14px;
    border-top: 1px solid #f1f1f1;
}

.jwshb-mm-section__title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading);
}

.jwshb-mm-attractions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jwshb-mm-attractions li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
    border-top: 1px solid #f9fafb;
}

.jwshb-mm-attractions li:first-child {
    border-top: 0;
}

.jwshb-mm-attr__dist {
    color: #6b7280;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* Map area — fills the whole modal underneath the sidebar */
.jwshb-map-modal__map {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #e5e7eb;
}

/* Filter overlay — covers map when filters panel is open */
.jwshb-mm-filter-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.jwshb-mm-filter-overlay.is-active {
    display: block;
}

/* Loading overlay (AJAX) */
.jwshb-map-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 7;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jwshb-mm-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #006ce4;
    border-radius: 50%;
    animation: jwshb-mm-spin 0.8s linear infinite;
}

@keyframes jwshb-mm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Panel system (only .is-active is visible) ── */
.jwshb-mm-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 380px;
    max-height: 100%;
    overflow-y: auto;
    z-index: 5;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.jwshb-map-modal:not(.has-panel) .jwshb-mm-panel {
    transform: translateX(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
}

.jwshb-mm-panel.is-active {
    display: block;
}

/* ── Floating tools bar (top of map, right of sidebar) ── */
.jwshb-map-modal__tools {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    max-width: 360px;
    pointer-events: none;
    transition: left 0.25s ease;
}

.jwshb-map-modal.has-panel .jwshb-map-modal__tools {
    left: 418px;
    /* sidebar 380px + 18px left + 20px gap */
}

.jwshb-map-modal__tools>* {
    pointer-events: auto;
}

.jwshb-mm-clear-filters {
    background: #fff;
    border: 1px solid var(--border-cl);
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    padding: 9px 18px;
    font-size: var(--fs-small);
}

.jwshb-mm-clear-filters:hover {
    background: #f5f5f5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.jwshb-mm-searchbox {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    padding: 0 14px;
    height: 44px;
    width: 360px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Custom Places dropdown in the map searchbox */
.jwshb-mm-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    max-height: 320px;
    overflow-y: auto;
}

.jwshb-mm-searchbox__icon {
    color: #6b7280;
    flex-shrink: 0;
    margin-right: 8px;
}

.jwshb-mm-searchbox input {
    flex: 1 1 0%;
    border: 0px !important;
    background: transparent;
    font-size: 14px;
    padding: 0px !important;
    outline: none !important;
    min-width: 0px;
}

.jwshb-mm-searchbox__clear {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
    margin-left: 4px;
}

.jwshb-mm-searchbox__clear svg {
    display: block;
}

.jwshb-mm-searchbox__clear:hover {
    color: var(--heading);
}

.jwshb-mm-filters-btn-wrap {
    display: flex;
    gap: 20px;
}

.jwshb-mm-filters-btn {
    background: var(--main);
    color: #ffffff;
    border: 0;
    border-radius: 22px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.jwshb-mm-search-tip {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
    max-width: 100%;
}

/* ── Panel: filters ── */
.jwshb-mm-panel--filters {
    position: absolute;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 380px;
    height: 100%;
    z-index: 6;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.jwshb-mm-panel--filters.is-active {
    display: flex;
    transform: translateX(0);
}

.jwshb-mm-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid #f1f1f1;
    flex-shrink: 0;
}

.jwshb-mm-filters__body {
    overflow-y: auto;
    padding: 14px;
    flex: 1;
}

.jwshb-mm-filters__foot {
    padding: 12px 14px;
    border-top: 1px solid #f1f1f1;
    flex-shrink: 0;
}

.jwshb-mm-filters-apply {
    width: 100%;
    background: var(--main);
    color: #fff;
    border: 0;
    padding: 10px;
}

.jwshb-mm-fsection {
    margin-bottom: 18px;
}

.jwshb-mm-fsection:last-child {
    margin-bottom: 0;
}

.jwshb-mm-fsection .jwshb-mm-section__title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

/* Stepper (bedrooms / bathrooms) */
.jwshb-mm-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.jwshb-mm-stepper-row:last-child {
    border-bottom: none;
}

.jwshb-mm-stepper-lbl {
    flex: 1;
}

.jwshb-mm-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jwshb-mm-stepper__btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: border-color 0.15s, background 0.15s;
}

.jwshb-mm-stepper__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.jwshb-mm-stepper__val {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.jwshb-mm-stepper-hint {
    min-width: 36px;
    text-align: right;
}

.jwshb-mm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
}

.jwshb-mm-check input[type=checkbox] {
    accent-color: #006ce4;
    margin: 0;
    flex-shrink: 0;
}

.jwshb-mm-count {
    color: #6b7280;
    font-size: 12px;
    margin-left: auto;
}

/* Budget range — Booking.com style */
.jwshb-mm-range-boxes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.jwshb-mm-range-box-val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jwshb-mm-range-row {
    padding: 6px 4px;
}

/* ── Shared jQuery UI range slider ─────────────────────────────────── */
/* Default accent: blue (map / filter panel). Toolbar overrides via --jwshb-slider-color */
.jwshb-ui-slider {
    --jwshb-slider-color: var(--main, #c8802a);
}

.jwshb-hs-toolbar .jwshb-ui-slider {
    --jwshb-slider-color: var(--main, #c8802a);
    margin-top: 6px;
}

/* Room filter dropdown slider also uses site accent */
.jwshb-fdb-panel .jwshb-ui-slider {
    --jwshb-slider-color: var(--main, #c8802a);
    margin-top: 4px;
}

/* Reset jQuery UI widget chrome */
.jwshb-ui-slider.ui-widget.ui-widget-content,
.jwshb-ui-slider.ui-slider {
    position: relative;
    height: 4px;
    border: none !important;
    border-radius: 2px;
    background: #e5e7eb !important;
    box-shadow: none !important;
    outline: none;
    max-width: calc(100% - 14px);
    margin-left: 7px;
}

.jwshb-ui-slider .ui-slider-range {
    position: absolute;
    height: 100%;
    border: none !important;
    border-radius: 2px;
    background: var(--jwshb-slider-color) !important;
    box-shadow: none !important;
}

.jwshb-ui-slider .ui-slider-handle {
    position: absolute !important;
    top: 50% !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: -9px !important;
    margin-left: -9px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--jwshb-slider-color) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
    cursor: pointer !important;
    outline: none !important;
    transition: box-shadow 0.15s, border-color 0.15s;
    /* Reset jQuery UI state backgrounds */
    background-image: none !important;
}

.jwshb-ui-slider .ui-slider-handle:hover,
.jwshb-ui-slider .ui-slider-handle:focus,
.jwshb-ui-slider .ui-slider-handle.ui-state-hover,
.jwshb-ui-slider .ui-slider-handle.ui-state-focus {
    background: #fff !important;
    background-image: none !important;
    border-color: var(--jwshb-slider-color) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--jwshb-slider-color) 25%, transparent) !important;
    outline: none !important;
}

.jwshb-ui-slider .ui-slider-handle.ui-state-active {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--jwshb-slider-color) 30%, transparent) !important;
}

/* Custom HTML price pin (google.maps.OverlayView) */
.jwshb-mm-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    z-index: 2;
    transition: 0s;
    opacity: 1;
}

.jwshb-mm-pin:hover {
    z-index: 4;
}

.jwshb-mm-pin.is-selected {
    z-index: 6;
}

/* Price pill */
.jwshb-mm-pin .hotel-price {
    position: relative;
    background: #0014e4;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
    line-height: 1;
}

/* Triangular tail on the pill */
.jwshb-mm-pin .hotel-price::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #0014e4;
    transition: border-top-color 0.15s ease;
}

/* Selected price pill */
.jwshb-mm-pin.is-selected .hotel-price {
    background: #006ce4;
    border-color: #fff;
    font-size: 18px;
}

.jwshb-mm-pin.is-selected .hotel-price::after {
    border-top-color: #006ce4;
}

/* Sold-out pin — marker-pin icon, muted colour */
.jwshb-mm-pin {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    transform: translate(-50%, -100%);
}

.jwshb-mm-pin::after {
    display: none;
}

.jwshb-mm-pin:hover {
    opacity: 1;
}

.jwshb-mm-pin.is-selected .marker-shape svg path {
    fill: #006ce4;
}

.jwshb-mm-pin.is-selected {
    opacity: 1;
}

.jwshb-mm-pin .map-marker {
    position: relative;
    display: inline-block;
    width: 28px;
}

.jwshb-mm-pin .marker-shape {
    display: block;
    line-height: 0;
}

.jwshb-mm-pin .marker-shape svg {
    width: 28px;
    height: auto;
    display: block;
}

.jwshb-mm-pin .marker-shape svg path {
    fill: var(--main, #c8802a);
    transition: fill 0.15s;
}

.jwshb-mm-pin .marker-dot {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    line-height: 0;
}

.jwshb-mm-pin .marker-dot svg {
    width: 10px;
    height: 10px;
    display: block;
}

.jwshb-mm-pin .marker-dot svg circle {
    fill: #fff;
}

.jwshb-mm-pin .marker-shadow {
    display: block;
    line-height: 0;
    margin-top: 1px;
}

.jwshb-mm-pin .marker-shadow svg {
    width: 12px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.jwshb-mm-pin .marker-shadow svg ellipse {
    fill: rgba(0, 0, 0, 0.2);
}

/* Image-pin variant — used when no price and a custom pin image is configured */
.jwshb-mm-pin--img {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    line-height: 0;
}

.jwshb-mm-pin--img:hover,
.jwshb-mm-pin--img.is-selected {
    background: transparent;
    border-color: transparent;
}

.jwshb-mm-pin--img::after {
    display: none;
}

.jwshb-mm-pin__img {
    display: block;
    width: 40px;
    height: auto;
    pointer-events: none;
}

@media (max-width: 900px) {
    .jwshb-mm-card {
        border-radius: 12px 12px 0 0;
    }

    .jwshb-map-modal__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .jwshb-map-modal .jwshb-map-modal__tools {
        left: 10px;
        right: 60px;
        top: 10px;
        max-width: none;
    }

    .jwshb-map-modal.has-panel .jwshb-map-modal__tools {
        left: 10px;
    }

    .jwshb-mm-searchbox {
        width: 100%;
    }

    .jwshb-mm-panel {
        top: inherit;
        bottom: 0;
        max-width: 100%;
        width: 100%;
    }
}

/* Excerpt */
.jwshb-hc-excerpt-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.jwshb-hc-excerpt-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.jwshb-hc-show-more {
    cursor: pointer;
    white-space: nowrap;
    color: #1F71A4;
    text-decoration: underline;
    display: inline-block;
}

/* Amenities */
.jwshb-hc-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.jwshb-hc-amenity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 3px 8px;
}

/* ── Price column ── */
.jwshb-hc-price-col {
    min-width: 228px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    padding-top: 4px;
    border-left: 1px solid var(--border-cl);
    padding: 18px 20px;
}

/* "Only X left!" badge */
.jwshb-hc-urgency {
    background: #ef4444;
    color: #fff;
    font-size: var(--fs-small);
    padding: 3px 9px;
    white-space: nowrap;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

/* Original (struck) price */
.jwshb-hc-price-original {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    text-align: right;
}

/* Main price */
.jwshb-hc-price-wrap {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.jwshb-hc-price-main {
    display: flex;
    align-items: baseline;
    gap: 3px;
    text-align: right;
}

.jwshb-hc-price-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--main, #c8802a);
}

/* "nightly excluding tax" */
.jwshb-hc-price-note {
    text-align: right;
}

/* "FREE CANCELLATION" */
.jwshb-hc-free-cancel {
    color: var(--main, #c8802a);
    text-transform: uppercase;
    text-align: right;
}

/* VIEW DEAL button */
.jwshb-hc-btn-deal {
    min-width: 152px;
    margin-top: 1.5rem;
}

/* NOT AVAILABLE */
.jwshb-hc-not-avail {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 10px 0;
    background: #d1d5db;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .jwshb-hc-image {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .jwshb-hc {
        flex-direction: column;
    }

    .jwshb-hc-image {
        width: 100%;
        min-width: 0;
        padding: 20px 15px 0;
    }

    .jwshb-hc-thumbs-swiper {
        padding: 12px 0 !important;
    }

    .jwshb-hc-body {
        flex-direction: column;
        gap: 0;
    }

    .jwshb-hc-price-wrap {
        align-items: flex-start;
    }

    .jwshb-hc-main {
        padding: 18px 15px 0;
    }

    .jwshb-hc-price-col {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        padding: 20px 15px;
    }

    .jwshb-hc-price-val {
        font-size: 22px;
    }

    .jwshb-hc-btn-deal {
        width: 100%;
    }

    .jwshb-hs-count {
        display: none;
    }

    .jwshb-hs-sort span {
        display: none;
    }

    .jwshb-mm-panel--filters {
        max-width: 300px;
    }
}

/* ================================================================
   MY BOOKINGS PAGE  (.jwshb-mb-*)
   ================================================================ */
.jwshb-mb-page {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.jwshb-mb-title {
    border-bottom: 2px solid var(--main, #c8862a);
    display: inline-block;
    margin-bottom: 28px;
}

/* ── Login card ── */
.jwshb-mb-login {
    max-width: 500px;
    margin: 0 auto;
}

.jwshb-mb-login>p {
    font-size: var(--fs-small, 14px);
    color: var(--third, #63574a);
    margin-bottom: 24px;
    line-height: 1.6;
}

.jwshb-mb-login-form {
    background: #fff;
    border: 1px solid var(--border-cl, #e0e1e3);
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.jwshb-mb-login-form .jwshb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jwshb-mb-login-form label {
    font-size: var(--fs-small, 14px);
    font-weight: 600;
    color: var(--heading);
    cursor: pointer;
}

.jwshb-mb-login-form input {
    height: 44px;
    border: 1px solid var(--border-cl, #e0e1e3);
    border-radius: 8px;
    padding: 0 14px;
    font-size: var(--fs-small, 14px);
    color: var(--heading, #1a1a1a);
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
}

.jwshb-mb-login-form input:focus {
    border-color: var(--main, #c8862a);
    box-shadow: 0 0 0 3px rgba(200, 134, 42, 0.12);
}

.jwshb-mb-login-form p {
    margin: 0;
}

#jwshb-mb-forgot-msg.error {
    color: #dc2626;
}

#jwshb-mb-forgot-msg.success {
    color: #0d7d36;
}

#jwshb-mb-forgot-panel {
    background: rgb(255, 251, 242);
    border: 1px solid rgb(240, 208, 144);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: none;
}

.jwshb-mb-forgot-btns {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

#jwshb-mb-forgot-pin-link {
    color: var(--main);
    text-decoration: underline;
    font-weight: 600;
}

.jwshb-mb-login-msg {
    font-size: var(--fs-small, 14px);
    padding: 10px 14px;
    border-radius: 7px;
    text-align: center;
}

.jwshb-mb-login-msg.error {
    background: var(--e-a-bg-danger, #fef1f4);
    color: var(--e-a-color-danger, #dc2626);
    border: 1px solid #fecdd3;
}

.jwshb-mb-login-msg.success {
    background: var(--e-a-bg-success, #f2fdf5);
    color: var(--e-a-color-success, #0a875a);
    border: 1px solid #bbf7d0;
}

/* ── Account bar ── */
.jwshb-mb-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-cl, #e0e1e3);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 28px;
    font-size: var(--fs-small, 14px);
}

.jwshb-mb-account a {
    color: var(--main, #c8862a);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.jwshb-mb-account a:hover {
    opacity: 0.75;
}

/* ── Booking list ── */
.jwshb-mb-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jwshb-mb-item {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-cl);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.jwshb-mb-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.jwshb-mb-thumb {
    flex: 0 0 300px;
    width: 300px;
    align-self: stretch;
}

.jwshb-mb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jwshb-mb-body {
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jwshb-mb-ref {
    font-size: var(--fs-smallb, 12px);
    font-weight: 700;
    color: var(--main, #c8862a);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.jwshb-mb-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 2px;
}

.jwshb-mb-rooms-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    line-height: 1.4;
}

.jwshb-mb-rooms-name {
    font-weight: 600;
    color: var(--heading, #1a1a1a);
}

.jwshb-mb-rooms-rate {
    color: var(--text-muted, #888);
}

.jwshb-mb-rooms-guests {
    color: var(--text-muted, #888);
    font-size: 12px;
}

.jwshb-mb-dates {
    font-size: var(--fs-small, 14px);
    color: var(--third, #63574a);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.jwshb-mb-time {
    display: inline-block;
    background: color-mix(in srgb, var(--main) 8%, transparent);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    vertical-align: middle;
}

/* ── Right column ── */
.jwshb-mb-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 18px 20px;
    border-left: 1px solid var(--border-cl, #e0e1e3);
    min-width: 160px;
}

.jwshb-mb-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading, #1a1a1a);
}

/* Status badges */
.jwshb-mb-status,
.jwshb-mb-payment {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--fs-smallb, 12px);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.jwshb-mb-status--confirmed {
    background: var(--e-a-bg-success, #f2fdf5);
    color: var(--e-a-color-success, #0a875a);
}

.jwshb-mb-status--pending {
    background: var(--e-a-bg-warning, #fffbeb);
    color: var(--e-a-color-warning, #f59e0b);
}

.jwshb-mb-status--cancelled {
    background: var(--e-a-bg-danger, #fef1f4);
    color: var(--e-a-color-danger, #dc2626);
}

.jwshb-mb-status--completed {
    background: var(--e-a-bg-info, #f0f7ff);
    color: var(--e-a-color-info, #2563eb);
}

.jwshb-mb-status--no_show {
    background: #f3f4f6;
    color: #6b7280;
}

.jwshb-mb-payment--paid {
    background: var(--e-a-bg-success, #f2fdf5);
    color: var(--e-a-color-success, #0a875a);
}

.jwshb-mb-payment--unpaid,
.jwshb-mb-payment--pending {
    background: var(--e-a-bg-warning, #fffbeb);
    color: var(--main, #c8862a);
}

.jwshb-mb-payment--refunded {
    background: var(--e-a-bg-info, #f0f7ff);
    color: var(--e-a-color-info, #2563eb);
}

/* Empty state */
.jwshb-mb-empty {
    font-size: var(--fs-body, 16px);
    color: var(--third, #63574a);
    padding: 40px 0;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .jwshb-mb-thumb {
        flex: 0 0 200px;
        width: 200px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .jwshb-mb-thumb {
        display: none;
    }
}

@media (max-width: 767px) {
    .jwshb-mb-item {
        flex-direction: column;
    }

    .jwshb-mb-thumb {
        flex: none;
        width: 100%;
    }

    .jwshb-mb-right {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

/* =================================================================
   GUEST NAMES SECTION
   ================================================================= */
.jwshb-guest-names-section {
    margin-top: 16px;
}

.jwshb-gn-room {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.jwshb-gn-room-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border-bottom: 1px dashed #e5e7eb;
}

.jwshb-gn-thumb {
    width: 90px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.jwshb-gn-room-title {
    font-size: 14px;
    color: var(--heading, #111);
    line-height: 1.4;
}

.jwshb-gn-rows {
    padding: 12px 16px 0;
}

.jwshb-gn-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f0f0f0;
    margin-bottom: 4px;
}

.jwshb-gn-row:last-child {
    border-bottom: none;
}

.jwshb-gn-row-fields {
    display: grid;
    grid-template-columns: 90px 1fr 1fr 1fr;
    gap: 10px;
    flex: 1;
}

@media (max-width: 768px) {
    .jwshb-gn-row-fields {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .jwshb-gn-row-fields {
        grid-template-columns: 1fr;
    }

    .jwshb-gn-row-fields .jwshb-form-group {
        width: 100%;
    }
}

.jwshb-gn-remove-row,
.jwshb-gn-remove-ph {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
}

.jwshb-gn-remove-row {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.jwshb-gn-remove-row:hover {
    background: var(--main);
    border-color: var(--main);
    color: #ffffff;
}

.jwshb-gn-add-row {
    margin: 10px 16px 14px;
}

/* =================================================================
   MULTI-ROOM SUMMARY CARDS (booking page sidebar)
   ================================================================= */
.jwshb-summary-room-card {
    background: #F0F4F5;
    border-radius: 6px;
    margin-bottom: 10px;
}

.jwshb-summary-room-card:not(:last-child) {
    margin-bottom: 10px;
    border-bottom: 1px dashed #d1d5db;
    padding-bottom: 10px;
}

.jwshb-src-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.jwshb-src-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.jwshb-src-title {
    font-size: 13px;
    line-height: 1.4;
    color: var(--heading, #111);
    display: block;
}

.jwshb-src-room-index {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #E9ECED;
    border-radius: 10px;
    vertical-align: middle;
}

.jwshb-src-adults strong {
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.jwshb-src-remove {
    flex-shrink: 0;
    position: relative;
    width: 22px;
    height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0;
}

.jwshb-src-remove:hover {
    background: var(--main);
    border-color: var(--main);
    color: #ffffff;
}

.jwshb-src-remove.is-loading {
    color: transparent;
    cursor: default;
}

.jwshb-src-remove.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    margin: -6px 0 0 -6px;
    border: 2px solid #d1d5db;
    border-top-color: #6b7280;
    border-radius: 50%;
    animation: jwshb-spin 0.7s linear infinite;
}

.jwshb-summary-room.is-removing {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.15s;
}

.jwshb-src-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.jwshb-src-edit-link {
    color: #d4a017;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.jwshb-src-edit-link:hover {
    text-decoration: underline;
    color: #b8860b;
}

.jwshb-src-price {
    font-size: 13px;
    color: var(--heading, #111);
    white-space: nowrap;
}

.jwshb-src-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d1d5db;
}

.jwshb-src-panel-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--third, #6b7280);
    padding: 3px 0;
}

/* =================================================================
   ROOM DETAIL MODAL (multi-room booking page)
   ================================================================= */
.jwshb-rdt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.jwshb-rdt-dialog {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: jwshb-modal-in 0.22s ease;
}

.jwshb-rdt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.jwshb-rdt-header-info {
    flex: 1;
}

.jwshb-rdt-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.jwshb-rdt-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.jwshb-rdt-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.jwshb-rdt-controls {
    display: flex;
    align-items: center;
    gap: 5px 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.jwshb-rdt-controls label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin: 0;
}

.jwshb-rdt-adults-sel,
.jwshb-rdt-children-sel {
    min-width: 70px;
}

.jwshb-rdt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}

.jwshb-rdt-table th {
    padding: 8px 10px;
    text-align: start;
    font-weight: 700;
    color: var(--heading);
}

.jwshb-rdt-table .jwshb-rdt-th-total {
    text-align: end;
}

.jwshb-rdt-th-total {
    text-align: right;
}

.jwshb-rdt-table .jwshb-rdt-total-row {
    border: 0;
}

.jwshb-rdt-table td {
    padding: 7px 10px;
}

.jwshb-rdt-td-num {
    text-align: right;
}

.jwshb-rdt-total-row td {
    padding-top: 10px !important;
    color: var(--heading);
}

.jwshb-rdt-inclusions,
.jwshb-rdt-policy {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.jwshb-rdt-inclusions strong,
.jwshb-rdt-policy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--heading, #111);
}

.jwshb-rdt-inclusions-content ul,
.jwshb-rdt-inclusions-content ol {
    margin: 0;
    padding-left: 20px;
}

.jwshb-rdt-policy-content {
    color: var(--third, #555);
}

.jwshb-rdt-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

/* ================================================================
   Change Booking Page  (.jwshb-cb-*)
   ================================================================ */
.jwshb-cb-page {
    padding: 48px 0 80px;
    min-height: 60vh;
}

.jwshb-cb-title {
    font-size: var(--fs-h2, 2rem);
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 28px;
}

/* Lookup form */
.jwshb-cb-lookup {
    max-width: 540px;
}

.jwshb-cb-desc {
    color: var(--body-cl, #555);
    margin-bottom: 24px;
    line-height: 1.6;
}

.jwshb-cb-lookup-form {
    background: var(--bodybg, #fff);
    border: 1px solid var(--border-cl, #e5e7eb);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.jwshb-cb-lookup-form .jwshb-btn-primary {
    align-self: flex-start;
}

.jwshb-cb-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: var(--fs-small, 13px);
}

.jwshb-cb-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.jwshb-cb-msg.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Result card */
.jwshb-cb-card {
    border: 1px solid var(--border-cl);
}

.jwshb-cb-card-header {
    padding: 22px 28px;
    background: var(--secondary);
}

.jwshb-cb-ref-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.jwshb-cb-ref {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Status badge */
.jwshb-cb-status-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.jwshb-cb-status--cancelled {
    background: rgba(220, 38, 38, 1);
}

.jwshb-cb-status--confirmed {
    background: #529c52;
}

.jwshb-cb-status--completed {
    background: rgba(37, 99, 235, 1);
}

.jwshb-cb-status--pending {
    background: rgba(202, 138, 4, 1);
}

/* Card body */
.jwshb-cb-card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jwshb-cb-dates {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--heading);
}

.jwshb-cb-dates strong {
    text-transform: uppercase;
}

.jwshb-cb-dates em {
    font-style: normal;
    display: block;
    margin-top: 2px;
}

.jwshb-cb-arrow {
    color: var(--border-cl, #ccc);
    font-size: 1.2rem;
}

/* Rooms */
.jwshb-cb-rooms {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jwshb-cb-room-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jwshb-cb-room-name {
    font-weight: 600;
    color: var(--heading);
}

.jwshb-cb-rate {
    color: var(--main);
}

.jwshb-cb-guests {
    margin-left: auto;
}

/* Totals */
.jwshb-cb-totals {
    border-top: 1px solid var(--border-cl, #e5e7eb);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jwshb-cb-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jwshb-cb-total-amount {
    font-weight: 700;
    color: var(--heading);
    border-top: 1px dashed var(--border-cl, #e5e7eb);
    padding-top: 10px;
    margin-top: 4px;
}

.jwshb-cb-payment-status {
    font-weight: 600;
}

.jwshb-cb-ps--pending {
    color: #d97706;
}

.jwshb-cb-ps--paid {
    color: #16a34a;
}

.jwshb-cb-ps--failed {
    color: #dc2626;
}

/* Actions */
.jwshb-cb-actions {
    padding: 20px 28px;
    border-top: 1px solid var(--border-cl, #e5e7eb);
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--e-a-bg-default, #fafafa);
}

.jwshb-cb-cancel-btn {
    padding: 10px 22px;
    align-self: flex-start;
}

.jwshb-cb-closed-note,
.jwshb-cb-cancelled-note {
    font-size: var(--fs-small, 13px);
    color: var(--body-cl, #888);
    margin: 0;
}

.jwshb-cb-cancelled-note {
    color: #16a34a;
}

/* ── My Bookings — method toggle ────────────────────────────── */
.jwshb-mb-method-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-cl, #d1d5db);
    overflow: hidden;
    margin-bottom: 4px;
}

.jwshb-mb-method-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    margin: 0;
}

.jwshb-mb-method-opt input[type="radio"] {
    display: none;
}

.jwshb-mb-method-opt+.jwshb-mb-method-opt {
    border-left: 1px solid var(--border-cl, #d1d5db);
}

.jwshb-mb-method-opt.active {
    background: var(--main);
    color: #fff;
}

/* ── My Bookings — back link ────────────────────────────────── */
.jwshb-mb-back-link {
    color: var(--main);
}

/* ── My Bookings — view detail button ──────────────────────── */
.jwshb-cb-cancel-warning {
    font-size: var(--fs-small, 12px);
    color: #d97706;
    margin: 6px 0 0;
}

/* ── Page modal (Terms / Privacy) ── */
.jwshb-page-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jwshb-page-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.jwshb-page-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 992px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: jwshb-modal-in 0.22s ease;
}

.jwshb-page-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.jwshb-page-modal-body p {
    margin: 0 0 12px;
}

.jwshb-page-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 6px;
    line-height: 1;
}

.jwshb-page-modal-close:hover {
    color: #111;
}

/* ── WooCommerce iframe payment modal ────────────────────────── */
@keyframes jwshb-wc-fadein {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

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

#jwshb-wc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.jwshb-wc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.jwshb-wc-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    width: min(700px, 100%);
    height: min(640px, 90vh);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: jwshb-wc-fadein 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Header */
.jwshb-wc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--main, #7c3aed) 0%, color-mix(in srgb, var(--main, #7c3aed) 80%, #000) 100%);
    flex-shrink: 0;
}

.jwshb-wc-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jwshb-wc-modal-title {
    font-weight: 700;
    color: #fff;
}

.jwshb-wc-modal-subtitle {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.72);
}

.jwshb-wc-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s;
}

.jwshb-wc-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.jwshb-wc-modal-close svg {
    pointer-events: none;
}

/* Body / iframe */
.jwshb-wc-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f8f9fb;
}

#jwshb-wc-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

/* Spinner */
.jwshb-wc-modal-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
}

.jwshb-wc-modal-spinner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.jwshb-wc-modal-spinner span {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--main, #7c3aed);
    border-radius: 50%;
    animation: jwshb-spin 0.7s linear infinite;
}

.jwshb-wc-modal-spinner p {
    font-size: 13px;
    color: var(--heading, #374151);
    margin: 0;
    opacity: 0.7;
}

body.jwshb-wc-modal-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 480px) {
    #jwshb-wc-modal {
        padding: 0;
    }

    .jwshb-wc-modal-box {
        width: 100%;
        height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: none;
    }
}

/* ── Already-booked notice ─────────────────────────────────────── */
#jwshb-already-booked-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.jwshb-abn-inner {
    max-width: 480px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
    text-align: center;
}

.jwshb-abn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--main, #7c3aed) 12%, transparent);
    color: var(--main, #7c3aed);
    margin-bottom: 24px;
}

.jwshb-abn-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading, #1a1a1a);
    margin: 0 0 12px;
}

.jwshb-abn-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 28px;
}

@media (max-width: 480px) {
    .jwshb-abn-inner {
        padding: 36px 24px;
    }

    .jwshb-abn-title {
        font-size: 20px;
    }
}

/* =================================================================
   SINGLE HOTEL — MOBILE SEARCH SUMMARY
   ================================================================= */
.jwshb-mobile-search-summary {
    display: none;
}

@media (max-width: 767px) {
    .jwshb-search-bar .jwshb-search-form {
        display: none;
    }

    .jwshb-search-bar .jwshb-search-form.jwshb-search-form--open {
        display: flex;
        flex-wrap: wrap;
    }

    .jwshb-mobile-search-summary {
        display: block;
        padding: 12px 0;
    }

    .jwshb-mss-hotel {
        font-weight: 700;
        color: var(--heading);
        margin-bottom: 6px;
    }

    .jwshb-mss-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 4px;
    }

    .jwshb-mss-avail {
        color: var(--heading);
        font-weight: 500;
    }

    .jwshb-mss-edit-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        padding: 0;
        font-weight: 700;
        color: var(--main);
        cursor: pointer;
        text-decoration: underline;
        white-space: nowrap;
    }

    .jwshb-mss-edit-btn svg {
        flex-shrink: 0;
    }

    .jwshb-mss-dates {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .jwshb-mss-guests {
        font-size: 12px;
    }
}

/* ── Currency switcher ─────────────────────────────────────── */
.jwshb-currency-switcher .drop_item.jwshb-currency-active>a {
    font-weight: 700;
    color: var(--jwshb-primary, #c8802a);
}