/* ═══════════════════════════════════════════════════════════
   MULTI-PAGE ADDITIONS — White Space Chelsea
   Builds on main.css (extracted from the homepage design).
   ═══════════════════════════════════════════════════════════ */

.container.narrow { max-width: 860px; }

/* ── PAGE HERO (event / space / info / landing pages) ── */
.page-hero { position: relative; min-height: 56vh; display: flex; align-items: flex-end; overflow: hidden; background: #111; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.52); }
.page-hero-inner { position: relative; z-index: 1; padding-top: 150px; padding-bottom: 60px; color: #fff; }
.page-hero .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(34px,5vw,62px); color: #fff; line-height: 1.06; margin-bottom: 20px; max-width: 900px; }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,.85); max-width: 640px; margin-bottom: 32px; line-height: 1.7; }
.page-hero .btn-primary { align-self: flex-start; }

/* ── GENERIC PAGE BODY / PROSE ── */
.page-body { padding: 80px 0; font-size: 16px; color: #444; line-height: 1.8; }
.page-body .lead { font-size: 20px; color: #1a1a1a; font-family: 'Playfair Display', serif; line-height: 1.5; margin-bottom: 28px; }
.page-body h2 { font-family: 'Playfair Display', serif; font-size: clamp(26px,3vw,38px); color: #1a1a1a; margin: 12px 0 18px; line-height: 1.15; }
.page-body h3 { font-family: 'Playfair Display', serif; font-size: 21px; color: #1a1a1a; margin: 30px 0 10px; }
.page-body p { margin-bottom: 18px; }
.page-body ul, .page-body ol { margin: 0 0 18px 22px; }
.page-body li { margin-bottom: 9px; }
.page-body strong { color: #1a1a1a; font-weight: 600; }
.page-body a { color: #1a1a1a; border-bottom: 1px solid #ccc; transition: border-color .2s; }
.page-body a:hover { border-color: #1a1a1a; }

/* ── FEATURES SECTION (reuses .amenities-grid / .amenity from main.css) ── */
.features-section { padding: 80px 0; background: #f8f8f8; }
.features-section .amenities-grid { margin-top: 48px; }

/* ── SPEC STRIP ── */
.spec-strip { display: flex; flex-wrap: wrap; gap: 48px; padding: 44px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; margin: 40px 0; }
.spec-strip .spec { display: flex; flex-direction: column; gap: 4px; }
.spec-strip .spec strong { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 500; color: #1a1a1a; }
.spec-strip .spec span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #999; }

/* ── INLINE GHL FORM ── */
.page-form { padding: 72px 0; background: #fafafa; }
.ghl-form-wrap { margin-top: 24px; }
.ghl-form-wrap iframe { display: block; }

/* ── EVENT-TYPE CARD GRID (events index, venue page) ── */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }
.type-card { position: relative; overflow: hidden; height: 340px; display: block; }
.type-card img { transition: transform .6s ease; filter: brightness(.6); }
.type-card:hover img { transform: scale(1.05); filter: brightness(.5); }
.type-card-label { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 65%); }
.type-card-label h3 { font-size: 23px; color: #fff; margin-bottom: 8px; }
.type-card-label span { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* ── CLIENTS LOGO GRID ── */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 48px; }
.client-cell { display: flex; align-items: center; justify-content: center; height: 150px; background: #f8f8f8; padding: 28px; }
.client-cell img { max-height: 56px; width: auto; max-width: 80%; object-fit: contain; filter: grayscale(1) opacity(.85); transition: filter .3s; }
.client-cell:hover img { filter: grayscale(0) opacity(1); }
.client-cell .text-logo { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #555; }

/* ── BLOG LISTING PAGE ── */
.blog-listing { padding: 130px 0 80px; }
.blog-listing .section-header { margin-bottom: 36px; }
.blog-listing .blog-featured { margin-top: 0; }
.blog-pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 56px; flex-wrap: wrap; }
.blog-pagination .page-link { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .1em; color: #888; border: 1px solid #ddd; padding: 9px 15px; transition: background .2s, color .2s, border-color .2s; }
.blog-pagination .page-link:hover, .blog-pagination .page-link.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ── BLOG POST (article) PAGE ── */
.post-container { max-width: 820px; padding-top: 124px; padding-bottom: 72px; }
.post-back { margin-bottom: 22px; }
.post-back a { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #999; }
.post-back a:hover { color: #1a1a1a; }
.post-header { margin-bottom: 26px; }
.post-cat { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #aaa; margin-bottom: 14px; }
.post-header h1 { font-size: clamp(30px,4vw,46px); line-height: 1.12; margin-bottom: 16px; }
.post-meta { font-size: 12px; color: #999; letter-spacing: .05em; }
.post-hero-img { margin: 6px 0 36px; overflow: hidden; }
.post-hero-img img { width: 100%; height: auto; display: block; }
.post-body { font-size: 16px; color: #333; line-height: 1.85; }
.post-body h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 500; color: #1a1a1a; margin: 34px 0 14px; line-height: 1.2; }
.post-body h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 500; color: #1a1a1a; margin: 26px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body li { margin-bottom: 9px; }
.post-body strong { font-weight: 600; color: #1a1a1a; }
.post-body em { font-style: italic; }
.post-body a { color: #1a1a1a; border-bottom: 1px solid #ccc; transition: border-color .2s; }
.post-body a:hover { border-color: #1a1a1a; }
.post-body img { width: 100%; height: auto; margin: 24px 0; display: block; }
.post-body figure { margin: 24px 0; }
.post-body figcaption { font-size: 12px; color: #999; margin-top: 8px; text-align: center; }
.post-cta { display: inline-block; width: auto; margin-top: 40px; }
.post-related { background: #f8f8f8; padding: 64px 0; margin-top: 64px; }
.post-related .bm-related-label { margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .type-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { min-height: 50vh; }
  .page-hero-inner { padding-top: 120px; padding-bottom: 48px; }
  .page-body { padding: 56px 0; }
  .spec-strip { gap: 28px; }
  .type-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .post-container { padding-top: 100px; }
}

/* ═══ EVENT MODAL FIXES ═══ */
/* Stuck bug: a closed panel must not intercept clicks while it transitions out */
#event-modal { pointer-events: none; }
#event-modal.open { pointer-events: auto; }

/* Footer: distinct "Learn More" + "Inquire" buttons, and inline form area */
.modal-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.modal-cta-row .modal-cta { margin-top: 0; flex: 1 1 220px; }
.modal-learn { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #1a1a1a; border: 1px solid #1a1a1a; padding: 15px 22px; transition: background .2s, color .2s; white-space: nowrap; }
.modal-learn:hover { background: #1a1a1a; color: #fff; }
.modal-inline-form { margin-top: 22px; border-top: 1px solid #f0f0f0; padding-top: 22px; }
.modal-inline-form iframe { width: 100%; border: none; display: block; }

/* ═══ INQUIRY FORM POPUP — wider + more horizontal breathing room ═══ */
/* display:none keeps the popup (and its cached iframe) out of layout when closed;
   site.js toggles display to flex/block on open and back to none on close. */
#form-pop { width: min(860px, 95vw); display: none; }
#form-pop-backdrop { display: none; }
#form-pop-body { padding: 8px 30px 30px; }
@media (max-width: 768px) {
  #form-pop { width: 96vw; }
  #form-pop-body { padding: 6px 16px 20px; }
}

/* ═══ BLOG LISTING — editorial two-column (WP-style) ═══ */
.blog-editorial { display: grid; grid-template-columns: 2.2fr 1fr; gap: 52px; align-items: start; margin-top: 8px; }
.blog-main { min-width: 0; }
.blog-editorial .blog-featured { margin-top: 0; height: 440px; }
.blog-list { margin-top: 36px; display: flex; flex-direction: column; }
.blog-list-item { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding: 28px 0; border-top: 1px solid #ececec; }
.blog-list-item:first-child { border-top: none; padding-top: 4px; }
.blog-list-thumb { overflow: hidden; height: 158px; display: block; }
.blog-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-list-item:hover .blog-list-thumb img { transform: scale(1.05); }
.blog-list-body .blog-card-cat { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #aaa; margin-bottom: 8px; }
.blog-list-body h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; line-height: 1.25; margin-bottom: 9px; }
.blog-list-body h3 a:hover { color: #555; }
.blog-list-body p { font-size: 14px; color: #777; line-height: 1.65; margin-bottom: 10px; }
.blog-list-body .blog-card-date { font-size: 11px; color: #bbb; letter-spacing: .06em; }

/* sidebar */
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget { margin-bottom: 44px; }
.sidebar-widget h4 { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #1a1a1a; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #1a1a1a; }
.cat-list, .recent-list { list-style: none; }
.cat-list li { border-bottom: 1px solid #ececec; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 14px; color: #444; transition: color .2s; }
.cat-list a:hover { color: #1a1a1a; }
.cat-list .cat-count { font-size: 11px; color: #aaa; }
.recent-item { display: grid; grid-template-columns: 66px 1fr; gap: 14px; padding: 12px 0; align-items: center; }
.recent-item img { width: 66px; height: 56px; object-fit: cover; }
.recent-meta { min-width: 0; }
.recent-title { display: block; font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 500; line-height: 1.3; color: #1a1a1a; }
.recent-date { display: block; font-size: 11px; color: #bbb; margin-top: 3px; }
.recent-item:hover .recent-title { color: #555; }

@media (max-width: 900px) {
  .blog-editorial { grid-template-columns: 1fr; gap: 44px; }
  .blog-sidebar { position: static; }
}
@media (max-width: 600px) {
  .blog-list-item { grid-template-columns: 1fr; gap: 12px; }
  .blog-list-thumb { height: 200px; }
}

/* ═══ FORM POPUP — never intercept clicks when closed (same guard as event modal) ═══ */
#form-pop, #form-pop-backdrop { pointer-events: none; }
#form-pop.open, #form-pop-backdrop.open { pointer-events: auto; }

/* ═══ GHL form_embed.js overlay safety net ═══
   GHL injects a full-screen <div class="ep-overlay"> (position:fixed; inset:0;
   z-index:10000) for POPUP/sticky forms. It can linger after close (faded but on
   top) and swallow clicks on our buttons/cards. We already force INLINE layout on
   our embeds; this guarantees any injected overlay is click-through while keeping
   the form and its controls usable. */
.ep-overlay { pointer-events: none !important; }
.ep-overlay iframe,
.ep-overlay .ep-close-icon,
.ep-overlay .ep-minimize-icon { pointer-events: auto !important; }
.ep-close-icon, .ep-minimize-icon { pointer-events: auto !important; }

/* ═══ BLOG POST PAGE — two-column (article + sidebar) ═══ */
.post-page { padding-top: 124px; padding-bottom: 72px; }
.post-page .blog-main { min-width: 0; }
@media (max-width: 768px) { .post-page { padding-top: 100px; } }

/* ═══ SPACES — "The Loft" separator (matches .spaces-intro rhythm) ═══ */
.space-separator { background: #fff; }
