/**
 * Hero media + partnership logo fixes (load before responsive-system.css).
 */

/* Hero: gradient-only fallback while video loads (no placeholder photo flash) */
.hero-media--gradient-only {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(222, 36, 47, 0.22) 0%, transparent 58%),
    linear-gradient(180deg, #050508 0%, #120006 45%, #000008 100%);
}

.hero-media.hero-media--video {
  background: #000008;
  aspect-ratio: 16 / 9;
  min-height: 100%;
}

@media (min-width: 761px) {
  .hero-section {
    min-height: var(--hero-min-height-desktop, 100vh);
  }

  .hero-container {
    min-height: auto;
    padding-top: calc(var(--header-height, 72px) + clamp(32px, 5vw, 56px));
    padding-bottom: clamp(32px, 5vw, 56px);
  }
}

@media (max-width: 760px) {
  .hero-section {
    min-height: auto;
  }

  .hero-container {
    min-height: auto;
  }
}

.hero-media.hero-media--video .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stable hero text layout — reduces CLS from font swap */
.hero-content {
  width: 100%;
  max-width: var(--hero-content-width, var(--hero-content-max-width, var(--text-wide, 920px)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hero-content-gap, clamp(14px, 2.2vw, 20px));
}

.hero-title {
  text-wrap: balance;
  font-size: var(--hero-title-size-desktop, var(--hero-title-size, clamp(42px, 7vw, 88px)));
  font-weight: var(--hero-title-weight, 600);
  line-height: var(--hero-title-line-height, var(--hero-line-height, 0.96));
  letter-spacing: -0.04em;
  max-width: min(var(--text-wide, 920px), 100%);
  margin: 0;
}

.hero-text {
  line-height: var(--body-line-height, 1.65);
  font-size: var(--hero-text-size-desktop, var(--body-size, clamp(16px, 1.1vw, 18px)));
  max-width: min(var(--text-max, 720px), 100%);
  margin: 0;
}

.hero-actions {
  margin: 0;
  width: 100%;
  justify-content: center;
}

.hero-overlay {
  opacity: var(--hero-overlay-opacity, var(--global-image-overlay-opacity, 0.46));
}

@media (max-width: 760px) {
  .hero-title {
    font-size: var(--hero-title-size-mobile, var(--global-h1-size-mobile, inherit));
  }

  .hero-text {
    font-size: var(--hero-text-size-mobile, var(--global-text-size-mobile, inherit));
  }
}

.programs-section {
  padding-top: var(--programs-padding-top-desktop, inherit);
  padding-bottom: var(--programs-padding-bottom-desktop, inherit);
}

@media (max-width: 760px) {
  .programs-section {
    padding-top: var(--programs-padding-top-mobile, inherit);
    padding-bottom: var(--programs-padding-bottom-mobile, inherit);
  }
}

.custom-logo {
  width: auto;
  height: auto;
  max-width: var(--site-logo-max-width-mobile, clamp(108px, 32vw, 142px));
  max-height: var(--site-logo-max-height-mobile, clamp(16px, 4.5vw, 22px));
  object-fit: contain;
  object-position: center;
}

/* Partnership logos — natural aspect ratio, no stretch */
body:not(.dashboard-app-body) .partner-logo-scroll__image {
  aspect-ratio: auto;
  max-width: min(100%, var(--partner-logo-scroll-item-width, 240px));
  object-fit: contain;
}

body:not(.dashboard-app-body) .partnerships-page-card-logo img {
  display: block;
  max-height: 100%;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

:root {
  --partnerships-page-card-discount-color: rgba(250, 249, 254, 0.92);
  --hero-title-max-width: min(920px, 100%);
  --hero-content-gap: clamp(12px, 2vw, 18px);
  --mobile-menu-booking-btn-radius: var(--btn-radius, 14px);
}

/* Lazy map placeholder — dark gradient until iframe loads */
.lazy-map-wrap {
  position: relative;
  min-height: clamp(220px, 42vw, 420px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(222, 36, 47, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, #0a0a0c 0%, #050508 100%);
  overflow: hidden;
}

.lazy-map-placeholder {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lazy-map-wrap.is-loaded .lazy-map-placeholder {
  display: none;
}

.lazy-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

/* Editor preview — click-to-edit highlights */
body.preview-editor-mode [data-preview-pick],
body.preview-editor-mode [data-editable],
body.preview-editor-mode [data-section-key] {
  cursor: pointer;
}

body.preview-editor-mode a[data-preview-pick],
body.preview-editor-mode a[data-editable] {
  pointer-events: auto;
}

body.preview-editor-mode .editor-preview-selected {
  outline: 2px solid rgba(222, 36, 47, 0.85);
  outline-offset: 3px;
}

body.preview-editor-mode {
  scroll-behavior: smooth;
}

body.preview-editor-mode .cookie-banner,
body.preview-editor-mode .scroll-to-top {
  opacity: 0.35;
  pointer-events: none;
}

body.preview-editor-mode [data-preview-pick]:hover,
body.preview-editor-mode [data-editable]:hover {
  outline: 1px dashed rgba(222, 36, 47, 0.55);
  outline-offset: 3px;
}

@media (min-width: 761px) {
  body:not(.dashboard-app-body) .hero-container,
  body.preview-editor-mode .hero-container {
    justify-content: center !important;
  }

  body:not(.dashboard-app-body) .hero-content,
  body.preview-editor-mode .hero-content {
    text-align: center !important;
    margin-inline: auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: var(--hero-content-width, var(--text-wide, 920px));
  }

  body:not(.dashboard-app-body) .hero-title,
  body:not(.dashboard-app-body) .hero-text,
  body.preview-editor-mode .hero-title,
  body.preview-editor-mode .hero-text {
    text-align: center !important;
    margin-inline: auto;
  }

  body:not(.dashboard-app-body) .hero-actions,
  body.preview-editor-mode .hero-actions {
    justify-content: center !important;
    width: 100%;
    gap: var(--gap-sm, 12px);
    margin-top: 0 !important;
  }

  body:not(.dashboard-app-body) .hero-title + .hero-text,
  body.preview-editor-mode .hero-title + .hero-text {
    margin-top: 0 !important;
  }
}

/* ----- Header: logo left | menu center | actions right — see site-responsive-polish.css ----- */
