/* ==========================================================
   Soves Hotel Search Card
   Full fixed CSS with WordPress/Elementor hard overrides
========================================================== */

body .soves-hotel-search-card,
body .soves-hotel-search-card * {
    box-sizing: border-box;
}

.elementor-widget-soves_hotel_search,
.elementor-widget-soves_hotel_search > .elementor-widget-container,
.elementor-widget-soves_search_tabs,
.elementor-widget-soves_search_tabs > .elementor-widget-container {
    overflow: visible !important;
}

body .soves-hotel-search-card {
    --soves-primary: var(--soves-brand-primary);
    --soves-primary-dark: var(--soves-brand-primary-hover);
    --soves-text: #172033;
    --soves-muted: #667085;
    --soves-border: #e1e7ef;
    --soves-soft: #f8fafc;
    --soves-card-bg: #ffffff;
    --soves-card-radius: 8px;
    --soves-btn-radius: 3px;
    --soves-btn-text: #ffffff;

    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    border: 1px solid rgba(225, 231, 239, 0.95) !important;
    border-radius: var(--soves-card-radius, 8px) !important;
    background: var(--soves-card-bg, #ffffff) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10) !important;
    color: var(--soves-text) !important;
    overflow: visible !important;
}

/* Ticket (flight) mode trip-type toggle — rendered inside the card, above
   the form, so it shares the card's border/radius/shadow instead of living
   as a standalone block above it. Every state below is pinned with
   `body .soves-hotel-search-card` + !important, the same defensive pattern
   the rest of this file already uses for the card/submit button — a plain
   `.soves-ticket-trip-type__option` class rule (no !important) let the
   active theme's own button/link color win on the resting, hover, and
   focus states, so only the solid "is-active" fill ever looked right. */
body .soves-hotel-search-card .soves-ticket-trip-type {
    display: flex !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
}

body .soves-hotel-search-card .soves-ticket-trip-type__option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 18px !important;
    border: 1px solid var(--soves-border, #e1e7ef) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--soves-text, #172033) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

body .soves-hotel-search-card .soves-ticket-trip-type__option .soves-ms-icon {
    font-size: 17px !important;
    line-height: 1 !important;
    color: inherit !important;
}

body .soves-hotel-search-card .soves-ticket-trip-type__option:hover,
body .soves-hotel-search-card .soves-ticket-trip-type__option:focus-visible {
    border-color: var(--soves-primary, var(--soves-brand-primary)) !important;
    color: var(--soves-primary, var(--soves-brand-primary)) !important;
    background: #ffffff !important;
}

body .soves-hotel-search-card .soves-ticket-trip-type__option.is-active,
body .soves-hotel-search-card .soves-ticket-trip-type__option.is-active:hover,
body .soves-hotel-search-card .soves-ticket-trip-type__option.is-active:focus-visible {
    background: var(--soves-primary, var(--soves-brand-primary)) !important;
    border-color: var(--soves-primary, var(--soves-brand-primary)) !important;
    color: #ffffff !important;
}

/* General input/button reset inside card */
body .soves-hotel-search-card button,
body .soves-hotel-search-card input,
body .soves-hotel-search-card select,
body .soves-hotel-search-card textarea {
    font-family: inherit !important;
}

body .soves-hotel-search-card button {
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Main form */
body .soves-hotel-search-card .soves-hotel-search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 86px !important;
    align-items: stretch !important;
    gap: 0px !important;
    margin: 0 !important;
}

/* Field grid */
body .soves-hotel-search-card .soves-hotel-search-fields {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.15fr) repeat(4, minmax(160px, 1fr)) !important;
    border: 1px solid var(--soves-border) !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    overflow: visible !important;
}

/* Tour search: location, dates, return date and guests — 4 fields, no price or
   category column — kept to one row with narrower tracks and tighter type than
   the other modes get, rather than wrapping. Scoped to the desktop layout only
   so it doesn't outrank the 3-col/1-col responsive collapse below (higher
   selector specificity would otherwise win). */
@media (min-width: 1201px) {
    body .soves-hotel-search-card[data-soves-search-mode="tour"] .soves-hotel-search-fields {
        grid-template-columns: repeat(4, minmax(130px, 1fr)) !important;
    }

    /* Ticket search on One-way: the return-date field is [hidden] (JS-toggled by
       the trip-type buttons, which live outside this card), so the grid only
       needs 4 tracks. */
    body .soves-hotel-search-card[data-soves-search-mode="ticket"][data-soves-trip-type-value="1"] .soves-hotel-search-fields {
        grid-template-columns: minmax(230px, 1.15fr) repeat(3, minmax(160px, 1fr)) !important;
    }
}

/* Keep tour's 4 fields on one row even where every other mode collapses to 3
   columns (the general ≤1200px rule below) — narrower still, and shrunk further
   at ≤767px alongside the site-wide single-column mobile stack. */
@media (min-width: 768px) {
    body .soves-hotel-search-card[data-soves-search-mode="tour"] .soves-hotel-search-fields {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    /* :nth-child(n) (matches every field, same as no pseudo-class) bumps
       specificity above the ≤1200px generic nth-child(n+4)/(3n) rules further
       down this file, so this wins regardless of source order. */
    body .soves-hotel-search-card[data-soves-search-mode="tour"] .soves-hotel-search-field:nth-child(n) {
        border-top: 0 !important;
        border-right: 1px solid var(--soves-border) !important;
    }

    body .soves-hotel-search-card[data-soves-search-mode="tour"] .soves-hotel-search-field:last-child {
        border-right: 0 !important;
    }
}

body .soves-hotel-search-card[data-soves-search-mode="tour"] .soves-hotel-search-field {
    padding: 12px 10px !important;
    min-height: 84px !important;
}

body .soves-hotel-search-card[data-soves-search-mode="tour"] .soves-hotel-search-label {
    font-size: 11px !important;
}

body .soves-hotel-search-card[data-soves-search-mode="tour"] .soves-hotel-search-main {
    font-size: 15px !important;
}

body .soves-hotel-search-card .soves-hotel-search-field {
    min-width: 0 !important;
    min-height: 96px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 15px 16px !important;
    border-right: 1px solid var(--soves-border) !important;
    background: #ffffff !important;
}

body .soves-hotel-search-card .soves-hotel-search-field:last-child {
    border-right: 0 !important;
}

body .soves-hotel-search-card .soves-hotel-search-field--text {
    cursor: text !important;
}

body .soves-hotel-search-card input.soves-hotel-search-text-input,
body .soves-hotel-search-card select.soves-hotel-search-text-input {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--soves-text) !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
}

body .soves-hotel-search-card input.soves-hotel-search-text-input::placeholder {
    color: var(--soves-muted) !important;
    opacity: 1 !important;
}

/* Text */
body .soves-hotel-search-card .soves-hotel-search-label {
    display: block !important;
    margin: 0 !important;
    color: #3f4654 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body .soves-hotel-search-card .soves-hotel-search-main {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: var(--soves-text) !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .soves-hotel-search-card .soves-hotel-search-helper {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: var(--soves-muted) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Trigger buttons: remove WordPress/Elementor button style */
body .soves-hotel-search-card button.soves-hotel-search-trigger,
body .soves-hotel-search-card [type="button"].soves-hotel-search-trigger {
    -webkit-appearance: none !important;
    appearance: none !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;

    display: grid !important;
    gap: 5px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: inherit !important;
    font: inherit !important;
    line-height: normal !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;

    cursor: pointer !important;
}

body .soves-hotel-search-card button.soves-hotel-search-trigger:hover,
body .soves-hotel-search-card button.soves-hotel-search-trigger:focus,
body .soves-hotel-search-card button.soves-hotel-search-trigger:active {
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration: none !important;
}

body .soves-hotel-search-card button.soves-hotel-search-trigger:focus-visible {
    outline: 2px solid rgba(10, 48, 105, 0.35) !important;
    outline-offset: 4px !important;
    border-radius: 4px !important;
}

/* Date fields */
body .soves-hotel-search-card .soves-hotel-search-field--date {
    cursor: pointer !important;
}

/* Important:
   This makes the native browser calendar open from the field area,
   instead of from a tiny hidden 1px input. */
body .soves-hotel-search-card .soves-hotel-search-date-input,
body .soves-hotel-search-card input.soves-hotel-search-date-input[type="date"] {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 96px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: transparent !important;
    opacity: 0 !important;

    cursor: pointer !important;
    pointer-events: auto !important;

    -webkit-appearance: none !important;
    appearance: none !important;
}

body .soves-hotel-search-card .soves-hotel-search-field--date .soves-hotel-search-label,
body .soves-hotel-search-card .soves-hotel-search-field--date .soves-hotel-search-main,
body .soves-hotel-search-card .soves-hotel-search-field--date .soves-hotel-search-helper {
    pointer-events: none !important;
}

/* Submit button */
body .soves-hotel-search-card button.soves-hotel-search-submit,
body .soves-hotel-search-card [type="submit"].soves-hotel-search-submit {
    -webkit-appearance: none !important;
    appearance: none !important;

    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    height: 100% !important;
    min-height: 96px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border: 0 !important;
    border-radius: var(--soves-btn-radius, 3px) !important;
    outline: 0 !important;
    background: var(--soves-primary) !important;
    box-shadow: none !important;

    color: var(--soves-btn-text, #ffffff) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;

    cursor: pointer !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
}

body .soves-hotel-search-card button.soves-hotel-search-submit:hover,
body .soves-hotel-search-card button.soves-hotel-search-submit:focus,
body .soves-hotel-search-card [type="submit"].soves-hotel-search-submit:hover,
body .soves-hotel-search-card [type="submit"].soves-hotel-search-submit:focus {
    border: 0 !important;
    background: var(--soves-primary-dark) !important;
    color: var(--soves-btn-text, #ffffff) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .soves-hotel-search-card button.soves-hotel-search-submit:active {
    transform: translateY(1px) !important;
}

body .soves-hotel-search-card button.soves-hotel-search-submit:focus-visible {
    outline: 3px solid rgba(10, 48, 105, 0.28) !important;
    outline-offset: 3px !important;
}

/* Dropdown panels */
body .soves-hotel-search-card .soves-hotel-search-panel {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;

    display: none !important;

    width: min(380px, calc(100vw - 32px)) !important;
    padding: 14px !important;

    border: 1px solid var(--soves-border) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16) !important;
}

body .soves-hotel-search-card .soves-hotel-search-field.is-open .soves-hotel-search-panel {
    display: block !important;
}

body > .soves-search-floating-panel {
    --soves-primary: var(--soves-brand-primary);
    --soves-primary-dark: var(--soves-brand-primary-hover);
    --soves-text: #172033;
    --soves-muted: #667085;
    --soves-border: #e1e7ef;
    --soves-soft: #f8fafc;
    position: fixed !important;
    z-index: 2147483000 !important;
    max-width: calc(100vw - 24px) !important;
    pointer-events: auto;
}

body > .soves-search-floating-panel.soves-hotel-search-panel {
    display: block !important;
    width: min(380px, calc(100vw - 32px)) !important;
    padding: 14px !important;
    border: 1px solid var(--soves-border) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16) !important;
}

body .soves-hotel-search-card .soves-hotel-search-panel::before {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    left: 22px !important;
    width: 14px !important;
    height: 14px !important;
    border-left: 1px solid var(--soves-border) !important;
    border-top: 1px solid var(--soves-border) !important;
    background: #ffffff !important;
    transform: rotate(45deg) !important;
}

body > .soves-search-floating-panel.soves-hotel-search-panel::before,
body > .soves-search-floating-panel.soves-calendar::before {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    left: 22px !important;
    width: 14px !important;
    height: 14px !important;
    border-left: 1px solid var(--soves-border) !important;
    border-top: 1px solid var(--soves-border) !important;
    background: #ffffff !important;
    transform: rotate(45deg) !important;
}

body > .soves-search-floating-panel.is-open-up::before {
    top: auto !important;
    bottom: -7px !important;
    transform: rotate(225deg) !important;
}

body .soves-hotel-search-card .soves-hotel-search-panel h3 {
    margin: 0 0 14px !important;
    color: var(--soves-text) !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

/* Location search input */
body .soves-hotel-search-card .soves-hotel-search-panel-search {
    display: block !important;
    margin-bottom: 12px !important;
}

body .soves-hotel-search-card .soves-hotel-search-panel-search input {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 12px !important;

    border: 1px solid var(--soves-border) !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-shadow: none !important;

    color: var(--soves-text) !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

body .soves-hotel-search-card .soves-hotel-search-panel-search input:focus {
    border-color: rgba(10, 48, 105, 0.7) !important;
    outline: 3px solid rgba(10, 48, 105, 0.18) !important;
    box-shadow: none !important;
}

/* Location options */
body .soves-hotel-search-card .soves-hotel-search-options {
    max-height: 310px !important;
    overflow: auto !important;
    margin: 0 -14px -14px !important;
    padding-bottom: 6px !important;
}

body .soves-hotel-search-card .soves-hotel-search-location-group {
    border-top: 1px solid var(--soves-border) !important;
}

body .soves-hotel-search-card .soves-hotel-search-location-group:first-child {
    border-top: 0 !important;
}

body .soves-hotel-search-card [hidden],
body .soves-hotel-search-card .soves-hotel-search-location-group[hidden],
body .soves-hotel-search-card button[hidden] {
    display: none !important;
}

body .soves-outbound-featured-heading {
    margin: 0 0 20px;
    padding: 22px 24px;
    border: 1px solid var(--soves-border);
    border-radius: 12px;
    background: var(--soves-soft);
}

body .soves-outbound-featured-heading p,
body .soves-outbound-featured-heading span {
    display: block;
    margin: 0;
    color: var(--soves-muted);
    font-size: 14px;
}

body .soves-outbound-featured-heading h2 {
    margin: 4px 0;
    color: var(--soves-text);
    font-size: 26px;
}

.soves-hotel-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.soves-hotel-search-overlay[hidden] {
    display: none;
}

.soves-hotel-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
}

.soves-hotel-search-overlay__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* Wide enough for a couple of real flight cards, not just the spinner —
       the ticket popup shows both in the same panel (Milestone 23). */
    width: min(560px, 100%);
    max-height: min(80vh, 720px);
    overflow-y: auto;
    border-radius: 10px;
    background: #ffffff;
    padding: 32px 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    text-align: center;
}

.soves-hotel-search-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.soves-hotel-search-overlay__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: var(--soves-soft, #f8fafc);
    color: var(--soves-muted, #667085);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.soves-hotel-search-overlay__close:hover,
.soves-hotel-search-overlay__close:focus-visible {
    background: var(--soves-border, #e1e7ef);
    color: var(--soves-text, #172033);
}

.soves-hotel-search-overlay__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(10, 48, 105, 0.18);
    border-top-color: var(--soves-primary, var(--soves-brand-primary));
    border-radius: 50%;
    animation: soves-outbound-search-spin 0.8s linear infinite;
}

.soves-hotel-search-overlay__panel p {
    margin: 0;
    color: var(--soves-text, #172033);
    font-size: 15px;
    font-weight: 600;
}

/* "Found X hotels", then the popup fades out and the results page opens (owner request 2026-10-08). */
.soves-hotel-search-overlay {
    transition: opacity 0.3s ease;
}

.soves-hotel-search-overlay.is-leaving {
    opacity: 0;
}

.soves-hotel-search-overlay__found {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f7f1;
    color: #13795b;
    font-size: 22px;
    font-weight: 700;
    animation: soves-search-found-pop 0.25s ease-out;
}

.soves-hotel-search-overlay__found-text {
    font-size: 17px;
}

@keyframes soves-search-found-pop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .soves-hotel-search-overlay,
    .soves-hotel-search-overlay__found {
        transition: none;
        animation: none;
    }
}

@keyframes soves-outbound-search-spin {
    to { transform: rotate(360deg); }
}

body .soves-hotel-search-card button.soves-hotel-search-country-option,
body .soves-hotel-search-card button.soves-hotel-search-option {
    -webkit-appearance: none !important;
    appearance: none !important;

    width: 100% !important;
    display: grid !important;
    gap: 3px !important;

    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;

    color: inherit !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;

    cursor: pointer !important;
}

body .soves-hotel-search-card button.soves-hotel-search-country-option {
    padding: 13px 16px !important;
}

body .soves-hotel-search-card button.soves-hotel-search-option {
    padding: 11px 16px 11px 30px !important;
    border-top: 1px solid rgba(225, 231, 239, 0.72) !important;
}

body .soves-hotel-search-card button.soves-hotel-search-country-option:hover,
body .soves-hotel-search-card button.soves-hotel-search-country-option:focus,
body .soves-hotel-search-card button.soves-hotel-search-option:hover,
body .soves-hotel-search-card button.soves-hotel-search-option:focus {
    background: var(--soves-soft) !important;
    color: inherit !important;
    outline: none !important;
}

body .soves-hotel-search-card button.soves-hotel-search-country-option.is-selected,
body .soves-hotel-search-card button.soves-hotel-search-option.is-selected {
    background: rgba(10, 48, 105, 0.09) !important;
}

body .soves-hotel-search-card .soves-hotel-search-country-option strong,
body .soves-hotel-search-card .soves-hotel-search-option strong {
    color: var(--soves-text) !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

body .soves-hotel-search-card .soves-hotel-search-country-option span,
body .soves-hotel-search-card .soves-hotel-search-option span {
    color: var(--soves-muted) !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

body .soves-hotel-search-card .soves-hotel-search-country-option.is-selected strong,
body .soves-hotel-search-card .soves-hotel-search-option.is-selected strong {
    color: var(--soves-primary) !important;
}

body .soves-hotel-search-card .soves-hotel-search-empty {
    margin: 0 !important;
    padding: 14px 16px !important;
    color: var(--soves-muted) !important;
    font-size: 13px !important;
}

/* Guest panel */
body .soves-hotel-search-card .soves-hotel-search-panel--guests {
    width: min(520px, calc(100vw - 32px)) !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    border: none !important;
    border-bottom: 0 !important;
    padding: 16px 18px !important;
    background: #ffffff !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper:first-of-type {
    border-radius: 8px 8px 0 0 !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper:last-of-type {
    border-bottom: 1px solid var(--soves-border) !important;
    border-radius: 0 0 8px 8px !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper > span {
    color: var(--soves-text) !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper__controls {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper__controls button {
    -webkit-appearance: none !important;
    appearance: none !important;

    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: #e9eff6 !important;
    box-shadow: none !important;

    color: #344054 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-align: center !important;

    cursor: pointer !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper__controls button:hover,
body .soves-hotel-search-card .soves-hotel-search-stepper__controls button:focus {
    background: var(--soves-primary) !important;
    color: #ffffff !important;
    outline: none !important;
}

body .soves-hotel-search-card .soves-hotel-search-stepper__controls strong {
    min-width: 24px !important;
    color: var(--soves-text) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* Price panel */
body .soves-hotel-search-card .soves-hotel-search-panel--price {
    width: min(320px, calc(100vw - 32px)) !important;
    padding: 0 !important;
}

body .soves-hotel-search-card .soves-hotel-search-panel--price h3 {
    margin: 0 !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--soves-border) !important;
    color: var(--soves-text) !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

body .soves-hotel-search-card .soves-hotel-search-panel--price::before {
    left: 18px !important;
}

/* Price options behave like select options */
body .soves-hotel-search-card .soves-hotel-search-price-option {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--soves-border) !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: background 0.16s ease, color 0.16s ease !important;
}

body .soves-hotel-search-card .soves-hotel-search-price-option:last-child {
    border-bottom: 0 !important;
}

/* Hide checkboxes completely */
body .soves-hotel-search-card .soves-hotel-search-price-option input,
body .soves-hotel-search-card .soves-hotel-search-price-option input[type="checkbox"],
body .soves-hotel-search-card input[data-soves-price-range] {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;

    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;

    -webkit-appearance: none !important;
    appearance: none !important;
}

body .soves-hotel-search-card .soves-hotel-search-price-option span {
    display: flex !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 0 18px !important;
}

body .soves-hotel-search-card .soves-hotel-search-price-option span:hover{
    background: var(--soves-primary) !important;
}
body .soves-hotel-search-card .soves-hotel-search-price-option span:hover strong{
    color: #ffffff !important;
}

body .soves-hotel-search-card .soves-hotel-search-price-option strong {
    color: var(--soves-text) !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body .soves-hotel-search-card .soves-hotel-search-price-option:hover {
    background: var(--soves-soft) !important;
}

body .soves-hotel-search-card .soves-hotel-search-price-option.is-selected,
body .soves-hotel-search-card .soves-hotel-search-price-option:has(input:checked) {
    background: var(--soves-primary) !important;
}

body .soves-hotel-search-card .soves-hotel-search-price-option.is-selected strong,
body .soves-hotel-search-card .soves-hotel-search-price-option:has(input:checked) strong {
    color: #ffffff !important;
}

/* Portaled search panels keep the same styling after moving under body. */
body > .soves-search-floating-panel.soves-hotel-search-panel h3 {
    margin: 0 0 14px !important;
    color: var(--soves-text) !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-panel-search {
    display: block !important;
    margin-bottom: 12px !important;
}

body > .soves-search-floating-panel .soves-hotel-search-panel-search input {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--soves-border) !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: var(--soves-text) !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-panel-search input:focus {
    border-color: rgba(10, 48, 105, 0.7) !important;
    outline: 3px solid rgba(10, 48, 105, 0.18) !important;
    box-shadow: none !important;
}

body > .soves-search-floating-panel .soves-hotel-search-options {
    max-height: 310px !important;
    overflow: auto !important;
    margin: 0 -14px -14px !important;
    padding-bottom: 6px !important;
}

body > .soves-search-floating-panel .soves-hotel-search-location-group {
    border-top: 1px solid var(--soves-border) !important;
}

body > .soves-search-floating-panel .soves-hotel-search-location-group:first-child {
    border-top: 0 !important;
}

body > .soves-search-floating-panel [hidden],
body > .soves-search-floating-panel button[hidden] {
    display: none !important;
}

body > .soves-search-floating-panel button.soves-hotel-search-country-option,
body > .soves-search-floating-panel button.soves-hotel-search-option {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    display: grid !important;
    gap: 3px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: inherit !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
}

body > .soves-search-floating-panel button.soves-hotel-search-country-option {
    padding: 13px 16px !important;
}

body > .soves-search-floating-panel button.soves-hotel-search-option {
    padding: 11px 16px 11px 30px !important;
    border-top: 1px solid rgba(225, 231, 239, 0.72) !important;
}

body > .soves-search-floating-panel button.soves-hotel-search-country-option:hover,
body > .soves-search-floating-panel button.soves-hotel-search-country-option:focus,
body > .soves-search-floating-panel button.soves-hotel-search-option:hover,
body > .soves-search-floating-panel button.soves-hotel-search-option:focus {
    background: var(--soves-soft) !important;
    color: inherit !important;
    outline: none !important;
}

body > .soves-search-floating-panel button.soves-hotel-search-country-option.is-selected,
body > .soves-search-floating-panel button.soves-hotel-search-option.is-selected {
    background: rgba(10, 48, 105, 0.09) !important;
}

body > .soves-search-floating-panel .soves-hotel-search-country-option strong,
body > .soves-search-floating-panel .soves-hotel-search-option strong {
    color: var(--soves-text) !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-country-option span,
body > .soves-search-floating-panel .soves-hotel-search-option span {
    color: var(--soves-muted) !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-country-option.is-selected strong,
body > .soves-search-floating-panel .soves-hotel-search-option.is-selected strong {
    color: var(--soves-primary) !important;
}

body > .soves-search-floating-panel .soves-hotel-search-empty {
    margin: 0 !important;
    padding: 14px 16px !important;
    color: var(--soves-muted) !important;
    font-size: 13px !important;
}

body > .soves-search-floating-panel.soves-hotel-search-panel--guests {
    width: min(520px, calc(100vw - 32px)) !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    border: none !important;
    border-bottom: 0 !important;
    padding: 16px 18px !important;
    background: #ffffff !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper:first-of-type {
    border-radius: 8px 8px 0 0 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper:last-of-type {
    border-bottom: 1px solid var(--soves-border) !important;
    border-radius: 0 0 8px 8px !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper > span {
    color: var(--soves-text) !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper__controls {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper__controls button {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e9eff6 !important;
    box-shadow: none !important;
    color: #344054 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper__controls button:hover,
body > .soves-search-floating-panel .soves-hotel-search-stepper__controls button:focus {
    background: var(--soves-primary) !important;
    color: #ffffff !important;
    outline: none !important;
}

body > .soves-search-floating-panel .soves-hotel-search-stepper__controls strong {
    min-width: 24px !important;
    color: var(--soves-text) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

body > .soves-search-floating-panel.soves-hotel-search-panel--price {
    width: min(320px, calc(100vw - 32px)) !important;
    padding: 0 !important;
}

body > .soves-search-floating-panel.soves-hotel-search-panel--price::before {
    left: 18px !important;
}

body > .soves-search-floating-panel .soves-hotel-search-price-option {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--soves-border) !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: background 0.16s ease, color 0.16s ease !important;
}

body > .soves-search-floating-panel .soves-hotel-search-price-option:last-child {
    border-bottom: 0 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-price-option input,
body > .soves-search-floating-panel .soves-hotel-search-price-option input[type="checkbox"],
body > .soves-search-floating-panel input[data-soves-price-range] {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body > .soves-search-floating-panel .soves-hotel-search-price-option span {
    display: flex !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 0 18px !important;
}

body > .soves-search-floating-panel .soves-hotel-search-price-option span:hover,
body > .soves-search-floating-panel .soves-hotel-search-price-option:hover,
body > .soves-search-floating-panel .soves-hotel-search-price-option.is-selected,
body > .soves-search-floating-panel .soves-hotel-search-price-option:has(input:checked) {
    background: var(--soves-primary) !important;
}

body > .soves-search-floating-panel .soves-hotel-search-price-option strong {
    color: var(--soves-text) !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body > .soves-search-floating-panel .soves-hotel-search-price-option span:hover strong,
body > .soves-search-floating-panel .soves-hotel-search-price-option.is-selected strong,
body > .soves-search-floating-panel .soves-hotel-search-price-option:has(input:checked) strong {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 1200px) {
    body .soves-hotel-search-card .soves-hotel-search-form {
        grid-template-columns: 1fr !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-field:nth-child(3n) {
        border-right: 0 !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-field:nth-child(n + 4) {
        border-top: 1px solid var(--soves-border) !important;
    }

    body .soves-hotel-search-card button.soves-hotel-search-submit,
    body .soves-hotel-search-card [type="submit"].soves-hotel-search-submit {
        width: 100% !important;
        max-width: none !important;
        min-width: 100% !important;
        min-height: 54px !important;
    }
}

@media (max-width: 767px) {
    body .soves-hotel-search-card {
        padding: 14px !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-fields {
        grid-template-columns: 1fr !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-field,
    body .soves-hotel-search-card .soves-hotel-search-field:nth-child(3n),
    body .soves-hotel-search-card .soves-hotel-search-field:last-child {
        min-height: 82px !important;
        border-right: 0 !important;
        border-top: 1px solid var(--soves-border) !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-field:first-child {
        border-top: 0 !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-date-input,
    body .soves-hotel-search-card input.soves-hotel-search-date-input[type="date"] {
        min-height: 82px !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-panel {
        left: 0 !important;
        right: auto !important;
        width: min(100%, calc(100vw - 32px)) !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-panel--guests,
    body .soves-hotel-search-card .soves-hotel-search-panel--price {
        width: min(100%, calc(100vw - 32px)) !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-main {
        font-size: 18px !important;
    }
}

body .soves-hotel-search-card [hidden],
body .soves-hotel-search-card button[hidden],
body .soves-hotel-search-card [data-soves-location-group][hidden],
body .soves-hotel-search-card [data-soves-location-option][hidden] {
    display: none !important;
}

/* ==========================================================
   Custom Soves Calendar
========================================================== */

/* Remove native input focus/border completely */
body .soves-hotel-search-card .soves-hotel-search-date-input,
body .soves-hotel-search-card input.soves-hotel-search-date-input[type="date"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Remove the red/outline border around the date text */
body .soves-hotel-search-card .soves-hotel-search-field--date,
body .soves-hotel-search-card .soves-hotel-search-field--date:focus,
body .soves-hotel-search-card .soves-hotel-search-field--date:focus-within,
body .soves-hotel-search-card .soves-hotel-search-field--date:active {
    outline: none !important;
    box-shadow: none !important;
}

body .soves-hotel-search-card .soves-hotel-search-field--date .soves-hotel-search-main,
body .soves-hotel-search-card .soves-hotel-search-field--date .soves-hotel-search-main:focus,
body .soves-hotel-search-card .soves-hotel-search-field--date .soves-hotel-search-main:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Calendar popup */
body .soves-hotel-search-card .soves-calendar {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 292px;
    padding: 14px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

body > .soves-search-floating-panel.soves-calendar {
    width: 292px;
    padding: 14px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

body .soves-hotel-search-card .soves-calendar::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 22px;
    width: 14px;
    height: 14px;
    border-left: 1px solid #e1e7ef;
    border-top: 1px solid #e1e7ef;
    background: #ffffff;
    transform: rotate(45deg);
}

body .soves-hotel-search-card .soves-calendar[hidden],
body > .soves-search-floating-panel.soves-calendar[hidden] {
    display: none !important;
}

body .soves-hotel-search-card .soves-calendar__header,
body > .soves-search-floating-panel .soves-calendar__header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

body .soves-hotel-search-card .soves-calendar__nav,
body > .soves-search-floating-panel .soves-calendar__nav {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 1px solid #edf1f6 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #172033 !important;
    box-shadow: none !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

body .soves-hotel-search-card .soves-calendar__nav:hover,
body > .soves-search-floating-panel .soves-calendar__nav:hover {
    background: #f6f8fb !important;
}

body .soves-hotel-search-card .soves-calendar__title,
body > .soves-search-floating-panel .soves-calendar__title {
    color: #101828;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}

body .soves-hotel-search-card .soves-calendar__weekdays,
body .soves-hotel-search-card .soves-calendar__days,
body > .soves-search-floating-panel .soves-calendar__weekdays,
body > .soves-search-floating-panel .soves-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

body .soves-hotel-search-card .soves-calendar__weekdays,
body > .soves-search-floating-panel .soves-calendar__weekdays {
    margin-bottom: 8px;
}

body .soves-hotel-search-card .soves-calendar__weekdays span,
body > .soves-search-floating-panel .soves-calendar__weekdays span {
    color: #101828;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
}

body .soves-hotel-search-card .soves-calendar__weekdays span.is-weekend,
body > .soves-search-floating-panel .soves-calendar__weekdays span.is-weekend {
    color: var(--soves-brand-primary);
}

body .soves-hotel-search-card .soves-calendar__day,
body > .soves-search-floating-panel .soves-calendar__day {
    width: 100% !important;
    height: 100% !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #172033 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

body .soves-hotel-search-card .soves-calendar__day:hover,
body > .soves-search-floating-panel .soves-calendar__day:hover {
    background: #eef2f7 !important;
}

body .soves-hotel-search-card .soves-calendar__day.is-other-month,
body > .soves-search-floating-panel .soves-calendar__day.is-other-month {
    color: #98a2b3 !important;
}

body .soves-hotel-search-card .soves-calendar__day.is-weekend,
body > .soves-search-floating-panel .soves-calendar__day.is-weekend {
    color: var(--soves-brand-primary) !important;
}

body .soves-hotel-search-card .soves-calendar__day.is-selected,
body > .soves-search-floating-panel .soves-calendar__day.is-selected {
    background: var(--soves-brand-primary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

body .soves-hotel-search-card .soves-calendar__day.is-today:not(.is-selected),
body > .soves-search-floating-panel .soves-calendar__day.is-today:not(.is-selected) {
    background: #f2f4f7 !important;
    font-weight: 600 !important;
}

body .soves-hotel-search-card .soves-calendar__day.is-disabled,
body > .soves-search-floating-panel .soves-calendar__day.is-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

@media (max-width: 560px) {
    body .soves-hotel-search-card .soves-hotel-search-panel,
    body .soves-hotel-search-card .soves-calendar,
    body > .soves-search-floating-panel {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-stepper {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px !important;
    }

    body .soves-hotel-search-card .soves-hotel-search-stepper__controls {
        justify-content: space-between;
        width: 100%;
    }
}

/* Child ages (hotel search): one age picker per child, inside the guests panel */
.soves-hotel-search-child-ages {
    display: grid !important;
    gap: 10px !important;
    padding: 0 18px 16px !important;
    background: #ffffff !important;
}

.soves-hotel-search-child-ages:empty {
    display: none !important;
}

.soves-hotel-search-child-age {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
    color: var(--soves-text, #16324f) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.soves-hotel-search-child-age select {
    min-width: 160px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid var(--soves-border, #d0d5dd) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #16324f !important;
    font: inherit !important;
    font-weight: 500 !important;
}

.soves-hotel-search-child-age select.is-invalid {
    border-color: #b3261e !important;
    box-shadow: 0 0 0 2px rgba(179, 38, 30, 0.15) !important;
}

.soves-hotel-search-child-ages__error {
    margin: 0 !important;
    padding: 0 18px 16px !important;
    background: #ffffff !important;
    color: #b3261e !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.soves-hotel-search-child-ages__error[hidden] {
    display: none !important;
}
