:root {
  --home-yellow: #ffc400;
  --home-black: #111315;
  --home-muted: #656b71;
  --home-line: #e5e7eb;
  --home-surface: #f6f7f8;
}

.home-redesign-page {
  background: #fff;
  color: var(--home-black);
}

.home-redesign-page section {
  padding: 0;
}

.home-redesign-header {
  min-height: 720px;
  margin: 16px;
  padding: 18px 24px 42px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-redesign-header .header-nav {
  margin-bottom: 0;
}

.home-redesign-header .home-redesign-hero-bg::after {
  background: linear-gradient(0deg, rgba(4, 8, 12, .9) 0%, rgba(4, 8, 12, .12) 66%, rgba(4, 8, 12, .12) 100%);
}

.home-redesign-header .home-redesign-hero-bg img {
  animation: none;
  object-position: center;
}

.home-redesign-hero-content {
  z-index: 2;
  width: min(660px, 100%);
  margin: auto auto 0 5.5%;
  color: #fff;
}

.home-redesign-hero-content h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 6.3rem);
  font-weight: 900;
  line-height: .92;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-redesign-hero-content p {
  margin: .7rem 0 1.4rem;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 600;
  text-transform: uppercase;
}

.home-redesign-primary-button,
.home-specific-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  color: #111;
  background: var(--home-yellow);
  font-size: .83rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.home-redesign-sell-link {
  display: block;
  margin-top: .8rem;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  text-decoration: none;
}

.home-redesign-sell-link:hover {
  color: #fff;
}

.home-redesign {
  overflow: hidden;
}

.home-redesign-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.home-redesign-section,
.home-redesign-featured {
  padding-block: clamp(42px, 6vw, 86px) !important;
}

.home-redesign-section-heading {
  margin-bottom: 26px;
}

.home-redesign-section-heading span,
.home-kicker {
  display: block;
  margin-bottom: .4rem;
  color: #a87400;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.home-redesign-section-heading h2,
.home-redesign h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.03;
}

.home-redesign-section-heading.compact h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.home-redesign-featured > .properties {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  padding: 0;
}

.home-redesign-featured > .properties > .section-title {
  display: none;
}

.home-redesign-featured #cardSlider {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.home-redesign-featured .f-carousel__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31.5%);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 0 !important;
  scrollbar-width: thin;
}

.home-redesign-featured .f-carousel__slide {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
}

.home-redesign-featured .f-carousel__slide img {
  width: 100%;
  height: clamp(240px, 30vw, 390px);
  margin: 0 !important;
  object-fit: cover;
  border-radius: 0 !important;
}

.home-redesign-featured .card-body {
  padding: 1.1rem;
}

.home-quick-search {
  background: var(--home-surface);
}

.home-quick-search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-search-tile {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: #fff;
  color: var(--home-black);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-search-tile:hover {
  color: var(--home-black);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 19, 21, .1);
}

.home-search-tile img {
  width: min(150px, 85%);
  height: 88px;
  object-fit: contain;
}

.home-location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-location-card {
  min-height: 250px;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
  background-image: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,.05)), url('/img/header-static-1.jpg');
  background-size: cover;
}

.home-location-card-2 { background-position: 25% center; }
.home-location-card-3 { background-position: 70% center; }
.home-location-card-4 { background-position: right center; }
.home-location-card strong { font-size: 1.35rem; }
.home-location-card span { color: rgba(255,255,255,.8); font-size: .82rem; }

.home-help {
  background: var(--home-surface);
}

.home-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.home-help-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: #fff;
}

.home-help-card > img {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  margin: 10px;
  border-radius: 16px;
  object-fit: cover;
}

.home-help-card-buyer {
  grid-template-columns: 1fr 44%;
}

.home-help-card > div {
  padding: clamp(22px, 3vw, 38px);
  align-self: center;
}

.home-help-card h3,
.home-property-group h3 {
  margin: 0 0 .35rem;
  font-size: 1.5rem;
  font-weight: 900;
}

.home-help-card strong {
  color: #9a7100;
  font-size: .85rem;
}

.home-help-card p,
.home-about-card p,
.home-rovinj p,
.home-expert-card p {
  color: var(--home-muted);
  line-height: 1.65;
}

.home-help-card a,
.home-text-link,
.home-property-group-heading a {
  color: #8e6800;
  font-weight: 800;
  text-decoration: none;
}

.home-help-card .home-help-action {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: #111315;
  background: var(--home-yellow);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
}

.home-help-card .home-help-action:hover {
  color: #111315;
  background: #f2b900;
}

.home-about-card {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--home-line);
  border-radius: 22px;
}

.home-about-card > p {
  max-width: 820px;
}

.home-about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  margin: 24px 0;
}

.home-about-facts span,
.home-experience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
}

.home-about-facts i,
.home-experience i {
  color: #bc8500;
}

.home-rovinj {
  background: var(--home-surface);
}

.home-rovinj-mobile-properties { display: none; }

.home-rovinj-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}

.home-rovinj-image {
  min-height: 440px;
  border-radius: 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.2), transparent), url('/img/header-static-1.jpg') center / cover;
}

.home-expert-card {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--home-line);
  border-radius: 22px;
  box-shadow: 0 16px 50px rgba(17,19,21,.08);
}

.home-expert-card > img {
  width: 100%;
  max-height: 520px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
}

.home-expert-card h3 { margin: 1.2rem 0 .1rem; font-weight: 900; }
.home-expert-card > div > strong { display: block; color: var(--home-muted); }
.home-experience { display: block; margin-top: .25rem; font-weight: 800; }

.home-expert-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--home-line);
}

.home-expert-facts span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--home-muted);
  font-weight: 700;
}

.home-expert-facts i { color: #bc8500; font-size: 1.3rem; }

.home-specific {
  background: var(--home-surface);
}

.home-property-group {
  margin-top: 38px;
}

.home-property-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}

.home-property-group-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 0 14px;
  font-size: .9rem;
}

.home-property-group-tabs .active {
  padding-bottom: 8px;
  border-bottom: 3px solid var(--home-yellow);
  color: var(--home-black);
}

.home-property-group-tabs a,
.home-property-group-tabs button {
  padding: 0 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--home-muted);
  background: transparent;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.home-property-group-tabs button:focus { outline: none; }
.home-property-group-tabs button:focus-visible { color: var(--home-black); border-bottom-color: var(--home-yellow); }

.home-property-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 31%);
  gap: 14px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.home-property-card {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  background: #fff;
  color: var(--home-black);
  text-decoration: none;
  scroll-snap-align: start;
}

.home-property-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.home-property-card > div { padding: 16px; }
.home-property-card h4 { min-height: 2.6em; margin: 0; font-size: 1.05rem; font-weight: 900; }
.home-property-card p { margin: .5rem 0; color: var(--home-muted); }

.home-category-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 0;
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 32, .12);
}

.home-property-carousel { position: relative; }
.home-property-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--home-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15,23,32,.12);
}
.home-property-arrow.prev { left: -16px; }
.home-property-arrow.next { right: -16px; }
.home-property-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.home-property-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c6c8ca; }
.home-property-dots i.active { background: var(--home-yellow); }

.home-category-card img,
.home-property-card.home-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-category-card > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 6, 9, .92), rgba(3, 6, 9, 0) 66%);
}

.home-category-card > div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 0;
}

.home-category-card h4 { min-height: 0; color: #fff; }
.home-category-card p { margin: 6px 0; color: rgba(255,255,255,.92); }
.home-category-card strong { color: rgba(255,255,255,.88); font-size: .86rem; }

.home-specific-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--home-black);
  color: #fff;
}

.home-specific-cta strong,
.home-specific-cta span { display: block; }
.home-specific-cta span { color: rgba(255,255,255,.68); }

.home-discover-tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--home-line);
}

.home-discover-tabs button {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--home-muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.home-discover-tabs button.active {
  border-bottom: 3px solid var(--home-yellow);
  color: var(--home-black);
}

.home-discover-panel { display: none; }
.home-discover-panel.active { display: block; }
.home-discover-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--home-yellow);
  color: var(--home-black);
  font-weight: 700;
  text-decoration: none;
}
.home-discover-carousel { position: relative; }
.home-discover-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.home-discover-track::-webkit-scrollbar { display: none; }
.home-discover-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.home-discover-track .home-news-feature { scroll-snap-align: start; }
.home-discover-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: #111315;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15,23,32,.12);
}
.home-discover-arrow.prev { left: -18px; }
.home-discover-arrow.next { right: -18px; }
.home-discover-dots { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.home-discover-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c6c8ca; }
.home-discover-dots i.active { background: var(--home-yellow); }

.home-news-feature {
  display: flex;
  min-height: 500px;
  align-items: flex-end;
  padding: clamp(24px, 5vw, 55px);
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
}

.home-news-feature:hover { color: #fff; }
.home-news-feature > div { max-width: 700px; }
.home-news-feature h3 { margin: .5rem 0; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1; }
.home-news-feature p { color: rgba(255,255,255,.88); }
.home-news-feature > div > span { font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.home-news-feature > div > strong { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; }
.home-news-feature > div > strong i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #111315; background: var(--home-yellow); }

.home-newsletter-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  color: var(--home-black);
  text-decoration: none;
}

.home-newsletter-card > i:first-child {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--home-yellow);
}

.home-newsletter-card strong,
.home-newsletter-card span { display: block; }
.home-newsletter-card span { color: var(--home-muted); font-size: .88rem; }

.home-mobile-discovery {
  display: none;
}

.home-mobile-only { display: none !important; }
.home-desktop-only { display: block; }
.home-legacy-header-content { display: contents; }

@media (max-width: 991px) {
  .home-redesign-header { min-height: 640px; }
  .home-quick-search-grid,
  .home-location-grid { grid-template-columns: repeat(2, 1fr); }
  .home-help-grid { grid-template-columns: 1fr; }
  .home-property-track { grid-auto-columns: minmax(245px, 48%); }
}

@media (max-width: 767px) {
  .home-desktop-only { display: none !important; }
  .home-mobile-only { display: block !important; }
  .home-responsive-header {
    min-height: 0;
    height: 500px;
    margin: 8px;
    padding: 8px 8px 28px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .home-responsive-header .header-nav .container { padding-inline: 0; }
  .home-responsive-header .header-nav { z-index: 5; margin-bottom: 0; }
  .home-responsive-header .header-nav nav {
    left: 50%;
    transform: translateX(-50%);
  }
  .home-responsive-header .header-nav nav > .container-fluid { position: relative; justify-content: flex-end; }
  .home-responsive-header .header-nav nav > .container-fluid > a:first-child {
    position: absolute;
    left: 50%;
    width: min(68vw, 265px);
    margin: 0 !important;
    transform: translateX(-57.3%);
  }
  .home-responsive-header .header-nav nav > .container-fluid > a:first-child img { width: 100% !important; height: auto !important; }
  .home-responsive-header .header-nav .navbar-toggler { margin-left: auto; }

  body.menu-open .home-responsive-header {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
  }

  body.menu-open .home-responsive-header .header-nav {
    position: fixed !important;
    z-index: 10000;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow-y: auto !important;
    background: #fff;
  }

  body.menu-open:not(.menu-closing) .home-responsive-header .header-nav {
    animation: home-mobile-menu-reveal .32s cubic-bezier(.22, .8, .25, 1) both;
  }

  body.menu-open.menu-closing .home-responsive-header .header-nav {
    animation: home-mobile-menu-hide .2s ease-in both;
  }

  body.menu-open .home-responsive-header .header-nav > .container {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
    padding: 0;
  }

  body.menu-open .home-responsive-header .header-nav nav {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 14px 18px 28px;
    overflow: visible;
    border-radius: 0;
    background: #fff;
    transform: none;
  }

  body.menu-open .home-responsive-header .header-nav nav > .container-fluid {
    align-content: flex-start;
    align-items: center;
    min-height: 100%;
    padding: 0;
  }

  body.menu-open .home-responsive-header .header-nav nav > .container-fluid > a:first-child {
    position: static;
    width: min(68vw, 265px);
    margin: 0 !important;
    transform: none;
  }

  body.menu-open .home-responsive-header .header-nav .navbar-toggler {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }

  body.menu-open .home-responsive-header #mobileNavbarSupportedContent {
    width: 100%;
    padding: 18px 0 36px;
  }

  body.menu-open .home-responsive-header #mobileNavbarSupportedContent.collapsing {
    transition: height .3s cubic-bezier(.22, .8, .25, 1);
  }

  body.menu-open:not(.menu-closing) .home-responsive-header #mobileNavbarSupportedContent > .nav > .nav-item {
    animation: home-mobile-menu-item-in .3s ease both;
  }

  body.menu-open:not(.menu-closing) .home-responsive-header #mobileNavbarSupportedContent > .nav > .nav-item:nth-child(2) { animation-delay: .025s; }
  body.menu-open:not(.menu-closing) .home-responsive-header #mobileNavbarSupportedContent > .nav > .nav-item:nth-child(3) { animation-delay: .05s; }
  body.menu-open:not(.menu-closing) .home-responsive-header #mobileNavbarSupportedContent > .nav > .nav-item:nth-child(4) { animation-delay: .075s; }
  body.menu-open:not(.menu-closing) .home-responsive-header #mobileNavbarSupportedContent > .nav > .nav-item:nth-child(5) { animation-delay: .1s; }
  body.menu-open:not(.menu-closing) .home-responsive-header #mobileNavbarSupportedContent > .nav > .nav-item:nth-child(n+6) { animation-delay: .125s; }

  body.menu-open .home-responsive-header .home-redesign-hero-content,
  body.menu-open .home-responsive-header .home-redesign-hero-bg {
    display: none !important;
  }

  @keyframes home-mobile-menu-reveal {
    from { opacity: 0; transform: translateY(-12px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes home-mobile-menu-hide {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-8px) scale(.995); }
  }

  @keyframes home-mobile-menu-item-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    body.menu-open .home-responsive-header .header-nav,
    body.menu-open .home-responsive-header #mobileNavbarSupportedContent > .nav > .nav-item {
      animation: none !important;
      transition: none !important;
    }
  }

  .home-responsive-header .home-redesign-hero-bg::after {
    background: linear-gradient(0deg, rgba(4, 8, 12, .9) 0%, rgba(4, 8, 12, .12) 66%, rgba(4, 8, 12, .12) 100%);
  }
  .home-responsive-header .home-redesign-hero-bg img { animation: none; object-position: 58% center; }
  .home-redesign-header {
    min-height: 0;
    height: 500px;
    margin: 8px;
    padding: 8px 8px 28px;
    border-radius: 18px;
  }

  .home-redesign-header .header-nav .container {
    padding-inline: 0;
  }

  .home-redesign-header .header-nav {
    z-index: 5;
  }

  .home-redesign-header .home-redesign-hero-bg img {
    object-position: 58% center;
  }

  .home-redesign-hero-content {
    width: calc(100% - 28px);
    margin: auto 14px 0;
    padding-bottom: 9px;
  }

  .home-redesign-hero-content h1 {
    max-width: 320px;
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .home-redesign-hero-content p {
    margin: .62rem 0 .8rem;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(1.12rem, 5.8vw, 1.42rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: .01em;
  }

  .home-redesign-primary-button { min-height: 40px; padding: .65rem 1rem; font-size: .72rem; }
  .home-redesign-sell-link {
    width: fit-content;
    margin-top: .85rem;
    margin-bottom: 7px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--home-yellow);
    font-size: .84rem;
  }

  .home-redesign > .home-redesign-featured,
  .home-redesign > .home-quick-search,
  .home-redesign > .home-locations {
    display: none;
  }

  .home-mobile-discovery {
    display: block;
    width: min(100% - 28px, 560px);
    margin-inline: auto;
    padding: 28px 0 8px;
  }

  .home-mobile-discovery section {
    margin: 0 0 30px;
  }

  .home-mobile-discovery h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.08;
  }

  .home-mobile-featured {
    padding: 14px 12px 12px !important;
    border: 1px solid #eceef0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(15,23,32,.04);
  }

  .home-mobile-section-title {
    padding-inline: 2px;
  }

  .home-mobile-feature-tabs,
  .home-mobile-region-tabs {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-mobile-feature-tabs {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .home-mobile-feature-tabs::-webkit-scrollbar,
  .home-mobile-region-tabs::-webkit-scrollbar,
  .home-mobile-feature-track::-webkit-scrollbar,
  .home-mobile-location-track::-webkit-scrollbar { display: none; }

  .home-mobile-feature-tabs button,
  .home-mobile-region-tabs button {
    flex: 0 0 auto;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #73777b;
    background: transparent;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .home-mobile-feature-tabs button {
    width: auto;
    padding-inline: 2px;
    font-size: .9rem;
    text-align: left;
  }

  .home-mobile-feature-tabs button.active,
  .home-mobile-region-tabs button.active {
    border-bottom-color: var(--home-yellow);
    color: var(--home-black);
  }

  .home-mobile-feature-carousel {
    position: relative;
    margin-inline: 18px;
  }

  .home-mobile-feature-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 12px;
    margin-top: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    cursor: grab;
  }

  .home-mobile-feature-track.is-dragging,
  .home-mobile-location-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

  .home-mobile-feature-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 1px solid #e3e5e7;
    border-radius: 50%;
    color: #111 !important;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    transform: translateY(-50%);
    -webkit-appearance: none;
    -webkit-text-fill-color: #111 !important;
  }

  .home-mobile-feature-arrow i {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
  }

  .home-mobile-feature-arrow.prev { left: -16px; }
  .home-mobile-feature-arrow.next { right: -16px; }

  .home-mobile-feature-card {
    position: relative;
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
    scroll-snap-align: center;
    text-decoration: none;
  }

  .home-mobile-feature-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-mobile-feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4,7,10,.88), rgba(4,7,10,0) 62%);
  }

  .home-mobile-feature-price {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    color: #15171a;
    background: #fff;
    font-size: .94rem;
  }

  .home-mobile-feature-copy {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .home-mobile-feature-copy h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1.38rem;
    line-height: 1.08;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .home-mobile-feature-copy .home-mobile-feature-subtitle {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--home-yellow);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .home-mobile-feature-copy .home-mobile-feature-subtitle::before {
    width: 25px;
    height: 1px;
    flex: 0 0 25px;
    background: currentColor;
    content: "";
  }
  .home-mobile-feature-copy span { display: block; margin-top: 5px; color: var(--home-yellow); font-size: .88rem; font-weight: 800; text-transform: uppercase; }

  .home-mobile-slider-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
  .home-mobile-slider-dots i { width: 4px; height: 4px; border-radius: 50%; background: #d8dadd; }
  .home-mobile-slider-dots i.active { width: 14px; border-radius: 999px; background: var(--home-yellow); }

  .home-mobile-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .home-mobile-quick h2,
  .home-mobile-locations h2 { font-size: 1.72rem; line-height: 1.08; }

  .home-mobile-quick-grid a {
    display: grid;
    min-height: 112px;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: 8px 10px 10px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    color: var(--home-black);
    background: #fff;
    box-shadow: 0 3px 10px rgba(16,24,32,.05);
    font-size: .94rem;
    font-weight: 800;
    text-decoration: none;
  }

  .home-mobile-quick-grid img { width: 100%; height: 72px; object-fit: contain; }

  .home-mobile-region-tabs { gap: 13px; margin-top: 10px; }
  .home-mobile-region-tabs button { font-size: 1.08rem; text-transform: none; }

  .home-mobile-location-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    cursor: grab;
  }

  .home-mobile-location-card {
    position: relative;
    display: flex;
    min-height: 0;
    aspect-ratio: 3 / 4;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    border-radius: 10px;
    color: #fff;
    background: var(--home-location-image, url('/img/header-static-1.jpg')) center/cover;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
  }

  .home-mobile-location-card::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 42%;
    background: linear-gradient(to top, rgba(0,0,0,.58) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    content: "";
  }

  .home-mobile-location-card-2 { background-position: 28% center; }
  .home-mobile-location-card-3 { background-position: 65% center; }
  .home-mobile-location-card-4 { background-position: right center; }
  .home-mobile-location-card strong { position: relative; z-index: 2; font-size: 1.15rem; text-shadow: 0 1px 4px rgba(0,0,0,.82); }
  .home-mobile-location-card span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: rgba(255,255,255,.88);
    font-size: .94rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.82);
  }

  .home-mobile-location-progress {
    position: relative;
    width: 82px;
    height: 4px;
    margin: 12px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e0e2e4;
  }

  .home-mobile-location-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: var(--home-yellow);
    transform: translateX(0);
    transition: transform .12s linear;
  }

  .home-redesign-container,
  .home-redesign-featured > .properties {
    width: min(100% - 28px, 560px);
  }

  .home-redesign-section,
  .home-redesign-featured {
    padding-block: 40px !important;
  }

  .home-redesign-section-heading { margin-bottom: 18px; }
  .home-redesign-section-heading h2,
  .home-redesign h2 { font-size: 2rem; }

  .home-redesign-featured .f-carousel__slide img {
    height: 330px;
  }

  .home-redesign-featured .f-carousel__viewport {
    grid-auto-columns: 88%;
    gap: 12px;
  }

  .home-quick-search-grid { gap: 10px; }
  .home-search-tile { min-height: 130px; padding: 10px; }
  .home-search-tile img { height: 70px; }

  .home-location-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 42%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .home-location-card {
    min-height: 210px;
    scroll-snap-align: start;
  }

  .home-help-card {
    grid-template-columns: 50% 50%;
    min-height: 210px;
    align-items: center;
    border-color: #252c31;
    border-radius: 14px;
  }

  .home-help-card-buyer { grid-template-columns: 50% 50%; }

  .home-help-card > img {
    width: calc(100% - 20px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 10px;
    border-radius: 12px;
  }

  .home-help .home-redesign-section-heading h2 { font-size: 1.72rem; line-height: 1.08; }
  .home-help-card > div { padding: 14px 14px 14px 10px; }
  .home-help-card-buyer > div { padding: 14px 10px 14px 14px; }
  .home-help-card h3 { margin-bottom: .4rem; font-size: 1.12rem; line-height: 1.12; }
  .home-help-card strong { color: #7c621b; font-size: .96rem; line-height: 1.3; }
  .home-help-card p { margin: .45rem 0 .75rem; font-size: .96rem; line-height: 1.48; }
  .home-help-card .home-help-action {
    min-height: 0;
    padding: 0 0 3px;
    border-bottom: 1px solid #b17d00;
    border-radius: 0;
    color: #846300;
    background: transparent;
    font-size: .88rem;
    font-weight: 700;
  }

  .home-help-card .home-help-action:hover {
    color: #111315;
    background: transparent;
    border-bottom-color: #111315;
  }

  .home-about-card {
    padding: 20px 18px;
    border-color: #eceeef;
    border-radius: 12px;
    background: #171c20;
    box-shadow: 0 8px 24px rgba(15,23,32,.16);
  }
  .home-about { padding-block: 28px !important; background: #f3f4f4; }
  .home-about-card .home-kicker { margin-bottom: .55rem; color: var(--home-yellow); font-size: .68rem; }
  .home-about-card h2 { max-width: 330px; color: #fff; font-size: 1.72rem; line-height: 1.1; }
  .home-about-card > p { margin: .7rem 0 .85rem; color: rgba(255,255,255,.76); font-size: 1.01rem; line-height: 1.55; }
  .home-about-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
  }
  .home-about-facts span {
    min-width: 0;
    gap: 5px;
    color: rgba(255,255,255,.86);
    font-size: .78rem;
    line-height: 1.25;
  }
  .home-about-facts i { color: var(--home-yellow); font-size: 1rem; }
  .home-about-card > .home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--home-yellow);
    color: #fff;
    font-size: .94rem;
    font-weight: 700;
  }
  .home-about-card > .home-text-link i { color: var(--home-yellow); }

  .home-rovinj {
    padding-top: 22px !important;
    padding-bottom: 30px !important;
    background: #fff;
  }

  .home-rovinj-grid { display: block; }
  .home-rovinj-image { display: none; }
  .home-rovinj-grid > div:first-child > h2 { color: #151a1f; font-size: 1.72rem; line-height: 1.1; }
  .home-rovinj-grid > div:first-child > p { margin: .72rem 0 .85rem; color: #3e464d; font-size: 1.15rem; line-height: 1.55; }
  .home-rovinj-grid > div:first-child > .home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--home-yellow);
    color: #293137;
    font-size: .94rem;
    font-weight: 700;
  }
  .home-rovinj-grid > div:first-child > .home-text-link i { color: var(--home-yellow); }

  .home-rovinj-mobile-properties {
    display: block;
    margin-top: 22px;
  }

  .home-rovinj-mobile-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-rovinj-mobile-tabs::-webkit-scrollbar,
  .home-rovinj-mobile-track::-webkit-scrollbar { display: none; }

  .home-rovinj-mobile-tabs button {
    flex: 0 0 auto;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #73777b;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .home-rovinj-mobile-tabs button.active { border-bottom-color: var(--home-yellow); color: var(--home-black); }

  .home-rovinj-mobile-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    gap: 9px;
    margin-top: 14px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    cursor: grab;
  }

  .home-rovinj-mobile-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 9px;
    color: #fff;
    scroll-snap-align: start;
    text-decoration: none;
  }

  .home-rovinj-mobile-card > img,
  .home-rovinj-mobile-card > span { position: absolute; inset: 0; width: 100%; height: 100%; }
  .home-rovinj-mobile-card > img { object-fit: cover; }
  .home-rovinj-mobile-card > span { background: linear-gradient(0deg, rgba(3,6,9,.9), rgba(3,6,9,0) 64%); }
  .home-rovinj-mobile-card > div { position: absolute; right: 11px; bottom: 12px; left: 11px; }
  .home-rovinj-mobile-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.02rem;
    line-height: 1.12;
    letter-spacing: -.015em;
    text-shadow: 0 1px 3px rgba(0,0,0,.42);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .home-rovinj-mobile-card small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 7px;
    color: rgba(255,255,255,.92);
    font-size: .93rem;
    font-weight: 400;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0,0,0,.38);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-rovinj-mobile-progress {
    position: relative;
    width: calc(100% - 24px);
    height: 4px;
    margin: 14px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e0e2e4;
  }

  .home-rovinj-mobile-progress span { position: absolute; inset: 0 auto 0 0; width: 18%; border-radius: inherit; background: #1b2025; transition: transform .12s linear; }

  .home-rovinj-grid { grid-template-columns: 1fr; }
  .home-rovinj-image { min-height: 300px; grid-row: 1; }

  .home-expert { padding-block: 28px !important; background: #fff; }
  .home-expert-card {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17,19,21,.09);
  }

  .home-expert-card > img {
    width: 100%;
    height: 330px;
    min-height: 0;
    max-height: none;
    border-radius: 12px;
    object-position: center top;
  }

  .home-expert-content { min-width: 0; padding: 10px 6px 4px; }
  .home-expert-content .home-kicker { margin-bottom: .65rem; font-size: .66rem; letter-spacing: .14em; }
  .home-expert-content .home-kicker::after { display: block; width: 30px; height: 2px; margin-top: 8px; background: var(--home-yellow); content: ''; }
  .home-expert-content h2 { font-size: 1.72rem; line-height: 1.08; }
  .home-expert-content p { margin: .85rem 0; font-size: .9rem; line-height: 1.5; }
  .home-expert-card h3 { margin: .8rem 0 .1rem; font-size: .85rem; line-height: 1.2; }
  .home-expert-card > div > strong { font-size: .82rem; line-height: 1.3; }
  .home-experience { margin-top: .25rem; font-size: .82rem; line-height: 1.3; }
  .home-expert-facts { gap: 7px; margin-top: .75rem; padding-top: .7rem; }
  .home-expert-facts span { gap: 5px; font-size: .7rem; line-height: 1.15; }
  .home-expert-facts i { flex: 0 0 auto; font-size: .9rem; }

  .home-property-group { margin-top: 34px; }
  .home-property-group-heading { margin-bottom: 7px; }
  .home-property-group-heading h3 { font-size: 1.35rem; }
  .home-property-group-tabs { gap: 28px; margin-bottom: 12px; overflow-x: auto; font-size: 1rem; scrollbar-width: none; }
  .home-property-group-tabs::-webkit-scrollbar { display: none; }
  .home-property-track { grid-auto-columns: 78%; gap: 12px; }
  .home-property-card:not(.home-category-card) img { height: 220px; }
  .home-category-card { aspect-ratio: 4 / 5; }
  .home-category-card > div { right: 14px; bottom: 15px; left: 14px; }
  .home-category-card h4 { font-size: 1.22rem; line-height: 1.08; }
  .home-category-card p { font-size: 1.08rem; line-height: 1.25; }
  .home-category-card strong { font-size: .94rem; }
  .home-property-arrow { width: 38px; height: 38px; }
  .home-property-arrow.prev { left: -13px; }
  .home-property-arrow.next { right: -13px; }

  .home-specific-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .home-specific-cta a { width: fit-content; }
  .home-news-feature { min-height: 420px; padding: 24px; }
  .home-news-feature h3 { font-size: 2rem; }

  .home-discover { padding-block: 34px !important; }
  .home-discover .home-redesign-section-heading { margin-bottom: 14px; }
  .home-discover .home-redesign-section-heading h2 { font-size: 1.72rem; line-height: 1.08; }
  .home-discover-tabs { justify-content: flex-start; gap: 32px; margin-bottom: 16px; }
  .home-discover-tabs button { font-size: 1.08rem; }
  .home-discover-all-link { margin-bottom: 14px; font-size: 1.06rem; }
  .home-discover-track .home-news-feature {
    min-height: 430px;
    padding: 24px 22px;
    border-radius: 20px;
    background-position: center;
  }
  .home-discover-track .home-news-feature h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: .45rem 0 .55rem;
    font-size: 1.72rem;
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .home-discover-track .home-news-feature p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 .4rem;
    font-size: 1.1rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .home-discover-arrow { width: 42px; height: 42px; }
  .home-discover-arrow.prev { left: -14px; }
  .home-discover-arrow.next { right: -14px; }
}

@media (max-width: 420px) {
  .home-help-card { grid-template-columns: 1fr; }
  .home-help-card > img { height: 215px; }
  .home-location-grid { grid-auto-columns: 54%; }
  .home-property-track { grid-auto-columns: 86%; }
}
