/* National Parks directory — page-scoped styles (.parks-*, .pk-*)
 *
 * Flat design: solid colors only, NO gradients anywhere (backgrounds,
 * borders, shadows). White text over photography sits on a flat
 * solid-rgba scrim — never a text-shadow.
 */

/* =========================================================
   INDEX — full-viewport hero
   ========================================================= */

.pk-hero {
    position: relative;
    height: calc(100vh - var(--nav-height, 80px));
    height: calc(100svh - var(--nav-height, 80px));
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: #1c1a17;
}
.pk-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
}
/* Flat solid scrim — the only thing between the photo and the type. */
.pk-hero__scrim {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.58);
    z-index: 1;
}
.pk-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 0.5rem;
    width: 100%;
}
@media (min-width: 640px) {
    .pk-hero__inner { padding: 2rem 1rem; }
}

.parks-header-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.625rem;
}
.parks-header-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: none;
    color: #ffffff;
    margin: 0 0 0.75rem;
}
.parks-header-title em {
    font-style: italic;
    color: var(--color-primary, #D4922A);
}
.parks-header-sub {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
    margin: 0;
}

/* ── Controls band ── */
.parks-controls {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 20;
}
.parks-controls-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
@media (min-width: 640px) { .parks-controls-inner { padding: 0.75rem 1rem; } }
.parks-toolbar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    white-space: nowrap;
}
.parks-toolbar-count { color: var(--color-primary, #D4922A); }
.parks-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.parks-chip {
    padding: 5px 13px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--color-border, #EDE4D9);
    border-radius: 999px;
    background: #fbf6f0;
    color: #6b6056;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
    font-family: inherit;
}
.parks-chip:hover { color: #1c1c1c; }
.parks-chip--active,
.parks-chip--active:hover {
    background: var(--color-primary, #D4922A);
    border-color: var(--color-primary, #D4922A);
    color: #ffffff;
}

/* Justified gallery base styles live in static/css/editorial-justified.css (.ej-*) */

/* ── Justified gallery — page-local overrides (no .ej-* equivalent) ── */
/* Section wrapper: keeps the parks vertical rhythm (ej-wrap has no y-padding). */
.parks-justified-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 0.5rem 3rem;
}
@media (min-width: 640px) { .parks-justified-wrap { padding: 1rem 1rem 3rem; } }

/* Placeholder tile shown when a park has no cover image (composes on .ej-img). */
.parks-justified-img--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: #ece3d6;
    color: #8a7a63;
}
.parks-placeholder-initial {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

/* Parks-specific corner badges (distinct 10px chrome; no .ej-badge equivalent). */
.parks-justified-badge {
    position: absolute;
    top: 8px;
    z-index: 3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    color: #ffffff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.parks-justified-badge--hidden {
    right: 8px;
    background: #111111;
}

@media (max-width: 767px) {
    /* Placeholder has no intrinsic image, so give it a ratio when it goes full-width. */
    .parks-justified-img--placeholder { aspect-ratio: 3 / 2; }
}
