/* ============================================================================
 * Rentz Hot Deals wizard — pixel-matches The Rentz - Hot Deals.html template.
 * Tokens come from the template's HD_TOKENS object.
 * ============================================================================ */

.rhd-wrap {
    font-family: "DM Sans", system-ui, sans-serif;
    color: #15161C;
    padding: 40px 24px 56px;
    min-height: 70vh;
    line-height: 1.4;
}
.rhd-shell { max-width: 880px; margin: 0 auto 28px; }
.rhd-card-wrap { max-width: 880px; margin: 0 auto; }

/* ----- Eyebrow chip + headline ----- */
.rhd-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #ECE9E0;
    padding: 6px 12px 6px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: #EE6B2D;
    letter-spacing: .06em; text-transform: uppercase;
}
.rhd-chip-ico {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(238,107,45,.10);
    display: inline-flex; align-items: center; justify-content: center;
}
.rhd-h1 {
    margin: 14px 0 6px !important; font-size: 38px; font-weight: 800;
    letter-spacing: -.03em; color: #15161C; line-height: 1.05 !important;
}
.rhd-sub {
    margin: 0 !important; font-size: 15px; color: #6A6B73;
    line-height: 1.5; max-width: 640px;
}

/* ----- Card ----- */
.rhd-card {
    background: #fff;
    border: 1px solid #ECE9E0;
    border-radius: 20px;
    box-shadow: 0 28px 60px -32px rgba(20,22,30,.18);
    overflow: hidden;
}

/* ----- Step header bar ----- */
.rhd-stepbar {
    padding: 20px 28px;
    border-bottom: 1px solid #ECE9E0;
    background: #FAF7EF;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.rhd-dots { display: flex; align-items: center; gap: 0; }
.rhd-dot-cell { display: inline-flex; align-items: center; gap: 10px; }
.rhd-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff; color: #6A6B73;
    border: 1.5px solid #d6d2c4;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.rhd-dot-cell.is-cur .rhd-dot,
.rhd-dot-cell.is-done .rhd-dot {
    background: #EE6B2D; color: #fff; border-color: #EE6B2D;
}
.rhd-dot-label {
    font-size: 13px; font-weight: 700; color: #A8A6A0;
    letter-spacing: -.005em; transition: color 120ms ease;
}
.rhd-dot-cell.is-cur  .rhd-dot-label { color: #15161C; }
.rhd-dot-cell.is-done .rhd-dot-label { color: #6A6B73; }
.rhd-dot-rail {
    flex: 0 0 auto; width: 36px; height: 2px; margin: 0 14px;
    background: #ECE9E0; border-radius: 2px;
    transition: background 120ms ease;
}
.rhd-dot-rail.is-done { background: #EE6B2D; }
.rhd-step-num { font-size: 12.5px; color: #6A6B73; font-weight: 600; flex: 0 0 auto; }
.rhd-step-num strong { color: #15161C; font-weight: 700; }

/* ----- Body ----- */
.rhd-body { padding: 32px 28px; }
.rhd-panel {}

.rhd-h2 {
    margin: 0 !important; font-size: 30px; font-weight: 800;
    letter-spacing: -.025em; color: #15161C; line-height: 1.1 !important;
}
.rhd-lede {
    margin: 8px 0 28px !important; font-size: 15px;
    color: #6A6B73; line-height: 1.5; max-width: 540px;
}

.rhd-label {
    font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #6A6B73; margin-bottom: 8px;
    display: flex; align-items: center; gap: 4px;
}
.rhd-req { color: #EE6B2D; }

/* ----- Step 1: Destination input + suggest ----- */
.rhd-field-dest { margin-bottom: 28px; }
.rhd-dest-wrap { position: relative; }
.rhd-input-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1.5px solid #ECE9E0; border-radius: 12px;
    padding: 14px 16px;
}
.rhd-input-row:focus-within {
    border-color: #EE6B2D;
    box-shadow: 0 0 0 3px rgba(238,107,45,.12);
}
.rhd-ico { color: #A8A6A0; flex: 0 0 auto; display: inline-flex; }
.rhd-input {
    border: none !important; outline: none !important; background: transparent !important;
    font-family: inherit !important; font-size: 15px !important;
    font-weight: 500 !important; color: #15161C !important;
    width: 100%; padding: 0 !important; height: auto !important;
    box-shadow: none !important; letter-spacing: -.005em;
}
.rhd-input::placeholder { color: #A8A6A0; font-weight: 500; opacity: 1; }

.rhd-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff; border: 1px solid #ECE9E0; border-radius: 14px;
    box-shadow: 0 24px 56px -16px rgba(20,22,30,.22);
    z-index: 25; padding: 6px;
    max-height: 360px; overflow-y: auto;
}
.rhd-suggest[hidden] { display: none; }
.rhd-sug-group + .rhd-sug-group { border-top: 1px solid #ECE9E0; margin-top: 4px; padding-top: 4px; }
.rhd-sug-group-title {
    font-size: 11px; font-weight: 700; color: #6A6B73;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 10px 4px;
}
.rhd-sug-item {
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
    transition: background 120ms ease;
}
.rhd-sug-item:hover, .rhd-sug-item.is-focus { background: #FFF8F2; }
.rhd-sug-title { font-size: 14px; font-weight: 600; color: #15161C; }
.rhd-sug-trail { font-size: 12px; color: #6A6B73; margin-top: 1px; }

/* ----- Step 1: Guests stepper card ----- */
.rhd-guests-card {
    background: #fff; border: 1.5px solid #ECE9E0;
    border-radius: 14px; overflow: hidden;
}
.rhd-guests-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
}
.rhd-guests-title { font-size: 15px; font-weight: 700; color: #15161C; }
.rhd-guests-sub { font-size: 12.5px; color: #6A6B73; margin-top: 1px; }
.rhd-guests-sep { height: 1px; background: #ECE9E0; margin: 0 20px; }

.rhd-stepper {
    display: inline-flex; align-items: center; gap: 14px;
}
.rhd-step-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid #d6d2c4 !important;
    background: #fff !important; color: #15161C !important;
    cursor: pointer; font-family: inherit; font-size: 18px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 !important; transition: border-color 120ms ease, color 120ms ease;
    line-height: 1;
}
.rhd-step-btn:hover { border-color: #15161C !important; }
.rhd-step-btn:disabled,
.rhd-step-btn[disabled] {
    border-color: #ECE9E0 !important; color: #A8A6A0 !important;
    cursor: not-allowed;
}
.rhd-step-val {
    min-width: 22px; text-align: center;
    font-weight: 800; font-size: 18px; color: #15161C;
}

/* ----- Step 2: 2-column grid ----- */
.rhd-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px; align-items: start;
}

/* ----- Step 2: Travel-window date card ----- */
.rhd-cal-card {
    background: #fff; border: 1.5px solid #ECE9E0; border-radius: 14px;
    position: relative;
}
.rhd-range {
    position: absolute; left: 0; bottom: 0; width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
}
.rhd-cal-cell {
    appearance: none; background: transparent !important;
    border: none !important; padding: 18px 20px !important;
    width: 100%; text-align: left; cursor: pointer;
    font-family: inherit; color: inherit;
    box-shadow: none !important; height: auto !important;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; border-radius: 14px;
}
.rhd-cal-cell:hover,
.rhd-cal-cell:focus { background: transparent !important; }
.rhd-cal-cell-left { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.rhd-cal-ico { color: #A8A6A0; flex: 0 0 auto; display: inline-flex; }
.rhd-cal-text {
    font-size: 14.5px; font-weight: 600; color: #A8A6A0;
    line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rhd-cal-text.is-filled { color: #15161C; }
.rhd-cal-chev { color: #A8A6A0; flex: 0 0 auto; font-weight: 600; }

/* Litepicker positioning: drop the calendar into the card. */
.rhd-cal-card .litepicker {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important; right: 0 !important;
    width: 100% !important;
    transform: none !important;
    margin: 0 !important; z-index: 50;
    pointer-events: auto;
}
.rhd-cal-card .litepicker .container__main,
.rhd-cal-card .litepicker .container__months,
.rhd-cal-card .litepicker .container__months .month-item {
    width: 100% !important; box-sizing: border-box;
}
.rhd-cal-card .litepicker .container__main {
    border-radius: 14px; padding: 8px;
    box-shadow: 0 24px 56px -16px rgba(20,22,30,.22);
    border: 1px solid #ECE9E0;
}
/* Brand-orange selection */
.rhd-cal-card .litepicker .container__days .day-item:hover:not(.is-locked):not(.is-start-date):not(.is-end-date):not(.is-in-range) {
    background: #FFF0E7 !important; color: #15161C !important;
    box-shadow: inset 0 0 0 1px #EE6B2D !important;
}
.rhd-cal-card .litepicker .container__days .day-item.is-today {
    color: #15161C !important;
    box-shadow: inset 0 0 0 1px #EE6B2D !important;
}
.rhd-cal-card .litepicker .container__days .day-item.is-start-date,
.rhd-cal-card .litepicker .container__days .day-item.is-end-date,
.rhd-cal-card .litepicker .container__days .day-item.is-start-date:hover,
.rhd-cal-card .litepicker .container__days .day-item.is-end-date:hover {
    background: #EE6B2D !important; color: #fff !important;
}
.rhd-cal-card .litepicker .container__days .day-item.is-in-range,
.rhd-cal-card .litepicker .container__days .day-item.is-in-range:hover {
    background: rgba(238,107,45,.16) !important; color: #15161C !important;
}
.rhd-cal-card .litepicker .container__tooltip {
    background-color: #15161C !important; color: #fff !important;
}
.rhd-cal-card .litepicker .container__tooltip:before { border-top-color: rgba(0,0,0,.2) !important; }
.rhd-cal-card .litepicker .container__tooltip:after  { border-top-color: #15161C !important; }

/* ----- Step 2: Min stay card (sits under the travel-window card) ----- */
.rhd-minstay-card {
    margin-top: 12px;
    background: #fff; border: 1.5px solid #ECE9E0;
    border-radius: 14px; padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.rhd-minstay-title { font-size: 15px; font-weight: 700; color: #15161C; }
.rhd-minstay-sub   { font-size: 12.5px; color: #6A6B73; margin-top: 1px; }
.rhd-minstay-meta  { min-width: 0; }

/* ----- Step 2: Budget card ----- */
.rhd-budget-card {
    background: #fff; border: 1.5px solid #ECE9E0;
    border-radius: 14px; padding: 20px;
}
.rhd-budget-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.rhd-budget-box {
    border: 1.5px solid #ECE9E0; border-radius: 12px;
    padding: 10px 14px;
}
.rhd-budget-label {
    font-size: 11px; font-weight: 700; color: #6A6B73;
    letter-spacing: .06em; text-transform: uppercase;
}
.rhd-budget-row { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.rhd-budget-cur { font-size: 11.5px; color: #6A6B73; font-weight: 700; }
.rhd-budget-box input {
    border: none !important; outline: none !important; background: transparent !important;
    font-family: inherit !important; font-size: 17px !important; font-weight: 700 !important;
    color: #15161C !important; width: 100%; padding: 0 !important;
    box-shadow: none !important; height: auto !important;
    -moz-appearance: textfield;
}
.rhd-budget-box input::-webkit-outer-spin-button,
.rhd-budget-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Slider */
.rhd-slider-wrap { position: relative; height: 36px; padding: 0 4px; margin-top: 6px; }
.rhd-slider-track {
    position: absolute; top: 16px; left: 4px; right: 4px; height: 4px;
    background: #ECE9E0; border-radius: 2px;
}
.rhd-slider-fill {
    position: absolute; top: 16px; height: 4px;
    background: #EE6B2D; border-radius: 2px;
    pointer-events: none;
}
.rhd-slider-wrap input[type="range"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 36px;
    background: transparent; appearance: none; -webkit-appearance: none;
    pointer-events: none; margin: 0; padding: 0;
}
.rhd-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid #EE6B2D;
    box-shadow: 0 2px 6px rgba(20,22,30,.18);
    pointer-events: auto; cursor: grab;
}
.rhd-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid #EE6B2D;
    box-shadow: 0 2px 6px rgba(20,22,30,.18);
    pointer-events: auto; cursor: grab;
}
.rhd-slider-wrap input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.rhd-slider-wrap input[type="range"]::-moz-range-track { background: transparent; }
.rhd-slider-legend {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #A8A6A0; font-weight: 600; margin-top: 4px;
}

/* ============================================================================
 * STEP 3 results — pixel-mirror of /properties/search/. Activated by the
 * `.is-results` modifier on `.rhd-wrap`. Uses Porto's `.container` class so
 * the page width matches the rest of the site; the wizard's own width caps
 * are stripped on this step.
 * ============================================================================ */
.rhd-wrap.is-results {
    background: #fff !important;
    padding: 0 !important;
    min-height: 0 !important;
}
.rhd-wrap.is-results .rhd-shell,
.rhd-wrap.is-results .rhd-stepbar,
.rhd-wrap.is-results .rhd-foot,
.rhd-wrap.is-results .rhd-reassure { display: none !important; }
.rhd-wrap.is-results .rhd-card-wrap {
    max-width: none !important;
    width: 100%; margin: 0; padding: 0;
}
.rhd-wrap.is-results .rhd-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.rhd-wrap.is-results .rhd-body { padding: 0 !important; }

/* Outer container — inherits Porto's site-wide width (.container is Bootstrap
 * standard, scoped by Porto's theme). Vertical padding matches the search page's
 * 40px margin around #props-root. */
.rhd-container.container {
    margin-top: 40px !important; margin-bottom: 56px !important;
}

/* ============ TOOLBAR (matches .apd-toolbar from search-archive) ============ */
.rhd-toolbar {
    display: flex; flex-direction: column; gap: 18px;
    margin-bottom: 24px;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #15161C;
}
.rhd-bread {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #6A6B73; flex-wrap: wrap;
}
.rhd-bread a {
    color: #6A6B73 !important; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.rhd-bread a:hover { color: #15161C !important; }
.rhd-bread-sep { color: #C8C5BE; }
.rhd-bread-cur { color: #15161C !important; font-weight: 600; letter-spacing: .02em; }

/* Toolbar head: big title left + actions (Map + Edit-search) right */
.rhd-toolbar-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.rhd-toolbar-head-actions {
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* Show-on-map pill — same chip style as /all-properties/'s #props-map-toggle */
.rhd-map-toggle {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff !important; border: 1px solid #ECE9E0 !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font: inherit; font-size: 12.5px !important; font-weight: 700 !important;
    color: #15161C !important; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: border-color .14s; box-shadow: none !important;
    height: auto !important;
}
.rhd-map-toggle:hover { border-color: #15161C !important; }
.rhd-results-title {
    margin: 0 !important; font-size: 36px !important; line-height: 1.05 !important;
    letter-spacing: -.02em; font-weight: 800; color: #15161C;
}
.rhd-results-meta {
    font-size: 13.5px; color: #6A6B73;
}
.rhd-results-meta span { color: #6A6B73; }

/* Edit-search pill — matches the search page's map-toggle pill style. */
.rhd-edit-btn {
    background: #fff !important; border: 1px solid #ECE9E0 !important; cursor: pointer;
    color: #15161C !important; font-family: 'DM Sans', inherit;
    font-weight: 700 !important; font-size: 12.5px !important;
    padding: 8px 14px !important; border-radius: 999px !important; flex-shrink: 0;
    display: inline-flex !important; align-items: center; gap: 7px;
    height: auto !important; white-space: nowrap;
    transition: border-color .14s;
}
.rhd-edit-btn:hover { border-color: #15161C !important; }

/* Controls row: Filters · Sort · Show — right-aligned pills */
.rhd-controls {
    display: flex; justify-content: flex-end; align-items: stretch;
    gap: 10px; flex-wrap: wrap;
}
.rhd-ctrl-btn {
    appearance: none;
    background: #fff !important; border: 1px solid #ECE9E0 !important;
    color: #15161C !important; cursor: pointer;
    font-family: 'DM Sans', inherit; font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 11px 14px !important; border-radius: 10px !important;
    display: inline-flex !important; align-items: center; gap: 8px;
    height: auto !important; box-shadow: none !important;
    transition: border-color .14s;
    white-space: nowrap;
}
.rhd-ctrl-btn:hover { border-color: #15161C !important; }
.rhd-ctrl-btn[data-count]:not([data-count="0"]) { border-color: #15161C !important; }
.rhd-ctrl-count {
    background: #EE6B2D; color: #fff;
    font-size: 10.5px; font-weight: 800;
    padding: 2px 7px; border-radius: 999px; line-height: 1.2;
    min-width: 18px; text-align: center;
}
.rhd-ctrl-lbl  { color: #6A6B73 !important; font-weight: 600 !important; }
.rhd-ctrl-val  { color: #15161C !important; }
.rhd-ctrl-dd   { position: relative; }
.rhd-ctrl-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border: 1px solid #ECE9E0; border-radius: 10px;
    box-shadow: 0 12px 32px -16px rgba(20,22,30,.18);
    list-style: none; padding: 6px; margin: 0; min-width: 200px;
    z-index: 30;
}
.rhd-ctrl-menu[hidden] { display: none; }
.rhd-ctrl-menu li {
    padding: 8px 10px; border-radius: 6px; cursor: pointer;
    font-size: 13.5px; color: #15161C;
    transition: background 120ms ease;
}
.rhd-ctrl-menu li:hover { background: #FFF8F2; }
.rhd-ctrl-menu li.is-active { background: rgba(238,107,45,.10); color: #EE6B2D; font-weight: 700; }

/* Mobile orange filter FAB — exact mirror of /all-properties/'s #filter-fab.
 * Sits at top:50% / left:10px, 44px circle, white bg, orange border + icon.
 * Hidden on desktop, shown on mobile via the media query below. */
.rhd-filter-fab {
    display: none;
    position: fixed; top: 50%; left: 10px;
    transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid #ec6122 !important;
    background: #fff !important; color: #ec6122 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    cursor: pointer;
    align-items: center; justify-content: center;
    z-index: 10001;
}
.rhd-filter-fab:hover { background: #fff !important; color: #ec6122 !important; }

/* ============ Right-side map panel ============ */
.rhd-map-panel {
    position: fixed; top: 0; right: 0;
    width: 40vw; max-width: 800px; min-width: 320px; height: 100vh;
    background: #fff; border-left: 1px solid #e5e7eb;
    box-shadow: -6px 0 24px rgba(0,0,0,.08);
    display: none; z-index: 9999;
}
.rhd-map-panel.is-open { display: block; }
.rhd-map-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-bottom: 1px solid #e5e7eb;
}
.rhd-map-close {
    border: none; background: transparent; font-size: 18px; cursor: pointer;
    width: 32px; height: 32px; border-radius: 8px; color: #6A6B73;
}
.rhd-map-close:hover { background: #F4F2EC; color: #15161C; }
.rhd-map { width: 100%; height: calc(100vh - 46px); }
/* Open state pushes the content left by the panel's width — same 40vw shift
 * the all-properties map uses (its panel keeps width:40vw; min-width:320px
 * on every viewport, no mobile override). */
.rhd-wrap.is-results.rhd-map-open .rhd-card-wrap { margin-right: 40vw; transition: margin-right .25s ease; }

/* ============ LAYOUT (sidebar + main, same as .props-layout) ============ */
.rhd-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

/* Sidebar — same outer chrome as .props-sidebar in search-archive */
.rhd-sidebar {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    position: sticky; top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.rhd-side-title {
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #6A6B73;
    padding: 4px 4px 10px;
    border-bottom: 1px solid #ECE9E0; margin-bottom: 10px;
}
.rhd-side-card {
    appearance: none; width: 100%; text-align: left; cursor: pointer;
    background: #fff !important; border: 1px solid #ECE9E0 !important;
    border-radius: 10px;
    padding: 12px 14px !important; margin-bottom: 10px !important;
    font-family: inherit; color: inherit;
    display: block; position: relative;
    transition: border-color .12s, box-shadow .12s;
    box-shadow: none !important; height: auto !important;
}
.rhd-side-card:hover { border-color: #15161C !important; }
.rhd-side-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #6A6B73;
    margin-bottom: 4px;
}
.rhd-side-value {
    font-size: 14.5px; font-weight: 700; color: #15161C;
    line-height: 1.35; padding-right: 36px;
    word-break: break-word;
}
.rhd-side-edit {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    font-size: 12px; font-weight: 700; color: #EE6B2D;
    text-decoration: underline;
}
.rhd-side-restart {
    appearance: none; width: 100%; cursor: pointer;
    background: #FAF7EF !important; border: 1.5px dashed #d6d2c4 !important;
    color: #15161C !important; font-family: inherit;
    font-weight: 700 !important; font-size: 13px !important;
    padding: 11px 14px !important; border-radius: 10px !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    gap: 6px; margin-top: 8px; box-shadow: none !important; height: auto !important;
    transition: border-color .12s, background .12s;
}
.rhd-side-restart:hover { background: #F4F0E6 !important; border-color: #15161C !important; }

/* Main column — props-grid was already styled. Just ensure the column scrolls
 * naturally and pagination has room. */
.rhd-main { min-width: 0; }

/* JS-driven measured-height animation: JS sets explicit pixel height on the
 * body to animate, then snaps to auto after expand. We bypass the theme's
 * max-height transition entirely by hard-overriding to height with !important
 * and unsetting max-height. Snappier 160ms ease-out feels close to a flyout. */
.rhd-sidebar .filter-group__body {
    max-height: none !important;
    overflow: hidden;
    opacity: 1;
    transition: height 160ms ease-out, opacity 120ms ease-out, padding 160ms ease-out !important;
    padding-bottom: 8px;
}
.rhd-sidebar .filter-group.is-collapsed .filter-group__body {
    opacity: 0;
    padding-bottom: 0;
    pointer-events: none;
}

/* Searchable filter styles — mirror the inline CSS from /all-properties/
 * so District/Area look + behave the same. */
.rhd-sidebar .filter-items-scroll {
    max-height: 170px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent;
}
.rhd-sidebar .filter-items-scroll::-webkit-scrollbar { width: 6px; }
.rhd-sidebar .filter-items-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 6px; }
.rhd-sidebar .filter-items-scroll::-webkit-scrollbar-track { background: transparent; }
.rhd-sidebar .filter-items-scroll label { display: block; margin: 6px 0; }
.rhd-sidebar .filter-search-input {
    width: 100%; margin-top: 6px; padding: 5px 8px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 13px; outline: none; box-sizing: border-box;
}
.rhd-sidebar .filter-search-input:focus { border-color: #ec6122; }
.rhd-sidebar .filter-no-match {
    color: #94a3b8; font-size: 13px; font-style: italic; margin-top: 4px;
}

/* ============ Mobile: sidebar becomes a slide-in drawer ============ */
@media (max-width: 990.98px) {
    .rhd-layout { grid-template-columns: 1fr; }
    .rhd-results-title { font-size: 26px !important; }
    .rhd-controls { justify-content: flex-start; }

    /* Sidebar drawer — exact mirror of /all-properties/'s #mobile-drawer.
     * Slides in from the LEFT (not the right), 85vw / max 420px, no shadow
     * (uses the inherent hairline border + the drawer's own background). */
    .rhd-sidebar {
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: auto !important;
        width: 85vw; max-width: 420px !important;
        height: 100vh; max-height: 100vh;
        margin: 0; padding: 14px;
        background: #fff;
        border: 0 !important;
        border-right: 1px solid #e5e7eb !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow-y: auto;
        z-index: 10005;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }
    .rhd-sidebar[data-open="true"] { transform: translateX(0); }

    /* Show the orange FAB on mobile */
    .rhd-filter-fab { display: inline-flex; }

    /* Start-over card — column layout, centered pill CTA. Auto-width
     * button reads cleaner than a stretched full-width pill on mobile. */
    .rhd-startover {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px;
        padding: 20px 18px; text-align: center;
    }
    .rhd-startover > div { width: 100%; }
    .rhd-startover .rhd-btn-primary {
        width: auto !important;
        max-width: none !important;
        align-self: center !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        padding: 0 32px !important;
    }
}

/* Match the .props-grid pattern used on the search archive so the cards
 * tile identically to the listing page. */
.rhd-deals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.rhd-deals-empty {
    background: #fff; border: 1.5px dashed #d6d2c4; border-radius: 14px;
    padding: 28px; text-align: center; color: #6A6B73; font-size: 14.5px; line-height: 1.5;
    margin-bottom: 24px;
}
.rhd-deals-empty p { margin: 0 !important; }

.rhd-deal {
    background: #fff; border: 1.5px solid #ECE9E0; border-radius: 14px;
    padding: 16px; display: flex; align-items: stretch; gap: 16px;
    text-decoration: none; color: inherit;
    transition: border-color 120ms ease, transform 80ms ease, box-shadow 120ms ease;
}
.rhd-deal:hover {
    border-color: #d6d2c4;
    box-shadow: 0 12px 24px -16px rgba(20,22,30,.16);
    text-decoration: none; color: inherit;
}
.rhd-deal-img {
    flex: 0 0 140px; height: 140px; border-radius: 10px;
    background: repeating-linear-gradient(135deg, #FAF7EF, #FAF7EF 8px, #f0eee9 8px, #f0eee9 16px);
    border: 1px solid #ECE9E0;
    display: flex; align-items: center; justify-content: center;
    color: #A8A6A0; background-size: cover; background-position: center;
    overflow: hidden;
}
.rhd-deal-img img { width: 100%; height: 100%; object-fit: cover; }
.rhd-deal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rhd-deal-top { display: flex; align-items: flex-start; gap: 8px; }
.rhd-deal-meta { flex: 1; min-width: 0; }
.rhd-deal-tag {
    font-size: 11.5px; font-weight: 700; color: #EE6B2D;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(238,107,45,.10); padding: 3px 8px; border-radius: 999px;
}
.rhd-deal-title {
    margin: 8px 0 4px !important; font-size: 17px; font-weight: 800;
    letter-spacing: -.015em; color: #15161C; line-height: 1.25 !important;
}
.rhd-deal-sub { font-size: 13px; color: #6A6B73; }
.rhd-deal-foot {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid #ECE9E0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.rhd-deal-dates { font-size: 12.5px; color: #6A6B73; display: inline-flex; align-items: center; gap: 6px; }
.rhd-deal-dates svg { color: #A8A6A0; }
.rhd-deal-price {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.rhd-deal-price-total {
    font-size: 18px; font-weight: 800; color: #15161C; letter-spacing: -.01em;
}
.rhd-deal-price-night {
    font-size: 12px; color: #A8A6A0; font-weight: 600;
}

/* Start-over card */
.rhd-startover {
    background: #FAF7EF; border: 1.5px dashed #d6d2c4; border-radius: 14px;
    padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.rhd-startover-title { font-size: 16px; font-weight: 800; color: #15161C; letter-spacing: -.01em; }
.rhd-startover-sub { font-size: 13.5px; color: #6A6B73; margin-top: 4px; line-height: 1.4; }

/* ----- Footer: Back / Continue ----- */
.rhd-foot {
    padding: 18px 28px; border-top: 1px solid #ECE9E0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff;
}
.rhd-foot-spacer { font-size: 12.5px; color: #A8A6A0; }

.rhd-btn-primary {
    appearance: none; border: 0 !important; cursor: pointer;
    background: #EE6B2D !important; color: #fff !important;
    font-family: "DM Sans", inherit; font-weight: 700 !important;
    font-size: 15px !important; letter-spacing: -.01em;
    height: 52px !important; padding: 0 24px !important;
    border-radius: 12px !important;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 16px -8px rgba(238,107,45,.45) !important;
    line-height: 1 !important; text-transform: none !important;
    transition: background 140ms ease, transform 80ms ease, box-shadow 140ms ease;
}
.rhd-btn-primary:hover {
    background: #C04C12 !important; color: #fff !important;
    box-shadow: 0 10px 24px -10px rgba(192,76,18,.55) !important;
}
.rhd-btn-primary:active { transform: translateY(1px); }
.rhd-btn-primary:disabled,
.rhd-btn-primary[disabled] {
    background: #dad6cb !important; color: #fff !important;
    cursor: not-allowed; box-shadow: none !important; transform: none;
}

.rhd-btn-ghost {
    background: transparent !important; border: 1.5px solid #d6d2c4 !important;
    cursor: pointer; color: #15161C !important;
    font-family: inherit; font-weight: 700 !important; font-size: 15px !important;
    height: 52px !important; padding: 0 22px !important;
    border-radius: 12px !important;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: none !important;
    transition: border-color 120ms ease;
}
.rhd-btn-ghost:hover { border-color: #15161C !important; color: #15161C !important; }

/* ----- Reassurance row ----- */
.rhd-reassure {
    margin-top: 16px; padding: 0 8px;
    display: flex; align-items: center; justify-content: center;
    gap: 18px; font-size: 12.5px; color: #6A6B73; flex-wrap: wrap;
}
.rhd-reassure > span { display: inline-flex; align-items: center; gap: 5px; }
.rhd-reassure-sep { width: 3px; height: 3px; border-radius: 50%; background: #ECE9E0; }

/* ============================================================================
 * Mobile
 * ============================================================================ */
@media (max-width: 768px) {
    /* Drop the wrap's horizontal padding so the card no longer doubles up
     * with the body's own gutter. Card body keeps its inner padding for
     * breathing room around text/inputs. */
    .rhd-wrap { padding: 16px 0 32px; }
    .rhd-shell { padding: 0 14px; }
    .rhd-h1 { font-size: 28px !important; }
    .rhd-h2 { font-size: 22px !important; }
    /* Step header on mobile: tighter padding, smaller dots, hide labels,
     * shorter rails, stack the dot-count vertically when the row is tight. */
    .rhd-stepbar {
        padding: 12px 14px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .rhd-dots { gap: 0; flex: 1 1 auto; justify-content: center; }
    .rhd-dot {
        width: 24px; height: 24px;
        font-size: 12px;
        border-width: 1.25px;
    }
    .rhd-dot-cell { gap: 0 !important; }
    .rhd-dot-label { display: none; }
    .rhd-dot-rail {
        width: 28px; height: 2px;
        margin: 0 8px;
    }
    .rhd-step-num {
        font-size: 11px;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .rhd-body { padding: 20px 14px; }
    .rhd-grid-2 { grid-template-columns: 1fr; gap: 18px; }
    .rhd-foot { padding: 14px 16px; gap: 8px; }
    .rhd-foot-spacer { display: none; }
    .rhd-btn-primary, .rhd-btn-ghost { flex: 1; padding: 0 14px !important; }
    .rhd-results-head { flex-direction: column; }
    .rhd-deal { flex-direction: column; gap: 12px; }
    .rhd-deal-img { flex: 0 0 auto; height: 160px; width: 100%; }
    .rhd-deal-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rhd-startover { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ====================================================================
 * Step 2 mobile fixes — keep the cards inside the viewport on narrow
 * phones (≤ 768px) WITHOUT touching Litepicker's internal day-cell
 * layout (its native flex layout is already sized to fit).
 *
 * The pre-fix overflow came from:
 *   1. The page not clipping horizontal overflow — any 1-px child overflow
 *      spawned a page-level horizontal scrollbar.
 *   2. Grid cells holding min-content children (date cell text, budget
 *      input numbers) not shrinking — without min-width:0 the cards grew
 *      past the body width.
 *   3. Budget min/max inputs at 17-px bold needing more room than narrow
 *      cards leave once you factor in card padding × 2 + gap.
 * ==================================================================== */
@media (max-width: 768px) {
    /* Suppress any rogue overflow from any descendant. */
    .rhd-wrap { overflow-x: hidden; }

    /* Allow grid + flex children to shrink to their parent. */
    .rhd-grid-2 > *,
    .rhd-cal-card,
    .rhd-minstay-card,
    .rhd-budget-card { min-width: 0; max-width: 100%; box-sizing: border-box; }

    /* Date cell — tighten padding so the displayed range fits. */
    .rhd-cal-cell { padding: 14px 16px !important; gap: 8px; }
    .rhd-cal-text { font-size: 13.5px; }

    /* If Litepicker's native size is wider than the card on a small
     * phone, let it scroll horizontally inside its own dropdown — the
     * card itself stays viewport-fitted. */
    .rhd-cal-card .litepicker {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Min-stay card — tighten padding, let title block wrap. */
    .rhd-minstay-card { padding: 14px 16px; flex-wrap: wrap; }
    .rhd-minstay-meta { flex: 1 1 auto; min-width: 0; }

    /* Budget card — keep two columns but shrink padding/font so the
     * 5-digit values fit. */
    .rhd-budget-card { padding: 16px; }
    .rhd-budget-inputs { gap: 10px; }
    .rhd-budget-box { padding: 8px 12px; min-width: 0; }
    .rhd-budget-box input { font-size: 15px !important; }
    .rhd-budget-cur { font-size: 11px; }

    /* Slider — keep the rail flush with card edges. */
    .rhd-slider-wrap { padding: 0; }
    .rhd-slider-track { left: 0; right: 0; }
}

@media (max-width: 360px) {
    /* Tightest phones (Galaxy S, iPhone SE 1st-gen ≈ 320 CSS px):
     * stack the budget min/max so each input has its own row. */
    .rhd-budget-inputs { grid-template-columns: 1fr; }
}
