/* Abbott Pointe sublease listing. Mobile first. Palette + type match the ad. */
:root {
  --ink: #1F2933;
  --muted: #52606D;
  --faint: #616E7B;
  --line: #E4E7EB;
  --line-2: #CBD2D9;
  --bg: #FFFFFF;
  --soft: #F6F8F7;
  --green: #2F5D50;
  --green-ink: #24493F;
  --green-tint: #EAF2EF;
  --terra: #C2603A;
  --terra-btn: #B85A35;   /* the ad's terracotta, a hair darker so white button text passes AA */
  --terra-hover: #A44E2D;
  --pill-bg: #E3F1EA;
  --pill-ink: #1E6646;
  --radius: 12px;
  --head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--body);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; }
h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* status swap: data-status="leased" on <body> */
.when-leased { display: none !important; }
body[data-status="leased"] .when-leased { display: block !important; }
body[data-status="leased"] .when-available { display: none !important; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 10px;
  font: 600 15px/1.1 var(--body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--terra-btn); color: #fff; }
.btn--primary:hover { background: var(--terra-hover); }
.btn--outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green-tint); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(47, 93, 80, .45); outline-offset: 2px; }

/* 1. top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.topbar__in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.topbar__title { margin: 0; font: 700 14px/1.25 var(--head); color: var(--ink); min-width: 0; }
.callmenu { position: relative; flex: none; }
.callmenu summary { list-style: none; }
.callmenu summary::-webkit-details-marker { display: none; }
.callmenu__panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(31, 41, 51, .14);
  padding: 6px; display: grid;
}
.callmenu__panel a { padding: 12px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.callmenu__panel a:hover { background: var(--soft); }

/* 2. gallery: mobile = hero edge to edge + a row of five tiles */
.gallery-wrap { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; background: #fff; position: relative; }
.g-item { position: relative; display: block; overflow: hidden; background: var(--soft); text-decoration: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-hero { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.g-thumb, .g-more { aspect-ratio: 1 / 1; }
.g-badge {
  position: absolute; right: 10px; bottom: 10px; background: rgba(31, 41, 51, .72); color: #fff;
  font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 999px;
}
.g-more__bg { filter: blur(2px) brightness(.55); transform: scale(1.08); }
.g-more__txt {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff;
  font: 600 10.5px/1.2 var(--body); padding: 4px;
}
.g-more__txt b { font: 800 18px/1 var(--head); display: block; margin-bottom: 2px; }
.g-note { color: var(--faint); font-size: 12.5px; margin: 8px 16px 0; }

/* layout */
.layout { padding-top: 4px; }
.side { display: none; }

/* 3. price block */
.summary { padding: 16px 0 20px; }
.eyebrow { font: 700 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.price { font: 800 2.6rem/1.05 var(--head); letter-spacing: -0.02em; margin-bottom: 6px; }
.price span { font-size: 1.15rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.facts { font-size: 1.05rem; margin-bottom: 4px; }
.facts b { font-weight: 700; }
.facts i { font-style: normal; color: var(--line-2); margin: 0 6px; }
.addr { color: var(--muted); margin-bottom: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--pill-bg); color: var(--pill-ink);
  font: 600 14px/1 var(--body); padding: 8px 12px; border-radius: 999px; margin-bottom: 12px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2E9E62; }
.costline { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-row .btn--primary { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
.leased .price { font-size: 2rem; color: var(--green); }

/* sections */
.block { border-top: 1px solid var(--line); padding: 24px 0; }
.block--tight { padding: 18px 0; }
.calm { color: var(--ink); font-weight: 500; background: var(--soft); border-left: 3px solid var(--green); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* 4. chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--green-tint); color: var(--green-ink); font: 600 13.5px/1 var(--body); padding: 9px 12px; border-radius: 999px; }

/* 6. highlights */
.hl { display: grid; gap: 18px; }
.hl__group:first-child .ticks { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232F5D50' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--pin li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232F5D50' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

/* 7. costs table */
.costs { width: 100%; border-collapse: collapse; font-size: 15px; }
.costs th, .costs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.costs th { font-weight: 500; color: var(--muted); padding-right: 12px; width: 44%; }
.costs td { font-weight: 600; }
.costs td small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.costs tfoot th, .costs tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 800; color: var(--ink); font-family: var(--head); }

/* 8. lease */
.lease { margin: 0 0 18px; display: grid; gap: 10px; }
.lease div { display: grid; gap: 2px; }
.lease dt { font: 700 12px/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.lease dd { margin: 0; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 12px; position: relative; padding: 10px 0; font-weight: 600; }
.steps li + li::before { content: ""; position: absolute; left: 15px; top: -10px; height: 20px; width: 2px; background: var(--line-2); }
.steps__n {
  width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; flex: none;
  display: grid; place-items: center; font: 800 15px/1 var(--head); position: relative; z-index: 1;
}

/* 9. map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ticks--pin { margin-top: 12px; }

/* 10. form */
#tour { scroll-margin-top: 72px; }
.direct { color: var(--muted); }
.direct a { font-weight: 700; white-space: nowrap; }
.form { display: grid; gap: 14px; margin-top: 6px; }
.f-row { display: grid; gap: 6px; min-width: 0; }
.f-row label { font-weight: 600; font-size: 14.5px; }
.hint { font-weight: 400; color: var(--faint); }
.f-grid { display: grid; gap: 14px; }
input, select, textarea {
  width: 100%; font: 400 16px/1.3 var(--body); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 12px; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2352606D' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 10px center / 22px no-repeat;
  padding-right: 38px;
}
input[type="date"] { min-height: 48px; }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 93, 80, .18); }
.form .is-bad { border-color: #B42318; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.f-error { margin: 0; color: #B42318; background: #FEF3F2; border: 1px solid #FECDCA; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.f-error a { color: #B42318; font-weight: 700; }
.form .btn--primary { min-height: 54px; font-size: 16.5px; }
.form button[disabled] { opacity: .7; cursor: progress; }
.consent { color: var(--faint); font-size: 12.5px; margin: -4px 0 0; text-align: center; }
.thanks { display: flex; gap: 12px; align-items: flex-start; background: var(--green-tint); border: 1px solid #CFE2DA; border-radius: var(--radius); padding: 16px; outline: none; }
.thanks__ic { width: 28px; height: 28px; flex: none; fill: #fff; background: var(--green); border-radius: 50%; padding: 4px; }
.thanks__msg { margin: 0; font-weight: 500; }
.thanks__msg a { font-weight: 700; white-space: nowrap; }

/* 11. footer */
.footer { border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 13.5px; padding: 24px 0 28px; }
.footer p { margin-bottom: 10px; }
.eho { display: flex; gap: 8px; align-items: flex-start; }
.eho .ic { margin-top: 1px; color: var(--ink); }
.footer__phones a { font-weight: 700; }

/* phone bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(31, 41, 51, .08);
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transition: transform .2s ease;
}
.bar .btn { min-height: 46px; padding: 0 10px; font-size: 14px; gap: 6px; }
.bar__call { flex: none; }
.bar__text { flex: 1 1 auto; min-width: 0; }
.bar__tour { flex: 1 1 auto; }
.bar .short { display: none; }
body.form-focus .bar, body.lb-open .bar { transform: translateY(120%); }
@media (max-width: 374px) {
  .bar .long { display: none; } .bar .short { display: inline; }
  .topbar__title { font-size: 13px; }
}

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: #0E1419; color: #fff; display: flex; flex-direction: column; }
.lb__top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); flex: none; }
.lb__count { font: 600 14px/1 var(--body); color: #D9E2EC; padding-left: 4px; }
.lb__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb__close svg, .lb__nav svg { width: 24px; height: 24px; fill: currentColor; }
.lb__track {
  flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.lb__track::-webkit-scrollbar { display: none; }
.lb__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0; padding: 0 0 18px; min-width: 0; }
.lb__slide img { width: 100%; max-width: 1400px; max-height: calc(100% - 56px); object-fit: contain; }
.lb__slide figcaption { margin-top: 12px; font: 600 15px/1.3 var(--body); color: #E4E7EB; text-align: center; padding: 0 16px; }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.lb__prev { left: 10px; } .lb__next { right: 10px; }
.lb__nav[disabled] { opacity: 0; pointer-events: none; }
html.lb-lock, html.lb-lock body { overflow: hidden; }

@media (max-width: 439px) {
  .topbar__in { gap: 10px; }
  .topbar__title { font-size: 13px; }
  .callmenu .ic { display: none; }
}

/* small tablets */
@media (min-width: 600px) {
  .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .cta-row { grid-template-columns: 1fr 1fr 1.4fr; }
  .cta-row .btn--primary { grid-column: auto; min-height: 48px; font-size: 15px; }
  .hl { grid-template-columns: 1.4fr 1fr 0.8fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .steps li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; background: var(--soft); border-radius: var(--radius); }
  .steps li + li::before { display: none; }
  .map { aspect-ratio: 16 / 8; }
}

/* desktop */
@media (min-width: 900px) {
  .topbar { position: sticky; top: 0; }
  .topbar__in { padding: 8px 24px; }
  .topbar__title { font-size: 15px; }
  .gallery-wrap { max-width: 1180px; margin: 0 auto; padding: 16px 24px 0; }
  .gallery {
    grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
    height: clamp(380px, 40vw, 500px); border-radius: 16px; overflow: hidden;
  }
  .g-hero { grid-row: 1 / 3; grid-column: 1; aspect-ratio: auto; }
  .g-thumb { aspect-ratio: auto; }
  .g-item img { transition: transform .35s ease; }
  .g-item:hover img { transform: scale(1.03); }
  .g-badge { display: none; }
  .g-more {
    position: absolute; right: 14px; bottom: 14px; aspect-ratio: auto; width: auto; height: auto;
    background: #fff; border-radius: 999px; box-shadow: 0 4px 16px rgba(31, 41, 51, .25); overflow: visible;
  }
  .g-more__bg { display: none; }
  .g-more:hover img { transform: none; }
  .g-more__txt { position: static; display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 14px/1 var(--body); padding: 10px 16px; }
  .g-more__txt b { font-size: 14px; margin: 0; color: var(--green); }
  .g-note { margin: 8px 0 0; }

  .wrap { padding: 0 24px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 8px; }
  .side { display: block; position: sticky; top: 76px; margin-top: 20px; }
  .side__card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 8px 28px rgba(31, 41, 51, .08); display: grid; gap: 10px; }
  .side__card .when-available { display: grid; gap: 10px; }
  .side__price { font: 800 2.2rem/1 var(--head); margin: 0; letter-spacing: -0.02em; }
  .side__price span { font-size: 1rem; color: var(--muted); font-weight: 700; }
  .side__price--leased { font-size: 1.6rem; color: var(--green); }
  .side__card .facts, .side__card .pill { margin: 0; justify-self: start; }
  .side__small { color: var(--muted); font-size: 13.5px; margin: 0 0 4px; }
  .side__alt { text-align: center; margin: 2px 0 0; }
  .summary { padding-top: 24px; }
  .price { font-size: 3rem; }
  body { padding-bottom: 0; }
  .bar { display: none; }
  .block { padding: 30px 0; }
  h2 { font-size: 1.45rem; }
}
