/* =========================================================
   CRT — eXp Search Embed
   ========================================================= */

.crt-exp-search {
  --crt-exp-search-bg: #f7f4ef;
  --crt-exp-search-ink: #071019;
  --crt-exp-search-muted: rgba(7, 16, 25, 0.68);
  --crt-exp-search-accent: #b45f06;
  --crt-exp-search-border: #e8e3dc;
  --crt-exp-search-height-desktop: 780px;
  --crt-exp-search-height-mobile: 640px;
  --crt-exp-search-max-width: 1180px;

  position: relative;
  width: 100%;
  overflow-x: clip;
  background: var(--crt-exp-search-bg);
  padding: 48px 24px 56px;
  box-sizing: border-box;
}

.crt-exp-search *,
.crt-exp-search *::before,
.crt-exp-search *::after {
  box-sizing: border-box;
}

.crt-exp-search--full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

@supports (width: 100dvw) {
  .crt-exp-search--full-bleed {
    width: 100dvw;
    max-width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}

.crt-exp-search__inner {
  width: 100%;
  max-width: var(--crt-exp-search-max-width);
  margin: 0 auto;
}

.crt-exp-search--full-bleed .crt-exp-search__inner {
  max-width: none;
}

.crt-exp-search__intro {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.crt-exp-search__eyebrow {
  margin: 0 0 10px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crt-exp-search-accent);
}

.crt-exp-search__title {
  margin: 0 0 12px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--crt-exp-search-ink);
}

.crt-exp-search__text {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--crt-exp-search-muted);
}

.crt-exp-search__text p {
  margin: 0 0 0.6em;
}

.crt-exp-search__text p:last-child {
  margin-bottom: 0;
}

.crt-exp-search__frame-wrap {
  position: relative;
  width: 100%;
  min-height: var(--crt-exp-search-height-desktop);
  height: var(--crt-exp-search-height-desktop);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--crt-exp-search-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(7, 16, 25, 0.06);
}

.crt-exp-search--full-bleed .crt-exp-search__frame-wrap {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.crt-exp-search__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--crt-exp-search-height-desktop);
  border: 0;
  background: #fff;
}

.crt-exp-search__skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, #fff 0%, #f7f4ef 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.crt-exp-search.is-loaded .crt-exp-search__skeleton {
  opacity: 0;
  visibility: hidden;
}

.crt-exp-search__skeleton-label {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--crt-exp-search-muted);
}

.crt-exp-search__note {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--crt-exp-search-muted);
}

.crt-exp-search__jump {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #9b7a3c;
  color: #fff;
  text-decoration: none;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 10px 28px rgba(7, 16, 25, 0.18);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.crt-exp-search__jump:hover {
  filter: brightness(0.96);
  color: #fff;
}

.crt-exp-search__jump.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.crt-exp-search__jump-arrow {
  flex: 0 0 auto;
  animation: crt-exp-search-jump 1.4s ease-in-out infinite;
}

.crt-exp-search__jump.is-below .crt-exp-search__jump-arrow {
  transform: rotate(180deg);
  animation: none;
}

@keyframes crt-exp-search-jump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crt-exp-search__jump-arrow {
    animation: none;
  }
}

@media (max-width: 767px) {
  .crt-exp-search {
    padding: 36px 16px 44px;
  }

  .crt-exp-search__jump {
    font-size: 0.82rem;
    padding: 11px 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .crt-exp-search__intro {
    margin-bottom: 20px;
  }

  .crt-exp-search__frame-wrap {
    min-height: min(70dvh, var(--crt-exp-search-height-mobile));
    height: min(70dvh, var(--crt-exp-search-height-mobile));
    border-radius: 12px;
  }

  .crt-exp-search__iframe {
    min-height: min(70dvh, var(--crt-exp-search-height-mobile));
  }
}
