/* ============================================================
   Tyrolean enhancement layer — additive polish only.
   Loaded on every page next to tyro-static-fix.js.
   Removing this file + tyro-enhance.js restores the exact
   original look. Brand tokens from the live design:
   blue #0078c2 · green #8eb82e · navy #112337 · Montserrat
   ============================================================ */
:root {
  --tyro-blue: #0078c2;
  --tyro-blue-dark: #0069ab;
  --tyro-green: #8eb82e;
  --tyro-navy: #112337;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { text-wrap: balance; }
.elementor-widget-text-editor p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--tyro-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- scroll reveal (JS adds .tyro-reveal only to
   below-the-fold sections & chalet cards) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tyro-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition-property: opacity, transform;
    transition-duration: 0.7s;
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--tyro-d, 0ms);
    will-change: opacity, transform;
  }
  .tyro-reveal.tyro-in {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* ---------- buttons: tactile hover/press ---------- */
.elementor-button,
.tyro-netlify-form [type="submit"],
.gform_button {
  transition-property: transform, box-shadow, background-color, color;
  transition-duration: 0.18s;
  transition-timing-function: ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .elementor-button:hover,
  .tyro-netlify-form [type="submit"]:hover,
  .gform_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 35, 55, 0.18);
  }
}
.elementor-button:active,
.tyro-netlify-form [type="submit"]:active,
.gform_button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 8px rgba(17, 35, 55, 0.15);
}

/* ---------- chalet cards: shadow lift (transform handled by
   the JS tilt so the two never fight) ---------- */
.jet-listing-grid__item {
  transition-property: box-shadow;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
  border-radius: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .jet-listing-grid__item:hover {
    box-shadow: 0 14px 32px rgba(17, 35, 55, 0.16);
  }
}

/* ---------- floating call button ---------- */
.tyro-call {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  min-width: 56px;
  padding: 0 18px;
  background: var(--tyro-blue);
  color: #fff;
  border-radius: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 120, 194, 0.35), 0 2px 6px rgba(17, 35, 55, 0.2);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition-property: opacity, transform, box-shadow, background-color;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* the Elementor kit paints all links brand-blue with higher
   specificity — force white inside the button */
a.tyro-call,
a.tyro-call:hover,
a.tyro-call:focus,
a.tyro-call:visited,
a.tyro-call .tyro-call__label {
  color: #fff !important;
}
a.tyro-call svg {
  fill: #fff !important;
}
.tyro-call.tyro-call--on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.tyro-call.tyro-call--hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .tyro-call.tyro-call--on:hover {
    background: var(--tyro-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 120, 194, 0.4), 0 3px 8px rgba(17, 35, 55, 0.22);
  }
}
.tyro-call.tyro-call--on:active {
  transform: scale(0.96);
}
.tyro-call svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.tyro-call__label { white-space: nowrap; }

/* pulse ring — one soft ripple, pauses for reduced motion */
.tyro-call::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.tyro-call.tyro-call--on::before {
  animation: tyro-pulse 3.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
@keyframes tyro-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 120, 194, 0.38); }
  55%  { box-shadow: 0 0 0 14px rgba(0, 120, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 120, 194, 0); }
}

@media (max-width: 767px) {
  .tyro-call {
    width: 56px;
    padding: 0;
    justify-content: center;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .tyro-call__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tyro-call { transition: opacity 0.2s ease-out; transform: none; }
  .tyro-call.tyro-call--on::before { animation: none; }
}

/* ---------- desktop nav dropdown: size panel to its items ----------
   On the static copy the menu script doesn't auto-size the submenu, so
   the 200px panel let long items overflow onto the page ("bleed").
   Shrink-to-fit restores the live-site behaviour. */
.elementor-nav-menu--main .elementor-nav-menu--dropdown {
  width: auto !important;
  min-width: 220px !important;
  max-width: 480px !important;
}
.elementor-nav-menu--main .elementor-nav-menu--dropdown a {
  white-space: nowrap;
}

/* ---------- request-to-book form (chalet detail sidebar) ---------- */
.tyro-book {
  font-family: "Montserrat", sans-serif;
  background: #fff;
  border: 1px solid rgba(17, 35, 55, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(17, 35, 55, 0.08);
  padding: 22px 20px;
}
.tyro-book__title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--tyro-navy);
}
.tyro-book label {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tyro-navy);
}
.tyro-book__opt { font-weight: 400; color: #6b7684; }
form.tyro-book input,
form.tyro-book select,
form.tyro-book textarea {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin-top: 5px;
  padding: 10px 12px !important;
  font: inherit;
  font-weight: 400;
  color: var(--tyro-navy);
  background: #fff;
  border: 1px solid rgba(17, 35, 55, 0.22) !important;
  border-radius: 6px !important;
  transition-property: border-color, box-shadow;
  transition-duration: 0.15s;
  transition-timing-function: ease-out;
}
form.tyro-book input:focus,
form.tyro-book select:focus,
form.tyro-book textarea:focus {
  outline: none;
  border-color: var(--tyro-blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 194, 0.15);
}
.tyro-book__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tyro-book__hp { position: absolute; left: -9999px; }
.tyro-book__submit {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--tyro-blue);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition-property: transform, box-shadow, background-color;
  transition-duration: 0.18s;
  transition-timing-function: ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .tyro-book__submit:hover {
    background: var(--tyro-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 120, 194, 0.3);
  }
}
.tyro-book__submit:active { transform: scale(0.98); }
.tyro-book__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7684;
  text-wrap: pretty;
}
.tyro-book__note a { color: var(--tyro-blue); font-weight: 600; }

/* ---------- floating "Request to Book" (chalet pages, above call) ---------- */
.tyro-book-fab {
  position: fixed;
  right: 20px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px;
  background: var(--tyro-green);
  color: #fff;
  border: 0;
  border-radius: 28px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(142, 184, 46, 0.4), 0 2px 6px rgba(17, 35, 55, 0.2);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition-property: opacity, transform, box-shadow, background-color;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tyro-book-fab.tyro-book-fab--on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (hover: hover) and (pointer: fine) {
  .tyro-book-fab.tyro-book-fab--on:hover {
    background: #7da527;
    transform: translateY(-2px);
  }
}
.tyro-book-fab:active { transform: scale(0.96); }
.tyro-book-fab svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
/* the theme paints <button> navy on some breakpoints — hold the green */
button.tyro-book-fab {
  background: var(--tyro-green) !important;
  color: #fff !important;
  border: none !important;
}
/* the sitewide variant is an <a> — beat the kit's link colour, kill underline */
a.tyro-book-fab,
a.tyro-book-fab:hover,
a.tyro-book-fab:focus,
a.tyro-book-fab:visited {
  color: #fff !important;
  text-decoration: none !important;
}
a.tyro-book-fab svg { fill: #fff !important; }
@media (max-width: 767px) {
  .tyro-book-fab { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .tyro-book-fab { transition: opacity 0.2s ease-out; transform: none; }
}

/* ---------- retire the dead date-picker UI on chalet pages ----------
   These element IDs come from the shared chalet template (elementor-1923):
   "Choose your dates" icon-box, Arrival/Departure row, calendar month nav,
   Available/Unavailable legend. All were driven by the WordPress/Guesty
   availability API and show nothing useful on the static site — the
   Request-to-Book form replaces them. */
.elementor-1923 .elementor-element-f0b90b8,
.elementor-1923 .elementor-element-11e0f45,
.elementor-1923 .elementor-element-3e9be22,
.elementor-1923 .elementor-element-a6cdba0 {
  display: none !important;
}
/* (2c1ae7f wraps the calendar AND the Reserve form — the form is
   replaced in place, so only the calendar widget inside it is
   hidden, from tyro-book.js) */

/* ---------- hide the old green "back to top" button ----------
   It sits in the same corner as the Book Now / Call to Book pills
   (mobile + desktop) and is redundant next to them. */
a[href="#top-anchor"],
.elementor-widget-button:has(> .elementor-widget-container a[href="#top-anchor"]) {
  display: none !important;
}

/* ---------- share button (chalet pages) ---------- */
button.tyro-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 9px 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--tyro-blue);
  background: #fff;
  border: 1.5px solid var(--tyro-blue);
  border-radius: 999px;
  cursor: pointer;
  transition-property: background-color, color, transform, box-shadow;
  transition-duration: 0.18s;
  transition-timing-function: ease-out;
}
button.tyro-share svg { width: 15px; height: 15px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  button.tyro-share:hover {
    background: var(--tyro-blue);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 120, 194, 0.25);
  }
}
button.tyro-share:active { transform: scale(0.97); }

/* ---------- Guesty booking widget ---------- */
.tyro-bw h3.tyro-book__title {
  font-size: 20px !important;
  line-height: 1.3 !important;
  color: var(--tyro-navy) !important;
}
.tyro-bw h4 { font-size: 16px !important; }
.tyro-bw__occ {
  margin: -4px 0 12px;
  font-size: 12px;
  color: #6b7684;
}
.tyro-bw__quote { margin: 14px 0 4px; }
.tyro-bw__quote h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tyro-blue);
}
.tyro-bw__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--tyro-navy);
  border-bottom: 1px solid rgba(17, 35, 55, 0.07);
}
.tyro-bw__rows > .tyro-bw__total {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 0;
  padding-top: 10px;
}
.tyro-bw__err { color: #c0392b; font-size: 13.5px; font-weight: 600; }
.tyro-bw__muted { color: #6b7684; font-size: 12.5px; }
.tyro-bw__formtitle { margin-top: 18px !important; }
.tyro-bw__acc { margin: 4px 0 12px; }
.tyro-bw__acc-item { border: 1px solid rgba(17, 35, 55, 0.15); border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.tyro-bw__acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--tyro-navy);
  background: #fff;
  border: 0;
  cursor: pointer;
}
.tyro-bw__acc-head span { color: var(--tyro-blue); font-size: 18px; line-height: 1; }
.tyro-bw__acc-body {
  padding: 4px 14px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #3d4854;
}
.tyro-bw__chk {
  display: flex !important;
  gap: 9px;
  align-items: flex-start;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  line-height: 1.5;
  margin: 10px 0 !important;
}
.tyro-bw__chk input {
  width: auto !important;
  margin-top: 2px !important;
  accent-color: var(--tyro-blue);
}
.tyro-bw__done p { font-size: 14px; line-height: 1.6; color: var(--tyro-navy); }

/* ---------- availability calendar ---------- */
.tyro-cal {
  border: 1px solid rgba(17, 35, 55, 0.14);
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 14px;
  background: #fff;
}
.tyro-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tyro-cal__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tyro-navy);
}
.tyro-cal__nav {
  width: 32px; height: 32px;
  border: 1px solid rgba(17, 35, 55, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--tyro-blue);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition-property: background-color, color;
  transition-duration: 0.15s;
}
.tyro-cal__nav:hover:not(:disabled) { background: var(--tyro-blue); color: #fff; }
.tyro-cal__nav:disabled { opacity: 0.3; cursor: default; }
.tyro-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.tyro-cal__dow {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #8a94a0;
  text-transform: uppercase;
  padding: 3px 0;
}
.tyro-cal__day {
  aspect-ratio: 1;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--tyro-navy);
  cursor: pointer;
  padding: 0;
  transition-property: background-color, color, border-color;
  transition-duration: 0.12s;
}
.tyro-cal__day.is-open {
  background: #e5f2cd;
  border-color: rgba(142, 184, 46, 0.6);
  color: #274017;
  font-weight: 700;
}
.tyro-cal__day.is-open:hover { background: var(--tyro-green); color: #fff; }
.tyro-cal__day.is-taken {
  color: #a8b0b9;
  background: repeating-linear-gradient(135deg, #f0f2f4, #f0f2f4 4px, #dfe3e7 4px, #dfe3e7 6px);
  text-decoration: line-through;
  cursor: not-allowed;
}
.tyro-cal__day.is-past {
  color: #c9ced4;
  background: transparent;
  cursor: not-allowed;
}
.tyro-cal__day.is-boundary {
  cursor: pointer;
  text-decoration: none;
  border-color: rgba(0, 120, 194, 0.4);
  background: linear-gradient(135deg, #e5f2cd 50%, #f0f2f4 50%);
  color: var(--tyro-navy);
}
.tyro-cal__day.is-in,
.tyro-cal__day.is-out {
  background: var(--tyro-blue) !important;
  border-color: var(--tyro-blue) !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.tyro-cal__day.is-range { background: rgba(0, 120, 194, 0.14); border-color: transparent; }
.tyro-cal__legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 11.5px;
  color: #6b7684;
}
.tyro-cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.tyro-cal__sw {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.tyro-cal__sw--free { background: #e5f2cd; border: 1px solid rgba(142, 184, 46, 0.7); }
.tyro-cal__sw--taken {
  background: repeating-linear-gradient(135deg, #f0f2f4, #f0f2f4 3px, #dfe3e7 3px, #dfe3e7 5px);
  border: 1px solid #ccd2d8;
}

/* phones: bigger targets, bolder legend — availability must be
   readable at arm's length */
@media (max-width: 767px) {
  .tyro-cal__day { aspect-ratio: auto; height: 42px; min-height: 0; font-size: 14.5px; }
  .tyro-cal__grid { gap: 3px; }
  .tyro-cal__legend { font-size: 13px; gap: 18px; }
  .tyro-cal__sw { width: 15px; height: 15px; }
  .tyro-cal__title { font-size: 15px; }
}
.tyro-cal__hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tyro-blue);
}

/* the old theme's green back-to-top square fought our floating
   buttons in the same corner — removed at the client's request */
a[href="#top-anchor"] { display: none !important; }

/* ---------- owner-managed special offer banner ---------- */
.tyro-offer-bar {
  background: linear-gradient(90deg, var(--tyro-navy), #1b3a5c);
  border-bottom: 3px solid var(--tyro-green);
  color: #fff;
  text-align: center;
  padding: 12px 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.tyro-offer-bar span::before { content: "🎉 "; }

/* ---------- map fallback bits ---------- */
.tyro-osm { z-index: 0; }
.tyro-osm-pop { font-family: "Montserrat", sans-serif; font-size: 13px; line-height: 1.5; }
.tyro-osm-pop a { color: var(--tyro-blue); font-weight: 600; }

.tyro-card-flash {
  animation: tyro-flash 1.6s ease-out 1;
}
@keyframes tyro-flash {
  0%, 60% { box-shadow: 0 0 0 3px var(--tyro-green), 0 14px 32px rgba(17, 35, 55, 0.16); }
  100% { box-shadow: 0 0 0 0 rgba(142, 184, 46, 0), 0 0 0 rgba(17, 35, 55, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tyro-card-flash { animation: none; }
}
