/**
 * Theme 6 homepage — final cascade layer (load after site-brand / mobile-sidebar).
 * Intentionally high specificity (body.theme6-home …) so production never falls back to
 * stale cached base CSS (main.css h1, .search__popup, etc.).
 */

/* ----- Hero: typography + containment ----- */
body.theme6-home .theme6-luxury-hero .theme6-luxury-hero__title {
  margin: 0;
  border-bottom: none;
  display: block;
  max-width: min(100%, 22ch);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: clamp(1.55rem, 5.2vw, 3.35rem);
  line-height: 1.1;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
  body.theme6-home .theme6-luxury-hero .theme6-luxury-hero__title {
    max-width: 24ch;
    font-size: clamp(2rem, 3.8vw, 3.35rem);
  }
}

body.theme6-home .theme6-luxury-hero .theme6-luxury-hero__subtitle {
  margin-top: clamp(0.65rem, 2vw, 1rem);
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.875rem, 2.6vw, 1.125rem);
  line-height: 1.55;
  max-width: 38rem;
}

body.theme6-home .theme6-luxury-hero__content-area.tg-hero-content-area {
  display: flex;
  align-items: center;
  justify-content: stretch;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  body.theme6-home .theme6-luxury-hero__content-area.tg-hero-content-area {
    align-items: center;
    padding-top: clamp(3.25rem, 11vw, 5rem);
    padding-bottom: clamp(2rem, 7vh, 3.5rem);
  }
}

body.theme6-home .theme6-luxury-hero__inner {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
}

/* ----- Search modal: beat legacy .search__popup padding / base heading rules (all theme6 pages) ----- */
#theme6SearchModal.search__popup.theme6-search-modal {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

#theme6SearchModal .theme6-search-modal__title,
#theme6SearchModal h2.theme6-search-modal__title {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 4vw, 1.65rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

#theme6SearchModal h3.theme6-search-modal__section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.65rem;
}

#theme6SearchModal .theme6-search-modal__subtitle {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}

#theme6SearchModal .theme6-search-modal__panel {
  max-width: min(640px, 100%);
}

@media (max-width: 575.98px) {
  #theme6SearchModal .theme6-search-modal__inner {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  #theme6SearchModal .theme6-search-modal__close {
    top: max(0.75rem, env(safe-area-inset-top, 0px));
  }

  #theme6SearchModal .theme6-search-modal__field {
    flex-wrap: nowrap;
  }
}

/* ----- Mobile slide-out menu: safe area (theme6 uses this panel markup) ----- */
.tgmobile__menu .site-mobile-panel__scroll {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

.tgmobile__menu .site-mobile-panel__footer {
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
}
