:root {
    --gps-bg: #f3f6fb;
    --gps-panel: #ffffff;
    --gps-panel-alt: #edf4ff;
    --gps-border: rgba(15, 23, 42, 0.08);
    --gps-primary: #0d6efd;
    --gps-primary-dark: #0a4db8;
    --gps-coastal: #0f766e;
    --gps-coastal-light: #e3f4f1;
    --gps-sand: #f3c969;
    --gps-success: #198754;
    --gps-muted: #5b6476;
    --gps-text: #18212f;
    --gps-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    /* background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%); */
    background-image: linear-gradient(rgba(255, 255, 255, 1) 0%, rgba(238, 243, 251, 0.1) 100%);
    background-attachment: fixed;
    color: var(--gps-text);
    font-family: "Segoe UI", Inter, sans-serif;
}

.gps-body {
    min-height: 100vh;
}

.gps-navbar {
    background: rgba(255, 253, 248, 0.97);
    border-bottom: 1px solid rgba(13, 77, 184, 0.14);
    box-shadow: 0 5px 18px rgba(15, 52, 86, 0.08);
    backdrop-filter: blur(12px);
}

.gps-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.gps-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #4fc3ff 0%, #0d6efd 72%, var(--gps-sand) 100%);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.gps-brand-text {
    letter-spacing: 0.02em;
    color: #17324d;
}

.gps-navbar .navbar-nav .nav-link {
    position: relative;
    color: #29465f;
    font-weight: 600;
    border-radius: 0.45rem;
    transition: color 160ms ease, background-color 160ms ease;
}

.gps-navbar .navbar-nav .nav-link:hover,
.gps-navbar .navbar-nav .nav-link:focus-visible,
.gps-navbar .navbar-nav .nav-link.active {
    color: var(--gps-primary-dark);
    background: rgba(13, 110, 253, 0.08);
}

.gps-navbar .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: 0.2rem;
    left: 0.75rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gps-primary);
}

.gps-rss-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    font-size: 1.05rem;
}

.gps-nav-action {
    font-weight: 600;
}

.gps-admin-btn {
    background: linear-gradient(135deg, #f8b400, #f5a623);
    border: none;
    color: #101827;
    font-weight: 700;
}

.gps-mega-menu {
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    min-width: 20rem;
}

.gps-mega-menu.show {
    display: flex;
}

@media (min-width: 992px) {
    html {
        scroll-padding-top: 5rem;
    }

    .gps-site-header {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .gps-navbar .navbar-nav {
        gap: 0.2rem;
    }

    .gps-navbar .navbar-nav .nav-link {
        padding-right: 0.68rem;
        padding-left: 0.68rem;
    }

    .gps-mega-menu {
        flex-wrap: nowrap;
    }
}

@media (max-width: 991.98px) {
    .gps-navbar .navbar-collapse {
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
        padding-bottom: 0.75rem;
    }

    .gps-navbar .navbar-nav .nav-link.active::after {
        display: none;
    }

    .gps-mega-menu.show {
        display: block;
        max-height: min(55vh, 32rem);
        overflow-y: auto;
    }

    .gps-mega-menu__col {
        min-width: 0;
        margin-bottom: 1rem;
    }

    .gps-navbar .navbar-collapse > .d-flex {
        flex-wrap: wrap;
    }
}

.gps-mega-menu__col {
    min-width: 11rem;
}

.gps-nav-swcp {
    color: var(--gps-coastal);
    font-weight: 700 !important;
}

.gps-nav-swcp i {
    color: var(--gps-coastal);
}

:is(.gps-explore-card, .gps-photo-showcase__item, .gps-activity-jump-nav__link, .gps-home-activities__segmented .btn):focus-visible {
    outline: 3px solid var(--gps-sand);
    outline-offset: 2px;
}

.gps-mega-menu .dropdown-header {
    padding-left: 0;
    font-weight: 700;
    color: var(--gps-primary-dark);
}

.gps-mega-menu .dropdown-item {
    padding-left: 0;
    white-space: normal;
}

.gps-nav-search {
    position: relative;
}

.gps-nav-search__form {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    display: flex;
    gap: 0.4rem;
    background: var(--gps-panel);
    padding: 0.6rem;
    border-radius: 0.6rem;
    box-shadow: var(--gps-shadow);
    min-width: 260px;
    z-index: 1050;
}

.gps-nav-search__form[hidden] {
    display: none;
}

@media (max-width: 991.98px) {
    .gps-nav-search__form {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-top: 0.5rem;
    }
}

.gps-footer {
    background: rgba(9, 17, 31, 0.04);
    border-top: 1px solid var(--gps-border);
}

.gps-card {
    border: 1px solid var(--gps-border);
    border-radius: 1rem;
    background: var(--gps-panel);
    box-shadow: var(--gps-shadow);
}

.gps-muted {
    color: var(--gps-muted);
}

.gps-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.gps-stat-grid--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.gps-stat-grid--compact .gps-card {
    padding: 0.6rem 0.4rem !important;
}

.gps-stat-grid--compact strong {
    font-size: 0.78rem;
}

.gps-stat-grid--compact .h5 {
    font-size: 1.05rem;
    word-break: break-word;
}

.stats-legacy-shell {
    display: grid;
    grid-template-columns: minmax(280px, 33%) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.stats-summary-panel {
    position: sticky;
    top: 1rem;
}

.stats-summary-table {
    font-size: 0.85rem;
}

.stats-summary-table th,
.stats-summary-table td {
    white-space: normal;
    vertical-align: middle;
    padding: 0.45rem 0.5rem;
}

.gps-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gps-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(25, 135, 84, 0.08));
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 1rem;
    padding: 1.25rem;
}

.map-migration-card {
    border: 1px dashed rgba(13, 110, 253, 0.5);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(25, 135, 84, 0.05));
    border-radius: 0.75rem;
    padding: 1rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1f2937;
    flex-direction: column;
}

.map-migration-card__badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-migration-card__summary {
    max-width: 36rem;
    line-height: 1.6;
}

.stats-mini-chart {
    width: 100%;
    min-height: 180px;
    border-radius: 0.75rem;
    border: 1px solid rgba(13, 110, 253, 0.12);
    background: linear-gradient(180deg, rgba(13,110,253,0.02), rgba(25,135,84,0.02));
    padding: 1rem;
}

.stats-mini-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 140px;
    margin-top: 0.75rem;
}

.stats-mini-chart__bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.stats-mini-chart__bar {
    width: 100%;
    border-radius: 0.5rem 0.5rem 0 0;
    background: linear-gradient(180deg, #63a4ff 0%, #0d6efd 100%);
    min-height: 24px;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.25);
}

.stats-mini-chart__label {
    font-size: 0.75rem;
    color: #6c757d;
}

.gps-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gps-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--gps-primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .stats-legacy-shell {
        grid-template-columns: 1fr;
    }

    .stats-summary-panel {
        position: static;
    }
}

.stats-trend-chart-wrap {
    position: relative;
    width: 100%;
    height: 260px;
}

.stats-trend-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.gps-home-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0d172a 0%, #aeb8cf 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3rem 2rem;
}

.gps-home-hero__image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gps-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        100deg,
        rgba(9, 17, 31, 0.68) 0%,
        rgba(9, 17, 31, 0.46) 35%,
        rgba(9, 17, 31, 0.16) 65%,
        rgba(9, 17, 31, 0.02) 100%
    );
}

.gps-home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 42rem;
}

.gps-activity-map {
    width: 100%;
    height: 480px;
}

@media (max-width: 767.98px) {
    .gps-activity-map {
        height: clamp(320px, 65vh, 480px);
    }

    .gps-activity-jump-nav {
        position: sticky;
        top: 0;
        z-index: 1020;
        padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--gps-border);
        border-bottom: 1px solid var(--gps-border);
        row-gap: 0.4rem;
        box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.08);
    }

    .gps-activity-jump-nav__link {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        font-size: 0.84rem;
    }
}

.gps-south-west-map {
    width: 100%;
    height: 520px;
}

.gps-swcp-map {
    --bs-aspect-ratio: 75%;
}

.gps-swcp-quote .blockquote {
    font-size: 0.80rem;
}

.gps-swcp-quote .blockquote dt {
    font-weight: 700;
}

.gps-swcp-quote .blockquote-footer {
    font-size: 0.8rem;
}

.gps-home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.gps-home-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.gps-home-hero__lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.gps-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gps-home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gps-home-stat {
    border: 1px solid var(--gps-border);
    border-radius: 1rem;
    background: var(--gps-panel);
    box-shadow: var(--gps-shadow);
    padding: 0.75rem 1rem;
    text-align: center;
}

.gps-home-stat__value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gps-primary-dark);
    display: block;
}

.gps-home-stat__label {
    color: var(--gps-muted);
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .gps-home-hero {
        min-height: 360px;
        padding: 2rem 1.25rem;
        align-items: flex-end;
    }

    .gps-home-hero__actions {
        flex-direction: column;
    }

    .gps-home-hero__actions .btn {
        width: 100%;
    }

    .gps-home-stat--photos {
        display: none;
    }
}

.gps-section-title {
    margin-bottom: 1.5rem;
}

.gps-section-title h2 {
    font-weight: 800;
    font-size: 1.6rem;
}

.gps-section-title p {
    color: var(--gps-muted);
    margin-bottom: 0;
}

.gps-photo-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.gps-photo-showcase__item {
    position: relative;
    display: block;
    border-radius: 0.85rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--gps-shadow);
}

.gps-photo-showcase__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gps-photo-showcase__item:hover img {
    transform: scale(1.06);
}

.gps-photo-showcase__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(180deg, transparent, rgba(9, 17, 31, 0.85));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.gps-photoswipe-caption__content {
    position: absolute;
    right: 4rem;
    bottom: 1rem;
    left: 4rem;
    display: flex;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.gps-lightbox-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
}

.gps-lightbox-title {
    font-weight: 600;
    font-size: 1em;
    text-decoration: underline;
}

.gps-lightbox-date {
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.75);
}

.pswp__img.gps-lightbox-clickable {
    cursor: pointer;
}

.gps-activity-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 576px) {
    .gps-activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gps-activity-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (min-width: 1200px) {
    .gps-activity-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}

.gps-activity-page {
    display: contents;
}

.gps-activity-card {
    border: 1px solid var(--gps-border);
    border-radius: 1rem;
    background: var(--gps-panel);
    box-shadow: var(--gps-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gps-activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.gps-activity-card:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2), 0 18px 34px rgba(15, 23, 42, 0.14);
}

.gps-activity-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--gps-panel-alt);
}

.gps-activity-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gps-activity-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gps-activity-card__body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.gps-activity-card__title {
    font-weight: 700;
    font-size: 1.02rem;
    margin: 0;
}

.gps-activity-card__title a {
    color: inherit;
    text-decoration: none;
}

.gps-activity-card__title a:hover,
.gps-activity-card__title a:focus-visible {
    color: var(--gps-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 0.1rem;
    text-underline-offset: 0.12rem;
}

.gps-activity-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    row-gap: 0.25rem;
    color: var(--gps-muted);
    font-size: 0.85rem;
}

.gps-activity-card__link {
    font-weight: 600;
    font-size: 0.9rem;
}

.gps-activity-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.gps-activity-card__share {
    padding: 0;
    font-weight: 600;
    text-decoration: none;
}

.gps-activity-load-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.gps-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.gps-explore-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--gps-border);
    border-radius: 1rem;
    background: var(--gps-panel);
    color: var(--gps-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gps-explore-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gps-shadow);
    color: var(--gps-text);
}

.gps-explore-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    background: var(--gps-coastal-light);
    color: var(--gps-coastal);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.gps-explore-card__label {
    font-weight: 600;
    font-size: 0.95rem;
}

.gps-about-lead {
    max-width: 48rem;
    color: var(--gps-muted);
    font-size: 1.02rem;
    margin-bottom: 1.75rem;
}

.gps-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.gps-feature-card {
    border: 1px solid var(--gps-border);
    border-radius: 1rem;
    background: var(--gps-panel);
    box-shadow: var(--gps-shadow);
    padding: 1.25rem 1.3rem;
}

.gps-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    background: var(--gps-coastal-light);
    color: var(--gps-coastal);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.gps-feature-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.gps-feature-card p {
    color: var(--gps-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.gps-activity-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: auto;
}

.gps-activity-jump-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--gps-panel-alt);
    color: var(--gps-primary-dark);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.gps-activity-jump-nav__link:hover {
    background: var(--gps-primary);
    color: #fff;
}

.gps-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}

.gps-photo-gallery__item {
    display: block;
    position: relative;
    border-radius: 0.6rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--gps-shadow);
}

.gps-photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gps-photo-gallery__item:hover img {
    transform: scale(1.08);
}

.gps-photo-gallery__item--highlighted {
    z-index: 1;
    animation: gps-photo-highlight 1.5s ease-out;
}

@keyframes gps-photo-highlight {
    0%, 35% {
        transform: scale(1.04);
        box-shadow: 0 0 0 0.35rem rgba(255, 193, 7, 0.8), 0 16px 32px rgba(15, 52, 86, 0.24);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--gps-shadow);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gps-photo-gallery__item--highlighted {
        animation: none;
        box-shadow: 0 0 0 0.35rem rgba(255, 193, 7, 0.8), var(--gps-shadow);
    }
}

.gps-chart-canvas-wrap {
    position: relative;
    height: 260px;
    width: 100%;
}

.gps-collapse-chevron {
    transition: transform 0.15s ease;
}

.gps-template-credit {
    font-size: 0.72rem;
    color: var(--gps-muted);
}

.gps-home-activities__filter {
    display: flex;
    justify-content: flex-start;
}

.gps-home-activities__segmented {
    flex-wrap: wrap;
}

.gps-home-activities__segmented .btn {
    min-width: 6.25rem;
}

@media (max-width: 767.98px) {
    .gps-home-activities__segmented .btn {
        min-height: 2.75rem;
    }
}

.gps-gallery-year-nav .dropdown-menu {
    max-height: 20rem;
    overflow-y: auto;
    min-width: 9rem;
}

.gps-gallery-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gps-gallery-item {
    border: 1px solid var(--gps-border);
    border-radius: 0.85rem;
    background: var(--gps-panel);
    overflow: hidden;
}

.gps-gallery-item__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gps-gallery-item__date {
    color: var(--gps-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.gps-gallery-item__title {
    font-weight: 600;
    flex: 1 1 auto;
}

.gps-gallery-item__count {
    white-space: nowrap;
}

.gps-gallery-item__body {
    border-top: 1px solid var(--gps-border);
}

.gps-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gps-search-result {
    display: block;
    border: 1px solid var(--gps-border);
    border-radius: 0.85rem;
    background: var(--gps-panel);
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.gps-search-result:hover,
.gps-search-result:focus {
    box-shadow: var(--gps-shadow);
    border-color: var(--gps-primary);
}

.gps-search-result__date {
    color: var(--gps-muted);
    font-size: 0.85rem;
}

.gps-search-result__title {
    font-weight: 600;
    font-size: 1.05rem;
}

.gps-search-result__description {
    color: var(--gps-muted);
    margin: 0.35rem 0 0;
}

.gps-back-to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1025;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(13, 77, 184, 0.18);
    border-radius: 50%;
    background: var(--gps-panel);
    color: var(--gps-primary-dark);
    box-shadow: 0 8px 24px rgba(15, 52, 86, 0.2);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.gps-back-to-top:hover,
.gps-back-to-top:focus-visible {
    transform: translateY(-2px);
    background: var(--gps-panel-alt);
    box-shadow: 0 10px 28px rgba(15, 52, 86, 0.25);
}

.gps-back-to-top[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gps-navbar .navbar-nav .nav-link,
    .gps-back-to-top {
        transition: none;
    }
}

.gps-inline-popover {
    display: inline;
    padding: 0;
    border: 0;
    border-bottom: 1px dotted currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: help;
}

:is(#orkneyAccordion, #faqs) {
    display: grid;
    gap: 0.7rem;
}

:is(#orkneyAccordion, #faqs) .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

:is(#orkneyAccordion, #faqs) .accordion-button,
:is(#orkneyAccordion, #faqs) .accordion-button:not(.collapsed) {
    gap: 0.75rem;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: linear-gradient(110deg, #24364b, #365875);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: none;
}

:is(#orkneyAccordion, #faqs) .accordion-button:not(.collapsed) {
    background: linear-gradient(110deg, var(--gps-primary-dark), #1872c9);
}

:is(#orkneyAccordion, #faqs) .accordion-button::after {
    margin-left: 0;
    filter: brightness(0) invert(1);
}

:is(#orkneyAccordion, #faqs) .accordion-button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: -3px;
}

:is(#orkneyAccordion, #faqs) .gps-accordion-title {
    margin-right: auto;
    font-weight: 700;
    letter-spacing: 0.015em;
}

:is(#orkneyAccordion, #faqs) .gps-accordion-count {
    flex: 0 0 auto;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 600;
}

#orkneyAccordion .group-map-container {
    width: 100%;
    height: 600px;
    margin-bottom: 1rem;
    background: #e2e8f0;
}

.gps-orkney-activity-table {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gps-border);
}

.gps-orkney-photo-link {
    margin-top: 0.5rem;
    text-align: right;
}

.gps-map-info {
    max-width: 280px;
}

.gps-map-info h3 {
    margin-top: 0;
}

.gps-tag-map {
    width: 100%;
    height: 520px;
    background: #e2e8f0;
}

.gps-trip-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.gps-trip-facts li {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--gps-panel-alt);
    color: var(--gps-primary-dark);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    #orkneyAccordion .group-map-container {
        height: 420px;
    }

    .gps-tag-map {
        height: 400px;
    }
}

.gps-nearest-map {
    min-height: 520px;
}

.gps-nearest-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.gps-upload-file-summary {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 0.75rem;
    background: var(--gps-panel-alt);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gps-upload-success {
    border-left: 0.35rem solid var(--gps-success);
}

.gps-workflow-steps {
    display: grid;
    gap: 1rem;
    padding-left: 1.35rem;
}

.gps-workflow-steps li::marker {
    color: var(--gps-primary);
    font-weight: 700;
}

.gps-workflow-steps span {
    display: block;
    margin-top: 0.15rem;
    color: var(--gps-muted);
}

.gps-photo-admin-thumbnail {
    width: 112px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.65rem;
}

@media (max-width: 767.98px) {
    .gps-users-admin-table thead { display: none; }
    .gps-users-admin-table tr {
        display: grid;
        gap: 0.55rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gps-border);
    }
    .gps-users-admin-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 0.45fr) 1fr;
        gap: 0.75rem;
        padding: 0;
        border: 0;
        overflow-wrap: anywhere;
    }
    .gps-users-admin-table td::before {
        color: var(--gps-muted);
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }
}

@media (max-width: 767.98px) {
    .gps-photo-admin-table thead {
        display: none;
    }

    .gps-photo-admin-table tr {
        display: grid;
        gap: 0.75rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gps-border);
    }

    .gps-photo-admin-table td {
        display: block;
        padding: 0;
        border: 0;
    }

    .gps-photo-admin-table td[data-label]::before {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--gps-muted);
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .gps-photo-admin-thumbnail {
        width: min(100%, 280px);
    }
}

@media (max-width: 991.98px) {
    .gps-nearest-map {
        min-height: 420px;
    }
}

.gps-signin-providers {
    max-width: 480px;
    margin-inline: auto;
}

.gps-featured-track-thumbnail {
    width: min(100%, 260px);
    height: auto;
}
