:root {
  --ink: #030711;
  --muted: #626a76;
  --line: #edf0f3;
  --navy: #071834;
  --navy-soft: #0b3764;
  --surface: #ffffff;
  --soft: #f7f8fa;
  --icon-blue: #184f67;
  --shadow: 0 9px 26px rgba(3, 7, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
  padding: 18px 36px;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #050505;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.28rem;
  line-height: 1;
}

.search-pill {
  display: inline-flex;
  align-items: center;
  min-height: 66px;
  padding: 7px 8px 7px 20px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #e2e5ea;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.search-pill span:not(.search-circle) {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-right: 1px solid #eef0f4;
}

.search-pill span:first-child {
  padding-left: 0;
}

.search-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: var(--navy-soft);
  border-radius: 50%;
  font-size: 24px;
}

.signin-link {
  justify-self: end;
  color: #3d4148;
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 400;
}

.category-rail {
  position: relative;
  top: auto;
  z-index: 1020;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 126px;
  padding: 22px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.category-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-item {
  display: inline-flex;
  flex: 0 0 98px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  color: #171a20;
  background: transparent;
  border: 0;
  text-align: center;
}

.category-item i {
  color: #111111;
  font-size: 26px;
  line-height: 1;
}

.category-item span {
  max-width: 96px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.category-item.active i,
.category-item:hover i {
  color: var(--navy-soft);
}

.rail-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #6a7078;
  background: #ffffff;
  border: 1px solid #d9dde3;
  border-radius: 50%;
}

.hero-section {
  padding: 58px 0 84px;
  background: linear-gradient(180deg, #fdfdfd 0%, #ffffff 100%);
}

.hero-section h1 {
  margin: 0 0 12px;
  color: #02040a;
  font-size: clamp(30px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-section p {
  margin: 0 0 24px;
  color: #1d2229;
  font-size: 20px;
  font-weight: 400;
}

.luxury-btn {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: #0d274f;
  --bs-btn-hover-border-color: #0d274f;
  --bs-btn-active-bg: #102a55;
  --bs-btn-active-border-color: #102a55;
  min-width: 104px;
  padding: 10px 25px;
  border-radius: 999px;
  font-weight: 500;
}

.listing-shell {
  width: min(100% - 72px, 1700px);
  margin: 0 auto;
}

.neighborhood-band,
.site-footer {
  width: min(100% - 72px, 1188px);
  margin: 0 auto;
}

.listing-block {
  margin-bottom: 56px;
}

.listing-block:first-child {
  margin-top: 0;
}

.section-title {
  margin: 0 0 32px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0;
}

.property-card {
  position: relative;
  height: 100%;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(3, 7, 17, 0.04);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.property-card:hover {
  background: #ffffff;
  border-color: #d8dbe1;
  box-shadow: 0 10px 24px rgba(3, 7, 17, 0.08);
  transform: translateY(-2px);
}

.property-media {
  position: relative;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: #dde3ea;
  border-radius: 10px;
}

.property-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 220ms ease, transform 600ms ease;
}

.property-media img.active {
  opacity: 1;
  transform: scale(1);
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 8px 14px;
  color: #ffffff;
  background: #030303;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #18304c;
  background: rgba(237, 243, 250, 0.86);
  border: 0;
  border-radius: 6px;
  font-size: 15px;
}

.icon-button.active {
  color: #ffffff;
  background: var(--navy-soft);
}

.slide-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
  border: 0;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.property-media:hover .slide-button,
.property-media:focus-within .slide-button,
.property-card:hover .slide-button {
  opacity: 1;
}

.slide-button.prev {
  left: 10px;
}

.slide-button.next {
  right: 10px;
}

.media-dots {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.media-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, 0.78);
  border: 0;
  border-radius: 50%;
}

.media-dot.active {
  width: 9px;
  height: 9px;
  background: #ffffff;
}

.property-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 18px;
  padding: 14px 6px 4px;
}

.property-info h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #050608;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
}

.property-price,
.property-location {
  margin: 0;
  color: #565d67;
  font-size: 21px;
}

.property-location {
  justify-self: end;
  color: #20242a;
}

.property-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 12px 0 4px;
  border-top: 1px solid #eef0f3;
}

.fact {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #171b20;
  font-size: 13px;
  white-space: nowrap;
}

.fact i {
  color: var(--icon-blue);
  font-size: 18px;
  line-height: 1;
}

.property-viewport {
  overflow: hidden;
  padding: 0 2px 24px;
}

.property-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.property-slide {
  flex: 0 0 calc((100% - 48px) / 2.5);
}

.section-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.pager-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #1b2028;
  background: transparent;
  border: 0;
  font-size: 24px;
}

.pager-dots {
  display: inline-flex;
  gap: 9px;
}

.pager-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #d2d6dc;
  border: 0;
  border-radius: 50%;
}

.pager-dot.active {
  background: var(--navy);
}

.neighborhood-band {
  padding: 10px 0 54px;
}

.neighborhood-band h2 {
  margin: 0 0 26px;
  font-size: 23px;
  font-weight: 600;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.neighborhood-grid h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-links a {
  padding: 7px 11px;
  color: #3e4652;
  background: #ffffff;
  border: 1px solid #e3e7ed;
  border-radius: 999px;
  font-size: 13px;
}

.site-footer {
  padding: 44px 0 118px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 38px;
}

.footer-brand {
  margin-bottom: 18px;
  font-size: 22px;
}

.footer-copy,
.site-footer p {
  max-width: 360px;
  margin: 0;
  color: #5b6370;
  font-size: 14px;
  line-height: 1.65;
}

.site-footer h2 {
  margin: 0 0 15px;
  font-size: 15px;
  font-weight: 600;
}

.site-footer a:not(.brand-mark) {
  display: block;
  margin-bottom: 10px;
  color: #454d59;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 20px;
  color: #6b7280;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-bottom a {
  display: inline !important;
  margin: 0 !important;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 34px;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 16px 24px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #edf0f3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.floating-contact span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.08rem;
  text-align: center;
}

.floating-contact i {
  color: #26d366;
  font-size: 34px;
}

.sharp-modal {
  border: 0;
  border-radius: 0;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.sharp-modal .modal-header {
  padding: 22px 26px;
}

.filter-form,
.enquiry-form {
  padding: 26px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.enquiry-form {
  display: grid;
  gap: 12px;
}

.form-control,
.form-select {
  min-height: 46px;
  border-radius: 0;
}

@media (max-width: 1199.98px) {
  .listing-shell {
    width: min(100% - 42px, 1120px);
  }

  .neighborhood-band,
  .site-footer {
    width: min(100% - 42px, 960px);
  }

  .property-track {
    gap: 18px;
  }

  .property-slide {
    flex-basis: calc((100% - 36px) / 2.5);
  }

  .property-card {
    padding: 8px;
  }

  .status-badge {
    padding: 7px 12px;
    font-size: 12px;
  }

  .icon-button {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .property-info {
    padding: 12px 4px 4px;
  }

  .property-info h3 {
    font-size: 17px;
  }

  .property-price,
  .property-location {
    font-size: 13px;
  }

  .property-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .fact {
    font-size: 12px;
    gap: 4px;
  }

  .fact i {
    font-size: 16px;
  }
}

@media (max-width: 991.98px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 18px 22px 16px;
  }

  .brand-mark {
    font-size: 20px;
  }

  .search-pill {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    min-height: 58px;
    order: 3;
  }

  .search-pill span:not(.search-circle) {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
  }

  .signin-link {
    grid-column: 2;
  }

  .category-rail {
    top: auto;
    min-height: 104px;
    padding: 14px 16px;
  }

  .category-item {
    flex-basis: 86px;
  }

  .hero-section {
    padding: 44px 0 58px;
  }

  .hero-section p {
    font-size: 17px;
  }

  .footer-grid,
  .neighborhood-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .header-inner {
    padding-inline: 16px;
  }

  .brand-mark {
    font-size: 18px;
    letter-spacing: 0.2rem;
  }

  .search-pill {
    overflow: hidden;
    padding-left: 13px;
  }

  .search-pill span:not(.search-circle) {
    min-width: 0;
    padding: 0 8px;
    font-size: 11px;
  }

  .search-circle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .category-rail {
    top: auto;
    grid-template-columns: 1fr auto;
  }

  .category-scroller {
    gap: 8px;
  }

  .category-item {
    flex-basis: 76px;
  }

  .category-item i {
    font-size: 22px;
  }

  .category-item span {
    font-size: 11px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .listing-shell,
  .neighborhood-band,
  .site-footer {
    width: min(100% - 28px, 540px);
  }

  .property-track {
    gap: 18px;
  }

  .property-slide {
    flex-basis: 100%;
  }

  .property-card {
    padding: 10px;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: 21px;
  }

  .property-media {
    aspect-ratio: 1.28 / 1;
  }

  .status-badge {
    font-size: 14px;
  }

  .property-info {
    grid-template-columns: 1fr;
  }

  .property-location {
    justify-self: start;
  }

  .neighborhood-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-contact {
    right: 14px;
    bottom: 18px;
    padding: 12px 13px 12px 16px;
  }

  .floating-contact span {
    font-size: 11px;
  }

  .floating-contact i {
    font-size: 28px;
  }
}
