.atlas-properties-main {
  background: var(--atlas-navy, #060d24);
}

.atlas-properties-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(48px, 8vw, 150px);
  align-items: end;
  min-height: 52vh;
  padding: clamp(130px, 15vh, 190px) var(--atlas-page-x, 4vw) clamp(64px, 8vw, 110px);
  color: #f5f3ee;
}

.atlas-properties-intro h1 {
  max-width: 900px;
  margin: 22px 0 0;
  font-size: 54px;
  font-weight: 400;
  line-height: 0.98;
}

.atlas-properties-intro h1 em { color: var(--atlas-gold, #d7ad47); }
.atlas-properties-intro > p { max-width: 470px; color: rgba(245, 243, 238, 0.7); line-height: 1.75; }

.atlas-properties-carousel {
  background: #f5f1e8;
  border-top: 1px solid rgba(6, 13, 36, 0.18);
}

.atlas-properties-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 24px var(--atlas-page-x, 4vw) 22px;
  border-bottom: 1px solid rgba(6, 13, 36, 0.18);
}

.atlas-property-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  min-width: 0;
}

.atlas-property-tabs button {
  position: relative;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid rgba(6, 13, 36, 0.18);
  background: transparent;
  color: rgba(6, 13, 36, 0.55);
  font: 600 12px/1.2 var(--atlas-sans, Arial, sans-serif);
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition: color 240ms ease, background-color 240ms ease;
}

.atlas-property-tabs button span {
  display: block;
  margin-bottom: 5px;
  color: #9d7727;
  font-size: 10px;
}

.atlas-property-tabs button::after {
  position: absolute;
  right: 18px;
  bottom: -23px;
  left: 18px;
  height: 2px;
  background: #060d24;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 240ms ease, transform 420ms cubic-bezier(.2, .7, .2, 1);
}

.atlas-property-tabs button:hover,
.atlas-property-tabs button[aria-current="true"] { color: #060d24; }
.atlas-property-tabs button[aria-current="true"]::after { opacity: 1; transform: scaleX(1); }

.atlas-property-carousel-controls {
  display: grid;
  grid-template-columns: auto 44px 44px;
  align-items: center;
  gap: 8px;
}

.atlas-property-carousel-controls > span {
  min-width: 58px;
  color: #746f66;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: right;
}

.atlas-property-carousel-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(6, 13, 36, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #060d24;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}

.atlas-property-carousel-controls button:hover { background: #060d24; color: #f5f1e8; }
.atlas-property-carousel-controls .atlas-arrow { width: 15px; height: 15px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.atlas-property-carousel-controls .atlas-arrow--left { transform: rotate(-135deg); }
.atlas-property-carousel-controls .atlas-arrow--right { transform: rotate(45deg); }

.atlas-properties-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--atlas-page-x, 4vw);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.atlas-properties-viewport::-webkit-scrollbar { display: none; }

.atlas-properties-track {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
  width: max-content;
  padding: clamp(38px, 5vw, 68px) var(--atlas-page-x, 4vw) clamp(52px, 7vw, 92px);
}

.atlas-property-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  flex: 0 0 clamp(560px, 62vw, 760px);
  min-width: 0;
  padding: 0 0 clamp(26px, 3vw, 38px);
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 13, 36, 0.18);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.atlas-property-card figure { margin: 0 0 26px; aspect-ratio: 3 / 2; overflow: hidden; }
.atlas-property-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.atlas-property-card:hover img { transform: scale(1.025); }
.atlas-property-card > div { padding-right: clamp(20px, 4vw, 64px); }
.atlas-property-card small { color: #8c7344; text-transform: uppercase; letter-spacing: .14em; }
.atlas-property-card h2 { max-width: 640px; margin: 14px 0 10px; font-size: 38px; font-weight: 400; line-height: 1.06; }
.atlas-property-card p { margin: 0; color: #69655f; line-height: 1.55; }
.atlas-property-card strong { display: flex; gap: 12px; align-items: center; margin-top: 20px; color: #060d24; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.atlas-property-card strong .atlas-arrow { flex: 0 0 auto; width: 15px; height: 15px; }

.atlas-buyer-search {
  display: grid;
  grid-template-columns: minmax(260px, .6fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 140px);
  padding: clamp(80px, 10vw, 150px) var(--atlas-page-x, 4vw);
  background: #f5f1e8;
  color: #111;
  border-top: 1px solid rgba(6, 13, 36, 0.18);
}

.atlas-buyer-search-copy h2 { margin: 20px 0 28px; font-size: 52px; font-weight: 400; line-height: 1.02; }
.atlas-buyer-search-copy h2 em { color: #927b55; }
.atlas-buyer-search-copy > p { max-width: 470px; color: #69655f; line-height: 1.75; }

.atlas-buyer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  align-self: start;
}

.atlas-buyer-form label { display: grid; gap: 9px; min-width: 0; color: #37342f; font-size: 13px; }
.atlas-buyer-form .atlas-field-wide,
.atlas-buyer-form .atlas-privacy,
.atlas-buyer-form button,
.atlas-buyer-form .atlas-form-message { grid-column: 1 / -1; }
.atlas-buyer-form input:not([type="checkbox"]),
.atlas-buyer-form select,
.atlas-buyer-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid rgba(6, 13, 36, 0.32);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.64);
  color: #111;
  font: inherit;
}
.atlas-buyer-form select { appearance: auto; cursor: pointer; }
.atlas-buyer-form textarea { min-height: 116px; resize: vertical; }
.atlas-buyer-form input:focus,
.atlas-buyer-form select:focus,
.atlas-buyer-form textarea:focus { outline: 2px solid #d7ad47; outline-offset: 2px; }
.atlas-buyer-form .atlas-privacy { grid-template-columns: auto 1fr; align-items: start; line-height: 1.5; }
.atlas-buyer-form button {
  min-height: 60px;
  padding: 16px 20px;
  border: 1px solid #060d24;
  border-radius: 0;
  background: #060d24;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}
.atlas-buyer-form button:disabled { opacity: .55; cursor: wait; }
.atlas-buyer-form .atlas-form-message { margin: 0; color: #69655f; line-height: 1.55; }
.atlas-buyer-form .atlas-form-message.is-success { color: #276344; }
.atlas-buyer-form .atlas-form-message.is-error { color: #8b2929; }

@media (max-width: 900px) {
  .atlas-properties-intro,
  .atlas-buyer-search { grid-template-columns: 1fr; }
  .atlas-properties-intro h1 { font-size: 44px; }
}

@media (max-width: 680px) {
  .atlas-properties-intro { min-height: auto; padding-top: 130px; }
  .atlas-properties-intro h1 { font-size: 36px; }
  .atlas-properties-selector { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .atlas-property-tabs { overflow-x: auto; grid-template-columns: repeat(4, 112px); scrollbar-width: none; }
  .atlas-property-tabs::-webkit-scrollbar { display: none; }
  .atlas-property-tabs button { padding-inline: 12px; }
  .atlas-property-tabs button::after { right: 12px; bottom: 0; left: 12px; }
  .atlas-property-carousel-controls { justify-content: end; }
  .atlas-property-carousel-controls > span { margin-right: auto; text-align: left; }
  .atlas-properties-track { gap: 16px; padding-top: 28px; }
  .atlas-property-card { flex-basis: calc(100vw - (2 * var(--atlas-page-x, 4vw)) - 28px); scroll-snap-align: start; }
  .atlas-property-card figure { margin-bottom: 22px; }
  .atlas-property-card h2 { font-size: 32px; }
  .atlas-buyer-search-copy h2 { font-size: 34px; }
  .atlas-buyer-form { grid-template-columns: 1fr; }
  .atlas-buyer-form > * { grid-column: 1 / -1; }
}

/* Buyer pages use the same measured typography as the main experience. */
.atlas-properties-intro h1 { max-width: 760px; font-size: 44px; line-height: 1.06; }
.atlas-property-card h2 { max-width: 580px; font-size: 32px; line-height: 1.12; }
.atlas-buyer-search-copy h2 { max-width: 620px; font-size: 42px; line-height: 1.08; }
.atlas-properties-intro > p,
.atlas-property-card p,
.atlas-buyer-search-copy > p { font-size: 14px; line-height: 1.68; }

@media (max-width: 900px) {
  .atlas-properties-intro h1 { font-size: 38px; }
  .atlas-buyer-search-copy h2 { font-size: 36px; }
}

@media (max-width: 680px) {
  .atlas-properties-intro h1 { font-size: 32px; }
  .atlas-property-card h2 { font-size: 27px; }
  .atlas-buyer-search-copy h2 { font-size: 30px; }
}
