/* Recent Leasing Activity pop-up (assets/recent-leasing.js), laid out like
   the "Just Leased" LinkedIn announcements: photo with a Forest fade, gold
   pill, serif headline with the street in gold italic, a ruled details
   line, then cream stat cells and Forest "Leased to" panels. */
.rl {
  margin: auto; inset: 0; padding: 0; border: 0; border-radius: 0;
  width: min(1080px, calc(100vw - 40px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  background: #FAF8F2; color: #0C3519; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.rl[open] { animation: rlIn .38s cubic-bezier(.22, 1, .36, 1); }
.rl::backdrop { background: rgba(12, 53, 25, 0.66); }
@keyframes rlIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
html.rl-lock { overflow: hidden; }

.rl-card { position: relative; }
.rl-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(12, 53, 25, 0.72); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s ease;
}
.rl-close:hover, .rl-close:focus-visible { background: #BFA56B; outline: none; }

/* Photo on top, headline on Forest beneath it. The photo is never covered:
   only its bottom edge fades into the green band, so the building and the
   ground in front of it stay in view. */
.rl-hero { position: relative; background: #0C3519; }
.rl-photo { position: relative; }
/* As tall as the screen allows (up to 2:1) so the whole window fits
   without scrolling on a laptop, and never so short it slices the building. */
.rl-photo img { display: block; width: 100%; height: clamp(300px, calc(100dvh - 470px), 540px); object-fit: cover; object-position: 50% 55%; }
.rl-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,53,25,0) 0%, #0C3519 100%);
}
.rl-hero.is-placeholder .rl-photo { height: 64px; }
.rl-hero-text { padding: 8px 40px 34px; text-align: center; color: #fff; }
.rl-badge {
  display: inline-block; padding: 10px 30px; border-radius: 999px; background: #BFA56B; color: #0C3519;
  font-family: var(--font-sans, 'Raleway', sans-serif); font-size: 13px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 18px;
}
.rl-badge:empty { display: none; }
.rl-title {
  font-family: var(--font-serif, 'Playfair Display', serif); font-weight: 400; color: #fff;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; margin: 0;
}
.rl-title em { font-style: italic; color: #BFA56B; }
.rl-sub {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0 0;
  font-family: var(--font-sans, 'Raleway', sans-serif); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
}
.rl-sub::before, .rl-sub::after { content: ""; flex: 0 0 44px; height: 1px; background: #BFA56B; }

/* Stats and tenants. A gold rule separates them from the photo. */
.rl-facts { display: flex; border-top: 3px solid #BFA56B; }
.rl-stats { flex: 1 1 auto; display: flex; background: #FAF8F2; }
.rl-stat {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 14px 32px; border-left: 1px solid rgba(12, 53, 25, 0.1);
}
.rl-stat:first-child { border-left: 0; }
.rl-stat svg { width: 30px; height: 30px; color: #BFA56B; margin-bottom: 14px; }
.rl-stat-val { font-family: var(--font-serif, 'Playfair Display', serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; color: #0C3519; }
.rl-stat-lab {
  margin-top: 10px; font-family: var(--font-sans, 'Raleway', sans-serif); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #58595B;
}
.rl-tenants { flex: 0 0 auto; display: flex; background: #0C3519; }
.rl-facts[data-tenants="1"] .rl-tenants { flex-basis: 30%; }
.rl-facts[data-tenants="2"] .rl-tenants { flex-basis: 42%; }
.rl-tenant {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 26px 18px; text-align: center;
}
.rl-tenant + .rl-tenant { border-left: 1px solid rgba(191, 165, 107, 0.35); }
.rl-tenant-lab {
  font-family: var(--font-sans, 'Raleway', sans-serif); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: #BFA56B;
}
.rl-logo { display: block; max-width: 78%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.rl-tenant-name { font-family: var(--font-serif, 'Playfair Display', serif); font-size: clamp(22px, 2.4vw, 30px); color: #fff; line-height: 1.15; }
.rl-tenant-sf {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-sans, 'Raleway', sans-serif); font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
}
.rl-tenant-sf::before, .rl-tenant-sf::after { content: ""; width: 18px; height: 1px; background: #BFA56B; }

/* Recent Leasing cards open the window */
.lr-recent .property-card[aria-haspopup] { cursor: pointer; }

@media (max-width: 860px) {
  .rl-facts { flex-direction: column; }
  .rl-facts .rl-tenants { flex-basis: auto; }
}
@media (max-width: 600px) {
  .rl { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .rl-photo img { height: auto; aspect-ratio: 3 / 2; }
  .rl-photo::after { height: 40px; }
  .rl-hero-text { padding: 6px 18px 24px; }
  .rl-badge { font-size: 11px; padding: 8px 20px; margin-bottom: 14px; }
  .rl-sub { font-size: 10.5px; letter-spacing: 0.14em; line-height: 1.6; }
  .rl-sub::before, .rl-sub::after { display: none; }
  .rl-stats { flex-wrap: wrap; }
  .rl-stat { flex: 1 1 50%; padding: 22px 10px 24px; border-left: 0; border-top: 1px solid rgba(12, 53, 25, 0.1); }
  .rl-stat:nth-child(even) { border-left: 1px solid rgba(12, 53, 25, 0.1); }
  .rl-stat:nth-child(-n+2) { border-top: 0; }
  .rl-stat:last-child:nth-child(odd) { flex-basis: 100%; }
  .rl-stat svg { width: 26px; height: 26px; margin-bottom: 10px; }
  .rl-stat-lab { font-size: 10px; letter-spacing: 0.14em; }
  .rl-logo { max-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .rl[open] { animation: none; } }
