/*
 * Casa Hirscher responsive remediation.
 *
 * This file owns only measured layout corrections. It does not change copy,
 * fonts, media, footer markup, reveal order, or the authored art direction.
 */

/* Keep the sequence form inside its owning surface at every width without
   changing the existing step lifecycle or hiding any field. */
#chSeqContact,
#chSeqContact .ch-seq-inner,
#chSeqContact .ch-seq-form,
#chSeqContact .ch-seq-stage {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}
#chSeqContact .ch-seq-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 14px;
}

#chSeqContact .ch-seq-actions > * {
  min-width:0;
  max-width:100%;
}

@media (max-width:767px) {
  #chSeqContact .ch-seq-actions > * {
    flex:1 1 132px;
  }
}

/* Route 008: the captured Elementor widget supplied an unbounded 100% height
   to the map column. Give the existing map card an intentional, bounded
   height and let its internal Leaflet surface continue to fill that card.
   The section container (.elementor-element-e1d45cc) is deliberately NOT
   clamped: its contact column is taller than the map at every width, and a
   clamped section box forced that column to overflow the container into the
   footer (measured 390x844: 421px box against 1760px of contact content;
   measured 1440x900: 560px box against 1623px). The section must size to
   its content. */
body:has(#ch-map) .elementor-element-e1d45cc > .elementor-element-9d57dc0,
body:has(#ch-map) .elementor-element-e1d45cc > .elementor-element-9d57dc0 > .elementor-element-64f9ba4,
body:has(#ch-map) .elementor-element-e1d45cc .elementor-widget-container,
body:has(#ch-map) .elementor-element-e1d45cc .ch-map-wrap {
  height:clamp(420px, 48vw, 560px) !important;
  min-height:0 !important;
}

body:has(#ch-map) .elementor-element-e1d45cc,
body:has(#ch-map) .elementor-element-e1d45cc > .elementor-element-9d57dc0 {
  align-self:stretch;
}

@media (max-width:767px) {
  body:has(#ch-map) .elementor-element-e1d45cc > .elementor-element-9d57dc0,
  body:has(#ch-map) .elementor-element-e1d45cc > .elementor-element-9d57dc0 > .elementor-element-64f9ba4,
  body:has(#ch-map) .elementor-element-e1d45cc .elementor-widget-container,
  body:has(#ch-map) .elementor-element-e1d45cc .ch-map-wrap {
    height:clamp(360px, 108vw, 520px) !important;
  }
}

/* Route 005: retain one snap-aligned card at a time while allowing long
   editorial copy to determine the card's minimum height instead of being
   clipped by a fixed mobile box. */
#chExpMobileShell,
#chExpMobileTrack,
#chExpDesktopShell,
#chExpDesktopTrack {
  min-width:0;
}

#chExpMobile .ch-exp-mobile-card,
#chExpDesktop .ch-exp-desktop-card {
  box-sizing:border-box;
}

@media (max-width:767px) {
  #chExpMobile .ch-exp-mobile-card:not(.ch-exp-mobile-card--intro) {
    height:auto;
    min-height:clamp(440px, calc(100svh - 220px), 500px);
    max-height:none;
    grid-template-rows:minmax(190px, 44%) minmax(0, 1fr);
  }

  #chExpMobile .ch-exp-mobile-content {
    min-height:0;
    height:auto;
  }
}

/* The captured Elementor visibility classes hide the desktop experience shell
   in the tablet band. Keep the existing mobile panel as the intentional
   fallback there, but make its section a real viewport-height surface. */
@media (min-width:768px) and (max-width:1024px) {
  body.page-id-2607:has(#chExpMobile) #chExpMobile {
    display:block !important;
    height:100svh !important;
    min-height:100svh !important;
  }

  body.page-id-2607:has(#chExpMobile) #chExpMobile .ch-exp-mobile-wrap {
    height:100svh;
    min-height:100svh;
    padding-inline:clamp(28px, 4vw, 48px);
  }

  body.page-id-2607:has(#chExpMobile) #chExpMobile .ch-exp-mobile-card {
    flex-basis:min(680px, calc(100vw - 96px));
    width:min(680px, calc(100vw - 96px));
    min-width:min(680px, calc(100vw - 96px));
    max-width:min(680px, calc(100vw - 96px));
  }
}

/* Routes 003/007 mobile footer branch (.elementor-element-268babb): the
   vendor post-58 stylesheet authors --min-height:100dvh and
   --z-index:99999999999 on this mobile-only container. Chrome saturates the
   custom index at INT_MAX, so the full-viewport dark panel painted over the
   contact content directly above it (measured 390x844 route 007: an empty
   dark band from doc 3240 to 3486 across the contact card), and
   space-between scattered the widget stack across 844px. Collapsing the
   authored min-height floor and capping the index to 1 keeps the branch's
   colors, widgets, order, and geometry untouched while returning it below
   the content it was covering. Specificity (0,4,1) beats the vendor rule
   (0,3,0) without !important. Route 010 keeps its own #chFooterReservation
   override, which still wins for that page. */
@media (max-width:767px) {
  footer.elementor-location-footer .elementor-element.elementor-element-268babb {
    --min-height:0px;
    --z-index:1;
  }
}

/* Route 003 tablet band: both captured footer branches are hidden at
   768-1024 (36f35bf hides on tablet, 268babb hides on tablet too), and
   route 003 carries no composer fallback row — at 900px the page had no
   footer at all. The mobile accordion branch becomes the tablet owner,
   matching the single-owner band contract used on the other routes. */
@media (min-width:768px) and (max-width:1024px) {
  body.page-id-2737 footer.elementor-location-footer .elementor-element.elementor-element-268babb {
    display:flex;
    --min-height:0px;
    --z-index:1;
  }
}

/* Route 003 reservation hero on phones: the authored stage keeps its
   centered desktop composition via --min-height:100svh, but the vendor's own
   mobile block already re-anchors the call card to flex-start; on short
   viewports that left a dead brown band below the card (measured 390x844:
   content ends at doc 710 while the stage ran to 844). Content sizes the
   stage on mobile only; colors, pattern, padding, and copy are unchanged. */
@media (max-width:767px) {
  body.page-id-2737 .elementor-element.elementor-element-11ade01 {
    --min-height:auto;
  }
}

/* Keep the brand in the header and the open drawer reachable on phones. */
@media (max-width:767px) {
  body.page-id-1721:has(.pnav-dropdown-9cf2[aria-hidden="false"]) .elementor-element-91c3171,
  body.page-id-1200:has(.pnav-dropdown-9cf2[aria-hidden="false"]) .elementor-element-91c3171 {
    pointer-events:none;
  }
  body.page-id-1721:has(.pnav-dropdown-9cf2[aria-hidden="false"]) .elementor-element-91c3171 .elementor-element-76a29c8 {
    transform:none !important;
  }
}

@media(min-width:1025px){
  html[lang^="ro"] body footer.elementor-location-footer .ch-route004-ro-footer-details--mobile{display:none!important;}
}
@media(min-width:768px) and (max-height:500px) and (orientation:landscape){
  #elementor-popup-modal-166 .popup-stagger{padding-block:8px!important;}
  #elementor-popup-modal-166 .menu-overlay .elementor-heading-title{margin-block:0;}
  #elementor-popup-modal-166 .menu-overlay a{min-height:26px;display:inline-flex;align-items:center;}
  #elementor-popup-modal-166 .menu-overlay{row-gap:2px!important;}
}
