:root {
  --navy: #001962;
  --blue: #0041d9;
  --blue-hover: #0036b8;
  --text: #1a1f2c;
  --muted: #62646a;
  --muted-2: #8a8d93;
  --border: #dddfe2;
  --border-strong: #949494;
  --yellow: #ffd76e;
  --virtual: #dceeff;
  --page: #ffffff;
  --chip: #f4f4f5;
  --drop: #0b7a3b;
  --font: "Inter", "Source Sans 3", "Source Sans Pro", Helvetica, Arial, sans-serif;
  --font-display: "Source Sans 3", "Source Sans Pro", Helvetica, Arial, Geneva, sans-serif;
  --header-h: 50px;
  --radius-badge: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  background: var(--page);
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
textarea {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  color: var(--blue);
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  top: 8px;
}

/* Header */
.site-header {
  background: var(--navy);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 16px;
}

.menu-btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  height: 25px;
}

.logo img,
.logo svg {
  height: 25px;
  width: 136px;
}

.subnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 12px 16px;
}

.subnav a {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.subnav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.app-banner {
  display: none;
  background: var(--blue);
  color: #fff;
  padding: 8px 15px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
}

.app-banner .ghost {
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 14px 24px;
  color: var(--muted);
  font-size: 13px;
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs .sep {
  color: var(--blue);
  font-size: 11px;
}

.breadcrumbs .current {
  color: var(--text);
}

/* Media */
.media-wrap {
  background: #111;
  position: relative;
}

.media-stage {
  position: relative;
  height: 466px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-stage img,
.media-stage iframe {
  max-height: 466px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.media-stage.cover img {
  width: 100%;
  height: 466px;
  object-fit: cover;
}

.media-stage iframe {
  width: min(830px, 100%);
  height: 466px;
  border: 0;
}

.badge {
  background: var(--yellow);
  color: #111;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  display: inline-block;
  white-space: nowrap;
  margin-top: 8px;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow.prev { left: 16px; }
.nav-arrow.next { right: 16px; }

.media-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  z-index: 2;
}

.thumbs-row {
  background: #fff;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: thin;
}

.thumb {
  flex: 0 0 88px;
  height: 66px;
  border: 2px solid transparent;
  padding: 0;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
}

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

.thumb.active {
  border-color: var(--blue);
}

.thumb .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
}

.media-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px 0;
  background: #fff;
  position: relative;
  z-index: 3;
}

.chip-btn {
  background: var(--chip);
  color: var(--blue);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 65, 217, 0.15);
}

.chip-btn.active {
  background: var(--blue);
  color: #fff;
}

.virtual-banner {
  margin: 16px 0 0;
  background: var(--virtual);
  text-align: center;
  padding: 18px 16px;
}

.virtual-banner h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

/* Layout */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

#headline-no-grid {
  display: block;
  gap: 0;
  align-items: auto;
  padding: 8px 24px 28px;
}

.hero-head h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 50px;
  font-weight: 800;
  margin: 16px 0 4px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 8px;
}

.price {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 36px;
  font-weight: 800;
  margin: 0;
}

.for-rent {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.fine {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 16px 0;
  color: var(--text);
  font-weight: 600;
}

.stats span {
  padding: 0 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats span:first-child { padding-left: 0; }
.stats span:last-child { border-right: 0; }
.stats small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.notice {
  background: #f6f7f8;
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin: 12px 0 18px;
  font-size: 13px;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 20px;
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  border: 1px solid var(--blue);
  text-align: center;
  background: #fff;
  color: var(--blue);
}

.btn.primary {
  background: var(--blue);
  color: #fff;
}

.btn.primary:hover { background: var(--blue-hover); }
.btn:hover { text-decoration: none; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  margin: 8px 0 28px;
}

.facts div {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
}

.facts div:last-child { border-right: 0; }
.facts .lbl {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.facts .val { font-weight: 700; }
.facts .drop { color: var(--drop); }

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
  margin: 28px 0 12px;
}

.about p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 24px;
}

.about.collapsed .extra { display: none; }

.linkish {
  background: none;
  border: 0;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.feature {
  padding: 6px 0;
}

.feature .sub {
  color: var(--muted);
  font-size: 13px;
  padding-left: 22px;
}

.feature::before {
  content: "";
}

.amenity-group {
  margin: 8px 0 18px;
}

.amenity-group h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.check {
  position: relative;
  padding-left: 22px;
}

.check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.building-card {
  border: 1px solid var(--border);
  padding: 16px;
}

.building-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.building-meta {
  display: flex;
  gap: 18px;
  margin: 12px 0;
  color: var(--muted);
}

.building-meta strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

table.history {
  width: 100%;
  border-collapse: collapse;
}

table.history th,
table.history td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

table.history th {
  color: var(--muted);
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}

.tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.past-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
}

.past-row img {
  width: 140px;
  height: 105px;
  object-fit: cover;
  flex: 0 0 auto;
}

.explore-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.explore-tabs span,
.explore-tabs button {
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.explore-tabs .on {
  border-color: var(--blue);
  color: var(--blue);
}

.subway {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-right: 2px;
}

.s-ace { background: #0039a6; }
.s-nqr { background: #fccc0a; color: #111; }
.s-s { background: #808183; }
.s-123 { background: #ee352e; }
.s-7 { background: #b933ad; }
.s-bdfm { background: #ff6319; }

.transit td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 16px;
  padding-top: 16px;
}

.listed {
  font-size: 13px;
  color: var(--muted);
}

.listed strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-top: 2px;
}

.side-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.side-actions .btn {
  flex: 1;
  padding: 10px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.side-actions .btn.saved {
  background: #fff0f3;
  border-color: #e31c5f;
  color: #e31c5f;
}

.save-nudge {
  background: #f3f7ff;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.saved-count {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 16px;
}

.report {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 36px 24px 24px;
  font-size: 13px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-links a { color: #fff; }

.legal {
  color: #9ca3af;
  max-width: 820px;
}

.footer-brands {
  display: flex;
  gap: 18px;
  margin: 18px 0 8px;
  font-weight: 700;
  color: #fff;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.open { display: flex; }

.modal-card {
  background: #fff;
  width: min(520px, 100%);
  padding: 24px;
  position: relative;
}

.modal-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.modal-card .close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.modal-card label {
  display: block;
  font-weight: 600;
  margin: 10px 0 4px;
}

.modal-card input,
.modal-card textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  padding: 8px 10px;
  font-size: 14px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sticky-mobile {
  display: none;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  gap: 8px;
  z-index: 20;
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 60;
}

.drawer.open { display: block; }

.drawer nav {
  width: min(320px, 86vw);
  height: 100%;
  background: #fff;
  padding: 20px;
}

.drawer a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
    padding: 8px 16px 80px;
  }
  .sidebar { position: static; display: none; }
  .sticky-mobile { display: grid; grid-template-columns: 1fr 1fr; }
  .subnav { display: none; }
  .app-banner { display: flex; }
  .hero-head h1 { font-size: 28px; line-height: 34px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--border); }
  .cta-row { display: none; }
  .breadcrumbs {
    background: #000;
    color: #c8c8c8;
    margin: 0;
    max-width: none;
  }
  .breadcrumbs a,
  .breadcrumbs .current { color: #c8c8c8; }
}

@media (max-width: 640px) {
  .two-col,
  .stats { grid-template-columns: 1fr; display: block; }
  .stats span {
    display: inline-block;
    padding: 4px 10px 4px 0;
    border: 0;
  }
  .media-stage,
  .media-stage.cover img,
  .media-stage iframe { height: 280px; }
  .badge { font-size: 12px; }
}
