/* ============================================================
   lofty-embed.css
   ------------------------------------------------------------
   Section that holds the Lofty Search Embed on sell.html.
   When the user pastes the real Lofty embed into #lofty-search-embed
   the placeholder is replaced and the frame styling stays.
   ============================================================ */

.lofty-embed-section {
  background: var(--cream, #F5F1EA);
  padding: 120px 6vw 140px;
  border-top: 1px solid var(--line, rgba(31, 28, 24, 0.08));
  border-bottom: 1px solid var(--line, rgba(31, 28, 24, 0.08));
}

.lofty-embed-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.lofty-embed-head .eyebrow {
  display: block;
  font-family: 'Tenor Sans', 'Times New Roman', serif;
  font-size: 12px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--bronze, #B8956A);
  margin-bottom: 18px;
}
.lofty-embed-head h2 {
  font-family: 'Tenor Sans', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--charcoal, #1F1C18);
  margin: 0 0 22px;
}
.lofty-embed-head p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal-mute, rgba(31, 28, 24, 0.7));
  margin: 0;
}

.lofty-embed-frame {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--ivory, #FAF7F1);
  border: 1px solid rgba(184, 149, 106, 0.28);
  box-shadow:
    0 24px 60px -28px rgba(31, 28, 24, 0.25),
    0 2px 4px rgba(31, 28, 24, 0.04);
  padding: 8px;
  position: relative;
}
.lofty-embed-frame::before {
  /* Thin inner bronze rule that frames the embed */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 149, 106, 0.18);
  pointer-events: none;
  z-index: 1;
}

.lofty-embed-slot {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(180deg, #FAF7F1 0%, #F5F1EA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* When the user pastes an iframe, force it to fill the slot. */
.lofty-embed-slot > iframe {
  width: 100% !important;
  min-height: 720px;
  border: 0;
  display: block;
}

/* Placeholder while the embed isn't connected yet. */
.lofty-embed-placeholder {
  text-align: center;
  padding: 48px 32px;
  max-width: 480px;
}
.lofty-embed-placeholder-eyebrow {
  display: block;
  font-family: 'Tenor Sans', 'Times New Roman', serif;
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--bronze, #B8956A);
  margin-bottom: 14px;
}
.lofty-embed-placeholder h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.01em;
  color: var(--charcoal, #1F1C18);
  margin: 0 0 14px;
}
.lofty-embed-placeholder p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  color: var(--charcoal-mute, rgba(31, 28, 24, 0.65));
  margin: 0;
}

/* Subtle pulse on the placeholder so it doesn't feel dead. */
.lofty-embed-placeholder::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--bronze, #B8956A);
  opacity: 0.6;
  margin: 28px auto 0;
  animation: loftyPulse 1.8s ease-in-out infinite;
}
@keyframes loftyPulse {
  0%, 100% { transform: scaleX(0.5); opacity: 0.35; }
  50%      { transform: scaleX(1);   opacity: 0.75; }
}

@media (max-width: 760px) {
  .lofty-embed-section { padding: 80px 4vw 96px; }
  .lofty-embed-head { margin-bottom: 36px; }
  .lofty-embed-slot { min-height: 460px; }
  .lofty-embed-slot > iframe { min-height: 600px; }
  .lofty-embed-frame { padding: 6px; }
  .lofty-embed-frame::before { inset: 6px; }
}
