/**
 * Single State Park Page Styles
 * 
 * Styling for individual state park pages with hero section,
 * activity icons bar, and two-column layout.
 * 
 * @version 2.7.0
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --sp-single-primary: #1a5a1a;
    --sp-single-primary-light: #2d7d2d;
    --sp-single-primary-dark: #0f3d0f;
    --sp-single-accent: #4CAF50;
    --sp-single-text: #333;
    --sp-single-text-light: #666;
    --sp-single-bg: #f8faf8;
    --sp-single-white: #fff;
    --sp-single-border: #e0e8e0;
    --sp-single-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --sp-single-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --sp-single-radius: 12px;
    --sp-single-radius-sm: 8px;

    /* Container widths - WIDER to use full available space */
    --sp-content-width-base: 1400px;
    --sp-content-width-lg: 100%;
    --sp-content-width-xl: 100%;
    --sp-content-width-xxl: 100%;
    --sp-content-width-ultra: 100%;

    /* Sidebar widths - compact to give more space to content */
    --sp-sidebar-width: 320px;
    --sp-sidebar-width-lg: 340px;
    --sp-sidebar-width-xl: 360px;

    /* Left TOC widths for 3-column layout */
    --sp-toc-width: 240px;
    --sp-toc-width-lg: 260px;
    --sp-toc-width-xl: 280px;
}


/* ==========================================================================
   LAYOUT OVERRIDES - Centered Layout with Visible Margins
   ========================================================================== */

/* Base page background for large screens */
body.single-state_park {
    background: linear-gradient(180deg, #f0f5f0 0%, #e8f0e8 100%);
    overflow-x: hidden;
}

/* Main wrapper must fill full width for article centering to work */
body.single-state_park #main.sp-single-main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Allow parent containers to fill viewport */
body.single-state_park .site-content,
body.single-state_park .ast-container,
body.single-state_park #primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* CRITICAL: Override Astra theme's article padding that constrains 3-column layout
   Astra uses: .ast-separate-container .ast-article-single { padding: 5.34em 6.67em }
   Our selectors MUST exceed this specificity and use !important */
body.single-state_park article.sp-single-park,
body.single-state_park article.ast-article-single,
body.single-state_park article.sp-single-park.ast-article-single,
.ast-separate-container.single-state_park article.sp-single-park,
.ast-separate-container.single-state_park article.ast-article-single,
.ast-separate-container.single-state_park article.sp-single-park.ast-article-single,
body.ast-separate-container.single-state_park article.sp-single-park,
body.ast-separate-container.single-state_park article.ast-article-single,
body.ast-separate-container.single-state_park article.sp-single-park.ast-article-single,
.ast-separate-container .ast-article-single.sp-single-park,
body.single-state_park.ast-separate-container .ast-article-single,
body.single-state_park .ast-separate-container article.sp-single-park {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Force entry-content to be full width */
body.single-state_park .entry-content,
.ast-separate-container.single-state_park .entry-content,
body.ast-separate-container.single-state_park .entry-content,
body.single-state_park.ast-separate-container .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.sp-breadcrumbs {
    background: linear-gradient(135deg, #f8faf8 0%, #f0f5f0 100%);
    border-bottom: 1px solid var(--sp-single-border);
    padding: 12px 0;
}

.sp-breadcrumbs-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.sp-breadcrumbs a {
    color: var(--sp-single-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-breadcrumbs a:hover {
    color: var(--sp-single-primary-dark);
    text-decoration: underline;
}

.sp-breadcrumb-sep {
    color: var(--sp-single-text-light);
    margin: 0 4px;
}

.sp-breadcrumb-current {
    color: var(--sp-single-text-light);
    font-weight: 500;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.sp-single-hero {
    position: relative;
    z-index: 1 !important;
    /* Override Astra child theme: sets z-index:101!important on all <header> tags */
    width: 100%;
    min-height: clamp(300px, 40vh, 450px);
    max-height: clamp(400px, 50vh, 550px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.sp-single-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sp-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 61, 15, 0.95) 0%,
            rgba(26, 90, 26, 0.7) 40%,
            rgba(26, 90, 26, 0.3) 70%,
            transparent 100%);
}

.sp-single-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    color: var(--sp-single-white);
    /* Center all hero elements horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sp-single-hero-content .sp-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a3d1a;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-single-hero-content .sp-state-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.sp-single-hero-content .sp-state-badge svg {
    width: 18px;
    height: 18px;
}

.sp-single-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--sp-single-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.sp-single-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.sp-single-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-single-hero-meta svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* ==========================================================================
   ACTIVITY ICONS BAR - Full Width Display
   ========================================================================== */

.sp-single-activities-bar {
    background: var(--sp-single-white);
    border-bottom: 1px solid var(--sp-single-border);
    padding: 24px clamp(20px, 5vw, 80px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.sp-single-activities-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.sp-single-activities-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sp-single-text-light);
    margin-bottom: 16px;
    font-weight: 600;
}

/* CSS Grid with auto-fit for dynamic column count based on available width */
.sp-single-activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: clamp(12px, 2vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Activity items layout - Grid-optimized */

.sp-single-activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 4px;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: default;
}

.sp-single-activity-item:hover {
    transform: translateY(-3px);
}

/* Activity icon tooltips - show activity name on hover */
.sp-single-activity-item[title],
.sp-single-sidebar-icon[title],
.sp-related-park-icon[title],
[class*="sp-"][class*="icon"][title] {
    cursor: help;
}

.sp-single-activity-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sp-single-primary-light), var(--sp-single-primary));
    border-radius: 10px;
    color: var(--sp-single-white);
    box-shadow: 0 4px 12px rgba(26, 90, 26, 0.3);
    transition: all 0.2s ease;
}

.sp-single-activity-icon svg {
    width: 28px;
    height: 28px;
}

.sp-single-activity-item:hover .sp-single-activity-icon {
    background: linear-gradient(135deg, var(--sp-single-accent), var(--sp-single-primary-light));
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.sp-single-activity-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sp-single-text);
}

/* ==========================================================================
   MAIN CONTENT LAYOUT - 3-Column Responsive Grid
   ========================================================================== */

/* Base layout wrapper - contains TOC, Content, Sidebar */
.sp-single-layout-wrapper {
    max-width: var(--sp-content-width-base);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 60px);
    display: grid;
    /* Default: 2-column (content + sidebar) for tablets */
    grid-template-columns: 1fr minmax(280px, 340px);
    grid-template-areas: "content sidebar";
    gap: clamp(24px, 3vw, 40px);
}

/* Legacy fallback - will be replaced by wrapper in template */
.sp-single-main {
    max-width: var(--sp-content-width-base);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 60px);
    display: grid;
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: clamp(24px, 3vw, 40px);
}

/* Sticky Left TOC - New 3-column element */
.sp-sticky-toc {
    grid-area: toc;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: flex-start;
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    padding: 20px;
    box-shadow: var(--sp-single-shadow);
    scrollbar-width: thin;
    scrollbar-color: var(--sp-single-border) transparent;
    display: none;
    /* Hidden by default, shown on larger screens */
}

.sp-sticky-toc::-webkit-scrollbar {
    width: 4px;
}

.sp-sticky-toc::-webkit-scrollbar-thumb {
    background: var(--sp-single-border);
    border-radius: 4px;
}

.sp-sticky-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sp-single-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sp-single-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-sticky-toc-title::before {
    content: '📑';
    font-size: 1rem;
}

.sp-sticky-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-sticky-toc-item {
    margin-bottom: 2px;
}

.sp-sticky-toc-link {
    display: block;
    padding: 8px 12px;
    color: #2e7d32;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.sp-sticky-toc-link:hover {
    background: var(--sp-single-bg);
    color: var(--sp-single-primary);
}

.sp-sticky-toc-link.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(139, 195, 74, 0.12));
    color: #2e7d32;
    border-left-color: #4caf50;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.2);
}

/* Content area in grid */
.sp-single-content {
    grid-area: content;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    /* Important for grid children to prevent overflow */
}

/* Sidebar area in grid */
.sp-single-sidebar {
    grid-area: sidebar;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    /* Important for grid children to prevent overflow */
}

/* ==========================================================================
   WIDESCREEN BREAKPOINTS - Progressive Layout Enhancement
   ========================================================================== */

/* Desktop with 3-Column Layout (≥1200px) */
@media (min-width: 1200px) {

    /* New 3-column layout wrapper — capped to prevent excess stretching */
    .sp-single-layout-wrapper {
        max-width: 1400px;
        grid-template-columns: var(--sp-toc-width) 1fr var(--sp-sidebar-width);
        grid-template-areas: "toc content sidebar";
        gap: 32px;
        padding: 40px 24px;
    }

    /* Show the sticky TOC */
    .sp-sticky-toc {
        display: block;
    }

    /* Hide the floating TOC - we use sticky TOC now */
    .sp-floating-toc {
        display: none !important;
    }

    /* Article uses full width now */
    body.single-state_park article.sp-single-park {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Large Desktop (≥1400px) */
@media (min-width: 1400px) {
    body.single-state_park article.sp-single-park {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .sp-single-layout-wrapper {
        max-width: 1500px;
        grid-template-columns: var(--sp-toc-width-lg) 1fr var(--sp-sidebar-width-lg);
        gap: 40px;
        padding: 48px 40px;
    }

    .sp-single-main {
        max-width: 1500px;
        grid-template-columns: 1fr 340px;
        gap: 40px;
        padding: 48px 40px;
    }

    .sp-single-content {
        padding: 44px;
    }
}

/* Wide Desktop (≥1600px) */
@media (min-width: 1600px) {
    body.single-state_park article.sp-single-park {
        max-width: 100%;
        margin: 0;
    }

    .sp-single-layout-wrapper {
        max-width: 1600px;
        grid-template-columns: var(--sp-toc-width-xl) 1fr var(--sp-sidebar-width-xl);
        gap: 44px;
        padding: 48px 48px;
    }

    .sp-single-main {
        max-width: 1600px;
        grid-template-columns: 1fr 360px;
        gap: 44px;
        padding: 48px 48px;
    }

    .sp-single-content {
        padding: 48px;
    }

    .sp-single-hero {
        min-height: 450px;
        max-height: 550px;
    }

    .sp-single-hero-content h1 {
        font-size: clamp(2.5rem, 4vw, 3.25rem);
    }

    .sp-single-activities-inner {
        max-width: 100%;
    }
}

/* Full HD Desktop (≥1920px) */
@media (min-width: 1920px) {
    body.single-state_park article.sp-single-park {
        max-width: 100%;
        margin: 0;
    }

    .sp-single-layout-wrapper {
        max-width: 1700px;
        gap: 48px;
        padding: 56px 60px;
    }

    .sp-single-main {
        max-width: 1700px;
        gap: 48px;
        padding: 56px 60px;
    }

    .sp-single-content {
        padding: 52px;
    }

    .sp-single-hero {
        min-height: 500px;
        max-height: 600px;
    }

    .sp-single-hero-content h1 {
        font-size: 3.5rem;
    }

    .sp-single-activities-inner {
        max-width: 100%;
    }

    .sp-breadcrumbs-inner {
        max-width: 100%;
    }
}

/* Ultra-Wide / 4K (≥2560px) */
@media (min-width: 2560px) {
    body.single-state_park article.sp-single-park {
        max-width: 2200px;
    }

    .sp-single-main {
        max-width: var(--sp-content-width-ultra);
        gap: 72px;
        padding: 64px 120px;
    }

    .sp-single-content {
        padding: 60px;
    }

    .sp-single-hero {
        min-height: 550px;
        max-height: 700px;
    }

    .sp-single-hero-content h1 {
        font-size: 4rem;
    }
}


/* Content Column */
.sp-single-content {
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    padding: 40px;
    box-shadow: var(--sp-single-shadow);
}

/* ==========================================================================
   INLINE CONTENT STYLING OVERRIDES
   Ensures that inline-styled elements from post content (grids, cards,
   hero containers, tables) fill the available width properly.
   ========================================================================== */

/* Inline hero containers inside post content */
.sp-single-content .park-hero-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Feature card grids — fill parent properly */
.sp-single-content .park-features-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* Individual feature cards — flexible within grid */
.sp-single-content .park-feature-card {
    min-width: 0;
    /* grid child overflow fix */
    width: 100%;
}

/* Alert and warning boxes */
.sp-single-content .park-alert-box,
.sp-single-content .park-warning-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Tables inside content — full width, responsive */
.sp-single-content table {
    width: 100% !important;
    max-width: 100% !important;
}

/* Park intro section */
.sp-single-content .park-intro-section {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure all direct children of content fill width */
.sp-single-content>div,
.sp-single-content>section {
    max-width: 100%;
    box-sizing: border-box;
}

.sp-single-content h2,
.sp-single-content h3,
.sp-single-content h4 {
    color: var(--sp-single-primary);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.sp-single-content h2:first-child,
.sp-single-content h3:first-child {
    margin-top: 0;
}

.sp-single-content p {
    line-height: 1.8;
    color: var(--sp-single-text);
    margin-bottom: 1.25em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    text-align: justify;
    text-align-last: left;
}

/* ==========================================================================
   LINKS IN DARK/COLORED BACKGROUND BLOCKS
   Make links more visible in Gutenberg blocks with dark backgrounds
   ========================================================================== */

/* Links in blocks with dark/green backgrounds - make them white and prominent */
.sp-single-content .has-background a,
.sp-single-content [style*="background"] a,
.sp-single-content .wp-block-group.has-background a {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sp-single-content .has-background a:hover,
.sp-single-content [style*="background"] a:hover,
.sp-single-content .wp-block-group.has-background a:hover {
    color: #FFD700 !important;
    text-decoration-color: #FFD700;
}

/* Official Website Link - make it stand out as a button-like CTA */
.sp-single-content .has-background a[href*="parks.ca.gov"],
.sp-single-content .has-background a[href*="state.park"],
.sp-single-content .has-background a[href*="stateparks"],
.sp-single-content [style*="background"] a[href*="parks.ca.gov"],
.sp-single-content [style*="background"] a[href*="state.park"],
.sp-single-content [style*="background"] a[href*="stateparks"] {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-decoration: none !important;
    margin-top: 8px;
}

.sp-single-content .has-background a[href*="parks.ca.gov"]:hover,
.sp-single-content .has-background a[href*="state.park"]:hover,
.sp-single-content .has-background a[href*="stateparks"]:hover,
.sp-single-content [style*="background"] a[href*="parks.ca.gov"]:hover,
.sp-single-content [style*="background"] a[href*="state.park"]:hover,
.sp-single-content [style*="background"] a[href*="stateparks"]:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFD700;
    color: #FFD700 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Season Table */
.sp-single-content .sp-season-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-season-table th,
.sp-season-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-season-table thead {
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
}

.sp-season-table th {
    font-weight: 600;
}

.sp-season-table tbody tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

.sp-season-table .sp-best-season {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    font-weight: 500;
}

.sp-season-table .sp-best-season td {
    border-bottom-color: #FFD700;
}

/* Camping Table */
.sp-single-content .sp-camping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-camping-table th,
.sp-camping-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-camping-table thead {
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
}

.sp-camping-table th {
    font-weight: 600;
}

.sp-camping-table tbody tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

/* Trails Table */
.sp-single-content .sp-trails-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-trails-table th,
.sp-trails-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-trails-table thead {
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
}

.sp-trails-table th {
    font-weight: 600;
}

.sp-trails-table tbody tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

.sp-trails-table td:nth-child(3) {
    font-weight: 500;
}

/* Budget Table */
.sp-single-content .sp-budget-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-budget-table th,
.sp-budget-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-budget-table thead {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: var(--sp-single-white);
}

.sp-budget-table th {
    font-weight: 600;
}

.sp-budget-table tbody tr:hover {
    background: rgba(21, 101, 192, 0.05);
}

.sp-budget-table .sp-total-row {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
    font-weight: 600;
}

/* Wildlife Table */
.sp-single-content .sp-wildlife-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-wildlife-table th,
.sp-wildlife-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-wildlife-table thead {
    background: linear-gradient(135deg, #EF6C00, #F57C00);
    color: var(--sp-single-white);
}

.sp-wildlife-table th {
    font-weight: 600;
}

.sp-wildlife-table tbody tr:hover {
    background: rgba(239, 108, 0, 0.05);
}

/* Safety Table */
.sp-single-content .sp-safety-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-safety-table th,
.sp-safety-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-safety-table thead {
    background: linear-gradient(135deg, #c62828, #d32f2f);
    color: var(--sp-single-white);
}

.sp-safety-table th {
    font-weight: 600;
}

.sp-safety-table tbody tr:hover {
    background: rgba(198, 40, 40, 0.05);
}

/* ==========================================================================
   DARK BOX - Photography Tips, Pro Tips, Expert Insights
   Dark gradient background with white text. No inline color spans needed.
   ========================================================================== */

.sp-single-content .sp-dark-box {
    background: linear-gradient(135deg, #1a3d1a, #2e5a2e);
    color: #ffffff;
    padding: 2em;
    border-radius: 16px;
    margin: 1.5em 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sp-dark-box h3,
.sp-dark-box h4 {
    color: #FFD700 !important;
    margin-top: 0;
}

.sp-dark-box p,
.sp-dark-box li,
.sp-dark-box span,
.sp-dark-box strong,
.sp-dark-box em {
    color: #ffffff !important;
}

.sp-dark-box a {
    color: #90caf9 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sp-dark-box a:hover {
    color: #FFD700 !important;
}

/* ==========================================================================
   INFO BOX - Rules, Warnings, Important Notes
   Light blue callout box for key information.
   ========================================================================== */

.sp-single-content .sp-info-box {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-left: 5px solid #1976D2;
    padding: 1.5em 2em;
    border-radius: 12px;
    margin: 1.5em 0;
}

.sp-info-box h3,
.sp-info-box h4 {
    color: #1565C0 !important;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.sp-info-box p {
    color: #1a1a1a !important;
    margin-bottom: 0.5em;
}

.sp-info-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   AT A GLANCE TABLE (In Content Area)
   Quick-reference overview table at the top of the article.
   ========================================================================== */

.sp-single-content .sp-at-a-glance {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-at-a-glance th,
.sp-at-a-glance td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-at-a-glance thead {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: var(--sp-single-white);
}

.sp-at-a-glance th {
    font-weight: 600;
}

.sp-at-a-glance tbody tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

.sp-at-a-glance td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 35%;
}

/* ==========================================================================
   ACTIVITY TABLE
   Lists activities with seasons, difficulty, and details.
   ========================================================================== */

.sp-single-content .sp-activity-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-activity-table th,
.sp-activity-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-activity-table thead {
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
}

.sp-activity-table th {
    font-weight: 600;
}

.sp-activity-table tbody tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

/* ==========================================================================
   FEE TABLE
   Entry fees, permit costs, and pricing information.
   ========================================================================== */

.sp-single-content .sp-fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-fee-table th,
.sp-fee-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-fee-table thead {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: var(--sp-single-white);
}

.sp-fee-table th {
    font-weight: 600;
}

.sp-fee-table tbody tr:hover {
    background: rgba(21, 101, 192, 0.05);
}

/* ==========================================================================
   DIRECTIONS TABLE
   Driving distances and routes from nearby cities.
   ========================================================================== */

.sp-single-content .sp-directions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-directions-table th,
.sp-directions-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-directions-table thead {
    background: linear-gradient(135deg, #546E7A, #607D8B);
    color: var(--sp-single-white);
}

.sp-directions-table th {
    font-weight: 600;
}

.sp-directions-table tbody tr:hover {
    background: rgba(84, 110, 122, 0.05);
}

/* ==========================================================================
   INFO TABLE - General Purpose Park Information Table
   Used in Weltklasse articles for park facts, trail overviews, camping info.
   ========================================================================== */

.sp-single-content .sp-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.sp-info-table th,
.sp-info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-info-table thead {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: var(--sp-single-white);
}

.sp-info-table th {
    font-weight: 600;
}

.sp-info-table tbody tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

.sp-info-table td:first-child {
    font-weight: 600;
}

/* ==========================================================================
   PACKING GRID - 3-Column Responsive Packing List
   Categorized packing items in a visual grid layout.
   ========================================================================== */

.sp-packing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 1.5em 0;
}

.sp-packing-column {
    background: var(--sp-single-bg);
    border-radius: 12px;
    padding: 1.5em;
}

.sp-packing-column h4 {
    color: var(--sp-single-primary) !important;
    margin-top: 0;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--sp-single-border);
}

.sp-packing-column p {
    margin-bottom: 0.4em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sp-packing-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sp-packing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA Box */
.sp-cta-box {
    background: linear-gradient(135deg, var(--sp-single-primary), #2e7d32);
    color: var(--sp-single-white);
    padding: 2em;
    border-radius: 16px;
    text-align: center;
    margin: 2em 0;
}

.sp-cta-box h3 {
    color: var(--sp-single-white);
    margin-top: 0;
    font-size: 1.5rem;
}

.sp-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5em;
}

/* Links inside CTA Box - Premium Glassmorphic Button Style */
.sp-cta-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    padding: 14px 28px;
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on button */
.sp-cta-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

/* External link arrow icon */
.sp-cta-box a::after {
    content: '↗';
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.sp-cta-box a:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.35) 0%, rgba(255, 193, 7, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.8);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sp-cta-box a:hover::before {
    left: 100%;
}

.sp-cta-box a:hover::after {
    transform: translate(3px, -3px);
}

.sp-cta-box a:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* CTA Buttons Container - inline layout */
.sp-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.sp-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sp-single-white);
    color: var(--sp-single-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sp-cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--sp-single-white);
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sp-cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sp-single-white);
}

/* Last Updated Badge */
.sp-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2em;
    padding: 12px 18px;
    background: var(--sp-single-bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--sp-single-text-light);
    border-left: 3px solid var(--sp-single-primary);
}

.sp-last-updated svg {
    opacity: 0.7;
}

.sp-single-content img {
    border-radius: var(--sp-single-radius-sm);
    margin: 1.5em 0;
    max-width: 100%;
    height: auto;
}

/* Trust Badge Inline (in content) */
.sp-trust-badge-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a3d1a;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5em;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-align: left;
}

.sp-trust-badge-inline strong {
    display: inline;
}

.sp-trust-badge-inline img {
    display: inline;
    margin: 0;
}

/* ==========================================================================
   SIDEBAR - AT A GLANCE
   ========================================================================== */

.sp-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sticky Sidebar on Desktop (≥992px) */
@media (min-width: 992px) {
    .sp-single-sidebar {
        position: sticky;
        top: 100px;
        align-self: flex-start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--sp-single-border) transparent;
    }

    .sp-single-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .sp-single-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .sp-single-sidebar::-webkit-scrollbar-thumb {
        background: var(--sp-single-border);
        border-radius: 4px;
    }

    .sp-single-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--sp-single-primary-light);
    }
}

.sp-single-at-glance {
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    padding: 28px;
    box-shadow: var(--sp-single-shadow);
}

.sp-single-at-glance-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sp-single-primary);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sp-single-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-single-at-glance-title svg {
    width: 22px;
    height: 22px;
    color: var(--sp-single-accent);
}

.sp-single-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-single-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-single-info-item:last-child {
    border-bottom: none;
}

.sp-single-info-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-single-bg);
    border-radius: 8px;
    color: var(--sp-single-primary);
    flex-shrink: 0;
}

.sp-single-info-icon svg {
    width: 20px;
    height: 20px;
}

.sp-single-info-content {
    flex: 1;
    min-width: 0;
}

.sp-single-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sp-single-text-light);
    margin-bottom: 4px;
}

.sp-single-info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sp-single-text);
    word-break: break-word;
}

.sp-single-info-value a {
    color: var(--sp-single-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.sp-single-info-value a:hover {
    color: var(--sp-single-accent);
}

/* Sidebar Activity Icons (compact) */
.sp-single-sidebar-activities {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--sp-single-border);
}

.sp-single-sidebar-activities-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sp-single-text-light);
    margin-bottom: 12px;
}

.sp-single-sidebar-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-single-sidebar-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-single-bg);
    border-radius: 8px;
    color: var(--sp-single-primary);
    transition: all 0.2s;
}

.sp-single-sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.sp-single-sidebar-icon:hover {
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
}

/* CTA Button */
.sp-single-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--sp-single-primary-light), var(--sp-single-primary));
    color: var(--sp-single-white);
    border: none;
    border-radius: var(--sp-single-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(26, 90, 26, 0.3);
}

.sp-single-cta-button:hover {
    background: linear-gradient(135deg, var(--sp-single-accent), var(--sp-single-primary-light));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    color: var(--sp-single-white);
}

.sp-single-cta-button svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   FLOATING LEFT TOC (Desktop Navigation)
   ========================================================================== */

/* Base - Hidden on mobile/tablet */
.sp-floating-toc {
    display: none;
}

/* Large Desktop (≥1400px) - Full floating TOC */
@media (min-width: 1400px) {
    .sp-floating-toc {
        display: block;
        position: fixed;
        left: 16px;
        top: 120px;
        width: 280px;
        z-index: 100;
        transition: all 0.3s ease;
    }

    .sp-floating-toc.is-collapsed {
        width: 44px;
    }

    .sp-floating-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 12px;
        background: var(--sp-single-white);
        color: var(--sp-single-primary);
        cursor: pointer;
        box-shadow: var(--sp-single-shadow);
        transition: all 0.2s ease;
        margin-bottom: 12px;
    }

    .sp-floating-toc-toggle:hover {
        background: var(--sp-single-primary);
        color: var(--sp-single-white);
        transform: scale(1.05);
    }

    .sp-floating-toc-toggle svg {
        width: 20px;
        height: 20px;
    }

    .sp-floating-toc-toggle .sp-toc-icon-close {
        display: none;
    }

    .sp-floating-toc.is-collapsed .sp-toc-icon-list {
        display: none;
    }

    .sp-floating-toc.is-collapsed .sp-toc-icon-close {
        display: block;
    }

    .sp-floating-toc-content {
        background: var(--sp-single-white);
        border-radius: var(--sp-single-radius);
        padding: 20px 16px;
        box-shadow: var(--sp-single-shadow);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    .sp-floating-toc.is-collapsed .sp-floating-toc-content {
        opacity: 0;
        visibility: hidden;
        height: 0;
        padding: 0;
        margin: 0;
    }

    .sp-floating-toc-title {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--sp-single-primary);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin: 0 0 14px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--sp-single-border);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .sp-floating-toc-title::before {
        content: '📑';
        font-size: 1rem;
    }

    .sp-floating-toc-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sp-floating-toc-item {
        margin-bottom: 2px;
    }

    .sp-floating-toc-item-sub {
        padding-left: 12px;
    }

    .sp-floating-toc-link {
        display: block;
        padding: 8px 10px;
        color: #2e7d32;
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 500;
        border-radius: 6px;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
        line-height: 1.4;
        /* Allow text to wrap */
        white-space: normal;
        word-wrap: break-word;
    }

    .sp-floating-toc-link:hover {
        background: var(--sp-single-bg);
        color: var(--sp-single-primary);
    }

    .sp-floating-toc-link.active {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(139, 195, 74, 0.12));
        color: #2e7d32;
        border-left-color: #4caf50;
        font-weight: 700;
        box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.2);
    }

    /* Collapsible TOC Hierarchy */
    .sp-floating-toc-link-wrap {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .sp-floating-toc-link-wrap .sp-floating-toc-link {
        flex: 1;
        min-width: 0;
    }

    .sp-floating-toc-triangle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border: none;
        background: transparent;
        color: var(--sp-single-text-light);
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        transition: transform 0.25s ease, color 0.2s;
        border-radius: 4px;
    }

    .sp-floating-toc-triangle:hover {
        color: var(--sp-single-primary);
        background: var(--sp-single-bg);
    }

    .sp-floating-toc-has-children.is-open>.sp-floating-toc-link-wrap .sp-floating-toc-triangle {
        transform: rotate(90deg);
    }

    .sp-floating-toc-children {
        list-style: none;
        margin: 0;
        padding: 0 0 0 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    }

    .sp-floating-toc-has-children.is-open>.sp-floating-toc-children {
        max-height: 500px;
        opacity: 1;
        padding-top: 2px;
        padding-bottom: 4px;
    }

    .sp-floating-toc-item-sub .sp-floating-toc-link {
        font-size: 0.78rem;
        padding: 5px 10px;
        border-left-width: 2px;
    }

    /* Scrollbar for floating TOC */
    .sp-floating-toc-content::-webkit-scrollbar {
        width: 3px;
    }

    .sp-floating-toc-content::-webkit-scrollbar-thumb {
        background: var(--sp-single-border);
        border-radius: 3px;
    }
}

/* Medium Desktop (1200-1399px) - Collapsed by default, expand on hover */
@media (min-width: 1200px) and (max-width: 1399px) {
    .sp-floating-toc {
        display: block;
        position: fixed;
        left: 16px;
        top: 120px;
        z-index: 100;
    }

    .sp-floating-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 10px;
        background: var(--sp-single-white);
        color: var(--sp-single-primary);
        cursor: pointer;
        box-shadow: var(--sp-single-shadow);
        transition: all 0.2s ease;
    }

    .sp-floating-toc-toggle:hover {
        background: var(--sp-single-primary);
        color: var(--sp-single-white);
    }

    .sp-floating-toc-toggle .sp-toc-icon-close {
        display: none;
    }

    .sp-floating-toc.is-expanded .sp-toc-icon-list {
        display: none;
    }

    .sp-floating-toc.is-expanded .sp-toc-icon-close {
        display: block;
    }

    .sp-floating-toc-content {
        position: absolute;
        left: 0;
        top: 48px;
        width: 200px;
        background: var(--sp-single-white);
        border-radius: var(--sp-single-radius);
        padding: 16px 20px;
        box-shadow: var(--sp-single-shadow);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
    }

    .sp-floating-toc.is-expanded .sp-floating-toc-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sp-floating-toc-title {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--sp-single-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0 0 12px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--sp-single-border);
    }

    .sp-floating-toc-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sp-floating-toc-link {
        display: block;
        padding: 6px 10px;
        color: #2e7d32;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: 6px;
        border-left: 2px solid transparent;
        transition: all 0.2s ease;
        line-height: 1.3;
    }

    .sp-floating-toc-link:hover {
        background: var(--sp-single-bg);
        color: var(--sp-single-primary);
    }

    .sp-floating-toc-link.active {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(139, 195, 74, 0.12));
        color: #2e7d32;
        border-left-color: #4caf50;
        font-weight: 700;
        box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.2);
    }

    /* Collapsible TOC Hierarchy (Medium Desktop) */
    .sp-floating-toc-link-wrap {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .sp-floating-toc-link-wrap .sp-floating-toc-link {
        flex: 1;
        min-width: 0;
    }

    .sp-floating-toc-triangle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border: none;
        background: transparent;
        color: var(--sp-single-text-light);
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        transition: transform 0.25s ease, color 0.2s;
        border-radius: 4px;
    }

    .sp-floating-toc-triangle:hover {
        color: var(--sp-single-primary);
        background: var(--sp-single-bg);
    }

    .sp-floating-toc-has-children.is-open>.sp-floating-toc-link-wrap .sp-floating-toc-triangle {
        transform: rotate(90deg);
    }

    .sp-floating-toc-children {
        list-style: none;
        margin: 0;
        padding: 0 0 0 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .sp-floating-toc-has-children.is-open>.sp-floating-toc-children {
        max-height: 500px;
        opacity: 1;
        padding-top: 2px;
    }

    .sp-floating-toc-item-sub .sp-floating-toc-link {
        font-size: 0.75rem;
        padding: 4px 8px;
        border-left-width: 2px;
    }
}

/* ==========================================================================
   STICKY TABLE OF CONTENTS (Sidebar - for mobile/tablet fallback)
   ========================================================================== */

.sp-single-toc {
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    padding: 20px 24px;
    box-shadow: var(--sp-single-shadow);
    /* Removed sticky - sidebar itself is now sticky */
    z-index: 10;
}

/* Hide sidebar TOC when floating TOC is visible (≥1200px) */
@media (min-width: 1200px) {
    .sp-single-toc {
        display: none;
    }
}

.sp-toc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-single-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sp-single-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-toc-title svg {
    width: 18px;
    height: 18px;
    color: var(--sp-single-accent);
    flex-shrink: 0;
}

.sp-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-toc-item {
    margin-bottom: 2px;
}

.sp-toc-item-sub {
    padding-left: 16px;
}

.sp-toc-item-sub .sp-toc-link {
    font-size: 0.8rem;
}

.sp-toc-link {
    display: block;
    padding: 8px 12px;
    color: var(--sp-single-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.sp-toc-link:hover {
    background: var(--sp-single-bg);
    color: var(--sp-single-primary);
    border-left-color: var(--sp-single-border);
}

.sp-toc-link.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(139, 195, 74, 0.12));
    color: #2e7d32;
    border-left-color: #4caf50;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.2);
}

/* ==========================================================================
   STICKY TOC - Collapsible Hierarchy
   ========================================================================== */

.sp-sticky-toc-link-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-sticky-toc-link-wrap .sp-sticky-toc-link {
    flex: 1;
    min-width: 0;
}

.sp-sticky-toc-triangle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--sp-single-text-light);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.2s;
    border-radius: 4px;
}

.sp-sticky-toc-triangle:hover {
    color: var(--sp-single-primary);
    background: var(--sp-single-bg);
}

.sp-sticky-toc-has-children.is-open>.sp-sticky-toc-link-wrap .sp-sticky-toc-triangle {
    transform: rotate(90deg);
}

.sp-sticky-toc-children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.sp-sticky-toc-has-children.is-open>.sp-sticky-toc-children {
    max-height: 500px;
    opacity: 1;
    padding-top: 2px;
    padding-bottom: 4px;
}

.sp-sticky-toc-item-sub .sp-sticky-toc-link {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-left-width: 2px;
}

/* Scrollbar styling for TOC */
.sp-single-toc::-webkit-scrollbar {
    width: 4px;
}

.sp-single-toc::-webkit-scrollbar-track {
    background: var(--sp-single-bg);
    border-radius: 4px;
}

.sp-single-toc::-webkit-scrollbar-thumb {
    background: var(--sp-single-border);
    border-radius: 4px;
}

.sp-single-toc::-webkit-scrollbar-thumb:hover {
    background: var(--sp-single-primary-light);
}

/* ==========================================================================
   RELATED PARKS SECTION
   ========================================================================== */

.sp-single-related {
    max-width: 100%;
    padding: 0 clamp(20px, 5vw, 80px) 60px;
}

.sp-single-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sp-single-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sp-single-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-single-related-title svg {
    width: 28px;
    height: 28px;
    color: var(--sp-single-accent);
}

.sp-single-related-title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.sp-single-related-title a:hover {
    border-bottom-color: var(--sp-single-accent);
}

/* Radius Badge in Nearby Parks Heading */
.sp-nearby-radius-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--sp-single-text-light);
    background: var(--sp-single-bg);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sp-single-related-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sp-single-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sp-single-related-link:hover {
    color: var(--sp-single-accent);
}

.sp-single-related-link svg {
    width: 18px;
    height: 18px;
}

.sp-single-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* Related Park Card */
.sp-related-park-card {
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    overflow: hidden;
    box-shadow: var(--sp-single-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.sp-related-park-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sp-single-shadow-hover);
}

.sp-related-park-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.sp-related-park-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sp-related-park-card:hover .sp-related-park-image img {
    transform: scale(1.05);
}

.sp-related-park-info {
    padding: 16px;
}

.sp-related-park-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sp-single-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.sp-related-park-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.sp-related-park-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
    border: 1px solid rgba(26, 90, 26, 0.15);
    border-radius: 8px;
    color: var(--sp-single-primary);
    transition: all 0.2s ease;
}

.sp-related-park-icon:hover {
    background: linear-gradient(135deg, #e8f5e8, #d8efd8);
    border-color: rgba(26, 90, 26, 0.3);
    transform: scale(1.05);
}

.sp-related-park-icon svg {
    width: 20px;
    height: 20px;
}

/* +X More Badge for Related Parks */
.sp-related-park-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sp-related-park-more:hover {
    background: var(--sp-single-primary-dark);
    transform: scale(1.05);
}

/* Activity Icons in Content Headings */
.sp-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--sp-single-primary-light), var(--sp-single-primary));
    border-radius: 6px;
    color: var(--sp-single-white);
    vertical-align: middle;
}

.sp-heading-icon svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   NEARBY PARKS SECTION (DISTANCE-BASED)
   ========================================================================== */

.sp-single-nearby {
    max-width: 100%;
    padding: 40px clamp(20px, 5vw, 80px) 60px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0%, rgba(139, 195, 74, 0.06) 100%);
    border-top: 3px solid var(--sp-single-primary);
}

/* Radius Selector in Nearby Section */
.sp-nearby-radius-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-radius-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sp-single-text-light);
}

.sp-radius-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--sp-single-white);
    border: 2px solid var(--sp-single-border);
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sp-single-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a5a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 120px;
}

.sp-radius-select:hover {
    border-color: var(--sp-single-primary);
    box-shadow: 0 2px 8px rgba(26, 90, 26, 0.15);
}

.sp-radius-select:focus {
    outline: none;
    border-color: var(--sp-single-accent);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.sp-radius-select:disabled {
    opacity: 0.6;
    cursor: wait;
}

.sp-radius-loading {
    display: inline-flex;
    align-items: center;
    color: var(--sp-single-accent);
}

.sp-radius-loading .sp-spinner {
    animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Empty State for Nearby Parks */
.sp-nearby-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    border: 2px dashed var(--sp-single-border);
}

.sp-nearby-empty p {
    margin: 0;
    color: var(--sp-single-text-light);
    font-size: 0.95rem;
}

.sp-nearby-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--sp-single-text-light);
    font-size: 0.95rem;
    width: 100%;
}

/* Responsive adjustments for Radius Selector */
@media (max-width: 768px) {
    .sp-single-nearby .sp-single-related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sp-nearby-radius-selector {
        width: 100%;
    }

    .sp-radius-select {
        flex: 1;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .sp-radius-label {
        font-size: 0.8rem;
    }

    .sp-radius-select {
        padding: 6px 32px 6px 12px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   NEARBY PARKS CAROUSEL
   ========================================================================== */

.sp-nearby-carousel-wrapper {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.sp-nearby-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    flex: 1;
}

.sp-nearby-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

section.sp-single-nearby .sp-nearby-carousel .sp-related-park-card {
    flex: 0 0 260px !important;
    /* Fixed width for 4 cards */
    min-width: 240px !important;
    max-width: 280px !important;
    scroll-snap-align: start;
}

.sp-nearby-scroll-btn {
    flex-shrink: 0;
    width: 40px;
    height: 56px;
    border: none;
    border-radius: 8px;
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(26, 90, 26, 0.25);
    transition: all 0.2s ease;
    z-index: 10;
}

.sp-nearby-scroll-btn:hover:not(:disabled) {
    background: var(--sp-single-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(26, 90, 26, 0.35);
}

.sp-nearby-scroll-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    background: #999;
}

.sp-nearby-scroll-btn svg {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    flex-shrink: 0;
    display: block !important;
    stroke-width: 2.5;
    stroke: currentColor;
}

/* Responsive adjustments for carousel */
@media (max-width: 1200px) {
    .sp-nearby-carousel .sp-related-park-card {
        flex: 0 0 calc(33.333% - 14px);
        /* 3 cards */
    }
}

@media (max-width: 992px) {
    .sp-nearby-carousel .sp-related-park-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 cards */
        min-width: 220px;
    }

    .sp-nearby-scroll-btn {
        width: 36px;
        height: 48px;
    }
}

@media (max-width: 600px) {
    .sp-nearby-carousel-wrapper {
        gap: 8px;
    }

    .sp-nearby-carousel .sp-related-park-card {
        flex: 0 0 85%;
        /* 1+ cards visible */
        min-width: 260px;
        max-width: none;
    }

    .sp-nearby-scroll-btn {
        width: 32px;
        height: 44px;
    }

    .sp-nearby-scroll-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Distance badge styling */
.sp-nearby-distance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.sp-distance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--sp-single-primary), var(--sp-single-accent));
    color: var(--sp-single-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.sp-nearby-state {
    color: var(--sp-single-text-light);
    font-size: 0.8rem;
}

/* +X More badge hover tooltip */
.sp-related-park-more {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-related-park-more:hover {
    background: var(--sp-single-accent);
    transform: scale(1.1);
}

.sp-related-park-more::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: linear-gradient(135deg, var(--sp-single-primary-dark), var(--sp-single-primary));
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(26, 90, 26, 0.3);
}

.sp-related-park-more:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Activity icon tooltips in park cards */
.sp-related-park-icon {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-related-park-icon:hover {
    background: var(--sp-single-primary);
    color: var(--sp-single-white);
    transform: scale(1.1);
}

.sp-related-park-icon::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: linear-gradient(135deg, var(--sp-single-primary-dark), var(--sp-single-primary));
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(26, 90, 26, 0.3);
}

.sp-related-park-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .sp-single-main {
        grid-template-columns: 1fr 340px;
        gap: 32px;
    }

    .sp-single-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .sp-single-hero {
        min-height: 350px;
    }

    .sp-single-hero-content {
        padding: 40px 24px 32px;
    }

    .sp-single-activities-bar {
        padding: 20px 24px;
    }

    .sp-single-main {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .sp-single-content {
        padding: 28px;
    }

    .sp-single-at-glance {
        position: static;
    }

    .sp-single-related {
        padding: 0 24px 40px;
    }

    .sp-single-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .sp-single-hero {
        min-height: 300px;
    }

    .sp-single-hero-content h1 {
        font-size: 1.75rem;
    }

    .sp-single-hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    .sp-single-activities-bar {
        padding: 16px;
        position: static;
    }

    .sp-single-activities-list {
        gap: 16px;
    }

    .sp-single-activity-item {
        min-width: 60px;
    }

    .sp-single-activity-icon {
        width: 40px;
        height: 40px;
    }

    .sp-single-activity-icon svg {
        width: 22px;
        height: 22px;
    }

    .sp-single-activity-label {
        font-size: 0.7rem;
    }

    .sp-single-main {
        padding: 16px;
    }

    .sp-single-content {
        padding: 20px;
    }

    .sp-single-at-glance {
        padding: 20px;
    }

    .sp-single-related {
        padding: 0 16px 32px;
    }

    .sp-single-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .sp-single-hero-content {
        padding: 24px 16px 24px;
    }

    .sp-single-state-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .sp-single-activities-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .sp-single-activity-item {
        flex-shrink: 0;
    }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON FIX
   ========================================================================== */

/* Prevent Scroll-to-Top button from overlapping content */
body.single-state_park .ast-scroll-top-icon,
body.single-state_park #ast-scroll-top,
body.single-state_park .scroll-to-top {
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999;
}

/* ==========================================================================
   TRAIL LIST STYLING
   ========================================================================== */

.sp-single-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5em 0;
}

.sp-single-content ul li {
    position: relative;
    padding: 12px 16px 12px 32px;
    margin-bottom: 8px;
    background: var(--sp-single-bg);
    border-radius: var(--sp-single-radius-sm);
    border-left: 3px solid var(--sp-single-primary);
    transition: background 0.2s ease;
}

.sp-single-content ul li:hover {
    background: #e8f5e9;
}

.sp-single-content ul li::before {
    content: "•";
    position: absolute;
    left: 12px;
    color: var(--sp-single-primary);
    font-weight: bold;
}

/* Nested lists */
.sp-single-content ul ul {
    margin: 8px 0 0 0;
}

.sp-single-content ul ul li {
    background: transparent;
    border-left: 2px solid var(--sp-single-border);
    padding: 6px 16px 6px 24px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

/* ==========================================================================
   ACTIVITY LICENSE CARDS (Sidebar)
   ========================================================================== */

.sp-activity-license-card {
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    padding: 20px;
    box-shadow: var(--sp-single-shadow);
    margin-top: 20px;
    border-left: 4px solid var(--sp-single-primary);
    transition: all 0.2s ease;
}

.sp-activity-license-card:hover {
    box-shadow: var(--sp-single-shadow-hover);
    transform: translateY(-2px);
}

/* Fishing Theme (Blue) */
.sp-activity-license-card--fishing {
    border-left-color: #0284c7;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.sp-activity-license-card--fishing .sp-license-card-header h4 {
    color: #0369a1;
}

.sp-activity-license-card--fishing .sp-license-card-link {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.sp-activity-license-card--fishing .sp-license-card-link:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* Hunting Theme (Brown/Orange) */
.sp-activity-license-card--hunting {
    border-left-color: #c2410c;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.sp-activity-license-card--hunting .sp-license-card-header h4 {
    color: #9a3412;
}

.sp-activity-license-card--hunting .sp-license-card-link {
    background: linear-gradient(135deg, #c2410c, #9a3412);
}

.sp-activity-license-card--hunting .sp-license-card-link:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* Card Header */
.sp-license-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sp-license-card-icon {
    font-size: 1.5rem;
}

.sp-license-card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Card Body */
.sp-license-card-body {
    margin-bottom: 16px;
}

.sp-license-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.sp-license-row:last-child {
    border-bottom: none;
}

.sp-license-label {
    font-size: 0.85rem;
    color: #64748b;
}

.sp-license-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* Free Days Badge */
.sp-license-free {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #15803d;
}

.sp-free-icon {
    font-size: 1rem;
}

/* Hunting Status Badge */
.sp-hunting-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.sp-hunting-status--allowed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.sp-hunting-status--limited {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.sp-hunting-status--prohibited {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.sp-status-icon {
    font-size: 1rem;
}

.sp-hunting-notes {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Card Link */
.sp-license-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--sp-single-primary-light), var(--sp-single-primary));
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sp-license-card-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.sp-license-card-link svg {
    transition: transform 0.2s ease;
}

.sp-license-card-link:hover svg {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .sp-activity-license-card {
        margin-top: 16px;
        padding: 16px;
    }
}

/* ==========================================================================
   TRUST BOX - External Ratings
   ========================================================================== */

.sp-single-trust-box {
    background: var(--sp-single-white);
    border-radius: var(--sp-single-radius);
    padding: 24px;
    box-shadow: var(--sp-single-shadow);
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.sp-trust-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sp-single-primary);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sp-single-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-trust-box-title svg {
    width: 20px;
    height: 20px;
    color: var(--sp-single-accent);
}

.sp-trust-rating {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sp-single-border);
}

.sp-trust-rating:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-trust-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-trust-content {
    flex: 1;
}

.sp-trust-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.sp-trust-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sp-single-text);
}

.sp-trust-max {
    font-size: 0.9rem;
    color: var(--sp-single-text-light);
}

.sp-trust-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.sp-star {
    font-size: 1rem;
    line-height: 1;
}

.sp-star-full {
    color: #FFD700;
}

.sp-star-half {
    color: #FFD700;
    opacity: 0.6;
}

.sp-trust-count {
    font-size: 0.85rem;
    color: var(--sp-single-text-light);
    margin-bottom: 2px;
}

.sp-trust-count a {
    color: var(--sp-single-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.sp-trust-count a:hover {
    color: var(--sp-single-accent);
    text-decoration: underline;
}

.sp-trust-source {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sp-single-text-light);
}

/* TripAdvisor specific */
.sp-trust-tripadvisor .sp-trust-source {
    color: #007a5e;
    /* Darkened to pass WCAG contrast */
}

/* Google specific */
.sp-trust-google .sp-trust-source {
    color: #175bc6;
    /* Darkened to pass WCAG contrast */
}

/* Responsive Trust Box */
@media (max-width: 768px) {
    .sp-single-trust-box {
        padding: 16px;
    }

    .sp-trust-rating {
        padding: 12px 0;
    }

    .sp-trust-logo {
        width: 32px;
        height: 32px;
    }

    .sp-trust-number {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   AMENITIES LIST
   ========================================================================== */

.sp-single-sidebar-amenities {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--sp-single-border);
}

.sp-amenities-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sp-amenity-available {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.08));
    color: var(--sp-single-primary);
}

.sp-amenity-unavailable {
    background: rgba(158, 158, 158, 0.1);
    color: var(--sp-single-text-light);
}

.sp-amenity-icon {
    font-size: 1.1rem;
}

.sp-amenity-text {
    flex: 1;
}

.sp-amenity-text small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

/* ==========================================================================
   EMERGENCY BOX
   ========================================================================== */

.sp-single-emergency-box {
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    border-radius: var(--sp-single-radius);
    padding: 20px;
    box-shadow: var(--sp-single-shadow);
    border-left: 4px solid #c62828;
}

.sp-emergency-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c62828;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-emergency-title svg {
    width: 20px;
    height: 20px;
    color: #c62828;
}

.sp-emergency-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-emergency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(198, 40, 40, 0.1);
    font-size: 0.9rem;
}

.sp-emergency-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-emergency-label {
    font-weight: 500;
    color: var(--sp-single-text);
}

.sp-emergency-item a {
    color: #c62828;
    font-weight: 600;
    text-decoration: none;
}

.sp-emergency-item a:hover {
    text-decoration: underline;
}

.sp-emergency-item small {
    color: var(--sp-single-text-light);
    font-weight: 400;
}

/* ==========================================================================
   ACCESSIBILITY FEATURES BOX
   ========================================================================== */

.sp-single-accessibility-box {
    background: linear-gradient(135deg, #e3f2fd, #e8f0fe);
    border-radius: var(--sp-single-radius);
    padding: 20px;
    box-shadow: var(--sp-single-shadow);
    border-left: 4px solid #1976D2;
    margin-top: 20px;
}

.sp-accessibility-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1565C0;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-accessibility-title svg {
    width: 20px;
    height: 20px;
    color: #1976D2;
}

.sp-accessibility-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.sp-accessibility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a3a5c;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.2s ease;
}

.sp-accessibility-item:hover {
    background: rgba(255, 255, 255, 0.9);
}

.sp-accessibility-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.sp-accessibility-label {
    flex: 1;
}

.sp-accessibility-link {
    display: block;
    text-align: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
}

.sp-accessibility-link:hover {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.35);
    color: white !important;
}

/* ==========================================================================
   SOCIAL MEDIA BOX
   ========================================================================== */

.sp-single-social-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--sp-single-radius);
    padding: 20px;
    box-shadow: var(--sp-single-shadow);
    border-left: 4px solid var(--sp-single-primary);
    margin-bottom: 20px;
}

.sp-social-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-single-text);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-social-title svg {
    width: 18px;
    height: 18px;
    color: var(--sp-single-primary);
}

.sp-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sp-social-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sp-social-link:hover svg {
    transform: scale(1.1);
}

/* Website Link */
.sp-social-website {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.sp-social-website:hover {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    color: #1b5e20;
}

/* Twitter/X Link */
.sp-social-twitter {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #1a1a1a;
}

.sp-social-twitter:hover {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    color: #000;
}

/* YouTube Link */
.sp-social-youtube {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

.sp-social-youtube:hover {
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
    color: #b71c1c;
}

/* Instagram Link */
.sp-social-instagram {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    color: #c2185b;
}

.sp-social-instagram:hover {
    background: linear-gradient(135deg, #f8bbd9, #f48fb1);
    color: #ad1457;
}

/* Facebook Link */
.sp-social-facebook {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.sp-social-facebook:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    color: #0d47a1;
}

/* AllTrails specific */
.sp-trust-alltrails .sp-trust-source {
    color: #2ECC40;
}

/* TheDyrt specific */
.sp-trust-thedyrt .sp-trust-source {
    color: #FF6B35;
}

/* ==========================================================================
   DOWNLOADS BOX
   ========================================================================== */

.sp-single-downloads-box {
    background: linear-gradient(135deg, #f3f8ff, #e8f4fd);
    border-radius: var(--sp-single-radius);
    padding: 20px;
    box-shadow: var(--sp-single-shadow);
    border-left: 4px solid #1565C0;
}

.sp-downloads-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1565C0;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-downloads-title svg {
    width: 20px;
    height: 20px;
    color: #1565C0;
}

.sp-downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-download-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
}

.sp-download-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-download-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1565C0;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sp-download-item a:hover {
    color: #0d47a1;
    transform: translateX(4px);
}

/* ==========================================================================
   EXPLORE MORE SIDEBAR BOX
   ========================================================================== */

.sp-single-explore-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.sp-explore-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-explore-title svg {
    width: 20px;
    height: 20px;
    color: #2e7d32;
}

.sp-explore-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-explore-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.sp-explore-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-explore-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sp-explore-item a:hover {
    color: #1b5e20;
    transform: translateX(4px);
}

.sp-explore-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sp-explore-item a:hover svg {
    opacity: 1;
}

/* ==========================================================================
   FEATURE BADGES
   ========================================================================== */

.sp-park-card-feature-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.sp-feature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 193, 7, 0.95);
    /* Yellow */
    color: #1a1a1a;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.sp-feature-badge svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.sp-feature-badge:hover {
    transform: scale(1.1);
    background: #ffc107;
    z-index: 2;
}/* ============================================
 * Auto-Content Styles for Tier 3 State Parks
 * 
 * These styles are loaded for parks that use the
 * dynamically generated content system.
 * ============================================ */

/* Activities Grid */
.sp-auto-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 1.5rem 0 2rem;
}

.sp-auto-activity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #f8faf9;
    border: 1px solid #e8ede9;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3b33;
    transition: all 0.2s ease;
    text-align: center;
}

.sp-auto-activity-card:hover {
    background: #eef5f0;
    border-color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.12);
    color: #2d6a4f;
}

.sp-auto-activity-icon {
    font-size: 24px;
    line-height: 1;
}

.sp-auto-activity-icon svg {
    width: 28px;
    height: 28px;
    stroke: #2d6a4f;
}

.sp-auto-activity-name {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Visitor Info Cards */
.sp-auto-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 1.5rem 0 2rem;
}

.sp-auto-info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8ede9;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sp-auto-info-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5f0;
    border-radius: 8px;
    color: #2d6a4f;
}

.sp-auto-info-card-icon svg {
    width: 20px;
    height: 20px;
}

.sp-auto-info-card-body {
    flex: 1;
    min-width: 0;
}

.sp-auto-info-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7c70;
    margin-bottom: 4px;
}

.sp-auto-info-card-value {
    font-size: 0.95rem;
    color: #2d3b33;
    word-break: break-word;
}

.sp-auto-info-card-value a {
    color: #2d6a4f;
    text-decoration: none;
    font-weight: 500;
}

.sp-auto-info-card-value a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-auto-activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .sp-auto-activity-card {
        padding: 12px 8px;
    }

    .sp-auto-activity-name {
        font-size: 0.78rem;
    }

    .sp-auto-info-cards {
        grid-template-columns: 1fr;
    }
}