/* ========================================
   RENTAL SEARCH BAR
   ======================================== */
.wh-rental-search {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 0;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 15px;
    padding: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

.wh-rental-mobile-summary,
.wh-rental-mobile-sheet-backdrop {
    display: none;
}

.wh-rental-search select,
.wh-rental-search input[type=text] {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 20px 16px;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wh-rental-search .button {
    width: 100%;
    height: 100%;
    border: 0;
    background: #333!important;
    color: #fff!important;
    padding: 20px 20px;
    border-radius: 0!important;
    margin: 0;
    outline: none;
    transition: background-color 0.2s ease;
}

.wh-rental-search .button:hover {
    background: #000!important;
}

.wh-rental-mobile-summary button:hover,
.wh-rental-mobile-summary button:focus,
.wh-rental-mobile-summary button:active {
    background: none!important;
    border: none!important;
    box-shadow: none!important;
    color: #333!important;
}

.wh-rental-search select {
    border-right: 1px solid rgba(0, 0, 0, .08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.wh-rental-search select:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.wh-rental-search select:focus {
    background-color: rgba(0, 0, 0, 0.04);
    background-color: #fff !important;
}

.wh-rental-search input[type=text]:first-of-type {
    border-right: 1px solid rgba(0, 0, 0, .08);
}

.wh-rental-search input[type=text]:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.wh-rental-search input[type=text]:focus {
    background-color: rgba(0, 0, 0, 0.04);
}

.wh-rental-search input[type=text]::placeholder {
    color: #999;
    font-weight: 400;
}

.wh-rental-search .wh-rental-date-display {
    cursor: pointer;
}

/* Style dropdown options to match calendar appearance */
.wh-rental-search select option {
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.wh-rental-search select option:checked {
    background-color: var(--tbim-medium-blue) !important;
    color: #fff !important;
}

.wh-rental-search select option:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
}

.wh-rental-search select::-webkit-list-button {
    display: none !important;
}

/* ========================================
   CUSTOM DROPDOWN
   ======================================== */
.wh-custom-dropdown {
    position: relative;
    width: 100%;
    height: 100%;
    border-right: 1px solid rgba(0, 0, 0, .08);
}

.wh-custom-dropdown-trigger {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 20px 16px;
    padding-right: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
    border-radius: 0;
}

.wh-custom-dropdown-trigger:hover,
.wh-custom-dropdown-trigger:focus,
.wh-custom-dropdown-trigger:active {
    background-color: rgba(0, 0, 0, 0.02);
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0;
}

.wh-custom-dropdown-trigger:focus {
    background-color: rgba(0, 0, 0, 0.04);
}

.wh-custom-dropdown-trigger .wh-custom-dropdown-text {
    color: #333 !important;
}

/* Search bar control typography — theme-resistant, keeps labels on one line */
.wh-rental-search > .wh-filter-location .wh-custom-dropdown-trigger,
.wh-rental-search > .wh-filter-location .wh-custom-dropdown-trigger .wh-custom-dropdown-text,
.wh-rental-search > .wh-rental-filter-menu .wh-rental-filter-trigger,
.wh-rental-search > .wh-rental-filter-menu .wh-rental-filter-trigger > span,
.wh-rental-search > .wh-rental-date-display,
.wh-rental-search > .wh-location-static .wh-location-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #333 !important;
}

.wh-rental-search > .wh-rental-date-display::placeholder {
    font-size: 13px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #999 !important;
    opacity: 1 !important;
}

.wh-rental-search > .wh-filter-location .wh-custom-dropdown-trigger,
.wh-rental-search > .wh-rental-filter-menu .wh-rental-filter-trigger {
    min-width: 0;
}

.wh-rental-search > .wh-filter-location .wh-custom-dropdown-trigger .wh-custom-dropdown-text,
.wh-rental-search > .wh-rental-filter-menu .wh-rental-filter-trigger > span,
.wh-rental-search > .wh-rental-date-display,
.wh-rental-search > .wh-location-static .wh-location-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.wh-rental-search > .wh-filter-location .wh-custom-dropdown-trigger .wh-custom-dropdown-text,
.wh-rental-search > .wh-rental-filter-menu .wh-rental-filter-trigger > span {
    flex: 1;
}

.wh-rental-search > .wh-filter-location .wh-custom-dropdown-arrow,
.wh-rental-search > .wh-rental-filter-menu .wh-custom-dropdown-arrow {
    flex-shrink: 0;
}

.wh-custom-dropdown-arrow {
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: transform 0.2s ease;
}

.wh-custom-dropdown.open .wh-custom-dropdown-arrow {
    transform: rotate(180deg);
}

.wh-custom-dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
    z-index: 10000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    min-height: 50px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wh-custom-dropdown.open .wh-custom-dropdown-options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wh-custom-dropdown-option {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.wh-custom-dropdown-option:last-child {
    border-bottom: none;
}

.wh-custom-dropdown-option:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.wh-custom-dropdown-option.selected {
    background-color: var(--tbim-medium-blue);
    color: #fff;
}

.wh-custom-dropdown-option.selected:hover {
    background-color: var(--tbim-medium-blue);
    color: #fff;
}

.wh-rental-filter-menu {
    position: relative;
    width: 100%;
    height: 100%;
    border-right: 1px solid rgba(0, 0, 0, .08);
}

.wh-rental-filter-trigger {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 20px 16px;
    padding-right: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
}

.wh-rental-filter-trigger:hover,
.wh-rental-filter-trigger:focus,
.wh-rental-filter-trigger:active {
    background-color: rgba(0, 0, 0, 0.02);
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.wh-rental-filter-menu.open .wh-custom-dropdown-arrow {
    transform: rotate(180deg);
}

.wh-rental-filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
    z-index: 10000;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wh-rental-filter-menu.open .wh-rental-filter-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wh-rental-filter-field,
.wh-rental-filter-range {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Location in filters panel is mobile-only (desktop has the bar dropdown) */
.wh-rental-filter-location-field {
    display: none;
}

.wh-rental-filter-field span,
.wh-rental-filter-range > span {
    color: #646970;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wh-rental-filter-panel select,
.wh-rental-filter-panel input[type=number] {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
    padding: 10px 12px;
}

.wh-rental-filter-panel .wh-filter-control-dropdown {
    width: 100%;
    height: auto;
    border: 0;
}

.wh-rental-filter-panel .wh-filter-control-dropdown .wh-custom-dropdown-trigger {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    border-radius: 10px !important;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.2;
    padding: 10px 12px;
    box-shadow: none !important;
}

.wh-rental-filter-panel .wh-filter-control-dropdown .wh-custom-dropdown-trigger:hover,
.wh-rental-filter-panel .wh-filter-control-dropdown .wh-custom-dropdown-trigger:focus,
.wh-rental-filter-panel .wh-filter-control-dropdown .wh-custom-dropdown-trigger:active {
    border: 1px solid rgba(0, 0, 0, .18) !important;
    border-radius: 10px !important;
    background: #fff;
}

.wh-rental-filter-panel .wh-filter-control-dropdown .wh-custom-dropdown-options {
    right: auto;
    width: 100%;
    max-height: 260px;
}

.wh-rental-filter-panel .wh-filter-control-dropdown .wh-custom-dropdown-option {
    font-size: 14px;
    line-height: 1.3;
}

.wh-rental-filter-ranges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.wh-rental-filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wh-rental-filter-range > span {
    grid-column: 1 / -1;
}

.wh-rental-filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.wh-rental-filter-actions .button {
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 10px 18px;
}

.wh-rental-selected-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: -4px auto 16px;
}

.wh-rental-filter-pill,
.wh-rental-filter-clear {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 7px 11px;
}

.wh-rental-filter-pill {
    background: #f0f6fc;
    color: #1d2327;
    gap: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wh-rental-filter-pill:hover,
.wh-rental-filter-pill:focus {
    background: #e2eefb;
    color: #1d2327;
    text-decoration: none;
}

.wh-rental-filter-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    transform: scale(.8);
    transition: margin-left 0.2s ease, opacity 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.wh-rental-filter-pill:hover .wh-rental-filter-pill-remove,
.wh-rental-filter-pill:focus .wh-rental-filter-pill-remove,
.wh-rental-filter-pill.is-remove-ready .wh-rental-filter-pill-remove {
    width: 12px;
    margin-left: 6px;
    opacity: 1;
    transform: scale(1);
}

.wh-rental-filter-clear {
    color: var(--tbim-medium-blue);
    text-decoration: none;
}

.wh-rental-filter-clear:hover,
.wh-rental-filter-clear:focus {
    color: var(--tbim-medium-blue);
    text-decoration: underline;
}

.wh-rental-no-results-message {
    margin: 22px 0 0;
    font-weight: 700;
    text-align: center;
}

.wh-rental-no-results-request {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 24px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.wh-rental-no-results-request h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.wh-rental-no-results-request > p {
    margin: 0 0 18px;
    color: #4b5563;
}

.wh-rental-no-results-request .wh-form {
    margin-top: 0;
}

/* ========================================
   STATIC LOCATION (single location case)
   ======================================== */
.wh-rental-search .wh-location-static {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 16px; /* add left/right padding to match inputs */
    border-right: 1px solid rgba(0, 0, 0, .08);
    border-radius: 0;
    box-sizing: border-box;
}

.wh-rental-search .wh-location-static .wh-location-label {
    color: #666;
    font-weight: 500;
}

.wh-rental-search .wh-location-static .wh-location-name {
    color: #333;
    font-weight: 500;
}

/* ========================================
   LITEPICKER CALENDAR
   ======================================== */
.wh-rental-search .litepicker {
    display: block;
    position: absolute;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 100% !important;
    min-width: 640px;
    max-width: 100% !important;
    margin-top: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
    border: 1px solid rgba(0, 0, 0, .08);
    overflow: hidden;
    z-index: 99999;
    --litepicker-month-width: calc((100% - 48px) / 2);
    --litepicker-day-width: 50px !important;
}

.wh-rental-search .litepicker .container__months {
    width: 100% !important;
    display: flex;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    box-shadow: none !important;
}

.wh-rental-search .litepicker .container__main {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px;
}

.litepicker .month-item {
    box-sizing: border-box;
    padding: 5px 12px !important;
    width: var(--litepicker-month-width) !important;
    flex: 0 0 var(--litepicker-month-width);
    max-width: none;
    margin: 0 !important;
}

.litepicker .month-item-header {
    border: none;
    align-items: center;
}

.litepicker .month-item-header select {
    font-size: 18px;
    font-weight: 600;
}

.litepicker .month-item-name,
.litepicker .month-item-year {
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    pointer-events: none;
    background: transparent;
    border: 0;
    padding: 0;
}

.litepicker .month-item-header select.month-item-name option,
.litepicker .month-item-header select.month-item-year option { 
    display: none; 
}

.litepicker .month-item-weekdays-row {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    margin: 0 auto 8px auto;
    width: 100% !important;
    justify-items: center;
}

.litepicker .month-item-weekdays-row div {
    font-size: 14px !important;
    font-weight: 500;
    color: #666;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.litepicker .container__days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    margin: 0 auto 8px auto;
    width: 100% !important;
}

.litepicker .container__days div {
    height: var(--litepicker-day-width);
    width: 100% !important;
    font-size: 16px !important;
}

.litepicker .day-item {
    box-sizing: border-box;
    border-radius: 9999px;
    width: 100%;
    height: var(--litepicker-day-width);
    line-height: var(--litepicker-day-width);
    font-size: 16px;
    text-align: center;
    margin: 0;
}

.litepicker .is-start-date .day-item {
    background: #000;
    color: #fff;
    border-radius: 9999px 0 0 9999px;
}

.litepicker .is-end-date .day-item {
    background: #000;
    color: #fff;
    border-radius: 0 9999px 9999px 0;
}

.litepicker .is-in-range .day-item {
    background: rgba(0, 0, 0, .08);
    border-radius: 0 !important;
}

.litepicker .button-apply {
    display: none;
}

.litepicker .container__footer {
    display: none !important;
}

.litepicker .button-previous-month,
.litepicker .button-next-month {
    width: 36px;
    height: 36px;
}

.wh-rental-picker-times {
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    padding: 18px 22px 20px;
}

.wh-rental-picker-dates-summary {
    display: none;
}

.wh-rental-picker-dates-summary span {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 10px;
    background: #f8fafc;
    color: #1d2327;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 12px;
}

.wh-rental-picker-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.wh-rental-picker-time-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.wh-rental-picker-time-grid label span {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.wh-rental-picker-time-select {
    width: 100%;
    height: 40px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    padding: 8px 10px;
}

.wh-rental-search .litepicker .wh-rental-picker-apply {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #000 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 16px;
    padding: 12px 16px;
    text-transform: uppercase;
}

/* ========================================
   RENTAL CARDS
   ======================================== */
#rental-unit-list {
    width: 100%;
}

#rental-unit-list .trailer-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

#rental-unit-list .trailer-container .t-feed {
    width: auto !important;
    transform: none !important;
}

#rental-unit-list .rental-card {
    padding: 0 !important;
    margin: 10px 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start;
}

/* Removed: Don't force hide unavailable rentals - they should be visible but marked as booked */

#rental-unit-list .rental-card .t-feed-head {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

#rental-unit-list .rental-card .wh-rental-card-copy {
    padding: 12px 16px 0;
}

#rental-unit-list .rental-card .t-feed-head h3 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

#rental-unit-list .rental-card .wh-rental-card-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

#rental-unit-list .rental-card .wh-rental-card-pills {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

#rental-unit-list .rental-card .wh-rental-card-category-pill,
#rental-unit-list .rental-card .wh-rental-card-location-pill {
    min-width: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #1d2327;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#rental-unit-list .rental-card .wh-rental-card-category-pill {
    flex: 0 1 auto;
    pointer-events: auto;
}

#rental-unit-list .rental-card .wh-rental-card-location-pill {
    flex: 0 0 auto;
}

#rental-unit-list .rental-card .wh-rental-card-category-pill a {
    color: inherit;
    text-decoration: none;
}

#rental-unit-list .rental-card .wh-rental-card-category-pill a:hover,
#rental-unit-list .rental-card .wh-rental-card-category-pill a:focus {
    color: #1d2327;
    text-decoration: underline;
}

#rental-unit-list .rental-card .t-details {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto;
}

#rental-unit-list .rental-card .t-financial {
    padding: 0 !important;
    text-align: center;
    margin-top: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#rental-unit-list .rental-card .t-img {
    aspect-ratio: 4/3;
    width: 100%;
    margin: 0;
}

#rental-unit-list .rental-card .t-img-holder {
    position: relative;
}

#rental-unit-list .rental-card .wh-rental-card-availability-note {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    padding: 12px 14px;
    background: rgba(51, 51, 51, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

#rental-unit-list .rental-card .wh-rental-spec-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
    padding: 12px 14px 0;
}

#rental-unit-list .rental-card .wh-rental-spec-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: flex-start;
    gap: 2px;
    border-radius: 999px;
    background: #f6f7f7;
    color: #1d2327;
    padding: 0 8px 0 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

#rental-unit-list .rental-card .wh-rental-spec-chip span {
    color: #646970;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#rental-unit-list .rental-card .wh-rental-spec-chip strong {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    padding-left: 0;
}

#rental-unit-list .rental-card .wh-rental-rate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 14px;
    container-type: inline-size;
}

#rental-unit-list .rental-card .wh-rental-rate-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 8px 7px;
    text-align: left;
}

#rental-unit-list .rental-card .wh-rental-rate-block span {
    color: #646970;
    display: block;
    font-size: 11px;
    font-size: clamp(8px, 3.2cqw, 11px);
    line-height: 1.2;
    margin-left: 0;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0;
    text-align: left;
    white-space: nowrap;
}

#rental-unit-list .rental-card .wh-rental-rate-block strong {
    color: #111827;
    display: block;
    font-size: 14px;
    font-size: clamp(11px, 4.2cqw, 14px);
    line-height: 1.2;
    margin-left: 0;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0;
    text-align: left;
    white-space: nowrap;
}

#rental-unit-list .rental-card .rental-rates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    margin: 6px 0 10px;
}

#rental-unit-list .rental-card .rental-rates .rate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#rental-unit-list .rental-card .rental-rates .rate span {
    white-space: nowrap;
}

#rental-unit-list .rental-card .rental-rates .rate strong {
    padding: 0;
}

#rental-unit-list .rental-card .buttons-block p {
    margin: 0;
    clear: both;
    overflow: auto;
}

#rental-unit-list .rental-card .buttons-block {
    margin-top: 0 !important;
}

#rental-unit-list .rental-card .wh-rental-card-action-row {
    margin-top: auto;
    padding: 0 14px 14px;
}

#rental-unit-list .rental-card .wh-rental-card-action-row.has-date-range {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    justify-content: stretch;
    gap: 14px;
    border-top: 1px solid #eceff3;
    padding-top: 14px;
}

#rental-unit-list .rental-card .wh-rental-selected-price {
    min-width: 0 !important;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    text-align: left !important;
}

#rental-unit-list .rental-card .wh-rental-selected-price .trailer-price-text {
    max-width: 100%;
    overflow: hidden;
    font-size: 28px;
    font-size: clamp(18px, 7cqw, 28px);
    line-height: 1.1;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#rental-unit-list .rental-card .wh-rental-selected-price .trailer-price-days {
    margin-top: 3px;
    color: #646970;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

#rental-unit-list .rental-card .wh-rental-card-action-row.has-date-range .buttons-block {
    align-self: center;
    clear: none !important;
    flex: none !important;
    float: none !important;
    justify-self: end;
    margin: 0 !important;
    min-width: max-content;
    max-width: max-content;
    overflow: visible !important;
    position: relative;
    width: auto !important;
    z-index: 2;
}

#rental-unit-list .rental-card .wh-rental-card-action-row.has-date-range .t-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 132px;
    border-radius: 4px;
    padding: 14px 22px;
    font-weight: bold!important;
    white-space: nowrap;
}

#rental-unit-list .rental-card .wh-rental-card-action-row.has-date-range .t-btn:hover {
    color:#fff!important;
}

#rental-unit-list .rental-card .wh-rental-card-action-row.no-date-range .t-btn {
    width: 100%;
}

#rental-unit-list .rental-card .wh-reserve-rental {
    width: 100%;
}

#rental-unit-list .rental-card .t-btn {
    border-radius: 6px;
}

#rental-unit-list .rental-card .wh-rental-booked {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.85;
    text-align: center;
}

.rental-card .t-title {
    font-size: 20px !important;
    line-height: 1.25;
    margin-bottom: 8px;
}

.rental-card .t-meta,
.rental-card .t-pricing {
    font-size: 18px !important;
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    position: relative;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--tbim-medium-blue, #007cba);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 8px;
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-message {
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 720px) {
    .wh-rental-search {
        display: flex;
        align-items: center;
        max-width: 100%;
        border: 0;
        border-bottom: 1px solid rgba(0, 0, 0, .12);
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .wh-rental-mobile-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        padding: 10px 12px;
    }

    .wh-rental-mobile-summary-copy {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .wh-rental-mobile-summary-location,
    .wh-rental-mobile-summary-dates,
    .wh-rental-mobile-filter-button {
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #1d2327;
        padding: 0;
        text-align: left;
    }

    .wh-rental-mobile-summary-location {
        max-width: 100%;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wh-rental-mobile-summary-dates {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        color: #646970;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.25;
    }

    .wh-rental-mobile-summary-dates-icon {
        flex: 0 0 auto;
        width: 15px;
        height: 15px;
        color: currentColor;
    }

    .wh-rental-mobile-summary-dates-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wh-rental-mobile-summary-dates.is-empty {
        color: #1d2327;
    }

    .wh-rental-mobile-summary-dates.is-empty .wh-rental-mobile-summary-dates-text {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .wh-rental-mobile-filter-button {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 999px;
    }

    .wh-rental-mobile-filter-button svg {
        width: 26px;
        height: 26px;
    }

    .wh-rental-search > .wh-custom-dropdown,
    .wh-rental-search > .wh-location-static,
    .wh-rental-search > .wh-rental-filter-menu,
    .wh-rental-search > .wh-rental-date-display,
    .wh-rental-search > .button {
        display: none;
    }

    .wh-rental-search.wh-mobile-sheet-open .wh-rental-mobile-sheet-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99980;
        background: rgba(0, 0, 0, .35);
    }

    .wh-rental-search.wh-mobile-sheet-location > .wh-filter-location,
    .wh-rental-search.wh-mobile-sheet-location > .wh-location-static,
    .wh-rental-search.wh-mobile-sheet-filters > .wh-rental-filter-menu {
        display: block;
        position: fixed;
        z-index: 99999;
        left: 15px;
        right: 15px;
        bottom: 0;
        width: auto;
        height: auto !important;
        max-height: 85vh;
        overflow: auto;
        border: 0;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -18px 40px rgba(0, 0, 0, .22);
        padding: 22px;
    }

    .wh-rental-search.wh-mobile-sheet-filters > .wh-rental-filter-menu {
        padding-bottom: 22px;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-location-field {
        display: flex;
        margin-bottom: 14px;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-filter-control-dropdown:not(.open) .wh-custom-dropdown-options {
        display: none;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-filter-control-dropdown.open .wh-custom-dropdown-options {
        display: block;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-filter-hitch-dropdown .wh-custom-dropdown-options {
        top: auto;
        bottom: calc(100% + 6px);
    }

    .wh-rental-search.wh-mobile-sheet-location .wh-custom-dropdown-trigger,
    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-trigger {
        display: none;
    }

    .wh-rental-search.wh-mobile-sheet-location .wh-custom-dropdown-options,
    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-panel {
        position: static;
        transform: none;
        width: 100%;
        max-height: none;
        min-height: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-panel select,
    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-panel input[type=number],
    .wh-rental-search.wh-mobile-sheet-filters .wh-filter-control-dropdown .wh-custom-dropdown-trigger {
        min-height: 48px;
        font-size: 16px;
        padding: 12px 14px;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-panel select option,
    .wh-rental-search.wh-mobile-sheet-filters .wh-filter-control-dropdown .wh-custom-dropdown-option {
        font-size: 16px !important;
        line-height: 1.4 !important;
        padding: 10px 12px !important;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-filter-control-dropdown .wh-custom-dropdown-options {
        max-height: 320px;
        overflow-y: auto;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-actions {
        justify-content: stretch;
        margin-bottom: 0;
    }

    .wh-rental-search.wh-mobile-sheet-filters .wh-rental-filter-actions .button {
        width: 100%;
        height: auto;
        border-radius: 999px !important;
        background: #000 !important;
        color: #fff !important;
        margin: 16px 0 0;
        padding: 14px 18px;
        text-align: center;
    }

    .wh-rental-filter-ranges,
    .wh-rental-picker-dates-summary,
    .wh-rental-picker-time-grid {
        grid-template-columns: 1fr;
    }

    .wh-rental-search .litepicker {
        position: fixed !important;
        z-index: 100000 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100vw !important;
        min-width: 0;
        max-width: 100vw !important;
        max-height: 86vh;
        overflow: auto;
        border-radius: 18px 18px 0 0;
        --litepicker-day-width: 36px !important;
    }

    .wh-rental-search .litepicker .container__months {
        flex-direction: column;
        gap: 2px !important;
    }

    .wh-rental-search .litepicker .container__main {
        padding: 12px 14px 10px;
    }

    .wh-rental-search .litepicker .month-item {
        width: 100% !important;
        flex: 0 0 auto;
        padding: 0 4px 4px !important;
    }

    .wh-rental-search .litepicker .month-item-header {
        min-height: 30px;
        margin-bottom: 2px;
    }

    .wh-rental-search .litepicker .month-item-name,
    .wh-rental-search .litepicker .month-item-year {
        font-size: 14px;
    }

    .wh-rental-search .litepicker .month-item-weekdays-row {
        margin-bottom: 1px;
    }

    .wh-rental-search .litepicker .month-item-weekdays-row div {
        height: 22px;
        line-height: 22px;
        font-size: 12px !important;
    }

    .wh-rental-search .litepicker .container__days {
        margin-bottom: 2px;
    }

    .wh-rental-search .litepicker .container__days div,
    .wh-rental-search .litepicker .day-item {
        font-size: 14px !important;
    }

    .wh-rental-search .litepicker .button-previous-month,
    .wh-rental-search .litepicker .button-next-month {
        width: 30px;
        height: 30px;
    }

    .wh-rental-picker-times {
        padding: 10px 14px 12px;
    }

    .wh-rental-picker-time-grid {
        gap: 10px;
    }

    .wh-rental-search .litepicker .wh-rental-picker-apply {
        margin-top: 10px;
        padding: 12px 18px;
    }
}

@media (max-width: 1200px) {
    #rental-unit-list .trailer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #rental-unit-list .trailer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #rental-unit-list .trailer-container {
        grid-template-columns: 1fr;
    }
}

.wh-rental-pagination {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

.wh-rental-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wh-rental-pagination .page-numbers li {
    margin: 0;
}

.wh-rental-pagination .page-numbers a,
.wh-rental-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.wh-rental-pagination .page-numbers a:hover,
.wh-rental-pagination .page-numbers a:focus {
    border-color: #111;
    color: #111;
    text-decoration: none;
}

.wh-rental-pagination .page-numbers .current {
    border-color: #111;
    background: #111;
    color: #fff;
}