/* Premium Modern Executive Hero & Search Engine for Sarmayadar (Zameen Green Theme) */
.hero-section {
  position: relative;
  min-height: auto;
  background: linear-gradient(180deg, rgba(15, 38, 17, 0.92) 0%, rgba(10, 26, 12, 0.95) 100%),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=85') center/cover no-repeat;
  padding: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #239c32;
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Subtle Ambient Radial Glow */
.hero-section::after {
  content: "";
  position: absolute;
  top: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(35, 156, 50, 0.18), rgba(242, 167, 27, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-text-wrapper {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  animation: fadeInUp 0.5s ease-out;
}

/* Glassmorphic Badge with Emerald Accent */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(35, 156, 50, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(35, 156, 50, 0.45);
  color: #34d399;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(35, 156, 50, 0.2);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(35, 156, 50, 0.25);
  border-color: rgba(35, 156, 50, 0.7);
  transform: translateY(-1px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #239c32;
  border-radius: 50%;
  box-shadow: 0 0 10px #239c32;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, #34D399 0%, #239C32 50%, #F2A71B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 4px 16px rgba(35, 156, 50, 0.35));
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(241, 245, 249, 0.9);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
}

/* Hero Dual Action Buttons */
.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #239C32 0%, #1B7A30 100%);
  color: #FFFFFF;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(35, 156, 50, 0.35);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #1B7A30 0%, #125722 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(35, 156, 50, 0.5);
}

.btn-hero-primary .cta-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 167, 27, 0.12);
  color: #F2A71B;
  border: 1px solid rgba(242, 167, 27, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-secondary:hover {
  background: rgba(242, 167, 27, 0.22);
  border-color: #F2A71B;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 167, 27, 0.28);
}

/* Floating Clean Search Container Card */
.search-engine-box {
  width: 100%;
  max-width: 1480px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.12);
  text-align: left;
  position: relative;
  transition: box-shadow 0.3s ease;
}

@media (max-width: 600px) {
  .search-engine-box {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
}

/* Purpose Tabs (Buy / Rent / Megaprojects) */
.search-tabs-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.search-tabs-container::-webkit-scrollbar {
  display: none;
}

.search-tab {
  flex-shrink: 0;
  white-space: nowrap;
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 9px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tab.active {
  background: #239C32;
  color: #FFFFFF;
  border-color: #1B7A30;
  box-shadow: 0 4px 12px rgba(35, 156, 50, 0.25);
}

.search-tab:hover:not(.active) {
  background: #F1F5F9;
  color: #239C32;
  border-color: #CBD5E1;
}

/* AI Smart Search Engine Box */
.ai-search-container-box {
  background: #F0FDF4;
  color: #0F172A;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1.5px solid #86EFAC;
  box-shadow: 0 4px 16px rgba(35, 156, 50, 0.08);
}

.ai-header-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.ai-icon-badge {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #239C32, #1B7A30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(35, 156, 50, 0.3);
}

.ai-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #15803D;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ai-subtitle-tag {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
}

.ai-main-input-wrap {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .ai-main-input-wrap {
    flex-direction: column;
  }
}

.ai-main-input-wrap input {
  flex: 1;
  height: 56px;
  background: #FFFFFF;
  color: #0F172A;
  border: 2px solid #CBD5E1;
  border-radius: 12px;
  padding: 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ai-main-input-wrap input:focus {
  border-color: #239c32;
  box-shadow: 0 0 0 4px rgba(35, 156, 50, 0.18);
  outline: none;
}

.btn-ai-search {
  height: 56px;
  padding: 0 1.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, #239C32 0%, #1B7A30 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(35, 156, 50, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-ai-search:hover {
  background: linear-gradient(135deg, #1B7A30 0%, #125722 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(35, 156, 50, 0.45);
}

.ai-quick-prompts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  align-items: center;
}

.prompt-chip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #475569;
  font-weight: 700;
}

.ai-sample-prompt-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ai-sample-prompt-btn:hover {
  background: #239C32;
  color: #FFFFFF;
  border-color: #239C32;
}

/* Filter Grid Dropdowns */
.search-filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: flex-end;
}

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

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

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-select {
  width: 100%;
  height: 46px;
  padding: 0 0.85rem;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background-color: #F8FAFC;
  color: #0F172A;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:focus {
  border-color: #239c32;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(35, 156, 50, 0.18);
  outline: none;
}

.btn-search {
  height: 46px;
  width: 100%;
  font-size: 0.92rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(35, 156, 50, 0.3);
}

/* Quick Chips Bar */
.quick-chips {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.chip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
}

.filter-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #239c32;
  color: #FFFFFF;
  border-color: #239c32;
  transform: translateY(-1px);
}

.btn-overseas-fancy:hover {
  background: linear-gradient(135deg, #239C32 0%, #1B7A30 100%) !important;
  color: #FFFFFF !important;
  border-color: #86EFAC !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(35, 156, 50, 0.5) !important;
}

.btn-overseas-fancy:hover svg {
  stroke: #FFFFFF !important;
}

/* Universal Box-Sizing Enforcement */
.hero-section,
.hero-section *,
.search-engine-box,
.search-engine-box * {
  box-sizing: border-box !important;
}

.ai-input-inner-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.ai-search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

/* Mobile View Specific Hero Search Optimization (320px–480px) */
@media (max-width: 768px) {
  .hero-section {
    padding: 0.75rem 0 1.25rem !important;
    min-height: auto !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .hero-section .container,
  .hero-content {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-text-wrapper {
    margin-bottom: 0.35rem !important;
    width: 100% !important;
  }

  .hero-badge {
    padding: 2px 8px !important;
    font-size: 0.65rem !important;
    margin-bottom: 0.25rem !important;
  }

  .hero-title {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.15rem !important;
  }

  /* Search Box Card Container on Mobile */
  .search-engine-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 10px !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    margin: 0 auto !important;
    border: 1.5px solid #239c32 !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
  }

  /* Purpose Tabs */
  .search-tabs-container {
    display: flex !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
    padding-bottom: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
  }

  .search-tabs-container::-webkit-scrollbar {
    display: none !important;
  }

  .search-tab {
    flex: 1 1 0px !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 8px 4px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  .search-tab svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  .search-tab.active {
    background: #239C32 !important;
    color: #FFFFFF !important;
    border-color: #1B7A30 !important;
    box-shadow: 0 3px 10px rgba(35, 156, 50, 0.25) !important;
  }

  /* AI Search Engine Box */
  .ai-search-container-box {
    padding: 10px 8px !important;
    margin-bottom: 10px !important;
    background: #F0FDF4 !important;
    border: 1.5px solid #86EFAC !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ai-header-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
  }

  .ai-icon-badge {
    width: 22px !important;
    height: 22px !important;
  }

  .ai-title {
    font-size: 0.82rem !important;
    color: #15803D !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .ai-subtitle-tag {
    display: inline-block !important;
    font-size: 0.68rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
  }

  /* Search Input & Button Stacked for Clean Mobile Layout */
  .ai-main-input-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ai-input-inner-wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .ai-search-input-icon {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }

  .ai-main-input-wrap input,
  #ai-prompt-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    padding: 0 10px 0 32px !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .ai-main-input-wrap input:focus,
  #ai-prompt-input:focus {
    border-color: #239c32 !important;
    box-shadow: 0 0 0 3px rgba(35, 156, 50, 0.18) !important;
    outline: none !important;
  }

  .btn-ai-search {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #239C32 0%, #1B7A30 100%) !important;
    box-shadow: 0 3px 10px rgba(35, 156, 50, 0.25) !important;
    box-sizing: border-box !important;
  }

  .ai-quick-prompts {
    display: flex !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    margin-top: 6px !important;
    align-items: center !important;
    width: 100% !important;
  }

  .prompt-chip-label {
    font-size: 0.68rem !important;
    color: #475569 !important;
    font-weight: 700 !important;
    width: 100% !important;
    margin-bottom: 2px !important;
  }

  .ai-sample-prompt-btn {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.25 !important;
  }

  /* Filters Dropdown Grid */
  .search-filters-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .filter-group label {
    font-size: 0.72rem !important;
    gap: 4px !important;
  }

  .filter-select {
    height: 42px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-actions {
    margin-top: 0.85rem !important;
    gap: 8px !important;
    width: 100% !important;
    flex-direction: column !important;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    justify-content: center !important;
  }
}

@media (max-width: 375px) {
  .hero-section .container,
  .hero-content {
    padding: 0 4px !important;
  }

  .hero-title {
    font-size: 1.3rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.4rem !important;
  }

  .hero-subtitle {
    font-size: 0.78rem !important;
    margin-bottom: 0.85rem !important;
  }

  .search-engine-box {
    padding: 8px 6px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .ai-search-container-box {
    padding: 6px 4px !important;
  }

  .search-tabs {
    gap: 2px !important;
    margin-bottom: 8px !important;
  }

  .search-tab {
    font-size: 0.7rem !important;
    padding: 5px 2px !important;
    min-height: 36px !important;
    letter-spacing: -0.2px !important;
  }

  .city-pills-row,
  .quick-filter-chips {
    gap: 4px !important;
    margin-top: 6px !important;
  }

  .city-pill,
  .quick-chip {
    padding: 3px 7px !important;
    font-size: 0.7rem !important;
  }

  .hero-form-row {
    gap: 6px !important;
  }

  .btn-find-properties {
    padding: 9px 12px !important;
    font-size: 0.85rem !important;
    min-height: 42px !important;
  }
}