/* ==========================================================================
   Home — hero, parallax CTAs, location banners, blog preview, footer
   ========================================================================== */

/* ── Parallax base ── */
.parallax-bg {
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-footer);
}
.hero__parallax-bg {
  background-image: var(--hero-image, none);
  background-color: var(--color-footer);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,20,50,.80) 0%,
    rgba(10,20,50,.55) 55%,
    rgba(10,20,50,.20) 100%
  );
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 780px;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-12);
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: var(--sp-4);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--sp-3);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,.75);
  margin-bottom: var(--sp-8);
  max-width: 520px;
  line-height: var(--leading-relaxed);
}

/* Hero search */
.hero__search { margin-bottom: 0; }
.hero__search-inner {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  overflow: hidden;
  max-width: 640px;
}
.hero__search-icon {
  padding-left: var(--sp-5);
  font-size: var(--text-lg);
  flex-shrink: 0;
  color: var(--color-grey);
}
.hero__search-inner input {
  flex: 1;
  padding: var(--sp-4) var(--sp-4);
  border: none;
  outline: none;
  font-size: var(--text-base);
  background: transparent;
  color: var(--color-dark);
  min-width: 0;
}
.hero__search-inner input::placeholder { color: var(--color-grey-light); }
.hero__search-inner .btn {
  border-radius: 0;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--text-sm);
  flex-shrink: 0;
  align-self: stretch;
}

/* Category strip */
.hero__cat-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--sp-4);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.hero__cat-list {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.hero__cat-list::-webkit-scrollbar { display: none; }
.hero__cat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.hero__cat-pill:hover {
  background: rgba(245,200,66,.2);
  border-color: var(--color-accent);
  color: var(--color-white);
}
.hero__cat-pill-img {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* ── Listings grid ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* ── Parallax CTA ── */
.parallax-cta {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-footer);
}
.parallax-cta__bg {
  background-image: var(--cta-image, none);
  background-color: var(--color-footer);
}
.parallax-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.6);
}
.parallax-cta--accent .parallax-cta__overlay {
  background: linear-gradient(135deg, rgba(74,123,196,.85), rgba(15,31,58,.75));
}
.parallax-cta .container { position: relative; z-index: 2; padding-block: var(--sp-20); }
.parallax-cta__content { max-width: 680px; margin-inline: auto; text-align: center; }
.parallax-cta__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.parallax-cta__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255,255,255,.8);
  margin-bottom: var(--sp-8);
  line-height: var(--leading-relaxed);
}

/* ── Location banners ── */
.location-banners { padding-block: var(--sp-20); background: var(--color-bg); }
.location-banners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.location-banner {
  position: relative;
  display: block;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease);
}
.location-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%);
  transition: opacity var(--ease);
  z-index: 1;
}
.location-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.location-banner:hover::before { opacity: 0.85; }
.location-banner__overlay { display: none; } /* handled via ::before */
.location-banner__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-6);
  z-index: 2;
}
.location-banner__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-2);
  line-height: var(--leading-tight);
}
.location-banner__count {
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* ── Footer ── */
.footer-newsletter {
  background: var(--color-primary);
  padding-block: var(--sp-12);
}
.footer-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.footer-newsletter__text h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--sp-2);
}
.footer-newsletter__text p { color: rgba(255,255,255,.75); margin: 0; }
.newsletter-form { flex-shrink: 0; }
.newsletter-form__group {
  display: flex;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.newsletter-form__group input {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-white);
  font-size: var(--text-sm);
  min-width: 240px;
}
.newsletter-form__group input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form__group .btn { border-radius: 0; border: none; }
.newsletter-form__msg { font-size: var(--text-sm); color: rgba(255,255,255,.8); margin-top: var(--sp-3); }

/* Footer main */
.footer-main { background: var(--color-footer); padding-block: var(--sp-16); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--sp-16);
}
.footer-logo { display: inline-flex; margin-bottom: var(--sp-5); }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); }
.footer-logo__text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}
.footer-tagline {
  color: rgba(255,255,255,.5);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-6);
  max-width: 280px;
}
.footer-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
.footer-widget-col .widget-title {
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: var(--sp-3);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links li a {
  color: rgba(255,255,255,.6);
  font-size: var(--text-sm);
  transition: color var(--ease), padding-left var(--ease);
  display: block;
}
.footer-links li a:hover { color: var(--color-accent); padding-left: var(--sp-2); }

.footer-bar {
  background: rgba(0,0,0,.3);
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-bar__copy {
  color: rgba(255,255,255,.3);
  font-size: var(--text-xs);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-bar__copy a { color: rgba(255,255,255,.5); }
.footer-bar__copy a:hover { color: var(--color-accent); }
