
/* =========================================================
   SRII PROPERTIES — BUY PAGE
   SECTION 02: LOCKED HERO + PROPERTY SEARCH
   Matches current includes/Buy/hero.php
   ========================================================= */

.sb-hero {
  --sb-navy: #122840;
  --sb-gold: #ad7b3e;
  --sb-cream: #fbf7f0;
  --sb-border: #e9e0d4;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--sb-navy);
  background: var(--sb-cream);
  font-family: inherit;
  padding: 0 0 55px;
}

.sb-hero,
.sb-hero * {
  box-sizing: border-box;
}

/* =========================================================
   HERO BACKGROUND IMAGE
   ========================================================= */

.sb-hero__background {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  height: 410px;

  background-image:
    linear-gradient(
      90deg,
      #fbf7f0 0%,
      rgba(251, 247, 240, 0.99) 22%,
      rgba(251, 247, 240, 0.94) 34%,
      rgba(251, 247, 240, 0.70) 44%,
      rgba(251, 247, 240, 0.18) 60%,
      rgba(251, 247, 240, 0) 76%
    ),
    url('/assets/images/buy/buy-hero.png');

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* =========================================================
   CONTENT CONTAINER
   ========================================================= */

.sb-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 88px));
  margin: 0 auto;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.sb-breadcrumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 1.5;
}

.sb-breadcrumb a {
  color: var(--sb-navy);
  text-decoration: none;
}

.sb-breadcrumb a:hover {
  color: var(--sb-gold);
}

/* =========================================================
   HERO CONTENT
   ========================================================= */

.sb-hero__content {
  position: relative;
  min-height: 305px;
}

.sb-hero__copy {
  position: relative;
  z-index: 2;
  width: 56%;
  max-width: 620px;
  padding-top: 14px;
}

.sb-eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--sb-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  line-height: 1.5;
}

.sb-hero__copy h1 {
  margin: 0 0 13px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 3.65vw, 55px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -1.4px;
  color: var(--sb-navy);
}

.sb-hero__copy h1 em {
  display: block;
  color: var(--sb-gold);
  font-style: normal;
  white-space: nowrap;
}

.sb-hero__copy p {
  max-width: 540px;
  margin: 0;
  color: #354455;
  font-size: 14px;
  line-height: 1.65;
}

/* =========================================================
   DECORATIVE GOLD SCRIPT
   ========================================================= */

.sb-hero__script {
  position: absolute;
  z-index: 4;
  top: -10px;
  left: 40%;
  width: 190px;
  color: #956126;
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 25px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-10deg);
  text-shadow: 0 1px 3px rgba(255,255,255,.9);
  pointer-events: none;
}

/* =========================================================
   TRUST INDICATORS
   ========================================================= */

.sb-hero__trust {
  position: absolute;
  z-index: 3;
  top: 48px;
  right: 0;
  display: grid;
  gap: 11px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid rgba(173, 123, 62, 0.10);
  border-radius: 9px;
  box-shadow: 0 10px 30px rgba(20, 30, 40, 0.12);
  font-size: 12px;
  font-weight: 600;
}

.sb-hero__trust div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sb-gold);
}

.sb-hero__trust div span {
  color: var(--sb-navy);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   FLOATING SEARCH PANEL
   ========================================================= */

.sb-search {
  position: relative;
  z-index: 5;
  margin-top: -30px;
  padding: 14px 18px 18px;
  background: #fff;
  border: 1px solid #ece4d9;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(25, 36, 47, 0.09);
}

/* =========================================================
   SEARCH CATEGORY TABS
   ========================================================= */

.sb-search__tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.sb-search__categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.sb-search__categories button {
  border: 0;
  border-radius: 24px;
  padding: 9px 17px;
  background: #f2f2f2;
  color: #263442;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sb-search__categories button.active,
.sb-search__categories button.is-active {
  background: var(--sb-gold);
  color: #fff;
}

.sb-search__categories button:hover:not(.active):not(.is-active) {
  background: #eae2d7;
}

.sb-search__advanced {
  flex-shrink: 0;
  margin-left: auto;
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: #96672e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

/* =========================================================
   SEARCH FIELDS
   ========================================================= */

.sb-search__fields {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 1.2fr)
    minmax(0, 1.12fr)
    minmax(0, 0.95fr)
    auto;
  align-items: end;
  gap: 12px;
}

.sb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: #626e79;
  font-size: 12px;
}

.sb-field > span {
  padding-left: 3px;
  font-size: 11px;
  font-weight: 500;
}

.sb-field select,
.sb-field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e5dfd6;
  border-radius: 7px;
  background: #fff;
  color: #263849;
  font-family: inherit;
  font-size: 13px;
  outline-offset: 2px;
}

.sb-field select:focus,
.sb-field input:focus {
  border-color: var(--sb-gold);
  outline: 2px solid rgba(173, 123, 62, 0.15);
}

.sb-search__submit {
  height: 48px;
  min-width: 175px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  background: var(--sb-gold);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.sb-search__submit:hover {
  background: #90602f;
}

/* =========================================================
   ADVANCED FILTERS
   ========================================================= */

.sb-search__advanced-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee5da;
}

.sb-search__advanced-fields[hidden],
.sb-search__status[hidden] {
  display: none !important;
}

.sb-search__status {
  margin: 12px 2px 0;
  color: #92642d;
  font-size: 12px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .sb-hero__inner {
    width: calc(100% - 48px);
  }

  .sb-hero__copy {
    width: 60%;
  }

  .sb-hero__copy h1 em {
    white-space: normal;
  }

  .sb-hero__script {
    top: -5px;
    left: 42%;
    width: 150px;
    font-size: 19px;
  }

  .sb-hero__trust {
    top: 120px;
  }

  .sb-search__fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sb-search__submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

  .sb-hero {
    padding-bottom: 28px;
  }

  .sb-hero__inner {
    width: calc(100% - 32px);
  }

  .sb-hero__background {
    height: 560px;
    background-image:
      linear-gradient(
        180deg,
        rgba(251, 247, 240, 0.05) 0%,
        rgba(251, 247, 240, 0.20) 150px,
        rgba(251, 247, 240, 0.97) 270px,
        #fbf7f0 390px
      ),
      url('/assets/images/buy/buy-hero.png');
    background-size: auto 300px;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .sb-breadcrumb {
    padding-top: 17px;
    margin-bottom: 0;
    font-size: 11px;
  }

  .sb-hero__content {
    min-height: 0;
    padding-top: 215px;
    padding-bottom: 65px;
  }

  .sb-hero__copy {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }

  .sb-eyebrow {
    font-size: 10px;
    letter-spacing: 2.3px;
    margin-bottom: 10px;
  }

  .sb-hero__copy h1 {
    font-size: clamp(33px, 8.5vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.8px;
  }

  .sb-hero__copy h1 em {
    white-space: normal;
  }

  .sb-hero__copy p {
    font-size: 14px;
  }

  .sb-hero__script,
  .sb-hero__trust {
    display: none;
  }

  .sb-search {
    margin-top: -36px;
    padding: 14px;
    border-radius: 14px;
  }

  .sb-search__tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sb-search__categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .sb-search__categories button {
    flex: 0 0 auto;
    padding: 9px 13px;
    font-size: 11px;
  }

  .sb-search__advanced {
    align-self: flex-end;
  }

  .sb-search__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sb-search__submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sb-search__advanced-fields {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .sb-hero__inner {
    width: calc(100% - 24px);
  }

  .sb-hero__copy h1 {
    font-size: 33px;
  }

  .sb-search__fields {
    grid-template-columns: 1fr;
  }

  .sb-search__submit {
    grid-column: auto;
  }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .sb-hero *,
  .sb-hero *::before,
  .sb-hero *::after {
    transition: none !important;
    animation: none !important;
  }
}
