/* 8 Queen site styles. No framework: plain CSS, phone layout at the bottom. */

@font-face {
  font-family: Poiret;
  src: url(../fonts/PoiretOne-Regular.ttf) format("truetype");
  font-display: swap;
}

:root {
  --ink: #111111;
  --text: #333333;
  --muted: #555555;
  --line: #d8d3ca;
  --rule: #e6e2db;
  --accent: #8a7353;
  --accent-dark: #6f5b41;
  --tint: #f6f3ee;
  --lrt: #1f6f8b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 82px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }

body {
  background: #ffffff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

img { display: block; height: auto; max-width: 100%; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: 1080px;
  padding-left: 16px;
  padding-right: 16px;
}

hr.wrap {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 28px;
  margin-top: 28px;
  max-width: 1048px;
  padding: 0;
}

/* Header */
.site-nav {
  background: #ffffff;
  left: 0;
  padding: 10px 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: padding .15s;
  z-index: 1000;
}

.brand {
  color: #000000;
  font-family: Poiret, var(--sans);
  font-size: 40pt;
  line-height: 1.2;
  text-decoration: none;
  transition: font-size .15s;
}

.site-nav.shrink { box-shadow: 0 1px 0 var(--rule); padding: 4px 0; }
.site-nav.shrink .brand { font-size: 30pt; }

/* Hero */
.cover { margin: 0 auto; width: 100%; }

.hero-intro { padding-bottom: 18px; padding-top: 42px; text-align: center; }

.hero-intro h1 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.12;
  margin: 0 auto 14px;
  max-width: 920px;
}

.hero-intro p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  margin: 0 auto 24px;
  max-width: 760px;
}

.btn {
  border: 1px solid transparent;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 5px 8px;
  padding: 12px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .15s, border-color .15s;
}

.btn-primary { background: #1f1f1f; border-color: #1f1f1f; color: #ffffff; }
.btn-primary:hover, .btn-primary:focus-visible { background: #000000; border-color: #000000; }
.btn-outline { background: #ffffff; border-color: var(--accent); color: #1f1f1f; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--tint); border-color: var(--accent-dark); }

/* Highlights */
.highlights {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.highlights li {
  align-items: center;
  border: 1px solid var(--line);
  color: #222222;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 16px;
  line-height: 1.35;
  min-height: 98px;
  padding: 18px;
}

.highlights i {
  color: var(--accent);
  flex: 0 0 42px;
  font-size: 28px;
  text-align: center;
}

/* Body copy */
.copy { max-width: 852px; }
.copy p { color: var(--text); font-size: 18px; line-height: 1.75; margin: 0 0 22px; }
.copy p:last-child { margin-bottom: 0; }

/* Section headings */
.leasing h2, .location h2, .gallery-section h2 {
  font-family: var(--serif);
  font-size: 34px;
  margin: 2px 0 22px;
}

/* Leasing */
.leasing-layout { align-items: flex-start; display: flex; gap: 28px; }
.leasing-options { flex: 0 0 30%; }

.leasing-option {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: block;
  margin-bottom: 8px;
  padding: 12px 14px;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  width: 100%;
}

.leasing-option:hover, .leasing-option:focus-visible, .leasing-option.active {
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  outline: none;
}

.leasing-option:hover { transform: translateY(-1px); }
.leasing-option .unit { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.leasing-option .size { display: block; font-size: 20px; font-weight: 700; letter-spacing: .01em; line-height: 1.2; }

.leasing-preview { flex: 1 1 70%; min-width: 0; }

.plan-link {
  background: #ffffff;
  border: 1px solid var(--line);
  cursor: zoom-in;
  display: block;
  padding: 8px;
  position: relative;
}

.plan-link img { width: 100%; }

.enlarge-hint {
  background: rgba(17, 17, 17, .78);
  bottom: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 10px;
  position: absolute;
  right: 12px;
  text-transform: uppercase;
}

.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }

.note { color: var(--muted); font-size: 15px; font-style: italic; margin: 16px 0 0; }

/* Location */
.location-address { color: var(--muted); margin: -10px 0 18px; }
.location-address i { color: var(--accent); margin-right: 4px; }

.location-layout { align-items: stretch; display: flex; gap: 28px; }

.map {
  background: #eeeeee;
  border: 1px solid var(--line);
  flex: 1 1 64%;
  min-height: 460px;
  z-index: 0;
}

.map .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(.92); }

.places { flex: 0 0 32%; }
.places h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 8px; }
.places h3 + .place-list { margin-bottom: 20px; }

.place-list li {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 10px;
  padding: 7px 0;
}

.place-list li:hover .place-name, .place-list li:focus-visible .place-name { color: var(--accent-dark); }
.place-list li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.place-name { flex: 1 1 auto; }
.place-time { color: var(--muted); white-space: nowrap; }
.places-note { color: var(--muted); font-size: 13px; font-style: italic; margin: 10px 0 0; }

/* Map markers */
.pin {
  align-items: center;
  background: var(--accent);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  color: #ffffff;
  display: flex;
  font-size: 13px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.place-list .pin { border-width: 0; box-shadow: none; flex: 0 0 24px; font-size: 11px; height: 24px; width: 24px; }
.pin-lrt { background: var(--lrt); }
.pin-parking { background: #4a4a4a; }
.pin-rail { background: #2e4a62; }

.pin-home {
  background: #111111;
  border-radius: 4px;
  font-family: Poiret, var(--sans);
  font-size: 22px;
  font-weight: 700;
  height: 40px;
  width: 40px;
}

.leaflet-tooltip.place-tip { font-family: var(--sans); font-size: 13px; padding: 4px 8px; }
.leaflet-tooltip.home-tip { font-family: var(--serif); font-size: 15px; font-weight: 700; }

/* Gallery */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery a { cursor: zoom-in; display: block; overflow: hidden; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; width: 100%; }
.gallery a:hover img { transform: scale(1.03); }
.gallery-dots { display: none; }

/* Footer */
.site-footer { padding-bottom: 24px; text-align: center; }
.footer-logos { align-items: center; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-logos img { padding: 10px; }
.site-footer p { font-size: 14px; margin: 4px 0; }
.footer-credibility { color: var(--muted); margin-top: 8px !important; }

/* Tablet */
@media (max-width: 991px) {
  .hero-intro { padding-top: 32px; }
  .hero-intro h1 { font-size: 34px; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .leasing-layout { flex-direction: column; gap: 12px; }
  .leasing-preview { order: 1; width: 100%; }
  .leasing-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
    width: 100%;
  }
  .leasing-option { margin-bottom: 0; }

  .location-layout { flex-direction: column; }
  .map { min-height: 400px; }
  .places { display: grid; gap: 0 28px; grid-template-columns: 1fr 1fr; }
  .places h3 { grid-row: 1; }
  .places .place-list { grid-row: 2; }
  .places-note { grid-column: 1 / -1; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 767px) {
  :root { --nav-h: 70px; }
  .brand { font-size: 32pt; }
  .site-nav.shrink .brand { font-size: 26pt; }

  .wrap { padding-left: 16px; padding-right: 16px; }
  hr.wrap { margin-bottom: 22px; margin-top: 22px; }

  .hero-intro { padding: 28px 16px 12px; }
  .hero-intro h1 { font-size: 30px; }
  .hero-intro p { font-size: 17px; }
  .hero-actions .btn { display: block; margin: 0 auto 10px; max-width: 240px; }

  .highlights { gap: 8px; margin-top: 14px; }
  .highlights li { font-size: 13px; gap: 10px; line-height: 1.3; min-height: 0; padding: 10px; }
  .highlights i { flex-basis: 24px; font-size: 20px; }

  .copy p { font-size: 16px; line-height: 1.7; }

  .leasing h2, .location h2, .gallery-section h2 { font-size: 28px; margin-bottom: 16px; }

  /* On phones the floor plan sits under the selected suite (moved there by main.js). */
  .leasing-options { grid-template-columns: 1fr; }
  .leasing-option { padding: 10px 12px; }
  .leasing-options .leasing-preview { margin: -2px 0 6px; order: 0; }
  .plan-link { padding: 4px; }

  .map { min-height: 340px; }
  .places { display: block; }
  .places h3 + .place-list { margin-bottom: 18px; }

  /* Swipeable photo carousel */
  .gallery {
    display: flex;
    gap: 10px;
    margin: 0 -16px;
    overflow-x: auto;
    padding: 0 16px;
    scroll-padding: 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a { flex: 0 0 88%; scroll-snap-align: start; }
  .gallery a:hover img { transform: none; }

  .gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
  .gallery-dots span { background: var(--line); border-radius: 50%; height: 7px; transition: background .2s, transform .2s; width: 7px; }
  .gallery-dots span.on { background: var(--accent); transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
