/* Shared public header refinement; customer and booking layouts stay separate. */
.header.header-refined .nav { gap: 18px; }
.header.header-refined .menu { gap: 10px; margin-left: 0; }

.header-refined .header-controls,
.header-refined .header-actions,
.header-refined .header-secondary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header.header-refined .header-actions > .booking-cta,
.header.header-refined .header-account {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
  transform: none;
  transition: none;
}

.header.header-refined .header-actions > .booking-cta {
  --ino-booking-height: 46px;
  --header-reflection: rgba(202, 231, 211, 0.16);
  width: 164px;
  min-width: 164px;
  gap: 8px;
  color: #f2faf4;
  border: 1px solid rgba(124, 184, 149, 0.38);
  background: linear-gradient(135deg, #0d3324 0%, #185238 52%, #246a49 100%);
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 800;
}

.header-refined .header-actions > .booking-cta svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header.header-refined .header-account {
  width: 84px;
  border: 1px solid rgba(198, 180, 145, 0.3);
  background: rgba(226, 210, 170, 0.015);
  color: #eadfca;
  font-weight: 500;
}

.header.header-refined .header-account::before,
.header.header-refined .header-account::after { content: none; }

.header-refined .header-actions > .booking-cta::before,
.mobile-booking-dock .booking-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% auto -30% 0;
  width: 85%;
  background: linear-gradient(90deg, transparent, var(--header-reflection), transparent);
  opacity: 0;
  transform: translateX(-145%) skewX(-16deg);
  pointer-events: none;
}

.header-refined .header-language { position: relative; }

.header-refined .header-language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 64px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(198, 180, 145, 0.3);
  border-radius: 14px;
  background: transparent;
  color: #d5c7ad;
  cursor: pointer;
}

.header-refined .header-language-toggle img,
.header-refined .header-language-option img {
  display: block;
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
}

.header-refined .header-language-toggle svg {
  width: 10px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.header-refined .header-language-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  right: 0;
  width: 174px;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(198, 180, 145, 0.3);
  border-radius: 12px;
  background: #111410;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.header-refined .header-language-menu[hidden] { display: none; }

.header-refined .header-language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #e7e2d7;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.header-refined .header-language-option[aria-checked="true"] {
  background: rgba(174, 202, 180, 0.09);
}

.header-refined .header-language-toggle[aria-expanded="true"],
.header-refined .header-language-toggle:focus-visible {
  border-color: #b7a57b;
  background: rgba(226, 210, 170, 0.05);
}

.header.header-refined .booking-cta:focus-visible,
.header.header-refined .header-account:focus-visible,
.header-refined .header-language-toggle:focus-visible,
.header-refined .header-language-option:focus-visible,
.header-refined .menu-toggle:focus-visible {
  outline: 2px solid #d3c3a3;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .header.header-refined .header-account:hover,
  .header-refined .header-language-toggle:hover {
    border-color: rgba(198, 180, 145, 0.55);
    background: rgba(226, 210, 170, 0.05);
  }
  .header-refined .header-language-option:hover { background: rgba(174, 202, 180, 0.09); }
}

/* Desktop reference proportions; preserve the existing mobile controls. */
@media (min-width: 1081px) {
  .header.header-refined .header-actions > .booking-cta {
    width: 178px;
    min-width: 178px;
    left: -17px;
  }

  .header.header-refined .header-account {
    font-size: 1rem;
    font-weight: 800;
  }

  .header-refined .header-language-toggle { width: 72px; }

  .header-refined .header-language-toggle img,
  .header-refined .header-language-option img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(234, 223, 202, 0.4);
    border-radius: 50%;
  }

  .header-refined .header-language-menu { width: 200px; }
  .header-refined .header-language-option {
    min-height: 48px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }
  .header-refined .header-language-option[aria-checked="true"] {
    font-weight: 700;
  }

  .header-refined .header-language-toggle[aria-expanded="true"] {
    border-color: rgba(198, 180, 145, 0.3);
    background: rgba(226, 210, 170, 0.09);
  }
}

@media (min-width: 1081px) and (hover: hover) and (pointer: fine) {
  .header.header-refined .header-account:hover,
  .header-refined .header-language-toggle:hover {
    border-color: rgba(198, 180, 145, 0.3);
    background: rgba(226, 210, 170, 0.09);
    color: #f6ecd7;
  }
  .header.header-refined .header-actions > .booking-cta:hover { filter: brightness(1.04); }
}

@media (min-width: 1081px) and (prefers-reduced-motion: no-preference) {
  .header.header-refined .header-account,
  .header-refined .header-language-toggle {
    transition: background-color 180ms ease, color 180ms ease;
  }
  .header.header-refined .header-actions > .booking-cta { transition: filter 180ms ease; }
  .header-refined .header-actions > .booking-cta svg { transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
  .header-refined .header-actions > .booking-cta:focus-visible svg {
    transform: translate(10%, -10%) scale(1.74);
  }
}

@media (min-width: 1081px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .header-refined .header-actions > .booking-cta:hover svg {
    transform: translate(10%, -10%) scale(1.74);
  }
}

@media (min-width: 1081px) and (max-width: 1200px) {
  .header.header-refined .nav { gap: 12px; }
  .header.header-refined .menu { gap: 3px; }
  .header.header-refined .menu > a {
    width: auto;
    padding-inline: 2px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1080px) {
  .header.header-refined .nav { gap: 10px; }
  .header-refined .header-controls {
    position: relative;
    order: 1;
    gap: 0;
    margin-left: auto;
    border: 1px solid rgba(198, 180, 145, 0.3);
    border-radius: 18px;
    background: rgba(226, 210, 170, 0.015);
  }
  .header-refined .header-actions,
  .header-refined .header-secondary-actions { gap: 0; }
  .header.header-refined .header-actions > .booking-cta { display: none; }
  .header-refined .header-language { position: static; }
  .header-refined .header-language-toggle {
    width: 50px;
    height: 44px;
    border: 0;
    border-right: 1px solid rgba(198, 180, 145, 0.22);
    border-radius: 17px 0 0 17px;
  }
  .header.header-refined .header-account {
    width: 76px;
    height: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid rgba(198, 180, 145, 0.22);
    border-radius: 0;
    background: transparent;
  }
  .header.header-refined .menu-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0 17px 17px 0;
    background: transparent;
  }
  .header.header-refined .menu { gap: 4px; max-height: calc(100dvh - 68px); overflow-y: auto; }
  .header-refined .header-language-menu { right: 0; left: auto; }
}

@media (max-width: 600px) {
  .header.header-refined .nav { gap: 8px; }
  .header-refined .header-language-toggle { width: 46px; gap: 6px; }
  .header.header-refined .header-account { width: 70px; font-size: 0.75rem; }
  .header.header-refined .menu-toggle { width: 40px; flex-basis: 40px; }
  .header-refined .menu { max-height: calc(100dvh - 60px); }
}

/* Mobile homepage: reveal only after the complete video hero has passed. */
.mobile-booking-dock { display: none; }

@media (max-width: 1080px) {
  .home-page:has(.mobile-booking-dock) {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-booking-dock:not([hidden]) {
    position: fixed;
    z-index: 9998;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 480px;
    margin-inline: auto;
    padding: 6px;
    border: 1px solid rgba(198, 180, 145, 0.24);
    border-radius: 20px;
    background: #10130f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  }

  .mobile-booking-dock .booking-cta.btn.btn-primary,
  .mobile-booking-phone {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-height: 48px;
    border-radius: 13px;
    box-shadow: none;
    text-shadow: none;
    transform: none;
    transition: none;
  }

  .mobile-booking-dock .booking-cta.btn.btn-primary {
    --ino-booking-height: 48px;
    --header-reflection: rgba(202, 231, 211, 0.16);
    isolation: isolate;
    overflow: hidden;
    flex: 1 1 auto;
    gap: 14px;
    min-width: 0;
    padding: 0 16px;
    color: #f2faf4;
    background: linear-gradient(135deg, #0d3324 0%, #185238 52%, #246a49 100%);
    border: 1px solid rgba(124, 184, 149, 0.38);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-booking-phone {
    flex: 0 0 48px;
    color: #eadfca;
    background: transparent;
    border: 1px solid rgba(198, 180, 145, 0.24);
  }

  .mobile-booking-dock svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-booking-phone svg { width: 22px; height: 22px; stroke-width: 2; }
  .mobile-booking-dock a:focus-visible { outline: 2px solid #d3c3a3; outline-offset: 3px; }

  .home-page.mobile-booking-active .ino-bot-widget {
    bottom: calc(var(--mobile-dock-height, 62px) + 32px + env(safe-area-inset-bottom, 0px));
  }

  .home-page.mobile-booking-active .ino-bot-panel {
    max-height: max(120px, calc(100dvh - var(--mobile-dock-height, 62px) - 120px - env(safe-area-inset-bottom, 0px)));
  }

  .ino-consent-visible .mobile-booking-dock,
  .ino-consent-dialog-open .mobile-booking-dock { visibility: hidden; pointer-events: none; }
}

/* Green booking surfaces: continuous edge current and a quiet surface reflection. */
@property --ino-booking-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.header.header-refined .header-actions > .booking-cta::before,
.mobile-booking-dock .booking-cta::before {
  inset: 0;
  width: auto;
  border-radius: inherit;
  background: linear-gradient(110deg,
    rgba(214, 178, 119, 0.02),
    rgba(225, 190, 137, 0.08) 35%,
    rgba(255, 226, 173, 0.2) 48%,
    rgba(225, 190, 137, 0.08) 62%,
    rgba(214, 178, 119, 0.02) 80%);
  background-size: 200% 100%;
  opacity: 0.7;
  transform: none;
}

.header.header-refined .header-actions > .booking-cta::after,
.mobile-booking-dock .booking-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(223, 208, 184, 0.3);
  border-radius: inherit;
  box-shadow: inset 0 0 12px rgba(191, 169, 216, 0.1);
  opacity: 0.85;
  pointer-events: none;
}

@supports (mask-composite: exclude) {
  .header.header-refined .header-actions > .booking-cta::after,
  .mobile-booking-dock .booking-cta::after {
    padding: calc(2.5px + var(--ino-booking-height) * 0.04);
    border: 0;
    background: conic-gradient(from var(--ino-booking-angle),
      transparent,
      rgba(214, 178, 119, 0.18) 100deg,
      rgba(225, 190, 137, 0.72) 205deg,
      rgba(255, 226, 173, 1) 265deg,
      rgba(156, 128, 180, 0.28) 300deg,
      transparent 330deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    box-shadow: none;
  }
}

@keyframes ino-booking-reflection {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes ino-booking-orbit {
  to { --ino-booking-angle: 360deg; }
}

@media (prefers-reduced-motion: no-preference) {
  .header.header-refined .header-actions > .booking-cta::before,
  .mobile-booking-dock:not([hidden]) .booking-cta::before {
    animation: ino-booking-reflection 3s linear infinite;
  }
  .header.header-refined .header-actions > .booking-cta::after,
  .mobile-booking-dock:not([hidden]) .booking-cta::after {
    animation: ino-booking-orbit 3s linear infinite;
  }
}
