/* DRC homepage hero, laid out like the centred MakaUG search hero.
   The photograph stays behind a dark overlay. Neondaku uses navy, gold and red. */

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero.hero-bg {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: auto !important;
  min-height: 620px !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0 !important;
  background: #12324a !important;
  background-image: none !important;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .fanadako-hero-media,
body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .fanadako-hero-shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .fanadako-hero-media {
  z-index: 0 !important;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .fanadako-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 1 !important;
  transform: none !important;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .fanadako-hero-shade {
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(4, 21, 33, .42) 0%, rgba(4, 21, 33, .78) 100%);
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1080px);
  min-height: 620px;
  margin: 0 auto;
  padding: 88px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-hero-copy {
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  text-align: center;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 7px 14px;
  border: 1px solid rgba(246, 198, 77, .55);
  border-radius: 999px;
  background: rgba(4, 21, 33, .45);
  color: #f6c64d !important;
  font: 800 11px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-badge i {
  color: #f6c64d !important;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-brand-eyebrow {
  margin: 0 0 8px;
  color: #fff;
  font: 700 15px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .01em;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-title {
  max-width: 18em;
  margin: 0 auto;
  color: #fff !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: clamp(34px, 4.4vw, 58px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em;
  text-align: center;
  text-wrap: balance;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-subtitle {
  max-width: 42rem;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .95) !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-property-counter,
body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-property-count-label {
  color: #fff;
  font-weight: 800;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-subtitle #hero-property-count {
  color: var(--nd-gold);
  font-weight: 800;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-shell {
  width: 100%;
  margin: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: rgba(8, 24, 38, .72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
  text-align: start;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-search-tabs {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-search-tabs::-webkit-scrollbar { display: none; }

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-search-tabs .hero-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  font: 700 13px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-search-tabs .hero-tab.active {
  border-color: #12324a;
  border-bottom-color: #12324a !important;
  background: #fff;
  color: #12324a !important;
  box-shadow: none;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-list-property {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #12324a;
  border-radius: 999px;
  background: #f6c64d;
  color: #12324a;
  font: 800 13px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  white-space: nowrap;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row {
  min-height: 52px;
  padding: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  gap: 4px;
  border-radius: 16px;
  background: #fff;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-query-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  color: #12324a;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-query-field .hero-field {
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #12324a;
  font: 500 15px/1 "Plus Jakarta Sans", system-ui, sans-serif;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .hero-location-wrap {
  position: relative;
  min-width: 0;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .hero-location-control {
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #12324a;
  font: 800 14px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  white-space: nowrap;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .hero-location-helper {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: 260px;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row #hero-search-btn {
  width: auto !important;
  min-width: 128px;
  min-height: 44px;
  height: auto;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 12px !important;
  background: #cc2d4a !important;
  color: #fff !important;
  font: 800 15px/1 "Plus Jakarta Sans", system-ui, sans-serif;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row #hero-search-btn:hover {
  background: #12324a !important;
  color: #f6c64d !important;
  border-color: #12324a !important;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row #hero-search-btn:focus,
body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row #hero-search-btn:focus-visible {
  outline: 3px solid #12324a !important;
  outline-offset: 2px;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-filter-row :is(.hero-filter-field, .hero-filter-button) {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #12324a;
  font: 700 13px/1 "Plus Jakarta Sans", system-ui, sans-serif;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .hero-advanced-panel {
  border-radius: 16px;
  background: #fff;
  color: #12324a;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-filter-actions button {
  min-height: 44px;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-location-rail {
  width: 100%;
  margin: 16px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: rgba(255, 255, 255, .9);
  font: 600 14px/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
}

body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-location-rail a {
  color: #f6c64d !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-country-code="CD"][data-tenant="neondaku"] #home-grid .fanadako-neutral-media {
  min-height: 180px !important;
  aspect-ratio: 3 / 2 !important;
}

body[data-country-code="CD"][data-tenant="neondaku"] #home-grid .neondaku-source-stage {
  min-height: 180px;
  aspect-ratio: 3 / 2;
}

@media (max-width: 860px) {
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero.hero-bg,
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero-content {
    min-height: 680px !important;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero-content {
    padding: 88px 16px 24px;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-search-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-search-tabs {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    overflow-x: auto;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-list-property {
    align-self: flex-end;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "query query"
      "location search";
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-query-field {
    grid-area: query;
    min-height: 46px;
    border-bottom: 1px solid #e5e7eb;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-query-field .hero-field {
    width: 100%;
    border: 0;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .hero-location-wrap {
    grid-area: location;
    width: 100%;
    min-width: 0;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .hero-location-control {
    width: 100%;
    justify-content: center;
    border: 0;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row #hero-search-btn {
    grid-area: search;
    width: 100% !important;
  }
}

@media (max-width: 560px) {
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-title {
    font-size: clamp(30px, 9vw, 40px) !important;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero #hero-subtitle { font-size: 16px; }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .neondaku-search-row #hero-search-btn {
    min-width: 0;
    padding-inline: 12px;
    font-size: 14px;
  }
  body[data-country-code="CD"][data-tenant="neondaku"] .neondaku-hero .hero-location-control { padding-inline: 8px; font-size: 13px; }
}
