/* Desktop unit cards and property amenities; other desktop sections keep their existing design. */
.complex-stay-range { display: none; }
.complex-booking-dock { display: none; }
@media (min-width: 768px) {
    body.site-shell.complex-photo-first.unit-details-ready .packege__blk.unit-card-refresh.show:not(.in-package-unit) {
        --unit-media-height: 238px; display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.25fr) !important;
        grid-template-areas: 'media information' 'media options' !important; grid-template-rows: auto 1fr; direction: ltr;
        align-items: start; min-height: 270px; height: auto; gap: 12px 22px; padding: 16px !important;
        width: 100% !important; max-width: none !important; border: 1px solid #e4e9df; border-radius: 16px; box-shadow: none; margin-bottom: 20px;
    }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) > .mobile-title,
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .pck__btn,
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-top-details .unit-summary-row,
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-description-text,
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-feature-cards { display: none; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) > .packege__content { display: contents; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-information-panel { display: flex; grid-area: information; flex-direction: column; gap: 9px; border: 0; padding: 0; min-width: 0; direction: rtl; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-top-details { display: block; padding: 0; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-top-details h5 { font-size: 20px; line-height: 1.4; font-weight: 650; margin: 0 0 5px; color: #26352b; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-top-details > div > span { color: #778075; font-size: 14px; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-compact-summary { display: block; margin: 0; color: #667366; font-size: 14px; line-height: 1.7; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-compact-open { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; min-height: 36px; padding: 2px 0; border: 0; background: transparent; color: #3b5141; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
    .complex-photo-first .unit-compact-open svg { width: 16px; height: 16px; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) > .packege__img { grid-area: media; position: relative; align-self: stretch; width: 100%; max-width: none; min-height: 238px; height: 100%; margin: 0; border-radius: 11px; overflow: hidden; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .packege__img .swiper-container { height: 100% !important; border-radius: 11px; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .unit-gallery-open-button { position: absolute; inset: auto auto 10px 10px; width: auto; min-height: 30px; margin: 0; padding: 5px 9px; border: 0; border-radius: 6px; color: #fff; background: #26372d66; font-size: 12px; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .packege__options { grid-area: options; display: flex; flex-wrap: wrap; flex-direction: row; gap: 8px 12px; width: 100%; margin: 0; padding: 12px 0 0; border-top: 1px solid #eef0e9; direction: rtl; align-self: end; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .packege__options .deal-full-block { flex: 1 1 120px; min-width: 0; width: auto; margin: 0 !important; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .packege__options > a { flex: 0 1 auto; width: auto; min-height: 42px; padding: 10px 15px; font-size: 14px; border-radius: 9px; }
    body.site-shell.complex-photo-first.unit-details-ready .unit-card-refresh.show:not(.in-package-unit) .entire-complex-actions { display: flex; flex-direction: column; gap: 8px; }
    .complex-photo-first .unit-card-refresh .book-promo-badge-row { margin: 0; }
    .complex-photo-first .unit-card-refresh .book-promo-badge { background: transparent; border: 0; border-radius: 0; padding: 0; color: #58705e; font-size: 13px; font-weight: 600; }
    .complex-photo-first .unit-card-refresh .entire-complex-price { flex-direction: column; align-items: flex-start; gap: 2px; }
    .complex-photo-first .unit-card-refresh .entire-complex-actions > a { border-radius: 9px; min-height: 42px; font-size: 14px; }

    .complex-photo-first .unit-full-details { inset: 0; margin: auto; border-radius: 20px; width: min(760px,calc(100vw - 64px)); max-height: 82dvh; height: fit-content; box-shadow: 0 18px 70px #0003; }
    .complex-photo-first .unit-full-details .room-details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .complex-photo-first .unit-full-details .unit-feature-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }

    .complex-photo-first #complex-all-features.amenities-ready > .container > .features-overview { display: none !important; }
    .complex-photo-first #complex-all-features.amenities-ready { padding-block: 32px; margin: 0 0 36px; border-top: 1px solid #eaede5; border-bottom: 1px solid #eaede5; }
    .complex-photo-first #complex-all-features > .container { padding-inline: 0; }
    .complex-photo-first .amenities-compact { display: grid; grid-template-columns: 300px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; gap: 22px 32px; }
    .complex-photo-first .amenities-compact h2 { grid-column: 2; grid-row: 1; color: #28362d; font-size: 24px; line-height: 1.4; font-weight: 650; margin: 0; }
    .complex-photo-first .amenities-compact__list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 20px 14px; list-style: none; padding: 0; margin: 0; grid-column: 2; grid-row: 2; align-self: stretch; }
    .complex-photo-first .amenities-compact__list li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; line-height: 1.5; color: #5d6b5f; }
    .complex-photo-first .amenities-compact__all { grid-column: 2; justify-self: start; align-self: end; min-height: 44px; margin: 4px 0 0; padding: 10px 22px; border: 1px solid #ccd5c8; border-radius: 9px; background: #fff; color: #3c5543; font-size: 15px; font-weight: 600; }
    .complex-photo-first .amenities-compact__rules { grid-column: 1; grid-row: 1 / span 3; padding-inline-end: 28px; border-inline-end: 1px solid #edf0e9; }
    .complex-photo-first .amenities-compact__times { display: block; margin-bottom: 16px; }
    .complex-photo-first .amenities-compact__times .entry-exit-card { border: 0; border-radius: 0; padding: 0; margin: 0; min-height: 0; height: auto; box-shadow: none; background: transparent; }
    .complex-photo-first .amenities-compact__times h4 { margin: 0 0 16px; color: #344b3a; font-size: 18px; font-weight: 650; }
    .complex-photo-first .amenities-compact__times .entry-exit-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
    .complex-photo-first .amenities-compact__times .entry-exit-item > i { display: none; }
    .complex-photo-first .amenities-compact__times .entry-exit-section-title { margin-bottom: 6px; font-size: 15px; color: #4d5e50; }
    .complex-photo-first .amenities-compact__times .entry-exit-line { font-size: 14px; line-height: 1.65; color: #6c776a; }
    .complex-photo-first .amenities-compact__times .entry-exit-line strong { color: #4c5f50; font-weight: 600; }
    .complex-photo-first .amenities-compact__times .entry-exit-note { font-size: 14px; line-height: 1.55; color: #64705f; }
    .complex-photo-first .amenities-compact__rule { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 0; border: 0; background: transparent; color: #596a5c; text-align: right; font-size: 15px; }
    .complex-photo-first .amenities-compact__rule--times { display: none; }
    .complex-photo-first .amenities-compact__rule + .amenities-compact__rule { border-top: 1px solid #edf0e9; }
    .complex-photo-first .amenities-compact__arrow { margin-inline-start: auto; font-size: 24px; color: #879180; }
    .complex-photo-first .amenity-dialog { inset: 0; margin: auto; border-radius: 20px; width: min(760px,calc(100vw - 64px)); max-height: 82dvh; box-shadow: 0 18px 70px #0003; }
    .complex-photo-first .amenity-dialog__body section[data-type='amenities'] .amenity-dialog__list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (min-width: 1200px) {
    .complex-booking-dock:not([hidden]) {
        display: block; position: fixed; left: 0; right: 0; bottom: 20px; margin-inline: auto;
        width: min(960px,calc(100vw - 80px)); z-index: 450;
        padding: 9px 16px 12px; border: 1px solid #e1e6e0; border-radius: 20px;
        background: #fff; color: #344b3c; box-shadow: 0 8px 36px #203c2a26;
    }
    .complex-booking-dock[hidden] { display: none !important; }
    .complex-booking-dock__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; font-size: 12px; color: #778177; }
    .complex-booking-dock__back { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: transparent; color: #3c5946; font-size: 12px; }
    .complex-booking-dock__back:focus-visible { outline: 2px solid #00845a; outline-offset: 3px; }
    .complex-single-booking .complex-booking-dock .Vacation__form {
        margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0; box-shadow: none;
        max-height: none; width: 100%; background: transparent;
    }
    .complex-booking-dock .mobile-order-sheet { position: static; display: block; transform: none; max-height: none; overflow: visible; box-shadow: none; }
    .complex-booking-dock .mobile-order-sheet-body { display: grid; grid-auto-flow: column; grid-template-columns: minmax(260px,1.5fr) minmax(180px,1fr); grid-auto-columns: minmax(160px,1fr); align-items: center; gap: 12px; overflow: visible; }
    .complex-booking-dock :is(.date-selection-heading, .guests-dropdown-label, .mobile-order-collapsed,
        .mobile-order-backdrop, .mobile-order-sheet-header, .mobile-order-sheet-actions, .mobile-order-calendar-host, .booking-options-status) { display: none !important; }
    .complex-booking-dock :is(.guests-dropdown-wrapper, .filters-dropdown-wrapper) { margin: 0 !important; min-width: 0; }
    .complex-single-booking .complex-booking-dock .cal__input { margin: 0 !important; }
    .complex-single-booking .complex-booking-dock .complex-stay-range { min-height: 52px; padding: 7px 12px; gap: 9px; border-radius: 11px; }
    .complex-single-booking .complex-booking-dock .complex-stay-range b { font-size: 14px; white-space: nowrap; }
    .complex-booking-dock .complex-stay-range small { font-size: 10px; }
    .complex-booking-dock .guests-dropdown-toggle { min-height: 52px; padding: 9px 12px; border-color: #dde3dc; border-radius: 11px; }
    .complex-booking-dock .guests-dropdown-content { top: auto; bottom: calc(100% + 10px); left: auto; right: 0; min-width: 320px; max-height: min(70dvh,460px); overflow-y: auto; }
    .complex-booking-dock [id^='order-summary-container']:not(:has(.button-order)) { display: none; }
    .complex-booking-dock [id^='order-summary-container'] > :not(.button-order) { display: none !important; }
    .complex-booking-dock [id^='order-summary-container']:has(.button-order),
    .complex-booking-dock .desktop-order-flow-action.is-visible { grid-row: 1; }
    .complex-booking-dock :is(.desktop-order-flow-action.is-visible, [id^='order-summary-container'] .button-order) { min-height: 52px; margin: 0 !important; padding: 8px 16px; font-size: 14px; white-space: nowrap; }
    body.complex-booking-compact { padding-bottom: 132px; }
    body.complex-single-booking { overflow-anchor: none; }
    /* Start the dates and units together, before the sidebar becomes sticky. */
    .complex-photo-first #Avb .availability-sidebar { position: relative; top: auto !important; align-self: stretch; height: auto; padding-block-start: 0 !important; }
    .complex-photo-first #Avb .availability-sidebar .sticky-wrapper { position: sticky; top: var(--booking-sidebar-top, 144px); }
    .complex-photo-first #Avb .packege-area .col-lg-8 > .sec__title { margin-top: 15px; }
    .complex-single-booking .order-flow-panel { transform-origin: top left; }
    .complex-single-booking #top-vacation-form .order-flow-panel { margin-bottom: 0 !important; }
    .complex-single-booking .order-flow-panel .cal__input { display: block; padding: 0; border: 0; background: transparent; }
    .complex-single-booking .order-flow-panel .cal__input > div { display: none; }
    .complex-single-booking .complex-stay-range { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 12px 16px; border: 1px solid #dde3dc; border-radius: 14px; background: #fff; color: #334a3d; text-align: right; }
    .complex-single-booking .complex-stay-range:hover { border-color: #8b9e91; }
    .complex-single-booking .complex-stay-range:focus-visible { outline: 2px solid #00875f; outline-offset: 3px; }
    .complex-single-booking .complex-stay-range svg { width: 22px; height: 22px; flex: 0 0 22px; }
    .complex-single-booking .complex-stay-range > span:nth-child(2) { display: grid; flex: 1; min-width: 0; gap: 3px; }
    .complex-single-booking .complex-stay-range small { color: #7b857c; font-size: 12px; }
    .complex-single-booking .complex-stay-range b { font-size: 15px; line-height: 1.5; font-weight: 600; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .complex-photo-first .amenities-compact { grid-template-columns: 270px minmax(0,1fr); gap: 22px 24px; }
    .complex-photo-first .amenities-compact__list { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px 10px; }
    .complex-photo-first .amenities-compact__list li { flex-direction: column; align-items: flex-start; font-size: 14px; }
}
