/* ============================================================
   PROPERTY LAYER — The HAT at 7th Avenue only
   ------------------------------------------------------------
   Loaded AFTER css/site.css. site.css is the shared HAT theme
   and is untouched in this repo; everything 7th needs that the
   theme does not already do lives here instead:

     1. the stacked logo in place of the Giroux ring wordmark
     2. Hat Yellow as the single call-to-action colour
     3. carbon photo scrims (the theme's scrims are tinted sage)
     4. THE LINE — 7th's own menu, replacing the rosette dial
     5. the route strip — the same transit-line device, used
        as a content component on the neighbourhood page

   Same rule as the theme: no literal colours, fonts or brand
   values here. Everything is a var(--token) from brand.css.
   ============================================================ */

/* ---------- 1. Logo ---------------------------------------- */
.brand-lockup__logo {
  height: var(--logo-size); width: auto; flex: none; display: block;
  transition: transform .6s var(--ease);
}
.brand-lockup:hover .brand-lockup__logo { transform: translateY(-2px); }

.hero__logo { width: clamp(170px, 24vw, 290px); height: auto; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); }
.footer-brand .footer-logo { width: 190px; height: auto; margin: 0 0 1.5rem; }
@media (max-width: 700px) {
  .footer-brand .footer-logo { grid-column: 1 / -1; order: 1; margin: 0 auto 1.75rem; }
}
@media (max-width: 400px) { .footer-brand .footer-logo { grid-column: 1; } }

/* ---------- 2. One call-to-action colour -------------------
   Every Book a Tour control is a yellow pill with ink text
   (14.6:1). In the template these were --sea or --cream pills;
   here they all point at the same token so they read as one
   control everywhere. */
.btn--accent,
.btn--cream,
.site-header .btn,
.plan .btn--accent {
  background: var(--accent); color: var(--accent-ink);
}
.btn--accent:hover,
.btn--cream:hover,
.site-header .btn:hover { background: var(--accent-hover); color: var(--accent-ink); }

.action-bar a + a { background: var(--accent); color: var(--accent-ink); }

/* Eyebrows on dark grounds carry the accent (≥ 8.6:1 on carbon and graphite) */
.section--sage .eyebrow, .section--deep .eyebrow, .section--slate .eyebrow,
.page-hero .eyebrow, .hero__eyebrow, .cta-band .script-note { color: var(--accent); opacity: 1; }

/* Amenity dots: alternate the accent instead of the two decorative greys */
.amenity-list .amenity:nth-child(3n+2) .amenity__dot,
.section--sage .amenity:nth-child(3n+2) .amenity__dot { background: var(--accent); color: var(--accent-ink); }
.amenity-list .amenity:nth-child(3n+3) .amenity__dot { background: var(--sage); color: var(--white); }

/* ---------- 3. Photography under the hero ------------------ */
.hero__scrim {
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(var(--scrim-rgb), .42), rgba(var(--scrim-rgb), .80) 100%),
    linear-gradient(to bottom, rgba(var(--scrim-rgb), .70), rgba(var(--scrim-rgb), .30) 45%, rgba(var(--scrim-rgb), .88));
}
.hero__texture { opacity: .35; }

/* Interior page heroes get a photo strip behind the sage band when one is
   supplied via --hero-img on the section. Without it they stay flat carbon. */
.page-hero--photo { background: var(--sage) var(--hero-img) center / cover no-repeat; }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--scrim-rgb), .9) 0%, rgba(var(--scrim-rgb), .62) 50%, rgba(var(--scrim-rgb), .28) 100%);
}

/* The 7th Ave tag that sits in hero eyebrows and the menu */
.line-tag {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--accent);
}
.line-tag::before {
  content: ""; width: 1.9em; height: var(--line-w); background: currentColor; border-radius: 2px;
}

/* ============================================================
   4. THE LINE — the 7th Avenue menu
   ------------------------------------------------------------
   7th Avenue SW is Calgary's CTrain spine and the building sits
   in the free-fare zone, so the menu is a transit line: one
   yellow rail, one stop per page, the current page marked with
   the hat. Same trigger and same body.nav-open state as the
   template's dial, so js/site.js is unchanged.

   Geometry: every stop is exactly --stop-h tall and every dot
   sits at the vertical centre of its row. The rail therefore
   runs from (stop-h / 2) to (last row − stop-h / 2), and the lit
   section is exactly --cur × --stop-h long — no measuring in JS.
   ============================================================ */
.line-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--sage); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 2vh) var(--gutter) 6vh;
  display: grid; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
body.nav-open .line-menu { opacity: 1; visibility: visible; }

.line-menu__grid {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .line-menu__grid { grid-template-columns: 1.35fr .65fr; padding-inline: clamp(0rem, 4vw, 5rem); }
}
.line-menu .line-tag { margin-bottom: clamp(1.25rem, 3vh, 2rem); }

/* --- the rail --- */
.line { position: relative; list-style: none; margin: 0; padding: 0; }
.line::before, .line::after {
  content: ""; position: absolute; z-index: 0;
  left: calc(var(--stop-dot) / 2 - var(--line-w) / 2);
  top: calc(var(--stop-h) / 2);
  width: var(--line-w); border-radius: var(--line-w);
}
.line::before { bottom: calc(var(--stop-h) / 2); background: var(--rule-inverse); }
.line::after {
  height: calc(var(--stop-h) * var(--cur, 0));
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .9s var(--ease) .15s;
}
body.nav-open .line::after { transform: scaleY(1); }

/* --- a stop --- */
.stop { position: relative; z-index: 1; height: var(--stop-h); }
.stop a {
  height: 100%; display: grid; align-items: center;
  grid-template-columns: var(--stop-dot) 2.4rem minmax(0, 1fr);
  column-gap: clamp(.9rem, 2vw, 1.5rem);
  opacity: 0; transform: translateX(-14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.nav-open .stop a {
  opacity: 1; transform: none;
  transition-delay: calc(.12s + var(--i) * .055s);
}
.stop__dot {
  width: var(--stop-dot); height: var(--stop-dot); border-radius: 50%;
  background: var(--sage);
  box-shadow: inset 0 0 0 var(--line-w) var(--rule-inverse);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.stop--passed .stop__dot { box-shadow: inset 0 0 0 var(--line-w) var(--accent); }
.stop__no {
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .2em;
  color: var(--text-on-sage-muted); font-variant-numeric: tabular-nums;
}
.stop__label { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem 1.1rem; min-width: 0; }
.stop__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.55rem, 4.4vh + 1vw, 3.1rem); line-height: 1;
  transition: color .3s var(--ease), transform .45s var(--ease);
}
.stop__note {
  font-size: var(--fs-small); color: var(--text-on-sage-muted);
  transition: color .3s var(--ease);
}
.stop a:hover .stop__name, .stop a:focus-visible .stop__name { color: var(--accent); transform: translateX(.35rem); }
.stop a:hover .stop__dot,  .stop a:focus-visible .stop__dot  { background: var(--accent); box-shadow: inset 0 0 0 var(--line-w) var(--accent); transform: scale(1.15); }
.stop a:hover .stop__note { color: var(--white); }

/* Current page: a filled dot with a halo, the hat beside the name */
.stop a[aria-current="page"] .stop__dot {
  background: var(--accent); box-shadow: 0 0 0 6px rgba(255,255,255,.08), inset 0 0 0 var(--line-w) var(--accent);
}
.stop a[aria-current="page"] .stop__name { font-style: italic; }
.stop__here {
  display: none; align-items: center; gap: .45em;
  font-size: .62rem; font-weight: 500; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--accent);
}
.stop__here svg { width: 15px; height: auto; }
.stop a[aria-current="page"] .stop__here { display: inline-flex; }

@media (max-width: 600px) {
  .stop a { grid-template-columns: var(--stop-dot) minmax(0, 1fr); }
  .stop__no { display: none; }
  .stop__note { display: none; }
}

/* --- the departure board (right column) --- */
.line-menu__aside {
  border-top: 1px solid var(--rule-inverse); padding-top: clamp(1.75rem, 3vh, 2.5rem);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease) .45s, transform .5s var(--ease) .45s;
}
body.nav-open .line-menu__aside { opacity: 1; transform: none; }
@media (min-width: 960px) {
  .line-menu__aside { border-top: 0; padding-top: 0; border-left: 1px solid var(--rule-inverse); padding-left: clamp(2rem, 4vw, 3.5rem); }
}
.line-menu__aside .eyebrow { color: var(--accent); }
.line-menu__aside .h3 { margin-bottom: 1.5rem; max-width: 18ch; }
.line-menu__tour {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 2.8em; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: var(--tracking-btn); text-indent: var(--tracking-btn); text-transform: uppercase;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.line-menu__tour:hover { background: var(--accent-hover); transform: translateY(-2px); }
.line-menu__meta { margin-top: clamp(1.75rem, 4vh, 2.5rem); display: grid; gap: 1.1rem; font-size: var(--fs-small); color: var(--text-on-sage-muted); }
.line-menu__meta address { font-style: normal; line-height: 1.7; }
.line-menu__meta a { color: var(--white); border-bottom: 1px solid var(--rule-inverse); transition: border-color .3s var(--ease); }
.line-menu__meta a:hover { border-color: var(--accent); }

@media (max-width: 959px) {
  .line-menu { align-items: start; }
  .line-menu__aside .h3 { display: none; }
}

/* ============================================================
   5. ROUTE STRIP — the line, as a content component
   Horizontal on wide screens, vertical below 820px. Same dot,
   same rail, same yellow; the building is the first stop.
   ============================================================ */
.route { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.route::before {
  content: ""; position: absolute; background: var(--accent); border-radius: var(--line-w);
}
.route__stop { position: relative; }
.route__dot {
  display: block; width: var(--stop-dot); height: var(--stop-dot); border-radius: 50%;
  background: var(--sage); box-shadow: inset 0 0 0 var(--line-w) var(--accent);
  position: relative; z-index: 1;
}
.route__stop--home .route__dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(255,255,255,.09); }
.route__name { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.15; margin: 0 0 .35rem; }
.route__note { font-size: var(--fs-small); color: var(--text-on-sage-muted); margin: 0; }

@media (min-width: 820px) {
  .route { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: clamp(.75rem, 1.6vw, 1.5rem); }
  .route::before { left: calc(var(--stop-dot) / 2); right: calc(100% / var(--n) - var(--stop-dot) / 2); top: calc(var(--stop-dot) / 2 - var(--line-w) / 2); height: var(--line-w); }
  .route__dot { margin-bottom: 1.4rem; }
}
@media (max-width: 819px) {
  .route { row-gap: 1.75rem; }
  .route::before { left: calc(var(--stop-dot) / 2 - var(--line-w) / 2); top: calc(var(--stop-dot) / 2); bottom: 2.5rem; width: var(--line-w); }
  .route__stop { display: grid; grid-template-columns: var(--stop-dot) 1fr; column-gap: 1.25rem; }
  .route__dot { margin-top: .2rem; }
}

/* ---------- Floorplan drawings ----------------------------
   The 7th drawings are dark linework on a pale grey ground; the
   panel takes that exact ground (--plan-ground) so the drawing
   has no visible edge inside it. */
.plan__media--drawing, .card__media--drawing { background: var(--plan-ground); }
.card__media--drawing { aspect-ratio: 1; padding: clamp(.75rem, 1.5vw, 1.25rem); }
.card__media--drawing img { object-fit: contain; }
.plan__media--drawing { aspect-ratio: 1; box-shadow: inset 0 0 0 1px var(--rule); }
.plan__mirror {
  display: inline-flex; gap: .5rem; margin-bottom: 1rem;
}
.plan__mirror button {
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: var(--tracking-btn); text-transform: uppercase;
  padding: .55em 1.2em; border-radius: var(--radius-pill); border: 0;
  background: transparent; color: var(--text-body); box-shadow: inset 0 0 0 1px var(--rule);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.plan__mirror button[aria-pressed="true"] { background: var(--sage); color: var(--white); box-shadow: none; }

/* Photo figure used in split blocks */
.photo { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--cream); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 3 / 2; }
.photo--square { aspect-ratio: 1; }

/* Gallery images are photography now, not placeholders */
.gallery figure { cursor: zoom-in; }

/* Lightbox (js/property.js) */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(var(--scrim-rgb), .94);
  display: grid; place-items: center; padding: 4vh 4vw;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox button {
  position: absolute; border: 0; background: transparent; color: var(--white);
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem;
}
.lightbox button:hover { color: var(--accent); }
.lightbox__close { top: 2vh; right: 2vw; }
.lightbox__prev { left: 1vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1vw; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 3vh; left: 0; right: 0; text-align: center; font-size: var(--fs-eyebrow); letter-spacing: var(--tracking-eyebrow); color: var(--text-on-sage-muted); }

/* Map */
.map-frame--wide { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .map-frame--wide { aspect-ratio: 4 / 3; } }
.map-frame--tall { aspect-ratio: 4 / 3; }
.info-block--center { text-align: center; }
.contact-grid > * { min-width: 0; }

/* Menu fit-and-finish */
.line-menu__aside .h3 { line-height: 1.15; }
.line-menu__meta > a { justify-self: start; }
@media (max-width: 600px) {
  .stop__name { font-size: clamp(1.45rem, 7vw, 2.1rem); }
}

/* ---------- Motif swap ---------------------------------------
   The rosette is Giroux's decal and stays there. 7th's divider is
   a short length of the line with three stops; interior page heroes
   drop the rosette watermark the theme adds. */
.page-hero::after { display: none; }
.line-divider {
  display: flex; align-items: center; justify-content: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.line-divider span {
  position: relative; width: clamp(120px, 14vw, 180px); height: var(--line-w);
  background: var(--accent); border-radius: var(--line-w);
}
.line-divider span::before, .line-divider span::after, .line-divider i {
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sage); box-shadow: inset 0 0 0 var(--line-w) var(--accent);
  transform: translate(-50%, -50%);
}
.line-divider span::before { left: 0; }
.line-divider span::after  { left: 100%; }
.line-divider i { left: 50%; background: var(--accent); }

/* Suite photography is shown uncropped at every width: the sources are
   1920×1280 and cropping them to a portrait frame (especially on phones)
   magnified them past their resolution. The figure takes the image's own
   3:2 shape instead. */
.photo--natural { aspect-ratio: auto; }
.photo--natural img { height: auto; object-fit: initial; }

/* Map fallback: the live Google embed sits on top; if it is blocked or slow,
   the aerial and a directions button underneath show instead of a blank box. */
.map-frame--fallback { position: relative; background: var(--sage) url("../assets/img/aerial-2.jpg") center / cover no-repeat; }
.map-frame__fallback { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--scrim-rgb), .45); }
.map-frame--fallback iframe { position: relative; z-index: 1; }

/* Family strip: each lockup gets its city beneath it, set exactly like the
   "You are here" caption above the current one. A third grid row is added so
   every tile keeps the same three rows and the logos stay aligned. */
.family-logo { grid-template-rows: var(--fam-cap-h) auto auto; }
.family-logo .family-logo__city {
  grid-row: 3; align-self: start; margin-top: calc(var(--fam-cap-gap) * .6);
  font-size: .62rem; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--stone);
}
