.home-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(243, 197, 96, 0.28), transparent 18%),
    radial-gradient(circle at 78% 16%, rgba(91, 165, 189, 0.32), transparent 22%),
    radial-gradient(circle at 50% 78%, rgba(14, 44, 60, 0.6), transparent 34%),
    linear-gradient(135deg, #071b2a 0%, #0d2333 30%, #153d48 58%, #d0a154 100%);
  background-attachment: fixed;
}

.hero-section {
  position: relative;
  background:
    linear-gradient(90deg, rgba(6, 13, 18, 0.5) 0%, rgba(10, 24, 35, 0.18) 24%, rgba(15, 28, 38, 0.14) 56%, rgba(31, 61, 71, 0.32) 100%),
    radial-gradient(circle at 22% 28%, rgba(242, 197, 96, 0.38), transparent 18%),
    radial-gradient(circle at 72% 20%, rgba(80, 156, 186, 0.36), transparent 22%),
    url('https://almahaglobalproperty.com/assets/images/back1.jpg') center center / cover no-repeat;
  padding: 120px 0 140px;
  color: #FFFFFF;
  text-align: center;
  border-radius: 22px;
  overflow: hidden;
  width: min(1450px, 94vw);
  max-width: 1450px;
  margin: 0 auto;
  background-color: #d9d2ca;
  border: 6px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px rgba(255, 244, 210, 0.96),
    0 0 0 8px rgba(227, 178, 88, 0.28),
    0 0 0 14px rgba(255, 211, 104, 0.16),
    inset 0 0 24px rgba(255, 234, 170, 0.2),
    0 18px 52px rgba(9, 20, 30, 0.42),
    0 0 42px rgba(255, 201, 99, 0.25),
    0 0 72px rgba(120, 210, 234, 0.18);
  animation: heroFrameGlow 5s ease-in-out infinite alternate;
}

.construction-notice {
  width: min(1450px, 94vw);
  margin: 18px auto 12px;
  padding: 12px 20px;
  border: 1px solid #17232b;
  border-radius: 4px;
  background: #f2c45d;
  color: #17232b;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(135deg, #fff8df 0%, #f8df94 12%, #f0c458 24%, #c9892b 36%, #fbe9ae 55%, #efbf5d 70%, #9c6617 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

@keyframes heroFrameGlow {
  0% {
    box-shadow:
      0 0 0 2px rgba(255, 244, 210, 0.9),
      0 0 0 8px rgba(227, 178, 88, 0.24),
      0 0 0 14px rgba(255, 211, 104, 0.14),
      inset 0 0 24px rgba(255, 234, 170, 0.18),
      0 18px 52px rgba(9, 20, 30, 0.4),
      0 0 36px rgba(255, 201, 99, 0.2),
      0 0 62px rgba(120, 210, 234, 0.12);
  }
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 248, 222, 1),
      0 0 0 10px rgba(243, 187, 82, 0.34),
      0 0 0 18px rgba(255, 220, 122, 0.18),
      inset 0 0 28px rgba(255, 240, 191, 0.26),
      0 18px 58px rgba(9, 20, 30, 0.45),
      0 0 48px rgba(255, 201, 99, 0.32),
      0 0 80px rgba(120, 210, 234, 0.22);
  }
}

.hero-section .container {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 40px;
}

.hero-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.7rem, 4vw, 4.3rem);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  max-width: 48%;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #E5E7EB;
  margin: 0;
  text-align: left;
  max-width: 44%;
}

.search-module {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: min(980px, 100%);
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  margin-top: 20px;
}

.search-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.search-tab {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.search-tab.active {
  background-color: var(--color-ivory);
  color: var(--color-gold);
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 1.45fr) 120px;
  gap: 12px;
  align-items: center;
}

#btn-execute-search {
  width: 100%;
  justify-self: end;
  align-self: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.search-field input, .search-field select {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
}

@media (max-width: 980px) {
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #btn-execute-search {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  #btn-execute-search {
    grid-column: auto;
  }
}

.home-page h2 {
  color: #e4b864;
  text-shadow:
    0 1px 0 #c7933d,
    0 2px 0 #b98734,
    0 3px 0 #a77b2d,
    0 4px 0 #926d28,
    0 6px 18px rgba(215, 169, 82, 0.28),
    0 0 22px rgba(255, 216, 130, 0.25);
  letter-spacing: 0.02em;
  transform: translateY(-1px);
}