/* StaticMirror: shared fixes for Elementor / The7 pages served without the
   WordPress scripts that used to reveal or drive parts of them. */

a, button, [role="button"], summary { cursor: pointer; }

/* things the theme hid until its script had run */
.hidden-on-load { visibility: visible !important; opacity: 1 !important; }
.dt-nav-menu__container { visibility: visible !important; }

/* ---------------------------------------------------------------- carousels
   Owl carousels become a row that scrolls sideways (swipe on a phone, arrows
   or trackpad on a computer). Five cards on a wide screen, as before. */
.owl-carousel:not(.owl-loaded)
{
    display: flex !important;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.owl-carousel:not(.owl-loaded)::-webkit-scrollbar { display: none; }
.owl-carousel:not(.owl-loaded) > *
{
    flex: 0 0 calc((100% - 120px) / 5);
    min-width: 0;
    scroll-snap-align: start;
}
@media (max-width: 1024px)
{
    .owl-carousel:not(.owl-loaded) > * { flex-basis: calc((100% - 60px) / 3); }
}
@media (max-width: 767px)
{
    .owl-carousel:not(.owl-loaded) { gap: 16px; }
    .owl-carousel:not(.owl-loaded) > * { flex-basis: 78%; }
}

.mirror-scroller { position: relative; }
.mirror-scroller__btn
{
    position: absolute;
    top: 38%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
}
.mirror-scroller__btn svg { width: 18px; height: 18px; fill: currentColor; }
.mirror-scroller__btn--prev { left: -56px; }
.mirror-scroller__btn--next { right: -56px; }
.mirror-scroller__btn[disabled] { opacity: 0.25; cursor: default; }
.mirror-scroller__btn[hidden] { display: none; }
@media (max-width: 1300px)
{
    .mirror-scroller__btn--prev { left: 4px; }
    .mirror-scroller__btn--next { right: 4px; }
}
@media (hover: none)
{
    .mirror-scroller__btn { display: none; }
}

/* ------------------------------------------------------------------- popups
   Elementor popups (menus, panels) are shown by our script as a full-screen
   layer. Closed only by their own close button or Esc, never by a click
   outside. */
.elementor-location-popup.mirror-popup-open
{
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: block !important;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.88);
}
html.mirror-popup-lock, html.mirror-popup-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce)
{
    .owl-carousel:not(.owl-loaded) { scroll-behavior: auto; }
}

/* ---------------------------------------------------- background slideshows */
.mirror-has-slideshow { position: relative; }
.mirror-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mirror-slideshow__slide
{
    position: absolute;
    inset: 0;
    opacity: 0;
    background-repeat: no-repeat;
    transition-property: opacity;
    transition-timing-function: ease;
}
.mirror-slideshow__slide.is-on { opacity: 1; }

/* ------------------------------------------------ Elementor Pro nav menus
   Sub-menus open on hover or keyboard focus (the smartmenus script did it). */
.elementor-nav-menu--main .elementor-nav-menu li:hover > ul,
.elementor-nav-menu--main .elementor-nav-menu li:focus-within > ul
{
    display: block;
}

/* ----------------------------------------------------- The7 sticky headers */
.mirror-sticky-pinned
{
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 999 !important;
}
