body.site-shell .unit-card-refresh { scroll-margin-top: 100px; }
/* Reversible unit-card presentation trial. Pricing and booking controls retain their existing behavior. */
body.site-shell .unit-card-refresh .unit-gallery-open-button {
    position: absolute; bottom: 12px; right: 12px; left: 12px; z-index: 4;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 12px; min-height: 42px; border: 1px solid #e2e7e3; border-radius: 9px;
    background: rgba(255,255,255,.96); color: #182e27; font-size: 14px; font-weight: 700;
    box-shadow: 0 2px 8px #0002; cursor: pointer;
}
body.site-shell .unit-card-refresh .unit-gallery-open-button:focus-visible,
body.site-shell .unit-card-refresh [data-open-unit-lightbox]:focus-visible { outline: 3px solid #00845a; outline-offset: -3px; }
body.site-shell .unit-card-refresh > .packege__img { position: relative; }
body.site-shell .unit-card-refresh:not(.show) .unit-gallery-open-button { display: none; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-cards { gap: 8px; margin: 0; grid-template-columns: minmax(0,1fr); }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card { background: #f8faf9; padding: 10px 12px; box-shadow: none; width: 100%; min-width: 0; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card h6 { margin-bottom: 6px; font-size: 14px; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 12px; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card li { padding: 0; font-size: 14px; line-height: 1.4; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card li span { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; overflow-wrap: normal; word-break: normal; hyphens: none; flex: 1; min-width: 0; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-summary-row { flex-wrap: wrap; gap: 6px 12px; margin: 0 0 8px; }
body.site-shell .packege__blk.unit-card-refresh.show .room-summary { margin-top: 0 !important; line-height: 1.5; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-description-text { margin: 6px 0 0; line-height: 1.5; font-size: 14px; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-container::after { display: none; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-prev,
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-next { top: 50%; bottom: auto; display: flex !important; width: 36px; height: 36px; border-radius: 50%; background: #ffffffed; margin-top: -18px; transform: none; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-prev { right: 10px; left: auto; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-next { left: 10px; right: auto; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-prev img { transform: rotate(-90deg); }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-next img { transform: rotate(90deg); }
@media (min-width:1200px) {
    body.site-shell .packege__blk.unit-card-refresh.show:not(.in-package-unit) {
        --unit-media-height: clamp(280px,45vh,360px);
        display: grid; direction: ltr; width: 100% !important; max-width: 100% !important;
        grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) !important;
        grid-template-areas: "details details" "features media" "options media" !important;
        grid-template-rows: auto auto auto; gap: 12px 20px; padding: 18px !important; align-items: start;
    }
    body.site-shell .packege__blk.unit-card-refresh.show:not(.in-package-unit) > .packege__content { display: contents; }
    body.site-shell .packege__blk.unit-card-refresh.show:not(.in-package-unit) > .packege__img { grid-area: media; width: 100%; max-width: none; max-height: none; height: var(--unit-media-height); margin: 0; border-radius: 12px; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-container { height: 100% !important; width: 100%; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__img-item { height: 100%; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-top-details { grid-area: details; padding-left: 16px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-top-details h5 { font-size: 21px; font-weight: 700; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-cards { grid-area: features; }
    body.site-shell .packege__blk.unit-card-refresh.show:not(.in-package-unit) .packege__options { grid-area: options; width: 100%; max-width: none; margin: 0; padding: 10px 0 0; border-top: 1px solid #e2e9e5; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
    body.site-shell .packege__blk.unit-card-refresh.show:not(.in-package-unit) .packege__options .deal-full-block { width: auto; flex: 1 1 120px; margin: 0 !important; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options .deal-price-block { text-align: right; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options > a { width: auto; flex: 1 1 135px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 10px 14px; font-weight: 700; }
    body.site-shell .packege__blk.unit-card-refresh.show .same-places-unit-selector { flex: 1 1 100%; }
}
@media (max-width:1199px) {
    body.site-shell .packege__blk.unit-card-refresh.show { display: flex; flex-direction: column; gap: 12px; padding: 12px !important; }
    body.site-shell .packege__blk.unit-card-refresh.show > .mobile-title { order: 0; position: static; width: 100%; margin: 0; padding: 0 24px 0 0; }
    body.site-shell .packege__blk.unit-card-refresh.show > .packege__img { order: 1; width: 100%; max-width: none; margin: 0; height: auto; border-radius: 12px; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-container { height: clamp(200px,56vw,300px) !important; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__img-item { height: 100%; }
    body.site-shell .packege__blk.unit-card-refresh.show > .packege__content { display: contents; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-top-details { order: 2; width: 100%; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-cards { order: 3; width: 100%; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options { order: 4; position: static; width: 100%; height: auto; margin: 0; padding: 10px 0 0; border-top: 1px solid #e2e9e5; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card { padding: 8px 10px; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options > a { min-height: 44px; }
}

body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-slide { height: 100% !important; margin-bottom: 0; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img-item { width: 100%; aspect-ratio: auto; }

body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-cards { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card:first-child,
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card:nth-child(2):last-child { grid-column: 1 / -1; }
body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card:not(:first-child):not(:nth-child(2):last-child) ul { grid-template-columns: minmax(0,1fr); }

body.site-shell .packege__blk.unit-card-refresh.show .unit-description-text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
body.site-shell .unit-card-refresh .unit-mobile-facts { display: block; color: #66756d; font-size: 13px; line-height: 1.4; }

@media (max-width:1199px) {
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options .deal-full-block { flex: 1 1 125px; width: auto; margin: 0 !important; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options .deal-price-block { text-align: right; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__options > a { flex: 1 1 125px; width: auto; display: flex; align-items: center; justify-content: center; padding: 10px 12px; }
    body.site-shell .packege__blk.unit-card-refresh.show .same-places-unit-selector { flex: 1 1 100%; }
}
@media (min-width:1200px) and (max-height:800px) {
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-cards { gap: 6px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card { padding: 8px 10px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card h6 { margin-bottom: 4px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card ul { row-gap: 2px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card li { font-size: 13px; line-height: 1.35; }
}

/* Gallery controls stay over the image center, including when its caption is below it. */
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-container { position: relative; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-prev,
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-next {
    top: 50% !important; bottom: auto !important; margin-top: 0 !important;
    transform: translateY(-50%) !important; background: transparent !important;
    border: 1px solid #fff8; box-shadow: none; width: 40px; height: 40px;
}
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-prev { right: 10px !important; left: auto !important; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-next { left: 10px !important; right: auto !important; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-prev img { transform: rotate(-90deg) !important; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-next img { transform: rotate(90deg) !important; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-prev img,
body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-button-next img { filter: brightness(0) invert(1) drop-shadow(0 1px 2px #000); }
body.site-shell .unit-card-refresh .unit-gallery-open-button { background: transparent; color: white; border-color: #fffa; box-shadow: none; text-shadow: 0 1px 3px #000, 0 0 5px #000; }
body.site-shell .entire-complex-unit-card .room-summary { display: none; }
body.site-shell .entire-complex-actions { width: 100%; direction: rtl; }
body.site-shell .entire-complex-actions > a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 12px; font-weight: 700; text-align: center; }
body.site-shell .entire-complex-actions .book-promo-badge-row { margin-bottom: 8px; }
@media (max-width:1199px) {
    body.site-shell .packege__blk.unit-card-refresh.show > .packege__img { display: block; overflow: visible; }
    body.site-shell .packege__blk.unit-card-refresh.show .packege__img .swiper-container { border-radius: 12px; overflow: hidden; }
    body.site-shell .unit-card-refresh .unit-gallery-open-button { position: static; margin: 6px 0 0; width: 100%; color: #183c30; text-shadow: none; border-color: #d7e3dc; min-height: 38px; padding: 7px 8px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card { padding-left: 8px; padding-right: 8px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card ul { column-gap: 8px; }
    body.site-shell .packege__blk.unit-card-refresh.show .unit-feature-card li { gap: 4px; width: 100%; }
}

body.site-shell .entire-complex-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
body.site-shell .entire-complex-price span { font-size: 13px; color: #66756d; }
body.site-shell .entire-complex-price strong { font-size: 24px; color: #183c30; white-space: nowrap; }
body.site-shell .packege__blk.unit-card-refresh.show .packege__img-item { height: 100% !important; }
body.site-shell .entire-complex-unit-card .room-detail-card-title > span { overflow-wrap: normal; word-break: normal; }
