/* =========================================================
   Findar V4.2.0 — Homepage Premium First Impression
   Namespaced to homepage only. Map core V4.1.6.2 untouched.
   ========================================================= */

body.findar-v420-home .site-header:not(.is-scrolled) {
  background: rgba(15, 23, 42, .20);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.f420-hero {
  position: relative;
  min-height: clamp(640px, 82vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(59,130,246,.22), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,.90), rgba(15,23,42,.58)),
    url('../images/hero-bg.svg') center/cover no-repeat;
}

.f420-hero:after {
  content: "";
  position: absolute;
  inset: auto -10% -1px -10%;
  height: 170px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 78%);
  pointer-events: none;
}

.f420-hero-inner {
  position: relative;
  z-index: 2;
  padding: 130px 0 70px;
}

.f420-hero-copy { max-width: 880px; }

.f420-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 20px;
}

.f420-hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: .97;
  letter-spacing: -.065em;
  margin: 0 0 18px;
  color: #fff;
}

.f420-hero h1 span { color: #93C5FD; }

.f420-hero-subtitle {
  max-width: 640px;
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  margin: 0 0 30px;
}

.f420-search {
  width: min(1060px, 100%);
  background: rgba(255,255,255,.98);
  color: #0F172A;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
  padding: 14px;
  border: 1px solid rgba(255,255,255,.72);
}

.f420-tabs { display: flex; gap: 8px; padding: 4px 4px 12px; overflow-x: auto; }

.f420-tabs button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 999px;
  color: #64748B;
  background: #F1F5F9;
  font-weight: 900;
  transition: .18s ease;
}

.f420-tabs button.is-active {
  background: #1A3CDB;
  color: #fff;
  box-shadow: 0 8px 22px rgba(26,60,219,.25);
}

.f420-search-form { display: grid; grid-template-columns: 1.45fr 1fr 1fr auto; gap: 10px; align-items: end; }

.f420-field span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 950;
  color: #94A3B8;
  margin: 0 0 6px 12px;
}

.f420-field input, .f420-field select {
  width: 100%; height: 54px; border: 1px solid #E2E8F0; background: #fff; color: #0F172A;
  border-radius: 16px; padding: 0 15px; font-weight: 750; outline: none;
}

.f420-field input:focus, .f420-field select:focus { border-color: #1A3CDB; box-shadow: 0 0 0 4px rgba(26,60,219,.10); }

.f420-submit {
  height: 54px; min-width: 150px; border: 0; border-radius: 16px; background: #1A3CDB; color: #fff;
  font-weight: 950; cursor: pointer; box-shadow: 0 13px 30px rgba(26,60,219,.30);
}

.f420-hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.f420-hero-trust span { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 850; color: rgba(255,255,255,.92); }

.f420-section { padding: 74px 0; background: #fff; }
.f420-section.soft { background: #F8FAFC; }

.f420-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.f420-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.03; letter-spacing: -.045em; margin: 8px 0 0; color: #0F172A; }
.f420-head p { color: #64748B; margin: 8px 0 0; max-width: 620px; }
.f420-link { color: #1A3CDB; font-weight: 900; white-space: nowrap; }

.f420-featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.f420-city-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

.f420-city {
  position: relative; min-height: 154px; border-radius: 26px; overflow: hidden; padding: 20px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(135deg, #0F172A, #1A3CDB); box-shadow: 0 16px 40px rgba(15,23,42,.14); isolation: isolate;
}
.f420-city:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.30), transparent 32%); z-index: -1; }
.f420-city strong { font-size: 20px; letter-spacing: -.03em; }
.f420-city small { opacity: .82; margin-top: 3px; font-weight: 750; }

.f420-map-grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: 32px; align-items: stretch; }
.f420-map-copy, .f420-map-card { background: #fff; border: 1px solid rgba(226,232,240,.88); border-radius: 30px; box-shadow: 0 18px 45px rgba(15,23,42,.08); padding: 30px; }
.f420-map-copy h2 { margin: 12px 0 12px; color: #0F172A; font-size: clamp(28px, 4vw, 42px); line-height: 1.03; letter-spacing: -.045em; }
.f420-map-copy p { color: #64748B; margin-bottom: 20px; }
.f420-map-card #findar-home-mini-map { min-height: 286px; height: 286px; border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(226,232,240,.9); }

.f420-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.f420-trust { background: #fff; border: 1px solid rgba(226,232,240,.9); border-radius: 28px; padding: 28px; box-shadow: 0 14px 36px rgba(15,23,42,.07); }
.f420-trust i { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(26,60,219,.09); color: #1A3CDB; font-style: normal; font-size: 22px; margin-bottom: 16px; }
.f420-trust h3 { margin: 0 0 8px; color: #0F172A; font-size: 19px; letter-spacing: -.025em; }
.f420-trust p { margin: 0; color: #64748B; }

.f420-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.f420-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .f420-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f420-city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f420-map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .f420-hero { min-height: auto; }
  .f420-hero-inner { padding: 116px 0 42px; }
  .f420-search { border-radius: 22px; padding: 10px; }
  .f420-search-form { grid-template-columns: 1fr; }
  .f420-submit { width: 100%; }
  .f420-section { padding: 48px 0; }
  .f420-head { align-items: flex-start; flex-direction: column; }
  .f420-featured-grid { grid-template-columns: 1fr; gap: 16px; }
  .f420-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f420-city { min-height: 132px; border-radius: 22px; }
  .f420-trust-grid { grid-template-columns: 1fr; }
}
