/* Static-export overrides for vis-holiday-house.eu.
 * The original theme CSS remains the visual baseline. */

:root {
  color-scheme: light;
  --holiday-blue: #117ea1;
  --holiday-dark: #25313a;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { height: auto; }

/* The old hero needed jQuery to select and reveal a slide. Keep the first
 * original photograph as the deterministic static hero. */
.gg-homepage-var2 #single-project-gallery.owl-carousel {
  display: block !important;
  height: calc(100vh - 30px);
  min-height: 620px;
}
.slideshow-property,
.slideshow-property-gallery { height: 100%; }
.cbp-bislideshow {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
}
.cbp-bislideshow li { display: none !important; }
.cbp-bislideshow li:first-child { display: block !important; opacity: 1 !important; }
.backgroundsize .cbp-bislideshow li:first-child img,
.cbp-bislideshow li:first-child img {
  display: block !important;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  opacity: 1 !important;
  visibility: visible !important;
}
.cbp-bicontrols { display: none !important; }

/* Accessible replacement for the legacy jQuery tabs. */
.wpb_tabs_nav [data-tab] { cursor: pointer; }
.wpb_tabs_nav [data-tab]:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.wpb_tour_tabs_wrapper > .tab-content { display: none; }
.wpb_tour_tabs_wrapper > .tab-content.current { display: block; }

.static-preview-form-disabled {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 32px 24px;
  border: 1px solid #d9e4e8;
  border-top: 4px solid var(--holiday-blue);
  background: #fff;
  color: #222;
  text-align: center;
}
.static-preview-form-disabled strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 400;
}
.static-preview-form-disabled p { margin: 0 auto 16px; font-size: 17px; line-height: 1.6; }
.static-preview-form-disabled a { color: #086f91; font-weight: 700; text-decoration: underline; }

.static-calendar-notice {
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 18px 22px;
  border-left: 4px solid var(--holiday-blue);
  background: #eef7fa;
  color: #25313a;
  text-align: center;
}
.static-calendar-notice p { margin: 0; }

.static-map-card {
  box-sizing: border-box;
  min-height: 293px;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(25, 78, 94, .96), rgba(23, 132, 162, .88)),
    radial-gradient(circle at 25% 20%, #fff 0 2px, transparent 3px);
  color: #fff;
  text-align: center;
}
.static-map-card__inner { max-width: 620px; }
.static-map-card h2 { margin: 0 0 14px; color: #fff; }
.static-map-card p { margin: 0 0 22px; font-size: 18px; }
.static-map-card a {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.static-map-card a:hover,
.static-map-card a:focus-visible { background: #fff; color: var(--holiday-dark); }

.static-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  background: rgba(0, 0, 0, .92);
}
.static-lightbox[hidden] { display: none; }
.static-lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; object-fit: contain; }
.static-lightbox button {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font: 32px/36px Arial, sans-serif;
  cursor: pointer;
}
.static-lightbox button:focus-visible,
a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }

@media (max-width: 767px) {
  .gg-homepage-var2 #single-project-gallery.owl-carousel {
    display: flow-root !important;
    height: auto;
    min-height: 0;
  }
  .gg-homepage-var2 .slideshow-property { height: auto; }
  .gg-homepage-var2 .slideshow-property-gallery { height: 420px; }
  .gg-homepage-var2 .slideshow-property-meta {
    padding: 22px 14px;
    background: #0c0f21;
  }
  .slideshow-property-meta h1 { font-size: clamp(30px, 9vw, 48px) !important; }
  .title-subtitle-box h1 { font-size: clamp(34px, 10vw, 52px) !important; }
  .wpb_tabs_nav { display: grid !important; grid-template-columns: 1fr; }
  .wpb_tabs_nav li { width: 100% !important; }
  #author_image { float: none !important; display: block; margin: 0 auto 12px; }
  #author_image + p {
    top: auto !important;
    float: none !important;
    margin: 0 !important;
    position: static !important;
    text-align: center;
  }
  #author_image { max-width: 88px !important; }
  .booking-form-wrapper [style*="height: 122px"] { height: auto !important; min-height: 210px; }
  .static-map-card { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
