/* =============================================================================
   COMPONENTS.CSS — Header, Hero, secciones y Footer
============================================================================= */

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(244, 244, 244, 0.50);
  /* light translucent glass background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s, border-color .4s;
}

.site-header.scrolled {
  background: rgba(244, 244, 244, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line-soft);
  border-bottom-color: var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px
}

.brand {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 0.95;
  color: var(--ink);
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none
}

.nav-links a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color .3s
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width .35s var(--ease)
}

.nav-links a:hover {
  color: var(--ink)
}

.nav-links a:hover::after {
  width: 100%
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem
}

.nav-cta .btn {
  background: var(--ink);
  color: var(--paper);
  padding: .65em 1.4em;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .4s var(--ease), background .35s, color .35s, box-shadow .4s;
}

.nav-cta .btn:hover {
  background: var(--clay);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center
}

.burger span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg)
}

.burger.open span:nth-child(2) {
  opacity: 0
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg)
}

@media(max-width:900px) {

  .nav-links,
  .nav-cta .btn {
    display: none
  }

  .burger {
    display: flex
  }

  .mobile-menu {
    position: fixed;
    inset: 76px 0 auto;
    background: var(--paper);
    z-index: 55;
    transform: translateY(-120%);
    transition: transform .5s var(--ease);
    padding: 2rem var(--gut) 2.5rem;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow)
  }

  .mobile-menu.open {
    transform: translateY(0)
  }

  .mobile-menu a {
    display: block;
    font-family: var(--display);
    font-size: 1.8rem;
    padding: .5rem 0;
    color: var(--ink)
  }

  .mobile-menu .btn {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
  }

  .mobile-menu .btn:hover {
    background: var(--clay);
    color: #ffffff;
  }
}

@media(min-width:901px) {
  .mobile-menu {
    display: none
  }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden
}

.hero .amotion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2c2825, #4a4038)
}

.amotion video,
.amotion img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero .amotion::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(33, 30, 27, .46) 0%, rgba(33, 30, 27, .10) 30%, rgba(33, 30, 27, .18) 58%, rgba(33, 30, 27, .84) 100%)
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut) clamp(44px, 7vh, 90px);
  color: #fff
}

.hero-welcome {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .85)
}

.hero-name {
  font-family: var(--display);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.02em;
  font-size: clamp(3rem, 10vw, 8rem);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 4px 50px rgba(33, 30, 27, .4)
}

.hero-name .ln {
  display: block;
  overflow: hidden
}

.hero-name .ln b {
  display: block;
  font-weight: 300
}

.hero-name .arceo {
  color: var(--clay);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: -.01em
}

.hero-sub {
  margin: 1.4rem 0 1.9rem;
  color: rgba(255, 255, 255, .9);
  max-width: 44ch;
  font-size: 1.06rem
}

.btn-hero {
  background: #fff;
  color: var(--ink)
}

.btn-hero:hover {
  background: var(--clay);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem 2.8rem;
  margin-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 1.6rem
}

.metric .k {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7)
}

.metric .v {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.1;
  margin-top: .15rem;
  color: #fff
}

.metric .v small {
  font-size: .8rem;
  color: var(--clay)
}

.hero-badge {
  position: absolute;
  right: var(--gut);
  bottom: clamp(44px, 7vh, 90px);
  z-index: 2;
  background: rgba(244, 244, 244, .92);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: .7rem 1rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink)
}

.hero-badge b {
  color: var(--clay)
}



@media(max-width:860px) {
  .hero-metrics {
    gap: 1.1rem 2rem
  }

  .hero {
    min-height: 100svh
  }

  .hero-inner {
    padding-top: 60px
  }

  #amVideo {
    display: none
  }
}

/* SCROLL STORY */
.story {
  position: relative;
  height: 290vh;
  background: var(--beige);
}

.story .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.story-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(85% 60% at 50% 16%, rgba(232, 224, 213, .6), transparent 68%),
    linear-gradient(180deg, var(--beige) 0%, var(--paper-2) 100%);
}

.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 50% at 72% 82%, var(--clay-soft), transparent 70%);
}

/* CONTENEDOR PRINCIPAL: TEXTO IZQUIERDA + IMAGEN DERECHA */
.story-center {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 80px);
  padding: 0 var(--gut);
}

.story-eyebrow {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--clay);
}

/* IMAGEN A LA DERECHA */
.frame {
  order: 2;
  position: relative;
  width: min(58vw, 820px);
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1916;
  box-shadow: 0 44px 100px -44px rgba(33, 30, 27, .55);
}

.frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.frame .story-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  will-change: transform;
}

.story.cinematic .story-img {
  display: block;
}

.story.cinematic .frame canvas {
  display: none;
}

.story.cinematic .loader {
  display: none !important;
}

.story.scrub .story-img {
  display: none;
}

.frame .fnum {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: #fff;
  background: rgba(33, 30, 27, .45);
  backdrop-filter: blur(4px);
  padding: .35em .6em;
  border-radius: 6px;
}

.frame .fnum .of {
  opacity: .7;
}

/* TEXTO A LA IZQUIERDA */
.cap-area {
  order: 1;
  position: relative;
  width: min(34vw, 360px);
  min-height: 12em;
  text-align: left;
  flex-shrink: 0;
}

.cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.cap.show {
  opacity: 1;
  transform: none;
}

.cap .k {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .5rem;
}

.cap .t {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
}

.cap .t em {
  font-style: italic;
  color: var(--clay);
}

.story .rail {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 34vh;
  width: 1.5px;
  background: rgba(33, 30, 27, .16);
  z-index: 3;
}

.story .rail i {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3.5px;
  height: 0;
  background: var(--clay);
}

.story .rail::after {
  content: "SCROLL";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .3em;
  color: var(--muted);
}

.story .loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  background: var(--paper-2);
  z-index: 5;
  transition: opacity .6s;
}

.story .loader.done {
  opacity: 0;
  pointer-events: none;
}

.story .loader .lbl {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.story .bar {
  width: 200px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  margin: 0 auto;
}

.story .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--clay);
  transition: width .15s linear;
}

/* RESPONSIVE */
@media(max-width:640px) {
  .story {
    height: 280vh;
  }

  .story .rail {
    display: none;
  }

  .story-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vh, 30px);
    padding: 0 var(--gut);
  }

  .frame {
    order: 1;
    width: 92vw;
  }

  .cap-area {
    order: 2;
    width: 92vw;
    min-height: 7em;
    text-align: center;
  }

  .cap {
    align-items: center;
    text-align: center;
  }

  .cap .t {
    font-size: 1.5rem;
  }
}

/* SECTIONS */
.section {
  padding: clamp(24px, 4vw, 48px) 0;
  position: relative
}

.section.alt {
  background: var(--paper-2)
}

#gallery {
  padding: clamp(24px, 4vw, 48px) 0
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(12px, 2vw, 24px)
}

.section-head .section-no {
  align-self: flex-end
}

.section-head .section-no--narrow {
  margin-bottom: 0.45rem;
  line-height: 1.4
}

.section-title {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.01em;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  text-transform: uppercase
}

.section-title em {
  font-style: italic;
  text-transform: none;
  color: var(--clay);
  font-weight: 300
}

.section-title .title-small {
  font-size: 0.6em;
  font-weight: 300;
  display: block;
  margin-bottom: 0.2rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: flex-end
}

.about-portrait {
  aspect-ratio: 3/4;
  border-radius: 18px;
  max-width: 380px
}

.about-card {
  background: var(--beige);
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  max-width: 380px
}

.about-card .av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: 0 0 64px
}

.about-card .nm {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1
}

.about-card .role {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: .3rem
}

.quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin: 0 0 1rem
}

.about-lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.15;
  margin-bottom: 1rem
}

.about-text {
  font-size: .88rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.2rem
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.4rem
}

.tag {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35em .7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted)
}

.about-wide {
  aspect-ratio: 16/7;
  border-radius: 18px;
  margin-top: 1rem
}

@media(max-width:820px) {
  .about-grid {
    grid-template-columns: 1fr
  }
}

/* FEATURED */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center
}

.video-block {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 18px;
  cursor: pointer
}

.video-block .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2
}

.video-block .play span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(244, 244, 244, .92);
  display: grid;
  place-items: center;
  transition: transform .4s var(--ease), background .4s
}

.video-block:hover .play span {
  transform: scale(1.08);
  background: var(--clay)
}

.video-block:hover .play svg {
  stroke: var(--paper)
}

.watch {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  background: rgba(244, 244, 244, .85);
  padding: .5em .9em;
  border-radius: 999px
}

.feat-text p {
  color: var(--muted);
  margin: 1.2rem 0 1.8rem;
  max-width: 46ch
}

.btn-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1em 2.2em;
  border-radius: 0;
  transition: background .35s, transform .4s var(--ease), box-shadow .4s;
}

.btn-rect:hover {
  background: var(--clay);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(10px, 2vw, 20px);
  justify-items: center;
  text-align: center
}

.stat .n {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1
}

.stat .n .suf {
  color: var(--clay)
}

.stat .l {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
  max-width: 18ch
}

@media(max-width:820px) {
  .feat-grid {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem
  }
}

/* FEATURED AREAS */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.area-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 601px) {
  .areas-grid .area-col:nth-child(even) {
    margin-top: 2.8rem;
  }
}

.area-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  aspect-ratio: 16/10;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(33, 30, 27, 0.02);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(33, 30, 27, 0.75) 0%, var(--beige) 100%);
  mix-blend-mode: multiply;
  z-index: 2;
  transition: background 0.45s var(--ease);
}

.area-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: sepia(0.5) saturate(1.2) contrast(0.95) brightness(0.95);
  transition: transform 0.65s var(--ease), filter 0.45s var(--ease);
}

.area-card .area-name {
  position: relative;
  z-index: 3;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
}

.area-card:hover,
.area-card.selected {
  transform: translateY(-8px);
  border-color: var(--clay);
  box-shadow: 0 30px 60px -10px rgba(33, 30, 27, 0.42), 0 15px 25px -12px rgba(33, 30, 27, 0.3);
}

.area-card:hover img,
.area-card.selected img {
  transform: scale(1.08);
  filter: sepia(0) saturate(0.4) contrast(0.95) brightness(0.85) opacity(0.85);
}

.area-card:hover::after,
.area-card.selected::after {
  background: linear-gradient(to top, rgba(33, 30, 27, 0.8) 0%, var(--muted) 100%);
}


.editorial-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  max-width: 30ch;
  margin: clamp(48px, 7vw, 90px) auto;
  text-align: center
}

.center {
  display: grid;
  place-items: center
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding: 1.4rem 0;
  white-space: nowrap
}

.marquee .track-m {
  display: inline-block;
  animation: marq 28s linear infinite
}

.marquee span {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 4rem);
  padding: 0 1.5rem
}

.marquee span .dot {
  color: var(--clay)
}

@media (max-width:1024px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media(max-width:600px) {
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .areas-grid .area-col {
    gap: 1rem;
  }

  .areas-grid .area-col:nth-child(even) {
    margin-top: 0;
  }

  .area-card {
    aspect-ratio: 16/9;
  }
}

/* HIGHLIGHTS */
.hl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 50px);
  align-items: start
}

.hl-image {
  aspect-ratio: 4/5;
  border-radius: 18px;
  max-width: 400px;
  width: 100%;
  margin-left: auto
}

.hl-list {
  list-style: none;
  display: grid;
  gap: .4rem
}

.hl-item {
  border-top: 1px solid var(--line-soft)
}

.hl-item:last-child {
  border-bottom: 1px solid var(--line-soft)
}

.hl-btn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  text-align: left;
  padding: 1.4rem .2rem;
  transition: padding .4s var(--ease)
}

.hl-btn .no {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--clay)
}

.hl-btn .ti {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  transition: color .3s
}

.hl-item.active .hl-btn {
  padding-left: 1rem
}

.hl-item.active .hl-btn .ti {
  color: var(--clay)
}

.hl-desc {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height .5s var(--ease), opacity .4s, padding .4s;
  opacity: 0;
  padding: 0 .2rem
}

.hl-item.active .hl-desc {
  max-height: 200px;
  opacity: 1;
  padding: 0 .2rem 1.4rem 1rem
}

@media(max-width:820px) {
  .hl-grid {
    grid-template-columns: 1fr
  }

  .hl-image {
    order: -1;
    margin-inline: auto
  }
}

/* AMENITIES */
.am-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch
}

.am-card {
  background: var(--beige);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column
}

.am-card .idx {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--clay);
  letter-spacing: .12em
}

.am-card .nm {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin: .4rem 0
}

.am-card .walk {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted)
}

.am-card p {
  color: var(--muted);
  margin: 1rem 0 1.4rem;
  font-size: .96rem
}

.am-thumb {
  aspect-ratio: 16/10;
  border-radius: 12px;
  margin-top: auto
}

.am-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 340px
}

.am-main .ph {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  height: 100%
}

.am-map {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2
}

.am-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem
}

.am-pill {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .5em 1em;
  border: 1px solid var(--line);
  border-radius: 999px
}

@media(max-width:820px) {
  .am-grid {
    grid-template-columns: 1fr
  }
}

/* CONSTRUCTION */
.con-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start
}

.con-image {
  aspect-ratio: 4/3;
  border-radius: 18px;
  position: relative;
  overflow: hidden
}

.con-image .ph {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 18px
}

.con-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap
}

.con-tab {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6em 1.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: .3s
}

.con-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink)
}

.con-phase {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .8rem
}

.con-desc {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.6rem
}

.con-thumbs {
  display: flex;
  gap: .7rem;
  margin-bottom: 2rem
}

.con-thumbs .ph {
  width: 74px;
  height: 56px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .4s var(--ease)
}

.con-thumbs .ph:hover {
  transform: translateY(-3px)
}

.subscribe {
  background: var(--beige);
  border-radius: 16px;
  padding: 1.6rem
}

.subscribe h4 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500
}

.subscribe p {
  color: var(--muted);
  font-size: .92rem;
  margin: .4rem 0 1.1rem
}

.sub-form {
  display: flex;
  gap: .6rem
}

.sub-form input {
  flex: 1;
  padding: .85em 1.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  font-size: .86rem
}

.sub-form input:focus {
  outline: none;
  border-color: var(--clay)
}

@media(max-width:820px) {
  .con-grid {
    grid-template-columns: 1fr
  }
}

/* APARTMENTS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 52px);
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-soft)
}

.fgroup {
  display: flex;
  align-items: center;
  gap: .7rem
}

.fgroup .lab {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted)
}

.chip {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  padding: .45em .9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: .25s
}

.chip.active,
.chip:hover {
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay)
}

.fmeta {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted)
}

.view-toggle {
  margin-left: auto;
  display: flex;
  gap: .4rem
}

.apt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem
}

.apt-grid.list {
  grid-template-columns: 1fr
}

.apt-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
  display: flex;
  flex-direction: column
}

.apt-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line)
}

.apt-grid.list .apt-card {
  flex-direction: row
}

.apt-media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--beige)
}

.apt-grid.list .apt-media {
  width: 230px;
  flex: 0 0 230px;
  aspect-ratio: auto
}

.apt-media .ph {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0
}

.apt-label {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(244, 244, 244, .9);
  padding: .4em .7em;
  border-radius: 999px
}

.apt-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1
}

.apt-name {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1
}

.apt-specs {
  display: flex;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase
}

.apt-price {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-top: .2rem
}

.apt-card .btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: .74rem;
  padding: .7em 1.3em
}

.empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .8rem;
  padding: 3rem
}

@media(max-width:900px) {
  .apt-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:600px) {
  .apt-grid {
    grid-template-columns: 1fr
  }

  .apt-grid.list .apt-card {
    flex-direction: column
  }

  .apt-grid.list .apt-media {
    width: 100%;
    aspect-ratio: 4/3
  }

  .view-toggle {
    margin-left: 0
  }
}

/* READY */
.ready-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.4rem
}

.ready-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end
}

.ready-main .ph {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 18px;
  z-index: 0
}

.ready-main .body {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(33, 30, 27, .72))
}

.ready-main .nm {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1
}

.ready-main .specs {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: .7rem 0;
  opacity: .9
}

.ready-main p {
  font-size: .92rem;
  max-width: 48ch;
  opacity: .92;
  margin-bottom: 1rem
}

.ready-main .price {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 1rem
}

.ready-side {
  display: grid;
  gap: 1.4rem
}

.ready-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end
}

.ready-card .ph {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 16px;
  z-index: 0
}

.ready-card .body {
  position: relative;
  z-index: 2;
  padding: 1.3rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(33, 30, 27, .7))
}

.ready-card .nm {
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase
}

.ready-card .specs {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: .4rem 0;
  opacity: .9
}

.ready-card .price {
  font-family: var(--mono);
  font-size: .74rem;
  margin-bottom: .6rem
}

.ready-main .btn {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink)
}

.ready-card .btn {
  align-self: flex-start;
  font-size: .7rem;
  padding: .6em 1.1em;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff
}

.ready-card .btn:hover {
  background: var(--clay);
  border-color: var(--clay)
}

@media(max-width:820px) {
  .ready-grid {
    grid-template-columns: 1fr
  }
}

/* CONTACT */
.contact {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(72px, 11vw, 150px) 0
}

.contact .ph {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  z-index: 0
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(33, 30, 27, .82), rgba(166, 136, 119, .55))
}

.contact .wrap {
  position: relative;
  z-index: 2
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start
}

.contact h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05
}

.contact .lead {
  margin-top: 1.2rem;
  opacity: .9;
  max-width: 42ch
}

.cform {
  display: grid;
  gap: 1rem
}

.cform input,
.cform textarea {
  width: 100%;
  padding: 1em 1.2em;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: .92rem
}

.cform input::placeholder,
.cform textarea::placeholder {
  color: rgba(255, 255, 255, .6)
}

.cform input:focus,
.cform textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, .14)
}

.cform .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.cform textarea {
  min-height: 110px;
  resize: vertical
}

.check {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .78rem;
  opacity: .85
}

.check input {
  width: auto
}

.cform .btn {
  background: var(--paper);
  color: var(--ink);
  justify-content: center;
  width: 100%;
  margin-top: .4rem
}

.cform .btn:hover {
  background: var(--clay);
  color: #fff
}

.legal {
  font-size: .7rem;
  opacity: .7;
  margin-top: .4rem
}

.form-ok {
  display: none;
  font-family: var(--mono);
  font-size: .78rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 1em 1.2em;
  border-radius: 12px
}

.form-ok.show {
  display: block
}

@media(max-width:760px) {
  .contact-grid {
    grid-template-columns: 1fr
  }

  .cform .row2 {
    grid-template-columns: 1fr
  }
}

/* FOOTER */
.footer {
  background: var(--paper-2);
  padding-top: clamp(24px, 4vw, 48px)
}

.foot-name {
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: .85;
  letter-spacing: -.02em
}

.foot-name em {
  font-style: italic;
  color: var(--clay);
  text-transform: none
}

.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line-soft)
}

.foot-top h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  max-width: 18ch;
  line-height: 1.1;
  padding-left: 1.2rem;
  position: relative;
  align-self: start
}

.foot-top h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.02em;
  width: 2px;
  background: var(--clay)
}

.foot-col h5 {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  display: inline-block;
  min-width: 80px;
}

.foot-col ul {
  list-style: none;
  display: grid;
  gap: .6rem
}

.foot-col a {
  font-size: .88rem;
  color: var(--muted);
  transition: color .3s;
}

.foot-col a:hover {
  color: var(--ink)
}

#footContact li {
  font-size: .88rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  line-height: 1.35;
}

#footContact li svg {
  color: var(--clay);
  flex-shrink: 0;
  margin-top: 2px;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 0 3rem;
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--muted)
}

.foot-copy {
  line-height: 1.5;
}

.foot-socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.foot-socials a {
  color: var(--muted);
  transition: color .3s;
  display: flex;
  align-items: center;
}

.foot-socials a:hover {
  color: var(--clay)
}

.foot-socials .sep,
.foot-bottom .links .sep {
  opacity: .35;
  color: var(--muted);
  margin: 0 0.2rem;
}

.foot-bottom .links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.foot-bottom .links a {
  transition: color .3s
}

.foot-bottom .links a:hover {
  color: var(--ink)
}

@media(max-width:760px) {
  .foot-top {
    grid-template-columns: 1fr
  }
}

/* =============================================================================
   DETAIL MODAL
   ============================================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FAF8F5;
  /* Cream background exactly matching screenshot */
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

/* Close button - Styled exactly like the circular close button in the screenshot */
.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  color: #555;
  transition: background 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background: #FAF8F5;
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}

.modal-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: 90vh;
  max-height: 700px;
}

@media (max-width: 820px) {
  .modal-container {
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal-content {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

/* Carousel layout */
.modal-carousel {
  position: relative;
  background: #1a1a1a;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .modal-carousel {
    height: 350px;
    min-height: 350px;
  }
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation buttons exactly matching the white circles in the screenshot */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #555;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 15;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: #FAF8F5;
  color: #1a1a1a;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Rounded counter pill matching user's instruction */
.carousel-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 500;
  z-index: 15;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Thumbnails strip overlay at the bottom of the carousel column */
.carousel-thumbnails {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 15;
}

.thumbnail-item {
  flex: 1;
  max-width: 72px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active {
  border-color: #9B7A66;
  /* Orange/brown active border */
  transform: scale(1.03);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Details Panel (Right Column) */
.modal-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

@media (max-width: 820px) {
  .modal-details {
    padding: 30px 20px;
  }
}

.modal-header {
  margin-bottom: 20px;
}

.modal-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9B7A66;
  /* Sandy brown key color */
  margin-bottom: 4px;
}

.modal-label-underline {
  width: 10px;
  height: 1.5px;
  background: #9B7A66;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 26px;
  font-family: var(--serif);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 10px;
  padding-right: 40px;
  /* Room for the close button */
}

.modal-price {
  font-size: 24px;
  font-family: var(--sans);
  font-weight: 500;
  color: #9B7A66;
}

/* Specifications block matching screenshot design */
.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
}

.spec-item {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.02);
  padding: 14px 8px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spec-icon {
  color: #9B7A66;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.spec-val {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.spec-sub {
  font-family: var(--sans);
  font-size: 10px;
  color: #888;
  margin-top: -2px;
  margin-bottom: 4px;
}

.spec-lbl {
  font-family: var(--sans);
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Description formatting */
.modal-description-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
  margin-bottom: 4px;
}

.modal-description-underline {
  width: 24px;
  height: 1.5px;
  background: #9B7A66;
  margin-bottom: 15px;
}

.modal-description {
  font-family: var(--sans);
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Large pill contact button */
.modal-contact-wrap {
  margin-top: auto;
  text-align: center;
}

.modal-contact-btn {
  width: 100%;
  background: #9B7A66;
  /* Sandy brown button */
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 30px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(155, 122, 102, 0.2);
}

.modal-contact-btn:hover {
  background: #846552;
  box-shadow: 0 6px 16px rgba(155, 122, 102, 0.3);
  transform: translateY(-1px);
}

.modal-privacy-note {
  font-family: var(--sans);
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- PROPERTY DETAILS GRID --- */
.modal-features-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
  margin-top: 25px;
  margin-bottom: 4px;
}

.modal-features-underline {
  width: 24px;
  height: 1.5px;
  background: #9B7A66;
  margin-bottom: 20px;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 35px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 8px;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-label {
  font-family: var(--sans);
  font-size: 13.5px;
  color: #777;
}

.feature-value {
  font-family: var(--sans);
  font-size: 13.5px;
  color: #1a1a1a;
  font-weight: 500;
  text-align: right;
  padding-left: 20px;
}

/* Rooms & Spaces style */
.modal-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
  background: rgba(0, 0, 0, 0.015);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.room-item {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding-bottom: 10px;
}

.room-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.room-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.room-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
}

.room-level {
  font-family: var(--sans);
  font-size: 11px;
  background: rgba(155, 122, 102, 0.1);
  color: #9B7A66;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.room-features {
  font-family: var(--sans);
  font-size: 12.5px;
  color: #666;
}

/* Nearby Amenities tags */
.modal-nearby-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 35px;
}

.nearby-tag {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  color: #555;
  font-family: var(--sans);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* Map link style */
.modal-map-link {
  font-family: var(--sans);
  font-size: 12px;
  color: #9B7A66;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  transition: color 0.2s;
  font-weight: 500;
}

.modal-map-link:hover {
  color: #846552;
  text-decoration: underline;
}

/* Agent Card style */
.modal-agent-card {
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 35px;
  align-items: center;
}

.agent-avatar {
  background: rgba(155, 122, 102, 0.1);
  color: #9B7A66;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-name {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: #1a1a1a;
}

.agent-position {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  font-weight: 600;
}

.agent-brokerage {
  font-family: var(--sans);
  font-size: 12px;
  color: #555;
}

.agent-phone {
  font-family: var(--sans);
  font-size: 12.5px;
  margin-top: 4px;
}

.agent-phone a:hover {
  text-decoration: underline;
}

/* =============================================================================
   ADVANCED FILTER PANEL & SLIDERS
   ============================================================================= */

.filter-panel-container {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 1.5rem;
  margin: 2rem auto 1.5rem;
  box-shadow: 0 10px 40px -20px rgba(33, 30, 27, 0.08);
}

.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.filter-toggle-btn:hover {
  background: var(--paper-2);
  color: var(--clay);
}

.filter-toggle-btn.active .chevron-icon {
  transform: rotate(180deg);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.btn-clear-all {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}

.btn-clear-all:hover {
  color: var(--ink);
}

.btn-apply-filters {
  background: var(--clay);
  color: #fff;
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px -4px rgba(166, 136, 119, 0.4);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-apply-filters:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -5px rgba(33, 30, 27, 0.4);
}

.filter-row {
  display: grid;
  gap: 1.5rem;
}

.row-main {
  grid-template-columns: 1fr 1fr 240px;
}

@media(max-width: 900px) {
  .row-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {
  .row-main {
    grid-template-columns: 1fr;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.group-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.range-values {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

/* DUAL RANGE SLIDER */
.range-slider-container {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.slider-track {
  position: absolute;
  height: 3px;
  background: rgba(166, 136, 119, 0.16);
  width: 100%;
  border-radius: 2px;
  z-index: 1;
}

.range-input {
  position: absolute;
  width: 100%;
  height: 3px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  margin: 0;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(33, 30, 27, 0.2);
  transition: transform 0.15s;
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-input::-moz-range-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(33, 30, 27, 0.2);
  transition: transform 0.15s;
}

.range-input::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.range-inputs {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
}

.range-box {
  border: 1px solid var(--line-soft);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: #fafaf9;
}

/* SELECT SELECTORS */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select,
.filter-detail-select select {
  width: 100%;
  border: 1px solid var(--line-soft);
  padding: 0.6rem 2rem 0.6rem 0.8rem;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--ink);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A68877' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.custom-select:focus,
.filter-detail-select select:focus {
  border-color: var(--clay);
  outline: none;
}

/* COMFORT SECTION & PILLS */
.filter-section-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}

.row-comfort {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  background: #fff;
  gap: 0.5rem;
  transition: border-color 0.3s;
}

.filter-pill:hover {
  border-color: var(--clay);
}

.pill-icon {
  color: var(--clay);
  display: flex;
  align-items: center;
}

.pill-label {
  font-size: 0.76rem;
  color: var(--ink);
  font-weight: 500;
}

.pill-select {
  border: none;
  background: none;
  font-family: var(--body);
  font-size: 0.76rem;
  color: var(--ink);
  font-weight: 600;
  margin-left: auto;
  padding-right: 14px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23A68877' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 9px;
  cursor: pointer;
}

.pill-select:focus {
  outline: none;
}

.filter-pill-checkbox-label {
  cursor: pointer;
  user-select: none;
}

.pill-checkbox {
  margin-left: auto;
  height: 15px;
  width: 15px;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.pill-checkbox:checked {
  background: var(--clay);
  border-color: var(--clay);
}

.pill-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* PROPERTY DETAILS SECTION */
.row-details {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

@media(max-width: 768px) {
  .row-details {
    grid-template-columns: 1fr;
  }
}

.filter-panel-footer {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
}

.active-filters-count {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

/* CONTROL BAR BELLOW FILTER */
.apartments-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem auto 1.5rem;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.76rem;
  color: var(--muted);
}

.sort-select {
  border: 1px solid var(--line-soft);
  background: #fff;
  padding: 0.45rem 1.6rem 0.45rem 0.8rem;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.76rem;
  color: var(--ink);
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A68877' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.sort-select:focus {
  border-color: var(--clay);
  outline: none;
}

/* PAGINATION SECTION */
.pagination-bar {
  margin-top: 3rem;
  width: 100%;
}

.pag-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF8F6;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--ink);
}

.pag-info {
  font-size: 0.78rem;
  color: var(--muted);
}

.pag-info strong {
  color: var(--ink);
  font-weight: 600;
}

.pag-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pag-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.25s ease;
  user-select: none;
}

.pag-btn:hover:not(:disabled) {
  background: var(--clay-soft);
  border-color: var(--clay);
  color: var(--clay);
}

.pag-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #FAF8F6;
}

.pag-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pag-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.pag-page-btn:hover {
  background: var(--clay-soft);
  color: var(--ink);
}

.pag-page-btn.active {
  background: var(--clay);
  color: #fff;
  font-weight: 600;
}

.pag-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 0.78rem;
  user-select: none;
}

@media(max-width: 768px) {
  .pag-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1rem;
    text-align: center;
  }

  .pag-controls {
    width: 100%;
    justify-content: space-between;
  }

  .pag-pages {
    gap: 0.2rem;
  }

  .pag-page-btn,
  .pag-ellipsis {
    width: 28px;
    height: 28px;
  }
}

/* CAROUSEL ZOOM CONTROLS */
.modal-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-zoom-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  user-select: none;
}

.zoom-btn:hover {
  background: var(--clay-soft);
  color: var(--clay);
  border-color: var(--clay);
}

.zoom-btn#carouselReset {
  font-size: 0.9rem;
}

.carousel-slide img {
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}

@media(min-width: 861px) {

  /* Desktop Hero layout overrides */
  .hero {
    background:
      radial-gradient(80% 50% at 30% 90%, var(--beige), transparent 70%),
      linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 60%, var(--beige) 100%);
    align-items: flex-end;
    min-height: 100vh;
  }

  .hero .amotion {
    left: auto;
    right: 0;
    width: 72%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
    mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  }

  .hero .amotion::after {
    background: none;
  }

  .hero-inner {
    color: var(--ink);
    padding: 120px var(--gut) clamp(40px, 6vh, 80px);
    padding-left: max(var(--gut), calc((100vw - 1252px) / 2));
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
  }

  .hero-welcome {
    color: var(--clay);
  }

  .hero-name {
    color: var(--ink);
    text-shadow: none;
    max-width: 55%;
    font-size: clamp(3.2rem, 8.5vw, 6.8rem);
  }

  .hero-name::after {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background: var(--clay);
    margin-top: 1.8rem;
  }

  .hero-sub {
    color: var(--muted);
    max-width: 40ch;
    margin: 1.8rem 0 2rem;
  }

  .btn-hero {
    background: var(--ink);
    color: var(--paper);
    align-self: flex-start;
  }

  .btn-hero:hover {
    background: var(--clay);
    color: var(--paper);
  }

  .hero-metrics {
    border-top: 1px solid var(--line-soft);
    max-width: 45%;
  }

  .metric .k {
    color: var(--muted);
  }

  .metric .v {
    color: var(--ink);
  }
}