/* ============================================================
   Safe Capital — Properties page hero
   Cinematic hero adapted from investor-nights.html (.in-hero).
   Desktop: 520px, 4 inline meta cells.
   Mobile (<768px): 2x2 meta grid, scaled type, ken-burns disabled.
   All font sizes via tokens — no hardcoded values.
   ============================================================ */

.props-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0b2745 0%, #3a3044 40%, #8a4a39 75%, #c0723a 100%);
}

.props-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.props-hero-img.kenburns {
  animation: props-ken 20s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes props-ken {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, 1%); }
}

@media (prefers-reduced-motion: reduce) {
  .props-hero-img.kenburns { animation: none; }
}

.props-hero .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.props-hero .hero-overlay.hero-gradient {
  background: linear-gradient(
    180deg,
    rgba(2,36,69,0.20) 0%,
    rgba(2,36,69,0.55) 55%,
    rgba(2,36,69,0.92) 100%
  );
}

.props-hero .hero-tick-v {
  position: absolute;
  top: 96px;
  right: 48px;
  width: 1px;
  height: 96px;
  background: rgba(255,255,255,0.30);
}

.props-hero .hero-tick-h {
  position: absolute;
  top: 96px;
  right: 48px;
  height: 1px;
  width: 96px;
  background: rgba(255,255,255,0.30);
}

.props-hero .hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0 3rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.props-hero .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.props-hero .hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #984349;
  flex-shrink: 0;
}

.props-hero .hero-eyebrow .sep { opacity: 0.4; }

.props-hero h1.props-hero-title {
  font-family: 'Heebo', sans-serif;
  font-weight: 900;
  color: #ffffff;
  font-size: var(--fs-hero);
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 48rem;
  margin: 0;
}

.props-hero h1.props-hero-title .accent {
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}

.props-hero .hero-sub {
  margin-top: 1.5rem;
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-body-lg);
  max-width: 40rem;
  line-height: 1.7;
  font-weight: 300;
}

.props-hero .hero-meta-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  color: #ffffff;
}

.props-hero .hero-meta-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.20);
}

.props-hero .hero-meta {
  position: relative;
}

.props-hero .hero-meta .k {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
}

.props-hero .hero-meta .v {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: var(--fs-body-lg);
  line-height: 1;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.props-hero .hero-meta.accent .v { color: #984349; }

/* Tooltip "?" trigger on the meta value */
.props-hero .meta-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-label);
  font-weight: 700;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}

.props-hero .meta-tip-btn:hover,
.props-hero .meta-tip-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.30);
}

/* Tooltip lives outside .props-hero so position:fixed works in all browsers.
   Desktop: JS positions it next to the trigger button.
   Mobile: centered modal via media query below. */
.meta-tip {
  position: fixed;
  background: #ffffff;
  color: #1b1b1f;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-family: 'Heebo', sans-serif;
  font-size: var(--fs-caption);
  line-height: 1.7;
  width: 280px;
  z-index: 100;
  text-align: right;
  display: none;
  top: 0;
  left: 0;
}

.meta-tip.open { display: block; }

.meta-tip strong {
  color: #984349;
  font-weight: 700;
}

.props-hero .hero-tickruler {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.6;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.4) 0,
    rgba(255,255,255,0.4) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* ============================================================
   Mobile (<768px)
   ============================================================ */
@media (max-width: 767px) {
  .props-hero {
    height: auto;
    min-height: 560px;
  }

  .props-hero-img.kenburns {
    animation: none;
  }

  .props-hero .hero-tick-v {
    top: 80px;
    right: 24px;
    height: 48px;
  }

  .props-hero .hero-tick-h {
    top: 80px;
    right: 24px;
    width: 48px;
  }

  .props-hero .hero-content {
    padding: 0 1.5rem 1.75rem;
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    margin: 0;
  }

  .props-hero h1.props-hero-title {
    /* override shared.css global mobile h1 rule (uses !important) */
    font-size: var(--fs-hero-mobile) !important;
    line-height: 1.1 !important;
  }

  .props-hero h1.props-hero-title .accent {
    white-space: normal;
  }

  .props-hero .hero-sub {
    font-size: var(--fs-body-sm);
    max-width: 100%;
    margin-top: 1rem;
    line-height: 1.6;
  }

  .props-hero .hero-meta-row {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
  }

  .props-hero .hero-meta-sep { display: none; }

  .props-hero .hero-meta .k {
    font-size: var(--fs-label);
    margin-bottom: 0.375rem;
  }

  .props-hero .hero-meta .v {
    font-size: var(--fs-body);
  }

  .props-hero .hero-tickruler { height: 3px; }
}

/* Backdrop — only shown on mobile when modal is open */
.meta-tip-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99;
}

/* Mobile: tooltip becomes a centered floating modal */
@media (max-width: 767px) {
  .meta-tip.open {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: calc(100vw - 3rem);
    max-width: 360px;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  }
  .meta-tip-backdrop.open {
    display: block;
  }
}
