/* PREVIEW (?sign=1): the listing booking card becomes one of our yard signs.
   The top of the card (dates, guests, price, Reserve) is a round sign with the
   blue rim; Express Pay, trip bag and Book Direct hang under it on a plank,
   like the "Coastal Breeze" rider. Both hang from a white post and arm.
   Only styling: the card's markup and booking logic are unchanged.
   Built by sos-sign.js; loaded by mu-plugins/sos-sign-preview.php. */
.sos-detail-sidebar.sos-has-hang:not(.sos-detail-sidebar--sticky) { position: relative; }
.sos-hang {
    position: relative;
    height: 44px;                  /* the arm and the chains down to the sign */
    pointer-events: none;
}
/* White-painted wooden post and beam, square-cut like the real ones: a flat front face with
   grain, a shaded side face for depth, square ends. */
.sos-hang__post {
    position: absolute;
    top: 0;
    right: -21px;                  /* inside the 24px margin right of the card */
    width: 18px;
    height: var(--sos-hang-post, 900px);
    border-radius: 1px;
    /* bright white paint: faint cool grain, a soft grey shaded side face for depth */
    background:
        linear-gradient(90deg, rgba(120, 140, 150, 0.10) 0 1px, transparent 1px 62%, rgba(105, 128, 140, 0.34) 62% 100%),
        repeating-linear-gradient(90deg, rgba(140, 160, 170, 0.06) 0 1px, transparent 1px 3px, rgba(140, 160, 170, 0.04) 3px 4px, transparent 4px 7px),
        #fff;
    /* same weight of edge and cast shadow as the arm, so the upright reads against a white page */
    box-shadow: 0 0 0 1px rgba(14, 60, 85, 0.18), -6px 0 12px rgba(14, 60, 85, 0.12), 6px 4px 14px rgba(14, 60, 85, 0.14);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
}
.sos-hang__arm {
    position: absolute;
    top: 4px;
    left: 6%;
    right: -21px;
    height: 17px;
    border-radius: 1px;
    background:
        linear-gradient(180deg, transparent 0 74%, rgba(120, 140, 150, 0.16) 74% 100%),
        repeating-linear-gradient(180deg, rgba(140, 160, 170, 0.06) 0 1px, transparent 1px 3px, rgba(140, 160, 170, 0.04) 3px 4px, transparent 4px 6px),
        #fff;
    box-shadow: 0 0 0 1px rgba(14, 60, 85, 0.09), 0 6px 12px rgba(14, 60, 85, 0.10);
}
.sos-hang__chain {
    position: absolute;
    width: 3px;
    margin-left: -1.5px;
    background: repeating-linear-gradient(to bottom, #8b979c 0 5px, transparent 5px 7px);
    border-radius: 2px;
    pointer-events: none;
}
.sos-hang__chain::after {          /* eye bolt */
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border: 2px solid #8b979c;
    border-radius: 50%;
    background: #fff;
}
.sos-hang > .sos-hang__chain { top: 21px; height: 28px; }
.sos-hang > .sos-hang__chain.is-l { left: 30%; }
.sos-hang > .sos-hang__chain.is-r { left: 70%; }

/* ---- the card ---- */
.sos-has-hang .sos-booking-card {
    --sign-d: 380px;               /* the round sign's diameter = the column width */
    position: relative;
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: var(--sign-pad, 70px) 0 0;
    min-height: var(--sign-d);
    transform-origin: 50% -36px;   /* swings from the arm */
}
/* round sign: white face, deep blue rim with a thin inner ring, like our signs */
.sos-has-hang .sos-booking-card::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: var(--sign-d);
    height: var(--sign-d);
    margin-left: calc(var(--sign-d) / -2);
    border-radius: 50%;
    background: #fff;
    border: 4px solid #1596B8;      /* one teal rim, same weight as the plank (Tory picked 4px, 2026-10-20) */
    box-sizing: border-box;
    box-shadow: 0 16px 34px rgba(14, 60, 85, 0.18);
}
/* the plank (rider) behind Express Pay, trip bag and Book Direct */
.sos-has-hang .sos-booking-card.has-rider::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: var(--rider-top, 420px);
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: #fff;
    border: 4px solid #1596B8;
    box-shadow: 0 12px 26px rgba(14, 60, 85, 0.16);
}
.sos-has-hang .sos-booking-card > * { position: relative; z-index: 1; }
/* pop-ups (date calendar, guest picker) must open above the rows below them */
.sos-has-hang .sos-booking-card > .sos-booking-card__dates-wrap { z-index: 30; }
.sos-has-hang .sos-booking-card > .sos-booking-card__selectors { z-index: 29; }
/* no nights pill on the sign, to save width */
.sos-has-hang .sos-bk-dates__nights { display: none !important; }
/* the three buttons in the circle sit a little closer together */
.sos-has-hang .sos-booking-card > #sos-xp-btn.sos-sign-row,
.sos-has-hang .sos-booking-card > #sos-bk-bag.sos-sign-row { margin-top: 6px !important; margin-bottom: 0 !important; }
/* rows narrow toward the top and bottom of the circle (widths set by sos-sign.js) */
.sos-has-hang .sos-booking-card > .sos-sign-row {
    width: var(--row-w, 300px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}
.sos-has-hang .sos-booking-card > .sos-sign-rider {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    box-sizing: border-box;
}
/* tighter type so the dates line and the guests row fit the curve */
.sos-has-hang .sos-bk-dates { gap: 4px !important; padding: 0 8px 0 10px !important; justify-content: center; }
.sos-has-hang .sos-bk-dates .sos-booking-card__date-field { flex: 0 0 auto !important; padding: 6px 0 !important; }
.sos-has-hang .sos-bk-dates .sos-booking-card__date-val { font-size: 0.8rem !important; }
.sos-has-hang .sos-bk-dates .sos-booking-card__date-val.sos-booking-card__placeholder { font-size: 0 !important; }
.sos-has-hang .sos-bk-dates .sos-booking-card__date-val.sos-booking-card__placeholder::before { font-size: 0.82rem; }
.sos-has-hang .sos-bk-dates__nights { font-size: 0.62rem !important; padding: 3px 6px !important; flex: 0 0 auto; white-space: nowrap; }
.sos-has-hang .sos-bk-dates__ic { font-size: 1rem !important; }
.sos-has-hang .sos-booking-card .sos-booking-card__selectors { gap: 6px; font-size: 0.92em; }
.sos-has-hang .sos-booking-card > .sos-sign-rider-first { margin-top: var(--rider-gap, 60px); }
.sos-has-hang .sos-booking-card > .sos-sign-rider-last { margin-bottom: 16px; }
.sos-has-hang .sos-booking-card > .sos-hang__chain { position: absolute; z-index: 2; top: calc(var(--sign-d) - 12px); height: calc(var(--rider-top, 420px) - var(--sign-d) + 18px); }
.sos-has-hang .sos-booking-card > .sos-hang__chain.is-l { left: 32%; }
.sos-has-hang .sos-booking-card > .sos-hang__chain.is-r { left: 68%; }
.sos-has-hang .sos-booking-card:not(.has-rider) > .sos-hang__chain { display: none; }
@media (prefers-reduced-motion: reduce) {
    .sos-has-hang .sos-booking-card { transform: none !important; }
}

/* Book Direct on the plank: the plank is the only container (no inner box), and
   the plank wraps the comparison with even padding. */
.sos-has-hang .sos-booking-card > #sos-bdc.sos-sign-rider {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-left: 18px !important;
    margin-right: 18px !important;
    width: calc(100% - 36px) !important;
}
/* bottom padding lives on the card (a child's bottom margin would collapse through it) */
.sos-has-hang .sos-booking-card.has-rider { padding-bottom: 18px !important; }
.sos-has-hang .sos-booking-card > #sos-bdc.sos-sign-rider { margin-bottom: 0 !important; }
.sos-has-hang .sos-booking-card > #sos-bdc .sos-bdc__save { padding-bottom: 2px; }

/* Taxes & fees opens a pop-up instead of expanding inside the sign */
.sos-has-hang .sos-booking-card__pb[open] > .sos-booking-card__pb-body { display: none !important; }
.sos-fees-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    color: var(--sos-slate-800, #0E3C55);
    box-shadow: 0 24px 60px rgba(14, 60, 85, 0.3);
    overflow: auto;
    font-family: var(--sos-font-body, Manrope, sans-serif);
}
.sos-fees-modal::backdrop { background: rgba(14, 40, 55, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sos-fees-modal:focus { outline: none; }
.sos-fees-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--sos-sand-200, #E7D9BE); }
.sos-fees-modal__head h3 { margin: 0; font-size: 1.15rem; }
.sos-fees-modal__head p { margin: 2px 0 0; font-size: 0.82rem; color: var(--sos-gray-500, #6b7280); }
.sos-fees-modal__close { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--sos-sand-100, #f4efe4); color: inherit; font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sos-fees-modal__body { padding: 14px 20px 20px; }
.sos-fees-modal__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.92rem; }
.sos-fees-modal__body .sos-booking-card__pb-body { display: block !important; padding: 4px 0 0 !important; margin: 0 !important; border: 0 !important; }
.sos-fees-modal__body .sos-booking-card__pb-body .sos-booking-card__prow { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.sos-fees-modal__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--sos-sand-300, #d9c9a8); font-weight: 800; font-size: 1.15rem; }
.sos-fees-modal__total span:first-child { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #1596B8; }

/* chains from the arm to the sign's rim (positioned by sos-sign.js) */
.sos-has-hang .sos-booking-card > .sos-hang__chain--up {
    position: absolute;
    z-index: 2;
    top: var(--chain-up-top, -30px) !important;
    height: var(--chain-up-h, 40px) !important;
}
.sos-has-hang .sos-booking-card > .sos-hang__chain--up.is-l { left: 30%; }
.sos-has-hang .sos-booking-card > .sos-hang__chain--up.is-r { left: 70%; }
.sos-has-hang .sos-booking-card:not(.has-rider) > .sos-hang__chain--up { display: block; }

/* Pet-friendly homes put three boxes on one row (Guests, Pets, Quote): keep them on one
   line by dropping the label icons and making Quote icon-only. */
.sos-has-hang .sos-booking-card__selectors:has(.sos-booking-card__guests + .sos-booking-card__guests) .sos-booking-card__guests label i { display: none; }
.sos-has-hang .sos-booking-card__selectors:has(.sos-booking-card__guests + .sos-booking-card__guests) .sos-booking-card__guests label { white-space: nowrap; letter-spacing: 0.06em; }
.sos-has-hang .sos-booking-card__selectors:has(.sos-booking-card__guests + .sos-booking-card__guests) .sos-booking-card__quote-btn > span { display: none; }
.sos-has-hang .sos-booking-card__selectors:has(.sos-booking-card__guests + .sos-booking-card__guests) .sos-booking-card__quote-btn { padding-left: 12px !important; padding-right: 12px !important; }
.sos-has-hang .sos-booking-card__selectors:has(.sos-booking-card__guests + .sos-booking-card__guests) .sos-booking-card__quote-btn i { margin: 0; font-size: 1.2rem; }
/* long date ranges (two-digit days): drop the calendar icon so both dates fit */
.sos-has-hang .sos-booking-card.is-tight-dates .sos-bk-dates__ic { display: none !important; }
.sos-has-hang .sos-booking-card.is-tight-dates .sos-bk-dates .sos-booking-card__date-val { font-size: 0.76rem !important; }
