/**
 * Component Layer: Real Estate Search Engine & Hero Controls
 * Architecture: Prussian Sea Luxury Token Integration — Enhanced Title Box Border
 */

/* ==========================================================================
   1. Homepage Hero Section Structural Container
   ========================================================================== */
body .bv-hero-section {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

body .bv-hero-section .bv-hero-bg-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

body .bv-hero-section .bv-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .bv-hero-section .bv-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(2, 48, 71, 0.18) 0%,
    rgba(2, 48, 71, 0.05) 50%,
    rgba(2, 48, 71, 0.22) 100%
  );
  z-index: 1;
}

body .bv-hero-section .bv-hero-container {
  position: relative;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Translucent Title Box (Slightly Thicker 2px Border) */
body .bv-hero-section .bv-hero-text-box {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px auto;
  background: rgba(2, 48, 71, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 36px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}

body .bv-hero-section .bv-hero-container .bv-hero-subtitle {
  font-family: var(--font-display), serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 6px;
}

body .bv-hero-section .bv-hero-container h1 {
  font-family: var(--font-display), serif;
  font-size: 2.25rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.15;
  color: #ffffff;
}

/* ==========================================================================
   2. Status Commercial Intent Tabs
   ========================================================================== */
body .bv-hero-section .bv-hero-search-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 30px;
  margin: 0 auto 20px auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body .bv-hero-section .bv-tab-trigger {
  font-family: var(--font-ui), sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

body .bv-hero-section .bv-tab-trigger:hover {
  color: #d4af37;
}

body .bv-hero-section .bv-tab-trigger.active {
  background: #ffffff;
  color: #0b0f19;
}

/* ==========================================================================
   3. Search Wrapper & Form Inputs Grid (5 Columns)
   ========================================================================== */
body .bv-hero-section .bv-hero-search-wrapper {
  background: #ffffff;
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
}

body .bv-hero-section .bv-hero-search-wrapper form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}

body .bv-hero-section .bv-hero-search-wrapper .bv-search-form-grid,
body .bv-hero-section .bv-hero-search-wrapper .bv-hero-search-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

body .bv-hero-section .bv-hero-search-wrapper .bv-search-select-field,
body .bv-hero-section .bv-hero-search-wrapper .bv-search-input-field {
  width: 100%;
}

body .bv-hero-section .bv-hero-search-wrapper select,
body .bv-hero-section .bv-hero-search-wrapper input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: #f8f9fa;
  border: 1px solid #dde1e2;
  border-radius: 4px;
  font-family: var(--font-ui), sans-serif;
  font-size: 13px;
  color: #0b0f19;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body .bv-hero-section .bv-hero-search-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230B0F19' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

body .bv-hero-section .bv-hero-search-wrapper select:focus,
body .bv-hero-section .bv-hero-search-wrapper input[type="text"]:focus {
  border-color: #d4af37;
  background: #ffffff;
}

body .bv-hero-section .bv-hero-search-wrapper .bv-search-submit-btn {
  height: 48px;
  padding: 0 28px;
  background: #0b0f19;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-ui), sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
}

body .bv-hero-section .bv-hero-search-wrapper .bv-search-submit-btn:hover {
  background: #d4af37;
  color: #0b0f19;
}

/* ==========================================================================
   4. Advanced Filters Drawer & Action Controls
   ========================================================================== */
body .bv-hero-section .bv-hero-advanced-filters,
body .bv-hero-section #bv-advanced-drawer,
body .bv-hero-section #bv-archive-advanced-drawer {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding-top: 16px;
  border-top: 1px dashed #eaeaea;
}

body .bv-hero-section .bv-search-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  width: 100%;
}

body .bv-hero-section .bv-left-action-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

body .bv-hero-section .bv-toggle-advanced-btn {
  background: transparent;
  border: none;
  color: #d4af37;
  font-family: var(--font-ui), sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

body .bv-hero-section .bv-toggle-advanced-btn:hover {
  color: #0b0f19;
}

body .bv-hero-section .bv-reset-filters-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(2, 48, 71, 0.2);
  border-radius: 4px;
  color: #475569;
  font-family: var(--font-ui), sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

body .bv-hero-section .bv-reset-filters-btn.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body .bv-hero-section .bv-reset-filters-btn:hover {
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

/* ==========================================================================
   5. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  body .bv-hero-section .bv-hero-search-wrapper .bv-search-form-grid,
  body .bv-hero-section .bv-hero-search-wrapper .bv-hero-search-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body .bv-hero-section .bv-hero-search-wrapper .bv-search-form-grid,
  body .bv-hero-section .bv-hero-search-wrapper .bv-hero-search-row {
    grid-template-columns: repeat(2, 1fr);
  }

  body .bv-hero-section .bv-hero-search-wrapper select,
  body .bv-hero-section .bv-hero-search-wrapper input[type="text"] {
    font-size: 16px;
    height: 52px;
  }

  body .bv-hero-section .bv-hero-search-wrapper .bv-search-submit-btn {
    width: 100%;
  }

  body .bv-hero-section .bv-hero-advanced-filters,
  body .bv-hero-section #bv-advanced-drawer,
  body .bv-hero-section #bv-archive-advanced-drawer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body .bv-hero-section .bv-hero-search-wrapper .bv-search-form-grid,
  body .bv-hero-section .bv-hero-search-wrapper .bv-hero-search-row,
  body .bv-hero-section .bv-hero-advanced-filters,
  body .bv-hero-section #bv-advanced-drawer,
  body .bv-hero-section #bv-archive-advanced-drawer {
    grid-template-columns: 1fr;
  }

  body .bv-hero-section .bv-search-action-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  body .bv-hero-section .bv-left-action-group {
    justify-content: space-between;
    width: 100%;
  }

  body .bv-hero-section .bv-hero-search-tabs {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    justify-content: flex-start;
    padding: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body .bv-hero-section .bv-hero-search-tabs::-webkit-scrollbar {
    display: none;
  }

  body .bv-hero-section .bv-tab-trigger {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-size: 10px;
    text-align: center;
    border-radius: 12px;
  }
}