/**
 * STRICT UI REBUILD
 * Hero, Category Grid, Product Cards, Header, Spacing System
 * NO template styling. Structural lock.
 */

/* ===== HERO ===== */
.ui-hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}
@media (min-width: 768px) {
  .ui-hero {
    min-height: min(92vh, 900px);
  }
}

.ui-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

.ui-hero__overlay {
  position: absolute;
  inset: 0;
  /* Uniform scrim + directional gradient: panel stays readable, photo stays supportive */
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(
      105deg,
      rgba(2, 6, 23, 0.94) 0%,
      rgba(15, 23, 42, 0.7) 42%,
      rgba(15, 23, 42, 0.12) 100%
    );
}

.ui-hero__container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(100px, 12vh, 140px) clamp(18px, 4vw, 28px) clamp(80px, 10vh, 120px);
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
@media (max-width: 767px) {
  .ui-hero__container {
    align-items: center;
  }
}

/* Frosted / glass anchor — headline, subtext, CTAs read as one grounded block */
.ui-hero__panel--dark {
  box-sizing: border-box;
  max-width: min(600px, 94vw);
  width: 100%;
  padding: clamp(26px, 3.6vw, 36px);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1600px) {
  .ui-hero__panel--dark,
  .ui-hero__content.ui-hero__panel--dark {
    max-width: min(640px, 94vw);
  }
  .ui-hero__panel--dark {
    background: rgba(0, 0, 0, 0.62);
  }
}

.ui-hero__container--center .ui-hero__panel--dark,
.ui-hero__container--center .ui-hero__content.ui-hero__panel--dark {
  margin-left: auto;
  margin-right: auto;
}

.ui-hero__container--left .ui-hero__panel--dark {
  margin-right: auto;
}

.ui-hero--fullbleed .ui-hero__panel--dark .ui-hero__booking-bar {
  margin-bottom: 0;
  max-width: none;
}

.ui-hero__content {
  width: 100%;
  color: #fff;
  padding-bottom: clamp(28px, 4vh, 40px);
}
.ui-hero__content.ui-hero__panel--dark {
  padding-bottom: 0;
  max-width: min(600px, 94vw);
}
.ui-hero--fullbleed .ui-hero__content {
  width: 100% !important;
  max-width: none !important;
  padding-bottom: 0;
}
@media (min-width: 768px) {
  .ui-hero__content:not(.ui-hero__panel--dark) {
    width: 60%;
  }
}
@media (max-width: 767px) {
  .ui-hero__content {
    text-align: center;
  }
}

.ui-hero__overline {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.88;
  margin-bottom: 12px;
}

.ui-hero__headline {
  font-size: clamp(2.35rem, 6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(10px, 1.5vw, 16px);
  text-shadow: 0 4px 36px rgba(0, 0, 0, 0.5);
}

/* Strong in-panel hierarchy: headline vs body */
.ui-hero__panel--dark .ui-hero__headline {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.ui-hero__panel--dark .ui-hero__overline {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
}
.ui-hero__panel--dark .ui-hero__body {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: none;
}
.ui-hero__panel--dark .ui-hero-compact__headline {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.ui-hero__panel--dark .ui-hero-compact__body {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  text-shadow: none;
}
@media (min-width: 768px) {
  .ui-hero__headline {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
  }
}

.ui-hero__body {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
  margin: 0;
  max-width: 40rem;
  opacity: 1;
  color: rgba(226, 232, 240, 0.93);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.48);
  font-weight: 400;
}

.ui-hero__cta-row + .ui-hero__body,
.ui-hero__headline + .ui-hero__cta-btn + .ui-hero__body {
  margin-top: clamp(20px, 3vh, 28px);
}

.ui-hero__booking-bar {
  position: relative;
  z-index: 10;
  margin-top: clamp(12px, 2vh, 18px);
  margin-bottom: -100px;
  width: 100%;
  max-width: min(540px, 100%);
}
@media (max-width: 767px) {
  .ui-hero__booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    z-index: 999;
  }
}

.ui-hero__booking-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .ui-hero__booking-form {
    border-radius: 0;
    min-height: 60px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  }
}

.ui-hero__date-input {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.ui-hero__booking-btn {
  background: var(--tenant-primary-color, #0b3aa5);
  color: #fff;
  font-weight: 800;
  padding: 19px 36px;
  min-height: 60px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.0825rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 14px 36px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.ui-hero__booking-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.28) inset,
    0 18px 44px rgba(0, 0, 0, 0.36);
}
.ui-hero__booking-btn:focus-visible {
  outline: 3px solid rgba(248, 250, 252, 0.95);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .ui-hero__booking-btn {
    flex: 1;
    min-height: 48px;
  }
}

/* Hero overlap spacer — desktop only */
@media (min-width: 768px) {
  .ui-hero + * {
    padding-top: 100px;
  }
}
@media (max-width: 767px) {
  body:has(.ui-hero) {
    padding-bottom: 90px;
  }
}

.ui-hero--fullbleed .ui-hero__body--fullbleed-sub {
  margin-top: clamp(14px, 2.5vh, 22px);
  max-width: min(40rem, 100%);
  position: relative;
  z-index: 2;
}

/* ===== SECTION SPACING (LOCKED) ===== */
.ui-section {
  padding: 120px 0;
}
.ui-section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.ui-section__spacing {
  padding: 48px 0;
}
.ui-grid-gap {
  gap: 40px;
}

/* ===== CATEGORY GRID ===== */
.ui-category-section {
  background: #f9fafb;
  padding: 72px 0;
}
@media (min-width: 1024px) {
  .ui-category-section {
    padding: 96px 0;
  }
}

.ui-category-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .ui-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
  }
}
@media (min-width: 1024px) {
  .ui-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 18px;
  }
  .ui-category-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-category-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ui-category-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ui-category-grid--dense { gap: 16px 14px; }
  .ui-category-section--2x2 .ui-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Circular variant: round images */
.ui-category-grid--circular .ui-category-card__img {
  border-radius: 50%;
  aspect-ratio: 1;
}
/* Horizontal strip: scroll on mobile */
@media (max-width: 767px) {
  .ui-category-grid--horizontal {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .ui-category-grid--horizontal .ui-category-card { min-width: 180px; flex-shrink: 0; }
}

.ui-category-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.ui-category-card--check-date {
  background: var(--tenant-primary-color, #0b3aa5);
  border-color: var(--tenant-primary-color, #0b3aa5);
  color: #fff;
}

.ui-category-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 14px;
  flex-shrink: 0;
  background: #e2e8f0;
}
.ui-category-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ui-category-card__title {
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.82rem, 1.6vw, 1.02rem);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ui-category-card__cta {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--tenant-primary-color, #0b3aa5);
  margin-top: auto;
}
.ui-category-card--check-date .ui-category-card__cta {
  color: rgba(255, 255, 255, 0.95);
}

/* ===== PRODUCT CARDS ===== */
.ui-products-section {
  padding: 120px 0;
}

.ui-products-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .ui-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ui-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ui-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ui-product-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
}
.ui-product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ui-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.ui-product-card__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  margin: 0 0 8px;
}

.ui-product-card__price {
  font-weight: 800;
  color: var(--tenant-primary-color, #0b3aa5);
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.ui-product-card__btn {
  width: 100%;
  background: var(--tenant-primary-color, #0b3aa5);
  color: #fff;
  font-weight: 800;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: auto;
}

/* ===== HEADER ===== */
.ui-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}
.ui-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ui-header__logo {
  height: clamp(86px, 8.4vw, 144px);
  width: auto;
  max-width: min(384px, 90vw);
  object-fit: contain;
}

.ui-header__phone {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
}

.ui-header__cta {
  background: var(--tenant-primary-color, #0b3aa5);
  color: #fff;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

/* Hide base floating bar + sticky CTA when hero has its own */
body:has(.ui-hero) .re-float-booking-bar,
body:has(.ui-hero) .re-sticky-bottom-cta {
  display: none !important;
}

/* ===== HERO LAYOUT VARIANTS (architectural difference) ===== */
.ui-hero__overlay--left {
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(
      105deg,
      rgba(2, 6, 23, 0.97) 0%,
      rgba(15, 23, 42, 0.76) 40%,
      rgba(15, 23, 42, 0.1) 100%
    );
}
.ui-hero__overlay--center {
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.88) 0%,
      rgba(15, 23, 42, 0.68) 42%,
      rgba(2, 6, 23, 0.94) 100%
    );
}
.ui-hero__container--left { align-items: flex-start; text-align: left; }
.ui-hero__container--center { align-items: center; justify-content: center; text-align: center; }
.ui-hero__content--center:not(.ui-hero__panel--dark) {
  width: 100%;
  max-width: min(46rem, 94vw);
}
.ui-hero__headline + .ui-hero__cta-btn {
  margin-top: clamp(14px, 2.2vh, 22px);
}
.ui-hero__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tenant-primary-color, #0b3aa5);
  color: #fff;
  font-weight: 800;
  padding: 20px 42px;
  border-radius: var(--theme-btn-radius, 12px);
  text-decoration: none;
  margin-top: 0;
  font-size: 1.125rem;
  min-height: 60px;
  line-height: 1.2;
  box-sizing: border-box;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22) inset,
    0 14px 36px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.ui-hero__cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.05);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.28) inset,
    0 18px 44px rgba(0, 0, 0, 0.36);
}
.ui-hero__cta-btn:focus-visible {
  outline: 3px solid rgba(248, 250, 252, 0.95);
  outline-offset: 3px;
}
.ui-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: clamp(12px, 2vh, 20px);
}
.ui-hero__cta-row .ui-hero__cta-btn {
  margin-top: 0;
}
.ui-hero__cta-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 15px 26px;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.ui-hero__cta-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}
.ui-hero__cta-btn--ghost:focus-visible {
  outline: 3px solid rgba(248, 250, 252, 0.95);
  outline-offset: 3px;
}
.ui-hero__cta-btn--large {
  padding: 20px 40px;
  font-size: 1.125rem;
  font-weight: 900;
  min-height: 56px;
}
.ui-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
.ui-hero__badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* SPLIT HERO — 50/50 grid */
.ui-hero-split {
  display: grid;
  min-height: 55vh;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ui-hero-split { grid-template-columns: 1fr 1fr; min-height: min(78vh, 820px); }
  .ui-hero-split--img-left .ui-hero-split__img { order: 0; }
  .ui-hero-split--img-left .ui-hero-split__content { order: 1; }
  .ui-hero-split--img-right .ui-hero-split__img { order: 1; }
  .ui-hero-split--img-right .ui-hero-split__content { order: 0; }
}
.ui-hero-split__img {
  background-size: cover;
  background-position: center 35%;
  min-height: clamp(240px, 40vh, 520px);
}
.ui-hero-split__content {
  padding: clamp(72px, 11vh, 132px) clamp(22px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  background: linear-gradient(180deg, #eef2f8 0%, #dfe8f2 100%);
}

.ui-hero-split__panel {
  box-sizing: border-box;
  width: 100%;
  max-width: min(600px, 100%);
  padding: clamp(26px, 3.6vw, 36px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1600px) {
  .ui-hero-split__panel {
    max-width: min(640px, 100%);
  }
}

@media (min-width: 768px) {
  .ui-hero-split--img-right .ui-hero-split__panel {
    margin-right: auto;
  }
  .ui-hero-split--img-left .ui-hero-split__panel {
    margin-left: auto;
  }
}
.ui-hero-split__content .ui-hero__overline { color: #64748b; font-size: 10px; }
.ui-hero-split__content .ui-hero__headline {
  color: #020617;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.ui-hero-split__content .ui-hero__body { color: #475569; margin-top: 0; }
.ui-hero-split__form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(10px, 1.8vh, 16px);
  margin-bottom: 0;
}
.ui-hero-split__form + .ui-hero__body {
  margin-top: clamp(18px, 2.5vh, 24px);
}
.ui-hero-split__form input { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 600; }
.ui-hero-split__form button {
  padding: 14px 26px;
  min-height: 52px;
  background: var(--tenant-primary-color, #0b3aa5);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 14px 38px -8px rgba(15, 23, 42, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.ui-hero-split__form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.04);
}
.ui-hero-split__form button:focus-visible {
  outline: 3px solid var(--tenant-primary-color, #2563eb);
  outline-offset: 2px;
}

/* COMPACT HERO — shorter strip */
.ui-hero-compact {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ui-hero-compact__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
}
.ui-hero-compact__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    linear-gradient(105deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.62) 100%);
}
.ui-hero-compact__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: clamp(32px, 5vh, 56px) 24px;
  max-width: 720px;
  display: flex;
  justify-content: center;
}

.ui-hero-compact__panel.ui-hero__panel--dark {
  text-align: center;
}
.ui-hero-compact__headline { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; margin: 0 0 16px; line-height: 1.1; letter-spacing: -0.03em; text-shadow: 0 4px 28px rgba(0,0,0,0.45); }
.ui-hero-compact__body { font-size: clamp(1.05rem, 1.8vw, 1.15rem); opacity: 0.96; margin: 0; line-height: 1.6; }

/* MINIMAL HERO — thin liner, no image */
.ui-hero-minimal {
  padding: 64px 24px 48px;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.ui-hero-minimal__headline { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #020617; margin: 0 0 8px; }
.ui-hero-minimal__body { font-size: 1rem; color: #475569; margin: 0; }

/* Spacer for non-full heroes */
.ui-hero-split + *, .ui-hero-compact + *, .ui-hero-minimal + * {
  padding-top: 48px;
}
@media (min-width: 768px) {
  .ui-hero-split + * { padding-top: 72px; }
}

/* ===== TENANT VIDEO + CMS FLOW (Friendly Party–style parity) ===== */
.tenant-section-video-feature .row.align-items-center {
  align-items: stretch;
}
@media (min-width: 992px) {
  .tenant-section-video-feature .row > .col-lg-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.tenant-section-video-feature .ratio iframe {
  background: #0f172a;
}
