/* ==========================================================================
   MAKAN FINDER — Hero Search Widget
   "Rolex gold" palette: warm near-black ground, polished metallic gold.
   Scoped under .mfhs- so it never collides with the site header's .mf- classes.
   ========================================================================== */

.mfhs {
  --mfhs-ground: #0a120d;
  --mfhs-gold-hi: #f6e3ac;
  --mfhs-gold: #ceac64;
  --mfhs-gold-deep: #8a6a2f;
  --mfhs-hairline: rgba(212, 175, 106, .32);
  --mfhs-ink: #0d1310;
  --mfhs-white: #ffffff;
  --mfhs-muted: rgba(247, 244, 236, .74);
  --mfhs-radius: 18px;
  --mfhs-ease: cubic-bezier(.22, .61, .36, 1);

  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mfhs, .mfhs * {
  box-sizing: border-box;
}

.mfhs button, .mfhs select, .mfhs input {
  font-family: inherit;
  line-height: inherit;
}

.mfhs :focus-visible {
  outline: 2px solid var(--mfhs-gold-hi);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Shell — near-opaque by design, not a true see-through pane. A heavily
   transparent card reads fine over a rich photo but turns into a washed-out
   grey smear on a plain background (exactly what happened when this was
   tested standalone) — so contrast now comes from the card's own colour,
   with backdrop-filter left in only as a faint bonus for when a photo
   *is* behind it, never as the thing carrying legibility.
   -------------------------------------------------------------------------- */
.mfhs__card {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding: 10px;
  border-radius: var(--mfhs-radius);
  background: #00492D;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--mfhs-hairline);
  box-shadow:
    0 24px 60px -16px rgba(0, 0, 0, .55),
    0 2px 0 rgba(255, 255, 255, .05) inset,
    0 0 0 1px rgba(0, 0, 0, .35) inset;
}

/* --------------------------------------------------------------------------
   Tabs — Rent / Sale / Off-Plan
   -------------------------------------------------------------------------- */
.mfhs__tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
}

.mfhs__tab {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding-inline: 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mfhs-white);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: color .18s var(--mfhs-ease), background .18s var(--mfhs-ease);
}

.mfhs__tab:hover {
  color: var(--mfhs-white);
}

.mfhs__tab[aria-selected="true"] {
  color: var(--mfhs-white);
  background: linear-gradient(160deg, var(--mfhs-gold-hi) 0%, var(--mfhs-gold) 45%, var(--mfhs-gold-deep) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 6px 16px -6px rgba(0, 0, 0, .5);
}

.mfhs__tab-badge {
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 4px;
  background: rgba(0, 0, 0, .28);
  color: var(--mfhs-white);
}

.mfhs__tab[aria-selected="true"] .mfhs__tab-badge {
  background: rgba(13, 19, 16, .18);
  color: var(--mfhs-white);
}

/* --------------------------------------------------------------------------
   Form row — type · keyword · submit
   -------------------------------------------------------------------------- */
.mfhs__form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px;
}

.mfhs__select-wrap,
.mfhs__field {
  position: relative;
  display: flex;
  align-items: center;
}

.mfhs__select-wrap {
  flex: 0 0 178px;
}

.mfhs__select-wrap svg:first-child,
.mfhs__field svg {
  position: absolute;
  inset-inline-start: 16px;
  width: 17px;
  height: 17px;
  color: var(--mfhs-gold);
  pointer-events: none;
}

.mfhs__select {
  width: 100%;
  height: 54px;
  padding-inline: 42px 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mfhs-white);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .18s var(--mfhs-ease), background .18s var(--mfhs-ease);
}

.mfhs__select:hover {
  background: rgba(255, 255, 255, .07);
}

.mfhs__select:focus-visible {
  border-color: var(--mfhs-gold);
}

.mfhs__select option {
  color: #111;
  background: #fff;
}

.mfhs__select-wrap .mfhs__chev {
  inset-inline-start: auto;
  inset-inline-end: 14px;
  width: 13px;
  height: 13px;
}

.mfhs__field {
  flex: 1;
  min-width: 0;
}

.mfhs__field input {
  width: 100%;
  height: 54px;
  padding-inline-start: 44px;
  padding-inline-end: 16px;
  font-size: 15px;
  color: var(--mfhs-white);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s var(--mfhs-ease), background .18s var(--mfhs-ease);
}

.mfhs__field input::placeholder {
  color: var(--mfhs-white);
}

.mfhs__field input:hover {
  background: rgba(255, 255, 255, .07);
}

.mfhs__field input:focus-visible {
  border-color: var(--mfhs-gold);
  outline: none;
}

.mfhs__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding-inline: 26px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mfhs-white);
  background: linear-gradient(160deg, var(--mfhs-gold-hi) 0%, var(--mfhs-gold) 45%, var(--mfhs-gold-deep) 100%);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 10px 24px -8px rgba(138, 106, 47, .55);
  transition: filter .18s var(--mfhs-ease), box-shadow .18s var(--mfhs-ease);
}

.mfhs__submit:hover {
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 14px 30px -8px rgba(138, 106, 47, .68);
}

.mfhs__submit svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Optional caption row (rendered only if title/subtitle attrs are set)
   -------------------------------------------------------------------------- */
.mfhs__intro {
  margin: 0 0 18px;
  text-align: center;
}

.mfhs__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mfhs-gold-hi);
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--mfhs-hairline);
  border-radius: 999px;
}

.mfhs__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--mfhs-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

.mfhs__subtitle {
  margin: 0;
  font-size: 15.5px;
  color: rgba(247, 244, 236, .78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .mfhs__form {
    flex-wrap: wrap;
  }
  .mfhs__select-wrap {
    flex: 1 1 100%;
  }
  .mfhs__field {
    flex: 1 1 100%;
  }
  .mfhs__submit {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .mfhs__tab {
    font-size: 11px;
    padding-inline: 8px;
    letter-spacing: .05em;
  }
  .mfhs__select,
  .mfhs__field input,
  .mfhs__submit {
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfhs * {
    transition-duration: .01ms !important;
  }
}
