/* ==========================================================================
   Icon7 Redesign — Accommodation / Listing detail page  (CORE)
   --------------------------------------------------------------------------
   Faithful port of _design_source/icon7-listing.html (structure, values and
   every @media block), scoped entirely under .listing-page so nothing leaks
   onto other pages — and, critically, so the LIVE Avantio availability widget
   and the Swiper gallery are RE-SKINNED in CSS only, WITHOUT touching their
   DOM hooks (ids / names / data-* / .search__btn / .child_age_input /
   .swiper-* / .gallery / #avantio-availability-message).

   Tokens only (var(--navy) etc.) — no re-hardcoded hex. Auto-enqueued by
   functions.php after redesign.css so it wins.

   RESPONSIVE (ported from the prototype):
     <=1024px  two-col layout -> single column, booking widget moves to top
               (full width), amenities 3->2 cols, similar grid 3->2 cols.
     <=768px   hero shrinks, amenities & similar -> 1 col, gallery tiles
               2-up, service rows stack.
     <=480px   tighter gutters so nothing overflows a 390px phone.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO — reuse the legacy ACF-driven .page__hero__bg background (set inline in
   the template) and overlay the property name in the prototype's banner style.
   -------------------------------------------------------------------------- */
.listing-page .listing-hero {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.listing-page .listing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 43, 74, 0.15), rgba(26, 43, 74, 0.45));
    z-index: 1;
}

.listing-page .listing-hero .container {
    position: relative;
    z-index: 2;
}

.listing-page .listing-hero__content {
    text-align: center;
}

.listing-page .listing-hero__accent {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.listing-page .listing-hero .page__hero__content h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT — prototype's .main-content: 1fr / 380px grid, sticky sidebar.
   -------------------------------------------------------------------------- */
.listing-page .listing-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.listing-page .listing-content {
    min-width: 0;
}

/* Local, small serif section headings (override redesign.css's big decorative
   script .section-title so it doesn't turn these into giant Italianno). */
.listing-page .section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

/* --------------------------------------------------------------------------
   PROPERTY HEADER — location + specs (specs sit under a hairline, per proto)
   -------------------------------------------------------------------------- */
.listing-page .property-header {
    margin-bottom: 2rem;
}

.listing-page .property-location {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lake-blue);
    margin: 0 0 1rem;
}

.listing-page .property-specs {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 43, 74, 0.1);
}

.listing-page .spec-item {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-page .spec-item svg {
    width: 18px;
    height: 18px;
    color: var(--terracotta);
    flex-shrink: 0;
}

.listing-page .property-beds {
    margin: 1.5rem 0 0;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--navy);
}

.listing-page .property-beds__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lake-blue);
    margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   GALLERY — Swiper markup preserved (.gallery__slider > .swiper-wrapper.gallery
   > .swiper-slide > .gallery__item). We ONLY skin visuals; we never set display
   on .swiper-wrapper when Swiper is active (it controls that via inline flex +
   transforms). The flex/gap below is a graceful no-JS fallback that Swiper's
   inline styles override once it initialises.
   -------------------------------------------------------------------------- */
.listing-page .property-gallery {
    margin-bottom: 3rem;
}

.listing-page .gallery-description {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.listing-page .gallery__slider {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.listing-page .gallery__item {
    border-radius: 4px;
    overflow: hidden;
}

.listing-page .gallery__item a {
    display: block;
}

.listing-page .gallery__item img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-page .gallery__item:hover img {
    transform: scale(1.05);
}

/* No-JS fallback grid: keep slides from stacking full width if Swiper fails. */
.listing-page .swiper-wrapper.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listing-page .swiper-wrapper.gallery .swiper-slide {
    flex: 0 0 auto;
    width: 100%;
}

/* --------------------------------------------------------------------------
   DESCRIPTION
   -------------------------------------------------------------------------- */
.listing-page .property-description {
    margin-bottom: 3rem;
}

.listing-page .description-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--navy);
    line-height: 1.9;
}

.listing-page .description-text p {
    margin: 0 0 1rem;
}

.listing-page .description-text p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   AMENITIES  (Room Features)
   -------------------------------------------------------------------------- */
.listing-page .amenities {
    margin-bottom: 3rem;
}

.listing-page .amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.listing-page .amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(26, 43, 74, 0.05);
}

.listing-page .amenity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
    border-radius: 50%;
    flex-shrink: 0;
}

.listing-page .amenity-icon svg {
    width: 20px;
    height: 20px;
    color: var(--terracotta);
}

.listing-page .amenity-label {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--navy);
}

/* --------------------------------------------------------------------------
   EXTRA / COMMON SERVICES
   -------------------------------------------------------------------------- */
.listing-page .extra-services {
    margin-bottom: 3rem;
}

.listing-page .services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.listing-page .service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(26, 43, 74, 0.05);
}

.listing-page .service-name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--navy);
}

.listing-page .service-status {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.listing-page .service-status.included {
    color: var(--lake-blue);
}

.listing-page .service-status.not-included {
    color: var(--terracotta);
}

/* --------------------------------------------------------------------------
   BOOKING / AVAILABILITY WIDGET  (re-skin only — DOM untouched)
   Live markup: .rts__booking__form > form.advance__search with
   .query__input / .query__label / .query__input__position / .query__input__icon.
   Restyled to the prototype's inquiry card. Full-width, stacked fields — usable
   on any phone (no fixed desktop column widths leak down).
   -------------------------------------------------------------------------- */
.listing-page .listing-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.listing-page .inquiry-card {
    background-color: var(--white);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(26, 43, 74, 0.08);
}

.listing-page .inquiry-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 0.4rem;
}

.listing-page .inquiry-card-subtitle {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--lake-blue);
    font-style: italic;
    margin: 0 0 1.5rem;
}

.listing-page .advance__search__wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.listing-page .query__input {
    margin: 0;
    min-width: 0;
}

.listing-page .query__label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.listing-page .query__input__position {
    position: relative;
}

.listing-page .query__input__position input,
.listing-page .query__input__position select {
    width: 100%;
    height: 48px;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--navy);
    background-color: var(--white);
    border: 1px solid rgba(26, 43, 74, 0.15);
    border-radius: 4px;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.listing-page .query__input__position input:focus,
.listing-page .query__input__position select:focus {
    outline: none;
    border-color: var(--lake-blue);
}

/* Field icon sits inside the input on the right */
.listing-page .query__input__icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--terracotta);
    pointer-events: none;
    display: flex;
    align-items: center;
    line-height: 0;
}

.listing-page .query__input__icon i {
    font-size: 1rem;
}

/* Submit — solid navy (prototype .btn-primary). Keeps the .search__btn hook the
   JS binds to; JS drives its disabled state + span text. */
.listing-page .search__btn {
    width: 100%;
    margin-top: 0.25rem;
    padding: 1rem 2rem;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--white);
    background-color: var(--navy);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    text-align: center;
}

.listing-page .search__btn:hover {
    background-color: var(--lake-blue);
}

.listing-page .search__btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.listing-page .search__btn span {
    color: inherit;
}

/* Availability result message (JS toggles Bootstrap .alert-* classes on it) */
.listing-page #avantio-availability-message {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    line-height: 1.5;
}

.listing-page #avantio-availability-message.alert-success {
    background-color: rgba(91, 143, 168, 0.12);
    color: var(--lake-blue);
}

.listing-page #avantio-availability-message.alert-danger {
    background-color: rgba(169, 89, 63, 0.12);
    color: var(--terracotta);
}

.listing-page #avantio-availability-message.alert-warning {
    background-color: rgba(199, 163, 107, 0.18);
    color: var(--navy);
}

/* --------------------------------------------------------------------------
   SIMILAR PROPERTIES  (More from Our Collection)
   -------------------------------------------------------------------------- */
.listing-page .similar-properties {
    background-color: var(--white);
    padding: 5rem 4rem;
    border-top: 1px solid rgba(26, 43, 74, 0.1);
}

.listing-page .similar-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
    text-align: center;
}

.listing-page .similar-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--terracotta);
    margin: 0;
}

.listing-page .similar-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.listing-page .property-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(26, 43, 74, 0.08);
    border: 1px solid rgba(26, 43, 74, 0.06);
}

.listing-page .property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(26, 43, 74, 0.15);
    border-color: transparent;
}

.listing-page .property-card-image {
    height: 280px;
    overflow: hidden;
}

.listing-page .property-card-image a {
    display: block;
    height: 100%;
}

.listing-page .property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.listing-page .property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.listing-page .property-card-content {
    padding: 2rem;
}

.listing-page .property-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.listing-page .property-card-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing-page .property-card-title a:hover {
    color: var(--lake-blue);
}

.listing-page .property-card-location {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--lake-blue);
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.listing-page .property-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--terracotta);
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing-page .property-card-link::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

.listing-page .property-card-link:hover {
    color: var(--navy);
}

.listing-page .property-card-link:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE  (breakpoints ported verbatim from the prototype)
   ========================================================================== */
@media (max-width: 1024px) {
    .listing-page .listing-main {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    /* Booking widget rises to the top on tablet/mobile (prototype: order -1)
       and drops its sticky offset so it scrolls with the page. Full width. */
    .listing-page .listing-sidebar {
        position: static;
        order: -1;
        top: auto;
    }

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

    .listing-page .similar-properties {
        padding: 4rem 2rem;
    }

    .listing-page .similar-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .listing-page .listing-hero {
        height: 350px;
    }

    .listing-page .property-specs {
        gap: 1rem;
    }

    .listing-page .gallery__item img {
        height: 280px;
    }

    .listing-page .amenities-grid {
        grid-template-columns: 1fr;
    }

    .listing-page .similar-grid {
        grid-template-columns: 1fr;
    }

    .listing-page .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}

/* Small phones (<=480px, incl. 390px): tighten gutters so nothing overflows. */
@media (max-width: 480px) {
    .listing-page .listing-main {
        padding: 1.5rem 1.25rem;
    }

    .listing-page .inquiry-card {
        padding: 1.5rem;
    }

    .listing-page .similar-properties {
        padding: 3rem 1.25rem;
    }

    .listing-page .property-card-content {
        padding: 1.5rem;
    }

    .listing-page .gallery__item img {
        height: 220px;
    }
}

/* ========================================================================== 
   QA ROUND 2 — ACCOMMODATION LAYOUT + MODERN GALLERY CONTROLS
   ========================================================================== */
.listing-page .listing-main {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
    gap: clamp(2.5rem, 4vw, 4.5rem);
}

.listing-page .property-header,
.listing-page .property-description,
.listing-page .amenities,
.listing-page .extra-services {
    padding-bottom: 2.75rem;
    margin-bottom: 2.75rem;
    border-bottom: 1px solid rgba(26, 43, 74, 0.1);
}

.listing-page .property-gallery {
    margin-bottom: 3.5rem;
}

.listing-page .gallery__slider {
    position: relative;
    border-radius: 10px;
    background: var(--navy);
    box-shadow: 0 18px 60px rgba(26, 43, 74, 0.12);
}

.listing-page .gallery__item,
.listing-page .gallery__item a {
    height: 100%;
}

.listing-page .gallery__item img {
    height: clamp(320px, 42vw, 520px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.listing-page .swiper-slide-active .gallery__item img {
    transform: scale(1.025);
}

.listing-page .property-gallery-controls {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    z-index: 10;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(26, 43, 74, 0.74);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.listing-page .property-gallery-prev,
.listing-page .property-gallery-next {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.listing-page .property-gallery-prev:hover,
.listing-page .property-gallery-next:hover,
.listing-page .property-gallery-prev:focus-visible,
.listing-page .property-gallery-next:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.04);
    outline: none;
}

.listing-page .property-gallery-prev svg,
.listing-page .property-gallery-next svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.listing-page .property-gallery-prev.swiper-button-disabled,
.listing-page .property-gallery-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.listing-page .property-gallery-pagination {
    position: static;
    width: auto !important;
    min-width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.listing-page .property-gallery-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 4px !important;
    background: rgba(255, 255, 255, 0.65);
    opacity: 1;
    transition: width 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}

.listing-page .property-gallery-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: var(--white);
}

.listing-page .gallery__slider.is-single-slide .property-gallery-controls {
    display: none;
}

.listing-page .inquiry-card {
    border-radius: 10px;
    border: 1px solid rgba(26, 43, 74, 0.1);
    box-shadow: 0 18px 55px rgba(26, 43, 74, 0.09);
}

.listing-page .amenity-item {
    min-height: 72px;
    border: 1px solid rgba(26, 43, 74, 0.06);
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.listing-page .amenity-item:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 143, 168, 0.28);
    box-shadow: 0 12px 30px rgba(26, 43, 74, 0.07);
}

@media (max-width: 1024px) {
    .listing-page .listing-main {
        padding: 3rem 2rem 4.5rem;
    }

    .listing-page .listing-sidebar {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    .listing-page .gallery__item img {
        height: clamp(340px, 62vw, 520px);
    }
}

@media (max-width: 768px) {
    .listing-page .listing-main {
        padding-top: 2rem;
    }

    .listing-page .property-specs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-page .gallery__item img {
        height: clamp(260px, 72vw, 380px);
    }

    .listing-page .property-gallery-controls {
        bottom: 0.8rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .listing-page .property-specs {
        grid-template-columns: 1fr;
    }

    .listing-page .gallery__item img {
        height: 260px;
    }

    .listing-page .property-gallery-pagination {
        min-width: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .listing-page .gallery__item img,
    .listing-page .property-gallery-prev,
    .listing-page .property-gallery-next,
    .listing-page .amenity-item {
        transition: none;
    }
}

.listing-page .gallery__slider .swiper-wrapper.gallery {
    flex-wrap: nowrap;
    gap: 0;
}

/* ========================================================================== 
   QA ROUND 3 — AVAILABILITY FORM SPECIFICITY / OVERLAP REPAIR

   Legacy selectors under .rts__booking__form were forcing every field row into
   a horizontal flex layout and applying a second layer of form padding. The
   sidebar is intentionally restyled with the exact live hierarchy so labels,
   controls and icons remain inside the card at every breakpoint. Functional
   IDs/names and the Avantio submit contract are unchanged.
   ========================================================================== */
.listing-page .inquiry-card.rts__booking__form {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    background: var(--cream);
    box-sizing: border-box;
}

.listing-page .inquiry-card.rts__booking__form > form.advance__search#avantio-availability-form {
    width: 100%;
    height: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 2rem !important;
    border-radius: inherit;
    background: var(--cream) !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.listing-page .inquiry-card.rts__booking__form .sticky-item,
.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.listing-page .inquiry-card.rts__booking__form .inquiry-card-title {
    margin: 0 0 0.55rem !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.listing-page .inquiry-card.rts__booking__form .inquiry-card-subtitle {
    margin: 0 0 1.65rem !important;
    line-height: 1.65;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

/* Child age fields must remain hidden until enabled by accommodation-booking.js.
   This scoped rule intentionally overrides the generic query input display rule below. */
.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .child_age_input.d-none,
.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .child_age_input[hidden] {
    display: none !important;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input {
    display: block !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__label {
    display: block !important;
    width: 100%;
    margin: 0 0 0.5rem !important;
    padding: 0 !important;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: left;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input__position {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input input,
.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input select,
.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input textarea {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 52px;
    margin: 0 !important;
    padding: 0.8rem 2.8rem 0.8rem 1rem !important;
    border: 1px solid rgba(26, 43, 74, 0.18) !important;
    border-radius: 4px !important;
    background: var(--white) !important;
    color: var(--navy) !important;
    box-shadow: none !important;
    box-sizing: border-box;
    line-height: 1.35;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input input:focus,
.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input select:focus,
.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input textarea:focus {
    outline: none !important;
    border-color: var(--lake-blue) !important;
    box-shadow: 0 0 0 3px rgba(91, 143, 168, 0.12) !important;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input__icon {
    position: absolute !important;
    top: 50% !important;
    right: 1rem !important;
    left: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: var(--lake-blue);
    line-height: 1;
    transform: translateY(-50%) !important;
    pointer-events: none;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input__icon::before {
    right: auto !important;
}

.listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .search__btn {
    width: 100% !important;
    min-height: 54px;
    margin: 0.35rem 0 0 !important;
    padding: 0.9rem 1.25rem !important;
    box-sizing: border-box;
}

.listing-page .inquiry-card.rts__booking__form #avantio-availability-message {
    width: 100%;
    margin: 0.25rem 0 0;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .listing-page .inquiry-card.rts__booking__form > form.advance__search#avantio-availability-form {
        padding: 1.75rem !important;
    }
}

@media (max-width: 480px) {
    .listing-page .inquiry-card.rts__booking__form > form.advance__search#avantio-availability-form {
        padding: 1.35rem !important;
    }

    .listing-page .inquiry-card.rts__booking__form .inquiry-card-title {
        font-size: 1.25rem !important;
    }

    .listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input input,
    .listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input select,
    .listing-page .inquiry-card.rts__booking__form .advance__search__wrapper .query__input textarea {
        height: 50px;
    }
}
