/* =========================
   TITAN ESTATE DESIGN TOKENS
   ========================= */

:root {
  --color-teal: #1f363c;
  --color-gold: #dcb65c;
  --color-warm-white: #f8f7f4;
  --color-white: #ffffff;
  --color-text: #2a2a2a;
  --color-border: #d9d9d9;

  --font-heading:
    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-hero: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;

  --container-width: 1240px;

  --radius-small: 8px;
  --radius-medium: 16px;

  --transition: 220ms ease;
}

/* =========================
   RESET
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-warm-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}


img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================
   SHARED
   ========================= */

.container {
  width: min(calc(100% - 48px), var(--container-width));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary,
.button--header {
  color: var(--color-teal);
  background: var(--color-gold);
}

.button--primary:hover,
.button--header:hover {
  background: #e2c574;
}

.button--secondary {
  color: var(--color-gold);
  background: rgba(10, 15, 17, 0.72);
  border-color: var(--color-gold);
}

.button--secondary:hover {
  color: var(--color-teal);
  background: var(--color-gold);
}

/* =========================
   HEADER
   ========================= */

/* =========================
   STICKY HEADER
   ========================= */

.site-header {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;

  background-color: rgb(31 54 60 / 0%);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  box-shadow: 0 0 0 rgb(0 0 0 / 0%);

  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);

  transition:
    background-color 450ms ease,
    border-color 450ms ease,
    box-shadow 450ms ease,
    backdrop-filter 450ms ease,
    -webkit-backdrop-filter 450ms ease;
}

.navigation {
  display: flex;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 88px;
  justify-content: space-between;
  transition:
    min-height 450ms ease,
    padding 450ms ease;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: transparent;
}

.brand__logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: transparent;
  transition:
    width 450ms ease,
    height 450ms ease,
    transform 450ms ease;
}

.navigation__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.button--header {
  align-self: center;
  transition:
    min-height 450ms ease,
    padding 450ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.site-header.is-scrolled {
  background-color: rgb(31 54 60 / 90%);
  border-bottom-color: rgb(220 182 92 / 28%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 16%);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled .navigation {
  min-height: 74px;
}

.site-header.is-scrolled .brand__logo {
  width: 62px;
  height: 62px;
}

.site-header.is-scrolled .button--header {
  min-height: 42px;
}

.nav-link {
  position: relative;

  padding: 12px 0;

  color: var(--color-white);

  font-size: 0.875rem;
  font-weight: 600;

  transition: color var(--transition);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;

  height: 2px;

  content: "";

  background: var(--color-gold);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Header after scrolling */

.site-header.is-scrolled {
  background: rgb(31 54 60 / 88%);
  border-bottom-color: rgb(220 182 92 / 25%);

  box-shadow: 0 12px 36px rgb(0 0 0 / 16%);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled .navigation {
  min-height: 70px;
}

.site-header.is-scrolled .brand__logo {
  width: 54px;
  height: 54px;
}

.site-header.is-scrolled .button--header {
  min-height: 42px;
}

/* Header CTA */

.button--header {
  min-height: 46px;
  padding-inline: 22px;

  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.button--header:hover {
  box-shadow: 0 12px 30px rgb(220 182 92 / 22%);
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  display: flex;
  min-height: 850px;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);

  background-image: url("../Assets/images/hero/Hero.png");
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(31, 54, 60, 0.96) 0%,
      rgba(31, 54, 60, 0.83) 30%,
      rgba(31, 54, 60, 0.35) 57%,
      rgba(31, 54, 60, 0) 82%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero__eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 500;
}

.hero__title {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__title span {
  color: var(--color-gold);
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 44px;
}

/* =========================
   TEMPORARY SECTIONS
   ========================= */

.placeholder-section {
  min-height: 500px;
  padding: 120px 0;
}

.placeholder-section:nth-child(even) {
  background: var(--color-white);
}

.placeholder-section h2 {
  margin: 0;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 3rem;
  text-align: center;
  text-transform: uppercase;
}

/* =========================
   RESPONSIVE STARTER
   ========================= */
.mobile-menu-button {
  display: none;

  .mobile-menu-button {
  display: none;

  width: 46px;
  height: 46px;
  padding: 0;

  background: transparent;
  border: 1px solid rgb(220 182 92 / 45%);
  border-radius: 8px;

  cursor: pointer;
}

.mobile-menu-button span {
  display: block;

  width: 22px;
  height: 2px;
  margin: 5px auto;

  background: var(--color-white); 
  border-radius: 999px;

  transition:
    transform 250ms ease,
    opacity 250ms ease;
}

}
@media (max-width: 1100px) {
  .navigation,
  .site-header.is-scrolled .navigation {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    min-height: 72px;
  }

  .brand__logo,
  .site-header.is-scrolled .brand__logo {
    width: 56px;
    height: 56px;
  }

  .button--header {
    display: none;
  }

  .mobile-menu-button {
    position: relative;
    z-index: 2200;

    display: flex;
    grid-column: 3;
    justify-self: end;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .navigation__menu {
    position: fixed;
    z-index: 2100;

    top: 72px;
    right: 0;
    bottom: 0;

    display: flex;
    width: min(380px, 88vw);

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;

    padding: 28px 24px 40px;

    background: rgb(31 54 60 / 100%);
    border-left: 1px solid rgb(220 182 92 / 28%);

    box-shadow: -18px 0 50px rgb(0 0 0 / 28%);

    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 300ms ease,
      visibility 300ms ease;
  }

  .navigation__menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .navigation__menu .nav-link {
    width: 100%;
    padding: 18px 10px;

    color: var(--color-white);
    border-bottom: 1px solid rgb(255 255 255 / 10%);

    font-size: 1rem;
  }

  .navigation__menu .nav-link::after {
    display: none;
  }

  .mobile-menu-cta {
    display: flex;
    width: 100%;
    margin-top: 28px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 32px), var(--container-width));
  }

  .hero {
    min-height: 760px;
    background-position: 62% center;
  }

  .hero__overlay {
    background: rgba(31, 54, 60, 0.7);
  }

  .hero__title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }
}
/* =========================
   ABOUT PROJECT
   ========================= */

.about-section {
  padding: 110px 0 130px;
  background: var(--color-warm-white);
}

/* Heading */

.about-heading {
  margin-bottom: 72px;
  text-align: center;
}

.about-heading h2 {
  margin: 0;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.about-heading p {
  margin: 18px 0 0;
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1.5;
}

/* Intro layout */

.about-overview{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:80px;

}

.about-description {
  max-width: 600px;
  padding-top: 10px;
  font-size: 1.15rem;
  line-height: 1.85;
  width:55%
}

.about-description p {
  margin: 0;
}

.about-description p + p {
  margin-top: 26px;
}

/* Facts rectangle */

.facts-card {
  display: grid;
  gap: 28px;
  padding: 38px 42px;
  color: var(--color-white);
  background: var(--color-teal);
  border: 1px solid rgba(220, 182, 92, 0.75);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(31, 54, 60, 0.16);
  width:40%;
}

.fact {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.fact-icon {
  color: var(--color-gold);
  font-size: 1.4rem;
  line-height: 1;
}

.fact-label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
}

.fact strong {
  display: block;
  color: var(--color-gold);
  font-size: 1.08rem;
  font-weight: 700;
}

/* Timeline */

.project-progress {
  max-width: 940px;
  margin: 105px auto 0;
  text-align: center;
}

.project-progress h3 {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
}

.current-stage {
  margin: 8px 0 44px;
  color: var(--color-gold);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline {
  position: relative;
}

.timeline-line {
  position: absolute;
  z-index: 0;
  top: 8px;
  right: 10%;
  left: 10%;
  height: 4px;
  overflow: hidden;
  background: #d8d8d8;
  border-radius: 999px;
}

.timeline-progress {
  width: 25%;
  height: 100%;
  background: var(--color-gold);
}

.timeline-items {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.timeline-item {
  text-align: center;
}

.timeline-dot {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 17px;
  background: var(--color-warm-white);
  border: 3px solid #d8d8d8;
  border-radius: 50%;
}

.timeline-item--completed .timeline-dot {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.timeline-item--active .timeline-dot {
  background: var(--color-teal);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 6px rgba(220, 182, 92, 0.18);
}

.timeline-item p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Quality cards */

.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
  max-width: 1080px;
  margin: 110px auto 0;
}

.quality-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-teal);
  border: 1px solid rgba(220, 182, 92, 0.6);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(31, 54, 60, 0.14);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(31, 54, 60, 0.2);
}

.quality-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  background: rgba(255, 255, 255, 0.045);
  border-right: 1px solid rgba(220, 182, 92, 0.35);
  font-size: 3.2rem;
}

.quality-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 32px;
}

.quality-content h3 {
  margin: 0 0 19px;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.15;
}

.quality-content ul {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.quality-content li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  line-height: 1.5;
}

.quality-content li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--color-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.quality-button {
  min-width: 116px;
  min-height: 38px;
  margin-top: auto;
  padding: 0 22px;
  color: var(--color-teal);
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.quality-button:hover {
  color: var(--color-gold);
  background: transparent;
  transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 900px) {
  .about-overview {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-description {
    max-width: 680px;
  }

  .facts-card {
    width: 100%;
    max-width: 540px;
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .about-section {
    padding: 85px 0 95px;
  }

  .about-heading {
    margin-bottom: 50px;
  }

  .facts-card {
    padding: 30px 24px;
  }

  .project-progress {
    margin-top: 80px;
  }

  .timeline {
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .timeline-line {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 8px;

    display: block;
    width: 4px;
    height: auto;
  }

  .timeline-progress {
    width: 100%;
    height: 25%;
  }

  .timeline-items {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    min-height: 58px;
    text-align: left;
  }

  .timeline-item:last-child {
    min-height: 20px;
  }

  .timeline-dot {
    margin: 0;
  }

  .timeline-item p {
    padding-top: 1px;
  }

  .quality-grid {
    margin-top: 80px;
  }

  .quality-card {
    grid-template-columns: 1fr;
  }

  .quality-icon {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid rgba(220, 182, 92, 0.35);
  }
}
/* =========================
   APARTMENTS
   ========================= */

.apartments-section {
  overflow: hidden;
  padding: 120px 0 135px;
  background: var(--color-white);
}

.apartments-heading {
  margin-bottom: 34px;
}

.apartments-counter {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: var(--color-teal);
  font-size: 1.15rem;
  font-weight: 600;
}

.apartments-instruction {
  margin: 12px 0 42px;
  color: rgba(42, 42, 42, 0.65);
  font-size: 0.85rem;
  text-align: center;
}

.apartments-carousel {
  position: relative;
  width: 100%;
  margin-inline: auto;
}

.apartments-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 26px 0 50px;
  touch-action: pan-y;
}

.apartments-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 32px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.apartments-track.is-animated {
  transition: transform 580ms cubic-bezier(.22, 1, .36, 1);
}

.apartments-track.is-resetting,
.apartments-track.is-resetting .apartment-slide,
.apartments-track.is-resetting .apartment-slide__button,
.apartments-track.is-resetting .apartment-summary {
  transition: none !important;
}

.apartment-slide {
  position: relative;
  z-index: 1;
  flex: 0 0 min(760px, 62vw);
  opacity: 0.42;
  filter: brightness(0.45) saturate(0.82);
  transform: scale(0.86);
  transform-origin: center center;
  transition:
    opacity 580ms ease,
    filter 580ms ease,
    transform 580ms cubic-bezier(.22, 1, .36, 1);
}

.apartment-slide.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.apartment-slide__button {
  position: relative;
  display: block;
  width: 100%;
  height: 600px;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-align: left;

  background: var(--color-white);
  border: 1px solid rgba(31, 54, 60, 0.18);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(31, 54, 60, 0.05);
  cursor: pointer;
  transition: box-shadow var(--transition);
}

.apartment-slide.is-active .apartment-slide__button {
  box-shadow: 0 4px 16px rgba(31, 54, 60, 0.07);
}

.apartment-slide__button:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: -5px;
}

.apartment-slide__button img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: contain;
  background: var(--color-white);
  pointer-events: none;
}

.apartment-summary {
  position: absolute;
  bottom: 40px;
  width: 220px;
  padding: 24px;
  opacity: 0;
  color: var(--color-white);
  background-color: rgba(31, 54, 60, 0.5);
  border: 1px solid rgba(220, 182, 92, 0.55);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 280ms ease,
    transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.apartment-slide.is-active .apartment-summary {
  opacity: 1;
  transform: translateY(0);
}

.summary-left {
  right: auto;
  left: 24px;
}

.summary-right {
  right: 24px;
  left: auto;
}

.apartment-summary h3 {
  margin: 0 0 18px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.55rem;
}

.apartment-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apartment-summary li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.apartment-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.apartment-status--available .status-dot {
  background: #4caf50;
}

.apartment-status--reserved .status-dot {
  background: #f4b400;
}

.apartment-status--sold .status-dot {
  background: #d93025;
}

.slider-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--color-teal);
  background: var(--color-gold);
  border: 1px solid var(--color-teal);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.slider-arrow:hover {
  color: var(--color-gold);
  background: var(--color-teal);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow--left {
  left: calc(50% - 405px);
}

.slider-arrow--right {
  right: calc(50% - 405px);
}

.apartments-live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

@media (hover: hover) {
  .apartment-slide.is-active .apartment-slide__button:hover {
    box-shadow: 0 6px 20px rgba(31, 54, 60, 0.09);
  }
}

@media (max-width: 900px) {
  .apartments-track {
    gap: 24px;
  }

  .slider-arrow--left {
    left: 12px;
  }

  .slider-arrow--right {
    right: 12px;
  }
}

@media (max-width: 700px) {
  .apartments-section {
    padding: 72px 0 90px;
  }

  .apartments-heading {
    margin-bottom: 26px;
    padding-inline: 18px;
    text-align: center;
  }

  .apartments-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1;
  }

  .apartments-heading p {
    max-width: 320px;
    margin: auto;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .apartments-counter {
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
  }

  .apartments-instruction {
    margin: 0 0 30px;
    color: rgb(31 54 60 / 60%);
    font-size: 0.8rem;
    text-align: center;
  }

  .apartments-viewport {
    padding: 16px 0 30px;
  }

  .apartments-track {
    gap: 16px;
  }

  .apartment-slide {
    flex-basis: min(430px, calc(100vw - 64px));
    transform: scale(0.92);
  }

  .apartment-slide__button {
    height: 520px;
    border-color: rgb(31 54 60 / 12%);
    border-radius: 18px;
    box-shadow: 0 3px 12px rgb(31 54 60 / 6%);
  }

  .apartment-slide__button img {
    height: 520px;
    padding: 18px 14px 150px;
    object-position: center;
    background: #fafaf9;
  }

  .apartment-summary {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    padding: 20px;
    background: rgb(31 54 60 / 78%);
    border-color: rgb(220 182 92 / 38%);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgb(0 0 0 / 18%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .apartment-summary h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
  }

  .slider-arrow {
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--color-gold);
    background: var(--color-teal);
    border-color: rgb(220 182 92 / 45%);
    box-shadow: 0 8px 20px rgb(0 0 0 / 16%);
    font-size: 1.35rem;
    transition: none;
  }

  .slider-arrow:hover,
  .slider-arrow:active,
  .slider-arrow:focus {
    color: var(--color-gold);
    background: var(--color-teal);
    border-color: rgb(220 182 92 / 45%);
    box-shadow: 0 8px 20px rgb(0 0 0 / 16%);
    transform: translateY(-50%);
  }

  .slider-arrow:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
  }
}

@media (max-width: 380px) {
  .apartment-slide__button,
  .apartment-slide__button img {
    height: 490px;
  }

  .apartment-slide__button img {
    padding-bottom: 150px;
  }

  .apartment-summary {
    padding: 18px;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apartments-track,
  .apartment-slide,
  .apartment-summary {
    transition: none;
  }
}

/* =========================
   FLOOR PLANS
   ========================= */

.floorplans-section {
  padding: 120px 0 130px;
  background: var(--color-warm-white);
}

.floorplans-heading {
  margin-bottom: 44px;
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.floor-tab {
  min-width: 150px;
  min-height: 48px;
  padding: 0 24px;

  color: var(--color-gold);
  background: var(--color-teal);

  border: 1px solid var(--color-gold);
  border-radius: 8px;

  font-size: 0.95rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    color var(--transition),
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.floor-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 54, 60, 0.14);
}

.floor-tab--active {
  color: var(--color-teal);
  background: var(--color-gold);
}

.floorplan-viewer {
  position: relative;

  display: grid;
  place-items: center;

  width: 100%;
  min-height: 620px;
  padding: 30px;

  overflow: hidden;

  background: var(--color-white);
  border: 1px solid rgba(31, 54, 60, 0.12);
  border-radius: 18px;

  box-shadow: 0 18px 46px rgba(31, 54, 60, 0.12);
}

.floorplan-viewer img {
  display: block;
  width: 100%;
  max-width: 1100px;
  max-height: 720px;

  object-fit: contain;

  opacity: 1;
  transform: scale(1);

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.floorplan-viewer img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.floorplan-loading {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  color: var(--color-teal);
  background: rgba(248, 247, 244, 0.88);

  font-weight: 600;
}

.floorplans-note {
  max-width: 900px;
  margin: 28px auto 0;

  color: rgba(42, 42, 42, 0.65);

  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 760px) {
  .floorplans-section {
    padding: 85px 0 95px;
  }

  .floor-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floor-tab {
    min-width: 0;
    width: 100%;
  }

  .floorplan-viewer {
    min-height: 420px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .floor-tabs {
    grid-template-columns: 1fr;
  }
}

/* =========================
   LOCATION
   ========================= */

.location-section {
  padding: 120px 0 130px;
  background: var(--color-white);
}

.location-heading {
  margin-bottom: 56px;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  align-items: stretch;
  gap: 42px;
}

/* Map */

.location-map {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #e5e5e5;
  border: 1px solid rgba(31, 54, 60, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(31, 54, 60, 0.12);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 590px;
  border: 0;
}

.location-map__label {
  position: absolute;
  top: 24px;
  left: 24px;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 16px 20px;

  color: var(--color-white);
  background: rgb(31 54 60 / 82%);
  border: 1px solid rgb(220 182 92 / 45%);
  border-radius: 12px;

  box-shadow: 0 12px 30px rgb(0 0 0 / 16%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.location-map__label strong {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.location-map__label span {
  color: rgb(255 255 255 / 78%);
  font-size: 0.9rem;
}

/* Nearby locations */

.nearby-places {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 0;

  padding: 18px 32px;

  background: var(--color-warm-white);
  border: 1px solid rgb(31 54 60 / 12%);
  border-radius: 18px;

  box-shadow: 0 18px 46px rgb(31 54 60 / 10%);
}

.nearby-place {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;

  min-height: 68px;
  padding: 12px 0;

  border-bottom: 1px solid rgb(31 54 60 / 10%);
}

.nearby-place:last-child {
  border-bottom: 0;
}

.nearby-place__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  background: rgb(220 182 92 / 15%);
  border: 1px solid rgb(220 182 92 / 35%);
  border-radius: 50%;

  font-size: 1.2rem;
}

.nearby-place__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nearby-place__content strong {
  color: var(--color-teal);
  font-size: 0.98rem;
}

.nearby-place__content span {
  color: rgb(42 42 42 / 65%);
  font-size: 0.86rem;
}

.location-note {
  max-width: 850px;
  margin: 28px auto 0;

  color: rgb(42 42 42 / 58%);

  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

/* Responsive */

@media (max-width: 950px) {
  .location-layout {
    grid-template-columns: 1fr;
  }

  .nearby-places {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
  }

  .nearby-place:nth-last-child(2) {
    border-bottom: 0;
  }
}

@media (max-width: 650px) {
  .location-section {
    padding: 85px 0 95px;
  }

  .location-layout {
    gap: 28px;
  }

  .location-map,
  .location-map iframe {
    min-height: 430px;
  }

  .location-map__label {
    top: 14px;
    left: 14px;
  }

  .nearby-places {
    grid-template-columns: 1fr;
    padding: 14px 24px;
  }

  .nearby-place:nth-last-child(2) {
    border-bottom: 1px solid rgb(31 54 60 / 10%);
  }
}

/* =========================
   FAQ
   ========================= */

.faq-section {
  padding: 120px 0 130px;
  background: var(--color-warm-white);
}

.faq-heading {
  margin-bottom: 54px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  margin-bottom: 14px;

  background: var(--color-white);
  border: 1px solid rgb(31 54 60 / 14%);
  border-radius: 12px;

  box-shadow: 0 10px 28px rgb(31 54 60 / 7%);

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.faq-item:hover {
  border-color: rgb(220 182 92 / 60%);
  box-shadow: 0 14px 34px rgb(31 54 60 / 10%);
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px 26px;

  color: var(--color-teal);
  background: transparent;
  border: 0;

  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;

  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;

  color: var(--color-gold);

  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;

  transition: transform 250ms ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  color: rgb(42 42 42 / 74%);

  transition:
    grid-template-rows 280ms ease,
    background-color 280ms ease;
}

.faq-answer__inner {
  overflow: hidden;
  padding: 0 26px;

  font-size: 0.98rem;
  line-height: 1.75;

  transition: padding 280ms ease;
}

.faq-item.is-open {
  border-color: rgb(220 182 92 / 72%);
}

.faq-item.is-open .faq-question {
  color: var(--color-white);
  background: var(--color-teal);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  background: var(--color-white);
}

.faq-item.is-open .faq-answer__inner {
  padding: 22px 26px 26px;
}

.faq-item.is-open .faq-icon {
  color: var(--color-gold);
  transform: rotate(45deg);
}

.faq-cta {
  margin-top: 54px;
  text-align: center;
}

.faq-cta p {
  margin: 0 0 20px;
  color: var(--color-teal);
  font-size: 1.05rem;
  font-weight: 600;
}

@media (max-width: 650px) {
  .faq-section {
    padding: 85px 0 95px;
  }

  .faq-question {
    min-height: 66px;
    padding: 18px 20px;
    font-size: 0.98rem;
  }

  .faq-answer__inner {
    padding-inline: 20px;
  }

  .faq-item.is-open .faq-answer__inner {
    padding: 20px;
  }
}

/* =========================
   CONTACT
   ========================= */

.contact-section {
  padding: 120px 0 135px;
  background: var(--color-white);
}

.contact-heading {
  margin-bottom: 58px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 48px;
}

/* Agent cards */

.contact-agents {
  display: grid;
  gap: 28px;
}

.agent-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 240px;
  overflow: hidden;

  color: var(--color-white);
  background: var(--color-teal);

  border: 1px solid rgb(220 182 92 / 52%);
  border-radius: 18px;

  box-shadow: 0 18px 45px rgb(31 54 60 / 14%);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgb(31 54 60 / 20%);
}

.agent-card__photo {
  min-height: 240px;
  overflow: hidden;
  background: rgb(255 255 255 / 6%);
}

.agent-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.agent-card__company {
  margin: 0 0 8px;
  color: var(--color-gold);

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-card h3 {
  margin: 0 0 24px;

  color: var(--color-white);

  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.2;
}

.agent-card.agent-card--investor {
  grid-template-columns: 1fr;
  min-height: 120px;
}

.agent-card--investor .agent-card__content {
  text-align: center;
}

.agent-card--investor h3 {
  margin: 0;
}

.agent-card__details {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-card__details li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  color: rgb(255 255 255 / 78%);
  font-size: 0.92rem;
}

.agent-card__details a {
  transition: color var(--transition);
}

.agent-card__details a:hover {
  color: var(--color-gold);
}

/* Form card */

.contact-form-card {
  padding: 42px;

  background: var(--color-warm-white);

  border: 1px solid rgb(31 54 60 / 12%);
  border-radius: 18px;

  box-shadow: 0 18px 46px rgb(31 54 60 / 10%);
}

.contact-form-card__heading {
  margin-bottom: 32px;
}

.contact-form-card__eyebrow {
  margin: 0 0 8px;

  color: var(--color-gold);

  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form-card__heading h3 {
  margin: 0 0 12px;

  color: var(--color-teal);

  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.12;
}

.contact-form-card__heading p:last-child {
  max-width: 620px;
  margin: 0;

  color: rgb(42 42 42 / 68%);
  line-height: 1.7;
}

/* Form */

.contact-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--color-teal);

  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;

  color: var(--color-text);
  background: var(--color-white);

  border: 1px solid rgb(31 54 60 / 18%);
  border-radius: 9px;

  outline: none;

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.form-field input,
.form-field select {
  min-height: 52px;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgb(220 182 92 / 16%);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgb(42 42 42 / 42%);
}

/* GDPR */

.gdpr-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;

  color: rgb(42 42 42 / 66%);

  font-size: 0.84rem;
  line-height: 1.55;

  cursor: pointer;
}

.gdpr-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;

  accent-color: var(--color-gold);
}

/* Submit */

.contact-form__submit {
  justify-self: start;
  min-width: 190px;
}

.contact-form__message {
  min-height: 24px;
  margin: 0;

  color: var(--color-teal);

  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card {
    grid-template-columns: 1fr;
  }

  .agent-card__photo {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .contact-section {
    padding: 85px 0 95px;
  }

  .contact-agents,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 30px 22px;
  }

  .agent-card__photo {
    min-height: 240px;
  }

  .contact-form__submit {
    width: 100%;
  }
}

/* =========================
   MOBILE STICKY CTA
   ========================= */

.mobile-sticky-cta {
  position: fixed;
  z-index: 999;
  right: 16px;
  bottom: 16px;
  left: 16px;

  display: none;
  align-items: center;
  justify-content: center;

  min-height: 54px;
  padding: 0 24px;

  color: var(--color-teal);
  background: var(--color-gold);

  border: 1px solid rgb(31 54 60 / 30%);
  border-radius: 10px;

  box-shadow: 0 16px 40px rgb(0 0 0 / 24%);

  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;

  transition:
    transform 300ms ease,
    opacity 300ms ease,
    background-color var(--transition);
}

.mobile-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-sticky-cta:hover {
  background: #e2c574;
}

@media (max-width: 1100px) {
  .navigation__menu,
  .button--header {
    display: none;
  }
}

@media (max-width: 700px) {
  .mobile-sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 86px;
  }
}

section[id] {
  scroll-margin-top: 82px;
}

/* =========================
   APARTMENT MODAL
   ========================= */

.apartment-modal {
  position: fixed;
  z-index: 3000;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 28px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.apartment-modal.is-open {
  visibility: visible;
  opacity: 1;
}

/* Darkened background */

.apartment-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgb(10 18 20 / 78%);
}

/* Main popup */

.apartment-modal__dialog {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(420px, 0.95fr)
    minmax(520px, 1.15fr);

  width: min(1380px, 96vw);
  height: min(860px, 92vh);

  overflow: hidden;

  background: var(--color-white);

  border: 1px solid rgb(220 182 92 / 45%);
  border-radius: 20px;

  box-shadow: 0 30px 90px rgb(0 0 0 / 36%);

  transform: translateY(24px) scale(0.985);

  transition: transform 280ms ease;
}

.apartment-modal.is-open .apartment-modal__dialog {
  transform: translateY(0) scale(1);
}

/* Close button */

.apartment-modal__close {
  position: absolute;
  z-index: 20;
  top: 16px;
  right: 16px;

  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;

  padding: 0;

  color: var(--color-white);
  background: var(--color-teal);

  border: 1px solid rgb(220 182 92 / 60%);
  border-radius: 50%;

  box-shadow: 0 10px 24px rgb(0 0 0 / 20%);

  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;

  transition:
    color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.apartment-modal__close:hover {
  color: var(--color-teal);
  background: var(--color-gold);
  transform: rotate(90deg);
}

/* =========================
   LEFT SIDE: FIXED PLAN
   ========================= */

.apartment-modal__plan {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;

  overflow: hidden;

  padding: 32px;

  background: #f7f7f5;

  border-right: 1px solid rgb(31 54 60 / 10%);
}

.apartment-modal__plan img {
  display: block;

  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: center;
}

/* =========================
   RIGHT SIDE: ONLY VERTICAL SCROLLER
   ========================= */

.apartment-modal__content {
  min-width: 0;
  min-height: 0;

  height: 100%;

  overflow-x: hidden;
  overflow-y: auto;

  padding: 46px 46px 48px;

  color: var(--color-white);

  background:
    linear-gradient(
      135deg,
      var(--color-teal) 0%,
      #14252a 55%,
      #0b1012 100%
    );

  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color:
    var(--color-gold)
    rgb(255 255 255 / 8%);
}

.apartment-modal__content::-webkit-scrollbar {
  width: 8px;
}

.apartment-modal__content::-webkit-scrollbar-track {
  background: rgb(255 255 255 / 7%);
}

.apartment-modal__content::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 999px;
}

.apartment-modal__content::-webkit-scrollbar-thumb:hover {
  background: #e2c574;
}

/* Header */

.apartment-modal__header {
  margin-bottom: 34px;
  padding-right: 56px;
}

.apartment-modal__eyebrow {
  margin: 0 0 8px;

  color: var(--color-gold);

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.apartment-modal__header h2 {
  margin: 0 0 16px;

  color: var(--color-white);

  font-family: var(--font-body);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
}

/* Status */

.apartment-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;

  color: var(--color-white);
  background: #3e9b57;

  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apartment-modal__status::before {
  width: 8px;
  height: 8px;

  content: "";

  background: currentColor;
  border-radius: 50%;
}

.apartment-modal__status.status--reserved {
  color: #2f2500;
  background: #f4b400;
}

.apartment-modal__status.status--sold {
  color: var(--color-white);
  background: #b3261e;
}

/* Quick facts */

.apartment-modal__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;

  margin-bottom: 38px;
}

.modal-fact {
  padding: 18px;

  background: rgb(255 255 255 / 6%);

  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 12px;
}

.modal-fact span {
  display: block;

  margin-bottom: 6px;

  color: rgb(255 255 255 / 62%);

  font-size: 0.8rem;
}

.modal-fact strong {
  display: block;

  color: var(--color-gold);

  font-size: 1.04rem;
  line-height: 1.4;
}

/* Sections */

.apartment-modal__section {
  margin-top: 34px;
}

.apartment-modal__section h3,
.position-card h3 {
  margin: 0 0 14px;

  color: var(--color-gold);

  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.3;
}

/* =========================
   TABLE
   ========================= */

.apartment-table-wrapper {
  width: 100%;

  overflow-x: auto;
  overflow-y: visible;

  background: rgb(255 255 255 / 96%);

  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;

  scrollbar-width: thin;
  scrollbar-color:
    var(--color-gold)
    rgb(31 54 60 / 10%);
}

.apartment-table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.apartment-table-wrapper::-webkit-scrollbar-track {
  background: rgb(31 54 60 / 10%);
}

.apartment-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 999px;
}

.apartment-table {
  width: 100%;
  min-width: 655px;

  border-collapse: collapse;

  color: var(--color-text);
  background: rgb(255 255 255 / 96%);

  font-size: 0.78rem;
}

.apartment-table th,
.apartment-table td {
  padding: 9px 10px;

  border-bottom: 1px solid rgb(31 54 60 / 12%);

  text-align: left;
  white-space: nowrap;
}

.apartment-table th {
  position: static;

  color: var(--color-white);
  background: var(--color-teal);

  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apartment-table tbody tr:nth-child(even) {
  background: rgb(31 54 60 / 4%);
}

.apartment-table tbody tr:hover {
  background: rgb(220 182 92 / 14%);
}

.apartment-table td:last-child,
.apartment-table th:last-child {
  text-align: right;
}

/* =========================
   POSITION IMAGES
   ========================= */

.apartment-modal__position {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.position-card {
  min-width: 0;
  padding: 16px;

  background: rgb(255 255 255 / 6%);

  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
}

.position-card img {
  display: block;

  width: 100%;
  height: 170px;

  object-fit: contain;

  background: var(--color-white);
  border-radius: 7px;
}

/* Actions */

.apartment-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 36px;
}

.apartment-modal__actions .button {
  min-width: 190px;
}

.apartment-modal__actions .button--secondary {
  color: var(--color-gold);
  background: transparent;
  border-color: var(--color-gold);
}

.apartment-modal__actions .button--secondary:hover {
  color: var(--color-teal);
  background: var(--color-gold);
}

/* Prevent page behind modal from scrolling */

body.modal-open {
  overflow: hidden;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 980px) {
  .apartment-modal {
    padding: 18px;
  }

  .apartment-modal__dialog {
    display: block;

    width: min(760px, 96vw);
    height: auto;
    max-height: 94vh;

    overflow-y: auto;
  }

  .apartment-modal__plan {
    height: 48vh;
    min-height: 420px;

    border-right: 0;
    border-bottom: 1px solid rgb(31 54 60 / 10%);
  }

  .apartment-modal__content {
    height: auto;
    overflow: visible;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {
  .apartment-modal {
    padding: 0;
  }

  .apartment-modal__dialog {
    width: 100%;
    max-height: 100vh;

    border: 0;
    border-radius: 0;
  }

  .apartment-modal__close {
    position: fixed;
    top: 12px;
    right: 12px;
  }

  .apartment-modal__plan {
    height: 42vh;
    min-height: 320px;

    padding: 16px;
  }

  .apartment-modal__content {
    padding: 36px 20px 40px;
  }

  .apartment-modal__facts,
  .apartment-modal__position {
    grid-template-columns: 1fr;
  }

  .position-card img {
    height: 190px;
  }

  .apartment-modal__actions {
    flex-direction: column;
  }

  .apartment-modal__actions .button {
    width: 100%;
  }
}

/* =========================
   INTERACTIVE FLOORPLAN
   ========================= */

.floorplan-stage {
  position: relative;

  width: 100%;
  max-width: 1100px;

  margin-inline: auto;
}

.floorplan-stage > img {
  display: block;

  width: 100%;
  height: auto;
}

.floorplan-hotspots {
  position: absolute;
  z-index: 2;
  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;
}

.apartment-hotspot {
  fill: rgb(220 182 92 / 0%);
  stroke: rgb(220 182 92 / 0%);
  stroke-width: 3;

  cursor: pointer;
  pointer-events: all;

  transition:
    fill 220ms ease,
    stroke 220ms ease,
    filter 220ms ease;
}

.apartment-hotspot:hover,
.apartment-hotspot:focus-visible {
  fill: rgb(220 182 92 / 28%);
  stroke: var(--color-gold);

  filter: drop-shadow(
    0 0 10px rgb(220 182 92 / 55%)
  );

  outline: none;
}

.apartment-hotspot--available:hover,
.apartment-hotspot--available:focus-visible {
  fill: rgb(76 175 80 / 22%);
  stroke: #4caf50;
}

.apartment-hotspot--reserved:hover,
.apartment-hotspot--reserved:focus-visible {
  fill: rgb(244 180 0 / 24%);
  stroke: #f4b400;
}

.apartment-hotspot--sold {
  fill: rgb(220 182 92 / 0%);
  stroke: rgb(220 182 92 / 0%);
}

.apartment-hotspot--sold:hover,
.apartment-hotspot--sold:focus-visible {
  fill: rgb(76 175 80 / 22%);
  stroke: #4caf50;
}

/* Tooltip */

.floorplan-tooltip {
  position: absolute;
  z-index: 5;

  top: 100%;
  left: 100%;

  display: grid;
  gap: 4px;

  min-width: 150px;
  padding: 12px 15px;

  color: var(--color-white);
  background: rgb(31 54 60 / 92%);

  border: 1px solid rgb(220 182 92 / 55%);
  border-radius: 10px;

  box-shadow: 0 14px 35px rgb(0 0 0 / 22%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, calc(-50%));

  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

.floorplan-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.floorplan-tooltip strong {
  color: var(--color-gold);
}

.floorplan-tooltip span {
  color: rgb(255 255 255 / 78%);
  font-size: 0.82rem;
}





.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  z-index: 1900;
  inset: 0;

  background: rgb(0 0 0 / 55%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* =====================================
   MOBILE NAVIGATION — FINAL OVERRIDE
   Keep this at the bottom of style.css
   ===================================== */

@media (max-width: 1100px) {
  /* Header above the overlay */
  .site-header {
    z-index: 3000;
  }

  .navigation,
  .site-header.is-scrolled .navigation {
    position: relative;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    min-height: 72px;
  }

  .button--header {
    display: none;
  }

  /* Hamburger button */
  button.mobile-menu-button {
    position: relative;
    z-index: 3300;

    display: flex !important;
    width: 46px;
    height: 46px;
    padding: 0;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    justify-self: end;

    appearance: none;
    background: transparent !important;
    border: 1px solid rgb(220 182 92 / 55%);
    border-radius: 8px;

    box-shadow: none;
    cursor: pointer;
  }

  button.mobile-menu-button span {
    display: block !important;

    width: 24px !important;
    height: 2px !important;
    min-width: 24px;
    min-height: 2px;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    border: 0 !important;
    border-radius: 999px;

    opacity: 1;

    transform: none;

    transition:
      transform 250ms ease,
      opacity 250ms ease;
  }

  /* Hamburger becomes X */
  button.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  button.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  button.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Slide-in navigation panel */
  #mainNavigation.navigation__menu {
    position: fixed;
    z-index: 3200;

    top: 72px;
    right: 0;
    bottom: 0;

    display: flex !important;
    width: min(380px, 88vw);
    height: calc(100dvh - 72px);

    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;

    padding: 28px 24px 40px;

    overflow-y: auto;

    background: #1f363c;
    border-left: 1px solid rgb(220 182 92 / 35%);

    box-shadow: -18px 0 50px rgb(0 0 0 / 35%);

    opacity: 1;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(100%);

    transition:
      transform 300ms ease,
      visibility 300ms ease;
  }

  #mainNavigation.navigation__menu.is-open {
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
  }

  #mainNavigation .nav-link {
    display: block;
    width: 100%;

    padding: 18px 10px;

    color: #ffffff;
    border-bottom: 1px solid rgb(255 255 255 / 12%);

    font-size: 1rem;
    text-align: left;
  }

  #mainNavigation .nav-link::after {
    display: none;
  }

  #mainNavigation .nav-link:hover,
  #mainNavigation .nav-link.is-active {
    color: var(--color-gold);
  }

  #mainNavigation .mobile-menu-cta {
    display: flex;
    width: 100%;

    margin-top: 28px;
  }
}

/* Overlay stays below header and menu */
.mobile-menu-overlay {
  position: fixed;
  z-index: 2500;
  inset: 0;

  background: rgb(0 0 0 / 62%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================
   MOBILE HERO
   ========================= */

@media (max-width: 700px) {
  .hero {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 620px;
    padding: 110px 16px 56px;

    background-position: 45% center;
    background-size: cover;
  }

  .hero__overlay {
    background:
        linear-gradient(
            180deg,
            rgb(12 24 28 / 30%) 0%,
            rgb(12 24 28 / 50%) 55%,
            rgb(12 24 28 / 70%) 100%
        );
}

  .hero__content {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0 16px;
    padding-top: 100px;
    text-align: left;
  }

  .hero__title {
    max-width: 330px;
    margin: 0 0 22px;

    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
  }

  .hero__eyebrow {
    max-width: 100%;
    margin: 0 0 30px;

    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero__actions {
    display: grid;
    width: 100%;
    max-width: 340px;
    gap: 14px;
  }

  .hero__actions .button {
    width: 100%;
    min-height: 52px;

    justify-content: center;

    padding-inline: 20px;

    font-size: 0.9rem;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 680px;
    padding-inline: 10px;
  }

  .hero__content {
    padding-inline: 6px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__eyebrow {
    font-size: 0.92rem;
  }
}

/* =========================
   MOBILE ABOUT SECTION
   ========================= */

@media (max-width: 700px) {
  .about-section {
    padding: 82px 0 90px;
  }

  .about-heading {
    margin-bottom: 38px;
    text-align: center;
  }

  .about-heading h2 {
    margin: 0;

    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1;
  }

  .about-heading p {
    margin: 14px 0 0;

    font-size: 1rem;
    line-height: 1.55;
  }

  .about-overview {
    display: grid;
    grid-template-columns: 1fr;

    gap: 32px;
  }

  .about-description {
    width: 100%;
    max-width: none;
  }

  .about-description p {
    margin: 0 0 22px;

    font-size: 1rem;
    line-height: 1.8;
  }

  .about-description p:last-child {
    margin-bottom: 0;
  }

  .facts-card {
    width: 100%;
    max-width: none;

    padding: 26px 22px;

    border-radius: 18px;
  }

  .facts-card > * {
    width: 100%;
  }

  .project-progress {
    width: 100%;
    margin-top: 56px;

    overflow-x: auto;
  }

  .quality-grid {
    display: grid;
    grid-template-columns: 1fr;

    gap: 22px;
    margin-top: 42px;
  }
}

@media (max-width: 380px) {
  .about-section {
    padding: 72px 0 80px;
  }

  .about-heading h2 {
    font-size: 2.15rem;
  }

  .about-description p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .facts-card {
    padding: 22px 18px;
  }

  .quality-grid {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .floorplan-viewer {
    min-height: 360px;
    padding: 10px;
  }

  .floorplan-stage {
    width: 100%;
  }

  .floorplan-stage img,
  #floorplanImage {
    width: 100%;
    max-height: 330px;
    object-fit: contain;
  }
}

@media (max-width: 700px) {
  .nearby-places {
    padding: 12px 18px;
  }

  .nearby-place {
    min-height: 62px;
    padding: 10px 0;
  }

  .nearby-place__icon {
    width: 38px;
    height: 38px;
  }
}

/* =========================
   FAQ — MOBILE
   ========================= */

@media (max-width: 700px) {
  .faq-section {
    padding: 78px 0 92px;
  }

  .faq-heading {
    margin-bottom: 34px;
    padding-inline: 18px;
    text-align: center;
  }

  .faq-heading h2 {
    margin: 0 0 12px;

    color: var(--color-gold);

    font-size: clamp(2.1rem, 9vw, 2.8rem);
    line-height: 1;
  }

  .faq-heading p {
    max-width: 300px;
    margin: 0 auto;

    font-size: 0.95rem;
    line-height: 1.55;
  }

  .faq-list {
    width: calc(100% - 28px);
    max-width: 520px;
    margin-inline: auto;
  }

  .faq-item {
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .faq-question {
    min-height: 62px;
    padding: 16px 18px;
    gap: 16px;

    font-size: 0.98rem;
    line-height: 1.4;
  }

  .faq-question span:first-child {
    flex: 1;
  }

  .faq-icon {
    font-size: 1.5rem;
  }

  .faq-answer__inner {
    padding-inline: 18px;

    font-size: 0.92rem;
    line-height: 1.7;
  }

  .faq-item.is-open .faq-answer__inner {
    padding: 18px 18px 20px;
  }

  .faq-cta {
    width: calc(100% - 28px);
    max-width: 520px;
    margin: 34px auto 0;
  }

  .faq-cta p {
    margin-bottom: 16px;
    font-size: 0.98rem;
  }

  .faq-cta .button {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
}

/* =========================
   CONTACT — MOBILE
   ========================= */

@media (max-width: 700px) {
  .contact-section {
    padding: 78px 0 110px;
  }

  .contact-heading {
    margin-bottom: 36px;
    padding-inline: 18px;
    text-align: center;
  }

  .contact-heading h2 {
    margin: 0 0 12px;

    color: var(--color-gold);

    font-size: clamp(2.1rem, 9vw, 2.8rem);
    line-height: 1;
  }

  .contact-heading p {
    max-width: 320px;
    margin: 0 auto;

    font-size: 0.95rem;
    line-height: 1.55;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-agents {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .agent-card {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);

    min-height: 190px;

    border-radius: 16px;
  }

  .agent-card__photo {
    min-height: 190px;
  }

  .agent-card__content {
    padding: 22px 18px;
  }

  .agent-card__company {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  .agent-card h3 {
    margin-bottom: 18px;
    font-size: 1.25rem;
  }

  .agent-card__details {
    gap: 10px;
  }

  .agent-card__details li {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;

    font-size: 0.82rem;
  }

  .contact-form-card {
    padding: 28px 20px;

    border-radius: 16px;
  }

  .contact-form-card__heading {
    margin-bottom: 26px;
  }

  .contact-form-card__heading h3 {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .contact-form-card__heading p:last-child {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-form {
    gap: 18px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 1rem;
  }

  .form-field input,
  .form-field select {
    min-height: 50px;
  }

  .form-field textarea {
    min-height: 120px;
  }

  .gdpr-field {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;

    font-size: 0.8rem;
  }

  .contact-form__submit {
    width: 100%;
    min-height: 52px;

    justify-content: center;
  }

  .contact-form__message {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .agent-card {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .agent-card__content {
    padding: 18px 14px;
  }

  .agent-card h3 {
    font-size: 1.1rem;
  }

  .contact-form-card {
    padding: 24px 16px;
  }
}

/* =========================
   APARTMENT MODAL — MOBILE
   ========================= */

@media (max-width: 700px) {
  .apartment-modal {
    padding: 0;
  }

  .apartment-modal__dialog {
    display: block;

    width: 100%;
    height: 100dvh;
    max-height: 100dvh;

    overflow-y: auto;

    border: 0;
    border-radius: 0;
  }

  .apartment-modal__close {
    position: fixed;
    z-index: 4000;

    top: 14px;
    right: 14px;

    width: 42px;
    height: 42px;
  }

  .apartment-modal__plan {
    width: 100%;
    height: 42vh;
    min-height: 320px;

    padding: 18px;

    border-right: 0;
    border-bottom: 1px solid rgb(31 54 60 / 10%);
  }

  .apartment-modal__plan img {
    width: 100%;
    height: 100%;

    object-fit: contain;
  }

  .apartment-modal__content {
    height: auto;

    overflow: visible;

    padding: 34px 20px 42px;
  }

  .apartment-modal__header {
    margin-bottom: 28px;
    padding-right: 52px;
  }

  .apartment-modal__eyebrow {
    font-size: 0.72rem;
  }

  .apartment-modal__header h2 {
    margin-bottom: 14px;

    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .apartment-modal__status {
    padding: 7px 12px;

    font-size: 0.74rem;
  }

  .apartment-modal__facts {
    grid-template-columns: 1fr;
    gap: 12px;

    margin-bottom: 30px;
  }

  .modal-fact {
    padding: 16px;
  }

  .apartment-modal__section {
    margin-top: 28px;
  }

  .apartment-table-wrapper {
    width: 100%;

    overflow-x: auto;
  }

  .apartment-table {
    min-width: 620px;
  }

  .apartment-modal__position {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .position-card {
    padding: 14px;
  }

  .position-card img {
    height: 190px;
  }

  .apartment-modal__actions {
    flex-direction: column;
    gap: 12px;

    margin-top: 30px;
  }

  .apartment-modal__actions .button {
    width: 100%;
    min-height: 52px;

    justify-content: center;
  }
}

@media (max-width: 380px) {
  .apartment-modal__plan {
    height: 38vh;
    min-height: 280px;
  }

  .apartment-modal__content {
    padding-inline: 16px;
  }

  .apartment-modal__header h2 {
    font-size: 1.9rem;
  }
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  padding: 72px 0 24px;

  color: var(--color-white);
  background:
    linear-gradient(
      135deg,
      var(--color-teal),
      #0b1012
    );

  border-top: 1px solid rgb(220 182 92 / 35%);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 64px;
}

.site-footer__logo {
  display: block;
  width: 72px;
  height: 72px;

  object-fit: contain;
}

.site-footer__brand p {
  max-width: 420px;
  margin: 20px 0 0;

  color: rgb(255 255 255 / 70%);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 18px;

  color: var(--color-gold);

  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer a,
.site-footer__contact span {
  color: rgb(255 255 255 / 72%);
  font-size: 0.92rem;

  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--color-gold);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-top: 54px;
  padding-top: 22px;

  border-top: 1px solid rgb(255 255 255 / 10%);
}

.site-footer__bottom p {
  margin: 0;

  color: rgb(255 255 255 / 48%);
  font-size: 0.82rem;
}

.site-footer__legal {
  display: flex;
  gap: 22px;
}

@media (max-width: 700px) {
  .site-footer {
    padding: 58px 0 100px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;

    text-align: center;
  }

  .site-footer__brand,
  .site-footer__nav,
  .site-footer__contact {
    align-items: center;
  }

  .site-footer__logo {
    width: 64px;
    height: 64px;
    margin-inline: auto;
  }

  .site-footer__brand p {
    max-width: 320px;
    margin-inline: auto;
  }

  .site-footer__bottom {
    flex-direction: column;

    margin-top: 38px;

    text-align: center;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .apartment-modal__position {
    margin-top: 22px;
  }
}

@media (max-width: 700px) {
  .site-footer__bottom {
    margin-top: 46px;
  }
}

@media (max-width: 700px) {
  section[id] {
    scroll-margin-top: 74px;
  }
}

section {
  position: relative;
}

@media (max-width: 700px) {
  .about-section,
  .apartments-section,
  .floorplans-section,
  .location-section,
  .faq-section,
  .contact-section {
    padding-top: 76px;
    padding-bottom: 88px;
  }
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--color-gold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-heading p {
  margin: 0 auto;
  max-width: 620px;
  color: rgb(42 42 42 / 72%);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .section-heading {
    margin-bottom: 34px;
    padding-inline: 18px;
  }

  .section-heading h2 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
    line-height: 1;
  }

  .section-heading p {
    max-width: 320px;
    font-size: 0.95rem;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 22px;

  border-radius: 10px;

  font-weight: 800;
  letter-spacing: 0.02em;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .button:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .button--header {
    display: none;
  }
}

.apartment-summary--left {
    left: 18px;
    right: auto;
}

.apartment-summary--right {
    right: 18px;
    left: auto;
}

/* =========================
   QUALITY DETAILS MODAL
   ========================= */

.quality-modal {
  position: fixed;
  z-index: 3500;
  inset: 0;

  display: grid;
  place-items: center;

  padding: 24px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.quality-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.quality-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgb(8 15 17 / 78%);
}

.quality-modal__dialog {
  position: relative;
  z-index: 1;

  width: min(620px, 94vw);
  max-height: 88vh;

  overflow-y: auto;

  padding: 42px 40px 38px;

  color: var(--color-white);
  background:
    linear-gradient(
      135deg,
      var(--color-teal),
      #0b1012
    );

  border: 1px solid rgb(220 182 92 / 48%);
  border-radius: 18px;

  box-shadow: 0 28px 80px rgb(0 0 0 / 36%);

  transform: translateY(18px) scale(0.985);

  transition: transform 260ms ease;
}

.quality-modal.is-open .quality-modal__dialog {
  transform: translateY(0) scale(1);
}

.quality-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;

  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  padding: 0;

  color: var(--color-white);
  background: rgb(255 255 255 / 7%);

  border: 1px solid rgb(220 182 92 / 48%);
  border-radius: 50%;

  font-size: 1.7rem;
  line-height: 1;

  cursor: pointer;
}

.quality-modal__close:hover {
  color: var(--color-teal);
  background: var(--color-gold);
}

.quality-modal__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;

  margin-bottom: 22px;

  color: var(--color-gold);
  background: rgb(255 255 255 / 7%);

  border: 1px solid rgb(220 182 92 / 35%);
  border-radius: 14px;

  font-size: 2rem;
}

.quality-modal__eyebrow {
  margin: 0 0 8px;

  color: var(--color-gold);

  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quality-modal h2 {
  margin: 0 0 16px;

  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.quality-modal__intro {
  margin: 0 0 26px;

  color: rgb(255 255 255 / 72%);
  line-height: 1.7;
}

.quality-modal__list {
  display: grid;
  gap: 12px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.quality-modal__list li {
  position: relative;

  padding: 14px 16px 14px 44px;

  color: rgb(255 255 255 / 86%);
  background: rgb(255 255 255 / 6%);

  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 10px;

  line-height: 1.5;
}

.quality-modal__list li::before {
  position: absolute;
  top: 16px;
  left: 16px;

  content: "✓";

  color: var(--color-gold);
  font-weight: 900;
}

.quality-modal__cta {
  width: 100%;

  margin-top: 28px;
}

body.quality-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .quality-modal {
    padding: 14px;
  }

  .quality-modal__dialog {
    width: 100%;
    max-height: 92vh;

    padding: 36px 22px 26px;

    border-radius: 16px;
  }

  .quality-modal__icon {
    width: 56px;
    height: 56px;

    font-size: 1.7rem;
  }

  .quality-modal h2 {
    padding-right: 46px;
  }

  .quality-modal__list li {
    padding: 13px 14px 13px 40px;
  }
}
