:root {
    --header-bg: #1a1a2e;
    --accent: #e94560;
    --content-bg: #f8f9fa;
    --surface-bg: #ffffff;
    --surface-muted: #f8f9fa;
    --surface-border: rgba(0, 0, 0, 0.08);
    --text-body: #212529;
    --card-radius: 12px;
    --site-header-height: 4.5rem;
}

body {
    background: var(--content-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Links in main content: no underlines (colour change on hover instead) */
.site-main a:not(.btn):not(.page-link):not(.nav-link):not(.dropdown-item):not(.photo-dropzone-browse) {
    text-decoration: none;
}

.site-main a:not(.btn):not(.page-link):not(.nav-link):not(.dropdown-item):not(.photo-dropzone-browse):hover,
.site-main a:not(.btn):not(.page-link):not(.nav-link):not(.dropdown-item):not(.photo-dropzone-browse):focus-visible {
    text-decoration: none;
}

.pagination-page-select .page-link {
    align-items: center;
    cursor: default;
    display: flex;
    gap: 0.35rem;
}

.pagination-page-dropdown {
    background-color: transparent;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    color: inherit;
    cursor: pointer;
    display: inline-block;
    font-size: inherit;
    line-height: 1.25;
    min-width: 3.25rem;
    padding: 0.125rem 1.75rem 0.125rem 0.5rem;
    width: auto;
}

.pagination-page-dropdown:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    outline: 0;
}

.site-page-loader {
    align-items: center;
    backdrop-filter: blur(3px);
    background: rgba(255, 255, 255, 0.86);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 2500;
}

.site-page-loader.is-active,
html.location-page-loading .site-page-loader.is-active,
html.page-loader-active .site-page-loader.is-active {
    display: flex !important;
}

.site-page-loader.is-active.site-page-loader--dark,
html.location-page-loading-dark .site-page-loader.is-active,
[data-theme="dark"] .site-page-loader.is-active {
    background: rgba(18, 18, 24, 0.88);
}

.site-page-loader.is-active.site-page-loader--dark .site-page-loader-text,
html.location-page-loading-dark .site-page-loader-text,
[data-theme="dark"] .site-page-loader-text {
    color: #ced4da;
}

.site-page-loader-panel {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
}

.site-page-loader-logo {
    animation: site-page-loader-logo-pulse 1.4s ease-in-out infinite;
    border-radius: 50%;
    display: block;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.site-page-loader-text {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes site-page-loader-logo-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.72;
        transform: scale(0.96);
    }
}

.site-page-loader--ai-draft .site-page-loader-logo {
    animation: site-page-loader-logo-spin 1.1s linear infinite;
}

@keyframes site-page-loader-logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.site-breadcrumb-nav {
    margin-bottom: 1.25rem;
}

.site-breadcrumb {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--card-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0.55rem 0.9rem;
}

.site-breadcrumb-item {
    align-items: center;
    display: inline-flex;
    font-size: 0.9rem;
    max-width: 100%;
}

.site-breadcrumb-separator {
    align-items: center;
    color: #adb5bd;
    display: inline-flex;
    font-size: 0.65rem;
    line-height: 1;
    list-style: none;
    user-select: none;
}

.site-breadcrumb-link,
.site-breadcrumb-current {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    max-width: 100%;
}

.site-breadcrumb-link {
    border-radius: 999px;
    color: #495057;
    padding: 0.15rem 0.45rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-breadcrumb-link:hover,
.site-breadcrumb-link:focus-visible {
    background: rgba(13, 110, 253, 0.08);
    color: var(--bs-primary);
    text-decoration: none;
}

.site-breadcrumb-current {
    color: #212529;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
}

.site-breadcrumb-current span,
.site-breadcrumb-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-breadcrumb-icon {
    color: var(--bs-primary);
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.9;
}

.site-breadcrumb-item.is-active .site-breadcrumb-icon {
    opacity: 1;
}

.content-hero-about .site-breadcrumb-nav {
    margin-bottom: 1rem;
}

.content-hero-about .site-breadcrumb {
    background: rgba(255, 255, 255, 0.92);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--header-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-navbar {
    --bs-navbar-padding-y: 0.5rem;
}

.site-header-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
    overflow: visible;
}

.site-brand-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #4a4e58;
    border-radius: 14px;
    padding: 0.4rem 1.1rem 0.4rem 0.4rem;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.site-brand:hover .site-brand-inner {
    background: #565b66;
}

.site-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.site-brand-text {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.site-header-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.site-header-search {
    width: 100%;
    min-width: 0;
}

.site-header-search .input-group-text,
.site-header-search .form-control {
    border-color: rgba(255, 255, 255, 0.2);
}

.site-header-search .input-group-text {
    background: rgba(255, 255, 255, 0.95);
    color: #495057;
}

.site-header-search .form-control {
    background: rgba(255, 255, 255, 0.95);
}

.site-header-search .form-control:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.35);
}

.site-header-search .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.site-header-search-wrap {
    position: relative;
    width: 100%;
}

.site-search-suggestions {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1080;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    max-height: 320px;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.site-search-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 0;
    background: transparent;
    color: #212529;
    text-align: left;
    cursor: pointer;
}

.site-search-option i {
    color: #6c757d;
    flex-shrink: 0;
}

.site-search-option-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.site-search-option-meta {
    flex: 0 0 auto;
    color: #6c757d;
    font-size: 0.8rem;
}

.site-search-option:hover,
.site-search-option.is-active {
    background: #f1f3f5;
}

.site-search-view-all {
    display: block;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #e9ecef;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.site-search-view-all:hover {
    background: #f8f9fa;
    color: var(--accent);
}

.site-search-empty {
    padding: 0.75rem 0.85rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.site-header-nav .nav-link,
.site-header-auth .nav-link,
.site-header-auth .site-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.site-theme-toggle {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    text-align: left;
}

.site-theme-toggle:hover,
.site-theme-toggle:focus-visible {
    color: #fff;
}

.site-theme-toggle:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: 0;
}

.site-theme-toggle:disabled {
    cursor: wait;
    opacity: 0.7;
}

.site-header-nav .site-nav-icon,
.site-header-auth .site-nav-icon {
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
    width: 1.15rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 1200px) {
    .site-header-inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
    }

    .site-header-toggler {
        display: none;
    }

    .site-header-collapse {
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
        min-width: 0;
    }

    .site-header-nav {
        flex-direction: row !important;
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: wrap;
        gap: 0.35rem 1rem;
    }

    .site-header-nav .nav-link {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .site-header-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem 0.65rem;
        flex: 1 1 420px;
        min-width: 0;
        margin-left: auto;
        justify-content: flex-end;
    }

    .site-header-actions-before {
        order: 1;
        flex: 0 0 auto;
    }

    .site-header-actions-search {
        order: 2;
        flex: 1 1 200px;
        width: auto;
        min-width: 180px;
        max-width: 320px;
    }

    .site-header-actions-after {
        order: 3;
        flex: 0 1 auto;
        min-width: 0;
    }

    .site-header-actions-search .site-header-search-wrap,
    .site-header-actions-search .site-header-search {
        width: 100%;
        min-width: 0;
    }

    .site-header-auth {
        flex-direction: row !important;
        flex: 0 1 auto;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.35rem 0.75rem;
        min-width: 0;
    }

    .site-header-auth .nav-link {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    .site-header-user-link span {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-brand-text {
        font-size: 1.05rem;
    }

    .site-header-nav .nav-link {
        font-size: 0.9rem;
    }

    .approvals-nav-btn .approvals-nav-label {
        display: none;
    }

    .approvals-nav-btn {
        padding: 0.45rem 0.65rem;
    }
}

@media (min-width: 1400px) {
    .site-header-actions-search {
        max-width: 380px;
    }
}

@media (min-width: 1600px) {
    .site-header-actions-search {
        max-width: 440px;
    }

    .site-header-nav {
        gap: 0.35rem 1.5rem;
    }
}

.approvals-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-floating-bar {
    position: fixed;
    top: auto;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1035;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: max-content;
    max-width: calc(100vw - 2.5rem);
    padding: 0.45rem 0.65rem 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(26, 26, 46, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    touch-action: none;
}

.admin-floating-bar.is-positioned {
    right: auto;
}

.admin-floating-bar.is-dragging {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    cursor: grabbing;
}

body.admin-floating-bar-dragging {
    user-select: none;
}

.admin-floating-bar-handle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0 0.15rem 0 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: grab;
    flex-shrink: 0;
}

.admin-floating-bar-grip-btn,
.admin-floating-bar-title-btn {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    flex-shrink: 0;
}

.admin-floating-bar-grip-btn {
    cursor: grab;
    padding-right: 0.1rem;
}

.admin-floating-bar-title-btn {
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.35rem 0.15rem 0;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-floating-bar-title-btn:hover,
.admin-floating-bar-title-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.admin-floating-bar:not(.is-collapsed) > * {
    flex-shrink: 0;
}

.admin-floating-expanded-approvals {
    display: inline-flex;
    flex-shrink: 0;
}

.admin-floating-bar.is-collapsed {
    width: auto;
    padding: 0.35rem 0.45rem 0.35rem 0.35rem;
    gap: 0.35rem;
}

.admin-floating-bar.is-collapsed .admin-floating-bar-title-btn {
    display: none;
}

.admin-floating-bar.is-collapsed .admin-floating-btn-label,
.admin-floating-bar.is-collapsed .approvals-nav-label {
    display: none !important;
}

.admin-floating-bar.is-collapsed .admin-floating-expanded-approvals {
    display: none;
}

.admin-floating-collapsed-approvals {
    display: none;
    align-items: center;
    gap: 0.35rem;
}

.admin-floating-bar.is-collapsed .admin-floating-collapsed-approvals {
    display: inline-flex;
}

.admin-floating-bar.is-collapsed .admin-floating-bar-btn {
    padding: 0.45rem 0.55rem;
    justify-content: center;
    min-width: 2.25rem;
}

.admin-floating-mini-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-floating-mini-btn:hover,
.admin-floating-mini-btn:focus-visible {
    transform: translateY(-1px);
    color: #fff !important;
}

.admin-floating-mini-photos {
    background: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.35);
}

.admin-floating-mini-locations {
    background: #ffc107;
    color: #212529 !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
}

.admin-floating-mini-locations:hover,
.admin-floating-mini-locations:focus-visible {
    color: #212529 !important;
}

.admin-floating-mini-users {
    background: #20c997;
    color: #212529 !important;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.35);
}

.admin-floating-mini-users:hover,
.admin-floating-mini-users:focus-visible {
    color: #212529 !important;
}

.admin-floating-mini-count {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #212529;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

.admin-floating-mini-locations .admin-floating-mini-count,
.admin-floating-mini-users .admin-floating-mini-count {
    color: #fff;
}

.admin-floating-bar.is-collapsed .admin-floating-bar-grip-btn {
    padding-right: 0.05rem;
}

.admin-floating-bar-grip-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
}

.admin-floating-bar.is-dragging .admin-floating-bar-handle,
.admin-floating-bar.is-dragging .admin-floating-bar-grip-btn {
    cursor: grabbing;
}

.admin-floating-bar-grip {
    font-size: 0.95rem;
    opacity: 0.75;
}

/* Map page: keep default bottom-right (Leaflet zoom is top-right) */
body.map-page .admin-floating-bar:not(.is-positioned) {
    bottom: 1.25rem;
    right: 1.25rem;
}

.admin-floating-bar-title {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-right: 0.15rem;
}

.admin-floating-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.admin-floating-bar-btn:hover,
.admin-floating-bar-btn:focus-visible {
    transform: translateY(-1px);
    color: #fff;
}

.admin-floating-approvals {
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.admin-floating-bar:not(.is-collapsed) .admin-floating-approvals {
    padding: 0.42rem 0.95rem;
    gap: 0.4rem;
}

.admin-floating-bar:not(.is-collapsed) .admin-floating-approvals .approvals-badge {
    padding: 0.1rem 0.4rem;
    font-size: 0.74rem;
}

.admin-floating-settings {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-floating-settings:hover,
.admin-floating-settings:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

@media (max-width: 575.98px) {
    .admin-floating-bar:not(.is-positioned) {
        bottom: 1rem;
        right: 1rem;
        left: auto;
        justify-content: flex-end;
        max-width: calc(100vw - 2rem);
    }

    .admin-floating-bar:not(.is-collapsed) {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .admin-floating-bar-title {
        display: none;
    }

    .admin-floating-bar-btn {
        flex: 0 0 auto;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.5rem 0.65rem;
    }

    .admin-floating-approvals .approvals-nav-label {
        display: none;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .admin-floating-approvals .approvals-nav-label {
        display: none;
    }
}

.approvals-nav-btn:hover,
.approvals-nav-btn:focus-visible {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.45);
}

.approvals-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.approvals-badge-photos {
    background: #0d6efd;
    color: #fff;
}

.approvals-badge-locations {
    background: #ffc107;
    color: #212529;
}

.approvals-badge-users {
    background: #20c997;
    color: #212529;
}

.approvals-summary-card-users {
    background: linear-gradient(135deg, #667eea 0%, #20c997 100%);
    box-shadow: 0 4px 14px rgba(32, 201, 151, 0.25);
}

.approvals-page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.approvals-summary-card {
    display: block;
    border-radius: var(--card-radius);
    color: #fff;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.approvals-summary-card:hover {
    transform: translateY(-2px);
    color: #fff;
}

.approvals-summary-card-photos {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.25);
}

.approvals-summary-card-locations {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.25);
}

.admin-stat-card-locations {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
}

.admin-stat-card-photos {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.25);
}

.admin-stat-card-users {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25);
}

.admin-stat-card-stats {
    background: linear-gradient(135deg, #1a1a2e 0%, #3d3d5c 100%);
    box-shadow: 0 4px 14px rgba(26, 26, 46, 0.25);
}

.admin-dashboard-stat-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.admin-dashboard-stat-group-solo {
    height: 100%;
}

.admin-dashboard-stats-featured .approvals-summary-card-body {
    min-height: 5.5rem;
}

.admin-dashboard-stats-featured-value {
    font-size: 1.15rem;
    font-weight: 600;
    opacity: 0.92;
}

.admin-dashboard-pending-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--card-radius) - 2px);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    padding: 0.85rem 1rem;
}

.admin-dashboard-pending-header {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.admin-dashboard-pending-title {
    align-items: center;
    color: #495057;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.4rem;
}

.admin-dashboard-pending-count {
    background: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
}

.admin-dashboard-pending-panel.has-pending .admin-dashboard-pending-count {
    background: #ffc107;
    color: #212529;
}

.admin-dashboard-pending-list {
    list-style: none;
    margin: 0;
    max-height: 14rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
}

.admin-dashboard-pending-item {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
    padding: 0.55rem 0;
}

.admin-dashboard-pending-item:last-child {
    border-bottom: none;
}

.admin-dashboard-pending-item-main {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 0.55rem;
    min-width: 0;
}

.admin-dashboard-pending-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.admin-dashboard-pending-item-label {
    color: #212529;
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-pending-item-label:hover {
    color: var(--header-bg, #0d6efd);
}

.admin-dashboard-pending-item-meta {
    color: #6c757d;
    display: block;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-pending-badge {
    align-self: flex-start;
    font-size: 0.65rem;
}

.admin-dashboard-pending-thumb-link {
    flex-shrink: 0;
}

.admin-dashboard-pending-thumb {
    border-radius: 4px;
    height: 2.25rem;
    object-fit: cover;
    width: 2.25rem;
}

.admin-dashboard-pending-approve-form {
    flex-shrink: 0;
    margin: 0;
}

.admin-dashboard-pending-empty {
    color: #6c757d;
    font-size: 0.85rem;
    padding: 0.35rem 0;
}

.admin-dashboard-pending-view-all {
    color: #6c757d;
    font-size: 0.8rem;
    text-decoration: none;
}

.admin-dashboard-pending-view-all:hover {
    color: #212529;
    text-decoration: underline;
}

.admin-dashboard-pending-locations.has-pending {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(253, 126, 20, 0.25);
}

.admin-dashboard-pending-photos.has-pending {
    background: linear-gradient(180deg, rgba(25, 135, 84, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(25, 135, 84, 0.25);
}

.admin-dashboard-pending-users.has-pending {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(102, 126, 234, 0.25);
}

.approvals-summary-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
}

.approvals-summary-label {
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.95;
}

.approvals-summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.approvals-summary-icon {
    font-size: 3rem;
    opacity: 0.35;
}

.approvals-empty-state {
    border: none;
}

.approvals-action-group {
    justify-content: flex-start;
}

.approvals-icon-btn {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.45rem;
    --bs-btn-line-height: 1;
}

.approvals-icon-btn .bi {
    font-size: 0.95rem;
    line-height: 1;
}

.approvals-approve-btn {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    white-space: nowrap;
}

.approvals-approve-type {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.approvals-empty-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    border-radius: 50%;
    background: #212529;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

@media (min-width: 1200px) {
    .site-header-actions-search .site-header-search-wrap,
    .site-header-actions-search .site-header-search {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }
}

@media (max-width: 1199.98px) {
    .site-header-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header-toggler {
        margin-left: auto;
    }

    .site-header-collapse {
        flex: 1 1 100%;
    }

    .site-header-nav {
        margin-bottom: 0.75rem;
        gap: 0.25rem;
    }

    .site-header-nav .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .site-header-auth {
        gap: 0.25rem;
    }

    .site-header-auth .nav-link {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .site-header-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .site-header-actions-before,
    .site-header-actions-search,
    .site-header-actions-after {
        width: 100%;
    }

    .site-header-actions-before .approvals-nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .site-brand-text {
        font-size: 1rem;
    }

    .site-brand-inner {
        padding-right: 0.85rem;
        gap: 0.6rem;
    }

    .site-logo {
        height: 38px;
        width: 38px;
    }
}

.site-main {
    flex: 1;
}

.site-footer {
    background: var(--header-bg);
    color: rgba(255, 255, 255, 0.85);
    margin-top: auto;
}

.site-footer h5, .site-footer h6 {
    color: #fff;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.site-footer-links li + li {
    margin-top: 0.45rem;
}

.site-footer-link {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.site-footer-link-icon {
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    width: 1.1rem;
}

.site-footer-link:hover .site-footer-link-icon,
.site-footer-link:focus-visible .site-footer-link-icon {
    color: rgba(255, 255, 255, 0.92);
}

.hero-search {
    background: linear-gradient(180deg, #fff 0%, var(--content-bg) 100%);
}

.search-form {
    max-width: 640px;
}

.photo-tabs .nav-link {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
    color: #495057;
}

.photo-tabs .nav-link.active {
    background: var(--header-bg);
}

.photo-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

.photo-card .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.photo-card .card-title a:hover {
    color: var(--accent);
}

.photo-card .location-name a {
    text-decoration: none;
}

.photo-card .location-name a:hover {
    color: var(--accent);
    text-decoration: none;
}

.location-page-photos .photo-card .location-name {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.location-page-photos .photo-card .location-name a {
    word-break: break-word;
}

.photo-meta i {
    margin-right: 0.25rem;
}

.photo-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.photo-like-btn:hover {
    color: #dc3545;
}

.photo-like-btn.is-liked,
.photo-like-btn.is-liked:hover {
    color: #dc3545;
}

.photo-like-btn:disabled {
    cursor: default;
}

.photo-like-btn-lg {
    font-size: inherit;
}

.photo-like-btn-lg strong {
    font-weight: 600;
}

.empty-state {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.map-page-full {
    margin: 0;
    height: calc(100vh - var(--site-header-height));
    min-height: 400px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-split-view {
    width: 100%;
    height: 100%;
}

.map-split-view.is-compare-active {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.map-split-pane {
    position: relative;
    min-width: 0;
    height: 100%;
}

.map-split-view.is-compare-active .map-split-pane {
    flex: 1 1 50%;
}

.map-split-pane--google {
    border-left: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
}

.map-split-pane-label {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(26, 26, 46, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
}

.map-google-compare-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 7px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    cursor: pointer;
    transition: box-shadow 0.15s ease, right 0.15s ease, transform 0.15s ease;
}

.map-google-compare-toggle.is-active {
    right: 0;
    transform: translate(50%, -50%);
    box-shadow: 0 0 0 3px var(--accent, #6a4c93), 0 4px 14px rgba(0, 0, 0, 0.24);
}

.map-google-compare-toggle.is-locked {
    cursor: pointer;
}

.map-google-compare-toggle.is-locked .map-google-compare-toggle-icon {
    opacity: 0.55;
}

.map-google-compare-lock {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    color: #495057;
    font-size: 0.55rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.map-google-compare-toggle:hover:not(:disabled),
.map-google-compare-toggle:focus-visible:not(:disabled) {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.map-google-compare-toggle.is-active:hover:not(:disabled),
.map-google-compare-toggle.is-active:focus-visible:not(:disabled) {
    box-shadow: 0 0 0 3px var(--accent, #6a4c93), 0 4px 14px rgba(0, 0, 0, 0.28);
}

.map-google-compare-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.map-google-compare-toggle-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.map-google-loading {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(18, 18, 24, 0.72);
    color: #fff;
    font-size: 0.875rem;
}

.map-container--google {
    background: #e9ecef;
}

.map-container {
    height: 100%;
    min-height: 400px;
    width: 100%;
    background: #e9ecef;
    z-index: 1;
}

/* Zoom level readout: centred under +/- with a small gap */
.map-container .leaflet-top.leaflet-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.map-container .leaflet-top.leaflet-right .leaflet-control {
    float: none;
    margin: 0;
    clear: none;
}

.map-container .leaflet-top.leaflet-right .map-zoom-level-control {
    width: 26px;
    box-sizing: border-box;
    border-radius: 4px;
    background: #fff;
    cursor: default;
    pointer-events: none;
}

.leaflet-touch .map-container .leaflet-top.leaflet-right .map-zoom-level-control {
    width: 30px;
}

.map-zoom-level-value {
    display: block;
    width: 100%;
    padding: 4px 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.leaflet-touch .map-zoom-level-value {
    padding: 5px 0;
    font-size: 12px;
}

.map-container .leaflet-top.leaflet-right .map-locate-control {
    width: 26px;
    box-sizing: border-box;
    border-radius: 4px;
    background: #fff;
}

.leaflet-touch .map-container .leaflet-top.leaflet-right .map-locate-control {
    width: 30px;
}

.map-locate-btn {
    display: block;
    width: 100%;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    line-height: 1;
    cursor: pointer;
}

.map-locate-btn:hover,
.map-locate-btn:focus-visible {
    background: #f4f4f4;
    color: #000;
}

.map-locate-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.map-locate-btn.is-loading i {
    animation: map-locate-spin 0.8s linear infinite;
}

.leaflet-touch .map-locate-btn {
    height: 30px;
    font-size: 14px;
}

@keyframes map-locate-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.map-left-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 600;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(280px, calc(100% - 80px));
    max-height: calc(100% - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
}

.map-compact-panel {
    align-self: flex-start;
    max-width: 13.75rem;
    width: 100%;
}

.map-option-label {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    min-width: 0;
}

.map-option-icon {
    flex-shrink: 0;
    font-size: 0.95em;
    line-height: 1;
    opacity: 0.82;
}

.map-style-control .map-option-label.fw-semibold,
.map-style-control .form-label.map-option-label {
    font-weight: 600;
    gap: 0.5rem;
}

.coords-line .coords-label {
    text-transform: none;
    letter-spacing: normal;
}

.coords-line .coords-value {
    display: inline;
    word-break: normal;
}

.coords-separator {
    font-weight: 700;
}

.map-left-controls.is-search-open {
    overflow: visible;
}

.map-controls-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
}

.map-controls-stack > .map-panel,
.map-left-controls > .map-coords-box,
.map-left-controls > .map-aurora-panel,
.map-left-controls > .map-drone-frz-panel,
.map-left-controls > .map-nearby-box {
    pointer-events: auto;
}

.map-left-controls > .map-coords-box {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
    font-size: 0.6875rem;
}

.map-coords-box .coords-value {
    font-size: 0.6875rem;
}

.map-coords-box .coords-place {
    font-size: 0.6875rem;
    margin-bottom: 0.35rem;
}

.map-coords-box .map-panel-toggle strong {
    font-size: 0.75rem;
}

.map-coords-box .map-panel-toggle {
    position: relative;
    z-index: 1;
}

.map-coords-box .map-coords-details {
    max-height: min(160px, calc(100vh - 380px));
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.map-panel {
    border-radius: 10px;
}

/* Compact typography for map overlay cards */
.map-left-controls .map-panel,
.map-nearby-box,
.map-marker-panel {
    font-size: 0.75rem;
    line-height: 1.35;
}

.map-left-controls .map-panel {
    padding: 0.5rem 0.7rem;
}

.map-left-controls .map-panel-toggle strong,
.map-left-controls .map-aurora-title,
.map-left-controls .map-drone-frz-title,
.map-nearby-box > .map-nearby-toggle strong {
    font-size: 0.8125rem;
}

.map-left-controls .form-label,
.map-left-controls .coords-label,
.map-left-controls .map-type-filter-label {
    font-size: 0.6875rem;
}

.map-left-controls .form-select-sm,
.map-left-controls .btn-sm,
.map-left-controls .input-group-sm > .form-control,
.map-left-controls .input-group-sm > .input-group-text,
.map-left-controls .input-group-sm > .btn {
    font-size: 0.6875rem;
}

.map-left-controls .map-labels-toggle .form-check-input {
    width: 2.1rem;
    height: 1.05rem;
}

.map-search-control {
    padding: 0.55rem 0.7rem;
}

.map-style-control.is-collapsed,
.map-coords-box.is-collapsed,
.map-aurora-panel.is-collapsed {
    padding: 0.45rem 0.7rem;
}

.map-aurora-panel {
    flex: 0 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.map-aurora-panel.is-collapsed {
    padding-bottom: 0.55rem;
}

.map-aurora-toggle {
    color: inherit;
    display: block;
}

.map-aurora-summary {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    width: 100%;
}

.map-aurora-header-row {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    justify-content: space-between;
    width: 100%;
}

.map-aurora-header-main {
    align-items: baseline;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.map-aurora-title {
    flex-shrink: 0;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.map-aurora-header-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 0.2rem;
    margin-left: auto;
}

.map-aurora-summary-status {
    color: #5c6670;
    display: block;
    font-size: 0.625rem;
    line-height: 1.3;
    width: 100%;
}

.map-aurora-summary-activity {
    color: #495057;
    font-size: 0.625rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.2;
}

.map-aurora-intro {
    display: block;
    line-height: 1.35;
}

.map-aurora-chevron {
    flex-shrink: 0;
    font-size: 0.6875rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.map-aurora-panel:not(.is-collapsed) .map-aurora-chevron {
    transform: rotate(180deg);
}

.map-aurora-status-badge {
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.22rem 0.45rem;
    text-transform: uppercase;
}

.map-aurora-status-badge--green {
    background: #2d5a3d;
    color: #e8f2eb;
}

.map-aurora-status-badge--yellow {
    background: #f0c419;
    color: #3a3000;
    box-shadow: inset 0 0 0 1px rgba(58, 48, 0, 0.18);
}

.map-aurora-status-badge--amber {
    background: #8a4510;
    color: #fff3e8;
}

.map-aurora-status-badge--red {
    background: #7a2230;
    color: #fcecee;
}

.map-aurora-status-badge--unknown {
    background: #5c6670;
    color: #f1f3f5;
}

.map-aurora-details {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex: 1 1 auto;
    max-height: min(170px, calc(100vh - 340px));
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.map-aurora-attribution a {
    white-space: nowrap;
}

.map-aurora-demo-kp .map-aurora-demo-kp-btn {
    flex: 1 1 calc(20% - 0.35rem);
    max-width: 2.1rem;
    min-width: 1.65rem;
    padding: 0.15rem 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.map-aurora-demo #mapAuroraDemoLive {
    font-size: 0.6875rem;
}

.map-aurora-time-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1.2;
    margin-top: 6px !important;
    overflow: hidden;
    text-align: center;
}

.map-aurora-time-value {
    background: rgba(33, 37, 41, 0.88);
    color: #fff;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.map-aurora-time-day {
    background: rgba(255, 255, 255, 0.94);
    color: #495057;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem 0.3rem;
}

.map-aurora-site-marker-wrap {
    background: transparent;
    border: none;
}

.map-aurora-site-marker {
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    display: block;
    height: 12px;
    width: 12px;
}

.map-drone-frz-panel {
    flex: 0 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.map-drone-frz-panel.is-collapsed {
    padding-bottom: 0.55rem;
}

.map-drone-frz-toggle {
    color: inherit;
    display: block;
}

.map-drone-frz-summary {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    width: 100%;
}

.map-drone-frz-header-row {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    justify-content: space-between;
    width: 100%;
}

.map-drone-frz-header-main {
    align-items: baseline;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.map-drone-frz-title {
    flex-shrink: 0;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.map-drone-frz-summary-count {
    color: #6c757d;
    font-size: 0.625rem;
    font-weight: 600;
}

.map-drone-frz-header-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 0.2rem;
    margin-left: auto;
}

.map-drone-frz-summary-status {
    color: #5c6670;
    display: block;
    font-size: 0.625rem;
    line-height: 1.3;
    width: 100%;
}

.map-drone-frz-chevron {
    flex-shrink: 0;
    font-size: 0.6875rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.map-drone-frz-panel:not(.is-collapsed) .map-drone-frz-chevron {
    transform: rotate(180deg);
}

.map-drone-frz-status-badge {
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.22rem 0.45rem;
    text-transform: uppercase;
}

.map-drone-frz-status-badge--live {
    background: #7a2230;
    color: #fcecee;
}

.map-drone-frz-status-badge--stale {
    background: #f0c419;
    color: #3a3000;
}

.map-drone-frz-status-badge--unknown {
    background: #5c6670;
    color: #f1f3f5;
}

.map-drone-frz-details {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex: 1 1 auto;
    max-height: min(190px, calc(100vh - 340px));
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.map-drone-frz-opacity-slider {
    margin-top: 0.15rem;
}

.map-drone-frz-opacity-value {
    color: #6c757d;
    font-variant-numeric: tabular-nums;
}

.map-drone-frz-legend-item {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.map-drone-frz-legend-swatch {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    flex-shrink: 0;
    height: 0.75rem;
    width: 0.75rem;
}

.map-drone-frz-zone {
    cursor: pointer;
}

.map-drone-frz-popup-wrap .leaflet-popup-content {
    margin: 0.65rem 0.75rem;
}

.map-drone-frz-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
}

.map-drone-frz-popup-heading {
    margin-bottom: 0.35rem;
}

.map-drone-frz-popup-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.map-drone-frz-popup-code {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0.1rem;
}

.map-drone-frz-popup-type {
    align-items: center;
    color: var(--bs-secondary-color);
    display: flex;
    font-size: 0.82rem;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.map-drone-frz-popup-details {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.map-drone-frz-popup-detail {
    align-items: start;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1.1rem minmax(0, 1fr);
}

.map-drone-frz-popup-detail-icon {
    color: var(--bs-secondary-color);
    display: flex;
    font-size: 0.95rem;
    justify-content: center;
    line-height: 1.35;
    padding-top: 0.05rem;
}

.map-drone-frz-popup-detail-text {
    font-size: 0.82rem;
    line-height: 1.35;
}

.map-drone-frz-popup-detail-label {
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.map-drone-frz-popup-fallback {
    line-height: 1.35;
}

.leaflet-pane.leaflet-droneFrzPane-pane {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaflet-pane.leaflet-droneFrzPane-pane.map-drone-frz-pane--visible {
    pointer-events: auto;
    opacity: 1;
}

.location-drone-frz-card .card-body {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.location-tide-card .card-body {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.location-drone-frz-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.location-drone-frz-row {
    align-items: start;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1.25rem minmax(0, 1fr);
}

.location-drone-frz-row-icon {
    align-items: center;
    display: flex;
    font-size: 1.05rem;
    justify-content: center;
    line-height: 1.4;
    min-height: 1.4rem;
    width: 1.25rem;
}

.location-drone-frz-row-text {
    line-height: 1.4;
    padding-top: 0.02rem;
}

.location-drone-frz-nearest-distance {
    margin-top: 0.15rem;
}

.leaflet-pane.leaflet-droneFrzPane-pane svg {
    pointer-events: auto;
}

.leaflet-pane.leaflet-droneFrzPane-pane path.map-drone-frz-zone {
    pointer-events: visibleFill;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.leaflet-pane.leaflet-droneFrzPane-pane path.map-drone-frz-zone--aerodrome,
.leaflet-pane.leaflet-droneFrzPane-pane path.map-drone-frz-zone--runway {
    filter: drop-shadow(
        0 0 1px rgba(157, 2, 8, calc(0.12 + 0.55 * var(--drone-frz-fill-opacity, 0.2)))
    );
}

@media (hover: none) and (pointer: coarse) {
    .leaflet-pane.leaflet-droneFrzPane-pane path.map-drone-frz-zone {
        filter: none !important;
    }
}

.leaflet-pane.leaflet-auroraPane-pane,
.leaflet-pane[name="auroraPane"] {
    mix-blend-mode: screen;
    pointer-events: none !important;
}

[data-theme="dark"] .map-aurora-panel {
    background: rgba(33, 37, 41, 0.96);
}

[data-theme="dark"] .map-aurora-details {
    border-top-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .map-aurora-time-day {
    background: rgba(52, 58, 64, 0.94);
    color: #dee2e6;
}

.map-explorer-pin-wrap {
    background: transparent;
    border: none;
}

.map-explorer-pin {
    color: #e94560;
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
    cursor: grab;
}

.map-explorer-pin-wrap.leaflet-dragging .map-explorer-pin {
    cursor: grabbing;
}

.location-marker-wrap {
    background: transparent;
    border: none;
    cursor: pointer;
}

.location-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.location-marker-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.bi-castle-fill::before {
    content: "" !important;
    display: inline-block !important;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 14V8l1.5-1V5h1v3h1V4h1v4h1V3h1v4h1V5h1v3h1v2h1V5h1v2L15 8v6H1zm1-1h12V8.3l-1.2-.9V6h-1v2.2H9V5H7v3.2H5V6H4v2.2l-1.2.9V13zM6 10h1V8H6v2zm3 0h1V8H9v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 14V8l1.5-1V5h1v3h1V4h1v4h1V3h1v4h1V5h1v3h1v2h1V5h1v2L15 8v6H1zm1-1h12V8.3l-1.2-.9V6h-1v2.2H9V5H7v3.2H5V6H4v2.2l-1.2.9V13zM6 10h1V8H6v2zm3 0h1V8H9v2z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.location-marker-label {
    display: block;
    margin-top: 4px;
    max-width: 130px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: #212529;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    white-space: normal;
    word-break: break-word;
}

.location-marker--pending .location-marker-icon {
    border-style: dashed;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.location-marker-label--pending {
    background: rgba(255, 243, 205, 0.96);
    color: #92400e;
}

.map-location-hover-pending {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 0.15rem;
}

.map-pending-legend {
    line-height: 1.35;
}

.photo-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.photo-dropzone {
    position: relative;
}

.photo-dropzone-panel {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.photo-dropzone-panel:hover,
.photo-dropzone-panel:focus-visible {
    border-color: var(--accent, #6a4c93);
    background: rgba(106, 76, 147, 0.06);
    outline: none;
}

.photo-dropzone-panel.is-dragover {
    border-color: var(--accent, #6a4c93);
    background: rgba(106, 76, 147, 0.12);
}

.photo-dropzone-panel.has-file {
    border-style: solid;
    cursor: default;
}

.photo-dropzone-icon {
    font-size: 2rem;
    color: var(--accent, #6a4c93);
    display: block;
    margin-bottom: 0.5rem;
}

.photo-dropzone-browse {
    color: var(--accent, #6a4c93);
    font-weight: 600;
    text-decoration: underline;
}

.photo-dropzone-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    object-fit: contain;
}

.marker-cluster {
    background: transparent;
}

.marker-cluster div {
    width: 44px;
    height: 44px;
    margin-left: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.25);
}

.marker-cluster-blue div {
    background: rgba(13, 110, 253, 0.92);
}

.marker-cluster-red div {
    background: rgba(220, 53, 69, 0.92);
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.25);
}

.marker-cluster span {
    line-height: 1;
}

.map-error {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 700;
    max-width: calc(100% - 24px);
    margin: 0;
}

.leaflet-popup.location-popup {
    margin-bottom: 14px;
}

.leaflet-popup.location-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.leaflet-popup.location-popup .leaflet-popup-tip-container {
    margin-top: -1px;
}

.leaflet-tooltip.map-location-hover-tooltip {
    background: rgba(255, 255, 255, 0.98);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    padding: 0;
    pointer-events: auto !important;
    cursor: pointer;
}

.leaflet-tooltip.map-location-hover-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.98);
}

.map-location-hover-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.map-location-hover-link:hover .map-location-hover-name {
    color: var(--accent, #6a4c93);
}

.map-location-hover {
    width: 180px;
    overflow: hidden;
}

.map-hover-preview-image {
    display: block;
    width: 100%;
    height: 108px;
    object-fit: cover;
    background: #e9ecef;
}

.map-location-hover-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem 0.65rem;
    text-align: left;
}

.map-location-hover-name {
    font-size: 0.875rem;
    line-height: 1.25;
    color: #212529;
}

.map-location-hover-type {
    font-size: 0.75rem;
    color: #6c757d;
}

.map-location-hover-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent, #6a4c93);
}

.map-style-control {
    background: rgba(255, 255, 255, 0.97);
}

.map-search-control {
    background: rgba(31, 45, 61, 0.94);
    color: #fff;
    overflow: visible;
}

.map-search-control .input-group-text {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.map-search-control .form-control {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.map-search-control .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.map-search-control .form-control:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.12);
}

.map-search-control.is-open {
    position: relative;
    z-index: 710;
}

.map-search-wrap {
    position: relative;
    overflow: visible;
}

.map-place-results {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 720;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    max-height: min(260px, calc(100vh - 12rem));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 0.35rem 0;
    scrollbar-width: thin;
}

.map-place-results-empty {
    padding: 0.55rem 0.85rem;
}

.map-place-result {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 0;
    background: transparent;
    color: #212529;
    text-align: left;
    cursor: pointer;
}

.map-place-result:hover,
.map-place-result:focus-visible {
    background: rgba(106, 76, 147, 0.08);
}

.map-place-result i {
    color: #6c757d;
    flex-shrink: 0;
}

.map-place-result-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.map-place-result-meta {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: #6c757d;
}

.map-place-results-view-all {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-top: 1px solid #e9ecef;
    background: transparent;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.map-place-results-view-all:hover,
.map-place-results-view-all:focus-visible {
    background: rgba(106, 76, 147, 0.08);
}

.map-place-result--type .map-place-result-type-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

.map-type-filter-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.map-type-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.72);
}

.map-type-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.map-type-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.25rem 0.2rem 0.45rem;
    border-radius: 999px;
    background: var(--map-type-filter-color, rgba(255, 255, 255, 0.14));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.map-type-filter-chip-label {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-type-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.68rem;
    font-weight: 700;
}

.map-type-filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 0.62rem;
    line-height: 1;
    cursor: pointer;
}

.map-type-filter-chip-remove:hover,
.map-type-filter-chip-remove:focus-visible {
    background: rgba(0, 0, 0, 0.32);
}

.map-type-filter-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 0.15rem;
}

.map-type-filter-clear {
    font-size: 0.75rem;
    padding: 0.15rem 0.75rem;
}

.map-panel-mobile-toggle,
.map-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
}

.map-style-control .map-panel-toggle {
    color: #212529;
}

.map-coords-box .map-panel-toggle {
    color: #fff;
}

.map-panel-mobile-toggle i,
.map-panel-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
}

.map-panel-mobile-toggle[aria-expanded="true"] i,
.map-panel-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.map-style-control.is-collapsed,
.map-coords-box.is-collapsed {
    padding: 0.55rem 0.85rem;
}

.map-style-control:not(.is-collapsed) .map-panel-toggle,
.map-coords-box:not(.is-collapsed) .map-panel-toggle {
    margin-bottom: 0.35rem;
}

.map-style-row {
    flex-wrap: wrap;
}

.map-style-row .form-select {
    flex: 1 1 0;
    min-width: 0;
}

.map-style-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.map-labels-toggle .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
}

.map-labels-toggle .form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.map-labels-hint {
    line-height: 1.3;
}

.map-peak-layers .form-label.text-muted {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.map-switch-locked-wrap {
    position: relative;
}

.map-peak-layer-toggle.is-locked {
    cursor: pointer;
}

.map-peak-layer-toggle.is-locked .form-check-input {
    pointer-events: none;
    opacity: 0.45;
}

.map-peak-layer-toggle.is-locked label {
    cursor: pointer;
}

.map-switch-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: #495057;
    font-size: 0.7rem;
    pointer-events: none;
}

[data-theme="dark"] .map-switch-lock {
    color: #dee2e6;
}

.map-coords-box {
    background: rgba(106, 76, 147, 0.94);
    color: #fff;
    padding: 0.5rem 0.7rem;
}

.map-add-location-wrap .btn-light {
    font-weight: 600;
    border: 0;
    color: #1a1a2e;
}

.map-w3w-box {
    background: rgba(220, 53, 69, 0.94);
    color: #fff;
}

.map-nearby-box {
    flex: 0 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.5rem 0.7rem;
    max-height: 220px;
    overflow: hidden;
    transition: max-height 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.map-nearby-box.is-collapsed {
    max-height: none;
    padding: 0.45rem 0.7rem;
}

.map-nearby-toggle {
    color: inherit;
}

.map-nearby-box.is-locked {
    cursor: pointer;
}

.map-nearby-box.is-locked .map-nearby-toggle {
    cursor: pointer;
}

.map-nearby-lock {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.2;
}

[data-theme="dark"] .map-nearby-lock {
    color: #ced4da;
}

.map-nearby-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
}

.map-nearby-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.map-nearby-count {
    font-size: 0.7rem;
    vertical-align: middle;
}

.map-nearby-box .collapse {
    max-height: 210px;
    overflow-y: auto;
}

.map-nearby-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.map-nearby-list li:last-child {
    border-bottom: none;
}

.map-marker-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 600;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.85rem 1rem;
    width: min(280px, calc(100% - 24px));
}

.coords-row {
    display: flex;
    gap: 0.75rem;
}

.coords-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 0;
}

.coords-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.coords-value {
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    word-break: break-all;
}

.coords-place,
.w3w-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.map-sidebar {
    height: calc(100vh - 56px);
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
    .map-page-full {
        height: calc(100vh - 56px);
    }

    .map-left-controls {
        width: min(184px, calc(100% - 48px));
        top: 8px;
        left: 8px;
        gap: 5px;
        max-height: calc(100% - 16px);
    }

    .map-compact-panel {
        max-width: 100%;
    }

    .map-option-icon {
        font-size: 0.9em;
    }

    .map-left-controls .map-panel,
    .map-nearby-box,
    .map-marker-panel {
        font-size: 0.625rem;
        line-height: 1.3;
    }

    .map-left-controls .map-panel {
        padding: 0.35rem 0.45rem;
    }

    .map-left-controls .map-panel-toggle strong,
    .map-left-controls .map-aurora-title,
    .map-left-controls .map-drone-frz-title,
    .map-nearby-box > .map-nearby-toggle strong {
        font-size: 0.6875rem;
    }

    .map-left-controls .form-label,
    .map-left-controls .coords-label,
    .map-left-controls .map-type-filter-label {
        font-size: 0.5625rem;
    }

    .map-left-controls .form-select-sm,
    .map-left-controls .btn-sm,
    .map-left-controls .input-group-sm > .form-control,
    .map-left-controls .input-group-sm > .input-group-text,
    .map-left-controls .input-group-sm > .btn {
        font-size: 0.5625rem;
    }

    .map-left-controls .map-labels-toggle .form-check-input {
        width: 1.75rem;
        height: 0.9rem;
    }

    .map-style-control.is-collapsed,
    .map-coords-box.is-collapsed,
    .map-aurora-panel.is-collapsed {
        padding: 0.3rem 0.45rem;
    }

    .map-aurora-summary-activity {
        font-size: 0.5625rem;
    }

    .map-aurora-summary-status {
        font-size: 0.5625rem;
    }

    .map-aurora-status-badge {
        font-size: 0.5rem;
        padding: 0.18rem 0.35rem;
    }

    .map-controls-stack {
        gap: 5px;
    }

    .map-panel {
        border-radius: 8px;
    }

    .map-labels-hint {
        font-size: 0.5625rem !important;
    }

    .map-coords-box {
        padding: 0.35rem 0.45rem;
        font-size: 0.625rem;
    }

    .map-coords-box .coords-value {
        font-size: 0.5625rem;
    }

    .map-coords-box .coords-place {
        font-size: 0.5625rem;
    }

    .map-search-control {
        padding: 0.35rem 0.45rem;
    }

    .map-w3w-box {
        padding: 0.3rem 0.45rem;
    }

    .coords-label {
        font-size: 0.5625rem;
    }

    .coords-value {
        font-size: 0.5625rem;
    }

    .coords-place,
    .w3w-value {
        font-size: 0.5625rem;
    }

    .coords-location {
        margin-top: 0.35rem !important;
    }

    .map-nearby-box {
        max-height: 140px;
        padding: 0.35rem 0.45rem;
        font-size: 0.625rem;
    }

    .map-nearby-box strong {
        font-size: 0.6875rem;
    }

    .map-nearby-list li {
        font-size: 0.625rem;
        padding: 0.2rem 0;
    }

    .map-marker-panel {
        top: auto;
        bottom: 12px;
        right: 8px;
        width: min(168px, calc(100% - 16px));
        padding: 0.35rem 0.45rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 399.98px) {
    .map-left-controls {
        width: min(168px, calc(100% - 40px));
    }
}

.marker-details {
    background: #f8f9fa;
    border-radius: var(--card-radius);
    padding: 1rem;
}

.location-hero-img {
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.location-hero-media {
    position: relative;
}

.location-hero-photo-credit {
    align-items: center;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    bottom: 0.75rem;
    color: #fff;
    display: inline-flex;
    font-size: 0.875rem;
    gap: 0.5rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    position: absolute;
    right: 0.75rem;
    text-decoration: none;
    z-index: 1;
}

.location-hero-photo-credit:hover,
.location-hero-photo-credit:focus-visible {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    text-decoration: none;
}

.location-hero-photo-credit-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-hero-photo-credit .profile-avatar,
.location-hero-photo-credit .profile-avatar-image {
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.location-hero-placeholder {
    height: 280px;
    background: #e9ecef;
}

.photo-detail-img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}

.photo-detail-viewer {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: zoom-in;
}

.photo-detail-viewer:focus-visible {
    outline: 3px solid rgba(233, 69, 96, 0.65);
    outline-offset: 3px;
}

.photo-detail-viewer-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.2s ease;
    pointer-events: none;
}

.photo-detail-viewer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.82);
    color: #fff;
    font-size: 1.75rem;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.photo-detail-viewer:hover .photo-detail-viewer-overlay,
.photo-detail-viewer:focus-visible .photo-detail-viewer-overlay {
    background: rgba(0, 0, 0, 0.28);
}

.photo-detail-viewer:hover .photo-detail-viewer-icon,
.photo-detail-viewer:focus-visible .photo-detail-viewer-icon {
    opacity: 1;
    transform: scale(1);
}

body.photo-lightbox-open {
    overflow: hidden;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.photo-lightbox[hidden] {
    display: none !important;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.photo-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.photo-lightbox-figure {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1600px);
    max-height: calc(100vh - 3rem);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.photo-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 0.95rem;
    max-width: 60ch;
}

.photo-stat-row {
    color: #495057;
}

.photo-tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.photo-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.photo-stat i {
    color: var(--accent);
}

.photo-action-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-action-links a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.95rem;
}

.photo-action-links a:hover {
    color: #0a58ca;
}

.photo-share-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.photo-share-instagram.is-copied {
    border-color: var(--bs-success);
    color: var(--bs-success);
}

.photo-share-facebook.is-copied {
    border-color: var(--bs-success);
    color: var(--bs-success);
}

.photo-upload-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    line-height: 1.5;
}

.photo-upload-meta-by {
    white-space: nowrap;
}

.photo-upload-meta .user-link-with-avatar {
    vertical-align: middle;
}

.photo-exif-grid {
    display: grid;
    gap: 0.65rem;
}

.photo-exif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.photo-exif-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
    font-size: 1.05rem;
}

.photo-exif-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.photo-exif-value {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.photo-exif-body {
    min-width: 0;
}

.photo-tag-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.photo-tag-box-placeholder {
    line-height: 1.4;
}

.photo-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.35rem 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.85rem;
    line-height: 1.3;
}

.photo-tag-chip-label {
    font-weight: 600;
}

.photo-tag-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.photo-tag-chip-remove:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.photo-tag-suggest-btn {
    border: 1px solid;
    font-weight: 600;
}

.photo-tag-suggest-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.photo-tag-suggest-btn.is-selected {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.photo-tag-suggest-btn.is-selected:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

.admin-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.5rem;
}

.admin-tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.45rem 0.5rem 0.45rem 0.65rem;
    border: 1px solid;
    border-radius: 8px;
}

.admin-tag-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-badge {
    display: inline-block;
    padding: 0.35em 0.7em;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.admin-tag-delete-form {
    flex-shrink: 0;
    margin: 0;
}

.admin-tag-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    opacity: 0.85;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.admin-tag-delete-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.photo-thumb-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.photo-location-photos-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.photo-location-photos-row .photo-thumb-strip {
    flex: 1 1 auto;
    min-width: 0;
}

.photo-location-add-btn {
    align-self: center;
}

.photo-thumb-link {
    flex: 0 0 88px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.75;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.photo-thumb-link:hover,
.photo-thumb-link.active {
    opacity: 1;
    border-color: #0d6efd;
}

.photo-thumb-link img {
    display: block;
    width: 88px;
    height: 66px;
    object-fit: cover;
}

.photo-location-map {
    width: 100%;
    height: 280px;
    background: #e9ecef;
}

.location-detail-map {
    width: 100%;
    height: 180px;
    background: #e9ecef;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.location-detail-map .leaflet-control-attribution {
    font-size: 0.65rem;
}

.location-description {
    color: var(--bs-body-color);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 42rem;
}

.location-description-paragraph {
    margin-bottom: 0.9rem;
}

.location-description-paragraph:last-child {
    margin-bottom: 0;
}

.location-description-list {
    margin: 0 0 0.9rem;
    padding-left: 1.25rem;
}

.location-description-list:last-child {
    margin-bottom: 0;
}

.location-description-list li {
    margin-bottom: 0.35rem;
}

.location-description-list li:last-child {
    margin-bottom: 0;
}

.location-parking-access-card .card-header {
    background: var(--bs-card-cap-bg, var(--bs-card-bg));
}

.location-parking-access-toggle {
    color: inherit;
    cursor: pointer;
    padding: 0.85rem 1rem;
}

.location-parking-access-toggle:hover,
.location-parking-access-toggle:focus-visible {
    color: inherit;
}

.location-parking-access-icon {
    color: var(--bs-primary);
}

.location-parking-access-chevron {
    color: var(--bs-secondary-color);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.location-parking-access-toggle[aria-expanded="true"] .location-parking-access-chevron {
    transform: rotate(180deg);
}

.location-parking-access-card .location-description {
    margin-bottom: 0;
}

.location-editor-page {
    margin-left: auto;
    margin-right: auto;
    max-width: 44rem;
}

.location-editor-page > h1 {
    text-align: center;
}

.location-editor-form {
    max-width: none;
    width: 100%;
}

.location-editor-form-footer {
    background-color: var(--bs-card-cap-bg, var(--bs-card-bg));
    border-top: 1px solid var(--bs-border-color-translucent, var(--bs-border-color));
}

.location-editor-basics {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.location-editor-field-narrow {
    max-width: 26rem;
}

.location-editor-coords {
    max-width: 36rem;
}

.location-type-picker .location-picker-control {
    align-items: stretch;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.15rem 0.35rem 0.15rem 0.15rem;
}

.location-type-picker .location-picker-input {
    background: var(--bs-body-bg);
    border: 0;
    box-shadow: none;
}

.location-type-picker .location-picker-input:focus {
    box-shadow: none;
}

.location-type-picker .location-picker-clear {
    border: 0;
}

.location-type-picker-icon {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    min-width: 2.25rem;
    padding-left: 0.15rem;
}

.location-type-picker-icon:empty {
    display: none;
}

.location-editor-field-label {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.location-editor-field-icon {
    color: var(--bs-primary);
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
}

.location-type-picker {
    position: relative;
    z-index: 1;
}

.location-type-picker.is-open {
    z-index: 20;
}

.location-type-picker .location-picker-list {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow);
    max-height: 14rem;
    overflow-y: auto;
    top: 100%;
    z-index: 1080;
}

.location-type-picker .location-picker-option {
    align-items: center;
    background-color: var(--bs-body-bg);
    display: flex;
    gap: 0.55rem;
}

.location-type-picker .location-picker-option.is-active,
.location-type-picker .location-picker-option:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

.location-type-picker .location-picker-option.is-selected {
    background-color: rgba(var(--bs-primary-rgb), 0.12);
}

.location-type-suggest-hint {
    background: rgba(var(--bs-primary-rgb), 0.06);
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    list-style: none;
    padding: 0.45rem 0.75rem;
    pointer-events: none;
}

.location-type-picker .location-picker-option.is-suggested {
    border-left: 3px solid var(--bs-primary);
    padding-left: calc(0.75rem - 3px);
}

.location-name-suggest {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    overflow: hidden;
}

.location-name-suggest-head {
    align-items: center;
    background: rgba(var(--bs-secondary-rgb), 0.06);
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    font-size: 0.875rem;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}

.location-name-suggest-list {
    display: flex;
    flex-direction: column;
}

.location-name-suggest-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.6rem 0.75rem;
    text-align: left;
    width: 100%;
}

.location-name-suggest-item:last-child {
    border-bottom: 0;
}

.location-name-suggest-item:hover,
.location-name-suggest-item:focus-visible {
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.location-name-suggest-title {
    color: var(--bs-body-color);
    display: block;
    font-weight: 600;
}

.location-name-suggest-source,
.location-name-suggest-meta {
    color: var(--bs-secondary-color);
    display: inline-block;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-top: 0.15rem;
}

.location-editor-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.location-editor-section--last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.location-editor-section-title {
    align-items: center;
    color: var(--bs-body-color);
    display: flex;
    font-size: 0.9375rem;
    font-weight: 600;
    gap: 0.45rem;
    letter-spacing: normal;
    margin-bottom: 0.85rem;
    text-transform: none;
}

.location-editor-section-icon {
    color: var(--bs-primary);
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.location-editor-section--description {
    padding-top: 0.15rem;
}

.location-editor-section-hint {
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    margin-bottom: 0.85rem;
}

.location-editor-description,
.location-editor-prose-field {
    max-width: 42rem;
}

.location-editor-description-input,
.location-editor-prose-input {
    font-size: 1rem;
    line-height: 1.65;
}

.location-editor-description-input {
    min-height: 11rem;
    resize: vertical;
}

.location-editor-description-preview-wrap {
    margin-top: 1rem;
    max-width: 42rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--bs-border-color);
}

.location-editor-description-preview-label {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.location-editor-description-preview {
    margin-bottom: 0;
}

.location-map-copy-btn.is-copied {
    border-color: var(--bs-success);
    color: var(--bs-success);
}

.photo-map-pin-wrap {
    background: transparent;
    border: none;
}

.photo-map-pin {
    color: var(--accent);
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.location-planning-tools > [class*="col-"] {
    display: flex;
}

.location-tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.location-tool-link:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.12);
    color: inherit;
}

.location-tool-link i {
    font-size: 1.35rem;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
}

.location-tool-static {
    background: #f8f9fa;
}

.location-info-list li {
    margin-bottom: 0.45rem;
}

a.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

a.external-link:hover .external-link-icon {
    opacity: 1;
}

a.external-link .external-link-icon {
    font-size: 0.85em;
    opacity: 0.8;
    vertical-align: baseline;
}

a.wikipedia-link .wikipedia-link-icon {
    font-size: 1.05em;
    opacity: 0.9;
    line-height: 1;
}

a.external-link:hover .wikipedia-link-icon {
    opacity: 1;
}

.location-coords-line .location-coords-value {
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.location-weather-card,
.location-astro-card,
.location-mw-card,
.location-ephemeris-card {
    overflow: hidden;
    border: none;
}

.location-ephemeris-map-slot {
    position: relative;
}

.location-ephemeris-map {
    width: 100%;
    height: 360px;
    background: #1f2937;
}

.location-ephemeris-rotate-wrap {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    z-index: 1;
}

.location-ephemeris-map-container.is-rotate-ready {
    cursor: grab;
}

.location-ephemeris-map-container.is-rotating,
.location-ephemeris-map-container.is-rotate-ready.is-ctrl-held,
.location-ephemeris-map-container.is-rotated-pan.is-panning {
    cursor: grabbing;
}

.location-ephemeris-map-container.is-rotated-pan {
    cursor: grab;
}

.location-ephemeris-compass-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.location-ephemeris-compass-wrap .location-ephemeris-compass-hint {
    margin: 0.35rem 0 0;
    padding: 0.2rem 0.45rem;
    font-size: 0.65rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    user-select: none;
}

.location-ephemeris-compass {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.98));
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.location-ephemeris-compass:active {
    cursor: grabbing;
}

.location-ephemeris-compass-dial {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    transition: transform 0.05s linear;
    pointer-events: none;
}

.location-ephemeris-compass.is-dragging .location-ephemeris-compass-dial {
    transition: none;
}

.location-ephemeris-compass-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.location-ephemeris-compass-svg .compass-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.5;
}

.location-ephemeris-compass-svg .compass-tick-major {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 2;
    stroke-linecap: round;
}

.location-ephemeris-compass-svg .compass-tick-minor {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 1;
    stroke-linecap: round;
}

.location-ephemeris-compass-svg .compass-n-label {
    fill: #fef2f2;
    font-size: 11px;
    font-weight: 800;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    text-anchor: middle;
    dominant-baseline: middle;
}

.location-ephemeris-compass-svg .compass-sub-label {
    fill: rgba(255, 255, 255, 0.72);
    font-size: 8px;
    font-weight: 600;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    text-anchor: middle;
    dominant-baseline: middle;
}

.location-ephemeris-compass-svg .compass-n-arrow {
    fill: #ef4444;
    stroke: #fff;
    stroke-width: 0.75;
}

.location-ephemeris-compass-svg .compass-hub {
    fill: #f8fafc;
    stroke: rgba(15, 23, 42, 0.8);
    stroke-width: 1;
}

.location-ephemeris-map-modal-slot {
    width: 100%;
    flex: 1;
    min-height: 0;
    background: #1f2937;
}

.location-ephemeris-map-modal-slot .location-ephemeris-map {
    height: 100%;
}

.location-ephemeris-modal-content .modal-header {
    background: #1a1a2e;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.5rem 0.85rem;
}

.location-ephemeris-modal-header {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.location-ephemeris-mode-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
    background: var(--bs-card-cap-bg, var(--bs-card-bg, #fff));
}

.location-ephemeris-card > .location-ephemeris-mode-bar:has(#locationEphemerisToggleHomeSlot:empty) {
    display: none;
}

.location-ephemeris-mode-bar--modal {
    background: #1a1a2e;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
}

.location-ephemeris-controls-modal-slot {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.location-ephemeris-controls-modal-slot .location-ephemeris-controls {
    max-width: none;
    margin-inline: auto;
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.location-ephemeris-controls-modal-slot .location-ephemeris-controls > .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.35rem;
    margin-inline: auto;
}

.location-ephemeris-controls-modal-slot .location-ephemeris-position-box {
    max-width: none;
}

/* Fullscreen: condense Sun / Moon / Milky Way into a slim control strip */
.location-ephemeris-controls.is-fullscreen-compact > .row {
    flex-wrap: wrap;
}

.location-ephemeris-controls.is-fullscreen-compact > .row > .col-12.col-lg-4:nth-child(-n+3) {
    flex: 1 1 0;
    min-width: 0;
    width: 33.333%;
    max-width: 33.333%;
}

.location-ephemeris-controls.is-fullscreen-compact > .row > .col-12.col-lg-4 {
    min-width: 0;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-position-box {
    min-height: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.25;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-position-head strong {
    font-size: 0.75rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-position-head .badge {
    font-size: 0.5625rem;
    padding: 0.12rem 0.3rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-position-meta,
.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-position-phase,
.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-mw-mini-rating,
.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-mw-mini-aurora {
    font-size: 0.625rem;
    margin-top: 0.1rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-position-phase {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-moon-status .location-ephemeris-position-layout {
    gap: 0.35rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-moon-phase-art {
    width: 2rem;
    height: 2rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-mw-mini-layout {
    min-height: 0;
    gap: 0.35rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-mw-mini-ring {
    width: 2rem;
    height: 2rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-mw-mini-ring::before {
    inset: 0.2rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-mw-mini-value {
    font-size: 0.5625rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-time-col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-time-col .form-label {
    font-size: 0.6875rem;
    margin-bottom: 0.15rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-time-ticks {
    height: 1.15rem;
    margin-top: 0.2rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-date-input {
    max-width: 9.25rem;
    min-width: 7.75rem;
    font-size: 0.625rem;
    padding: 0.15rem 0.35rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-datetime-row output {
    font-size: 0.625rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-time-col output {
    font-size: 0.625rem;
}

.location-ephemeris-controls.is-fullscreen-compact .location-ephemeris-time-actions .btn {
    font-size: 0.6875rem;
    padding: 0.15rem 0.45rem;
}

.location-ephemeris-modal-body {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 3rem);
    min-height: 0;
}

.location-ephemeris-mode-bar--modal:has(#locationEphemerisToggleModalSlot:empty) {
    display: none;
}

.location-ephemeris-toggle-slot {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.location-ephemeris-mode-bar--modal .location-ephemeris-toggle .btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.location-ephemeris-mode-bar--modal .location-ephemeris-toggle .btn.active {
    background: #fff;
    border-color: #fff;
    color: #1a1a2e;
}

.location-ephemeris-mode-bar--modal .location-ephemeris-toggle .btn:hover,
.location-ephemeris-mode-bar--modal .location-ephemeris-toggle .btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.location-ephemeris-modal-content .modal-title {
    color: #fff;
}

.location-ephemeris-modal-content .btn-close {
    filter: invert(1) grayscale(1);
}

.location-ephemeris-toggle .btn.active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

.location-ephemeris-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.location-ephemeris-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.location-ephemeris-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.location-ephemeris-center {
    background: transparent;
    border: none;
}

.location-ephemeris-center span,
.location-ephemeris-photo-spot span,
.location-ephemeris-viewer span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    font-size: 1.05rem;
}

.location-ephemeris-photo-spot span {
    background: #f97316;
}

.location-ephemeris-photo-spot {
    pointer-events: auto !important;
}

.location-ephemeris-photo-spot.is-stand-locked span {
    cursor: default;
}

.location-ephemeris-photo-spot.is-stand-unlocked span {
    cursor: grab;
    touch-action: none;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.85), 0 3px 10px rgba(0, 0, 0, 0.35);
}

.location-ephemeris-photo-spot.is-dragging span,
.leaflet-dragging .location-ephemeris-photo-spot span {
    cursor: grabbing;
}

.location-ephemeris-viewer {
    pointer-events: auto !important;
}

.location-ephemeris-viewer span {
    background: #2563eb;
    cursor: grab;
    pointer-events: auto;
}

.location-ephemeris-viewer.is-stand-locked span {
    cursor: default;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.85), 0 3px 10px rgba(0, 0, 0, 0.35);
}

.location-ephemeris-viewer.is-stand-unlocked span {
    cursor: grab;
    touch-action: none;
    box-shadow: 0 0 0 2px rgba(134, 239, 172, 0.9), 0 3px 10px rgba(0, 0, 0, 0.35);
}

.location-ephemeris-viewer.is-dragging span,
.leaflet-dragging .location-ephemeris-viewer span {
    cursor: grabbing;
}

.location-ephemeris-stand-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0.45rem 0 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.95);
    color: #fbbf24;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.location-ephemeris-stand-lock.is-unlocked {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.55);
}

.location-ephemeris-stand-lock:hover,
.location-ephemeris-stand-lock:focus-visible {
    background: #1e293b;
    outline: none;
}

.location-ephemeris-stand-lock-label {
    margin: 0.3rem 0 0;
    font-size: 0.65rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    user-select: none;
}

.location-ephemeris-stand-lock-hint {
    margin: 0.2rem 0 0;
    max-width: 7.5rem;
    font-size: 0.58rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    user-select: none;
}

.location-ephemeris-end {
    background: transparent;
    border: none;
}

.location-ephemeris-end span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
}

.location-ephemeris-end.is-sunrise span {
    background: #f0b429;
}

.location-ephemeris-end.is-sunset span {
    background: #f97316;
}

.location-ephemeris-end.is-moonrise span,
.location-ephemeris-end.is-moonset span {
    background: #8b5cf6;
}

.location-ephemeris-end.is-moon-now span {
    background: #38bdf8;
}

.location-ephemeris-end.is-sun-now span {
    background: #f59e0b;
}

.location-ephemeris-controls {
    background: #f8f9fa;
}

.location-ephemeris-time-col {
    padding-inline: clamp(0.15rem, 1.5vw, 0.65rem);
}

.location-ephemeris-datetime-row {
    flex: 1 1 auto;
    min-width: 0;
}

.location-ephemeris-date-input {
    flex: 0 0 auto;
    max-width: 10.5rem;
    min-width: 8.75rem;
    font-size: 0.6875rem;
    padding: 0.2rem 0.4rem;
}

.location-ephemeris-datetime-row output {
    flex: 0 0 auto;
    white-space: nowrap;
}

.location-ephemeris-time-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.location-ephemeris-time-col .location-ephemeris-toggle-slot {
    margin-left: 0;
}

.location-ephemeris-time-slider-wrap {
    position: relative;
    padding-inline: 0.35rem;
}

.location-ephemeris-slider {
    margin-bottom: 0;
}

.location-ephemeris-time-ticks {
    position: relative;
    height: 1.65rem;
    margin-top: 0.35rem;
    margin-inline: 0.1rem;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 768px) {
    .location-ephemeris-time-ticks {
        height: 1.85rem;
    }
}

.location-ephemeris-time-tick {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    transform: translateX(-50%);
    min-width: 0;
}

.location-ephemeris-time-tick.is-start {
    transform: translateX(0);
    align-items: flex-start;
}

.location-ephemeris-time-tick.is-end {
    left: 100% !important;
    transform: translateX(-100%);
    align-items: flex-end;
}

.location-ephemeris-time-tick-mark {
    display: block;
    width: 1px;
    height: 5px;
    background: #ced4da;
    border-radius: 1px;
}

.location-ephemeris-time-tick.is-major .location-ephemeris-time-tick-mark {
    width: 2px;
    height: 7px;
    background: #868e96;
}

.location-ephemeris-time-tick.is-event .location-ephemeris-time-tick-mark {
    width: 3px;
    height: 9px;
}

.location-ephemeris-time-tick.is-sunrise .location-ephemeris-time-tick-mark {
    background: #f59e0b;
}

.location-ephemeris-time-tick.is-sunset .location-ephemeris-time-tick-mark {
    background: #ef4444;
}

.location-ephemeris-time-tick.is-moonrise .location-ephemeris-time-tick-mark,
.location-ephemeris-time-tick.is-moonset .location-ephemeris-time-tick-mark {
    background: #38bdf8;
}

.location-ephemeris-time-tick-label {
    font-size: 0.62rem;
    line-height: 1.1;
    color: #6c757d;
    white-space: nowrap;
}

.location-ephemeris-time-tick.is-event .location-ephemeris-time-tick-label {
    font-size: 0.58rem;
    font-weight: 600;
}

.location-ephemeris-time-tick.is-sunrise .location-ephemeris-time-tick-label,
.location-ephemeris-time-tick.is-sunset .location-ephemeris-time-tick-label {
    color: #495057;
}

.location-ephemeris-time-tick.is-moonrise .location-ephemeris-time-tick-label,
.location-ephemeris-time-tick.is-moonset .location-ephemeris-time-tick-label {
    color: #0c4a6e;
}

.location-ephemeris-time-tick.is-mark-only {
    z-index: 1;
}

.location-ephemeris-position-phase {
    margin-top: 0.25rem;
    line-height: 1.3;
    color: #0c4a6e;
    font-weight: 600;
}

.location-ephemeris-moon-status .location-ephemeris-position-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.65rem;
}

.location-ephemeris-moon-status .location-ephemeris-position-body {
    flex: 1;
    min-width: 0;
}

.location-ephemeris-moon-phase-art {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
}

.location-ephemeris-moon-phase-svg {
    display: block;
    filter: drop-shadow(0 1px 4px rgba(15, 23, 42, 0.2));
}

.location-ephemeris-position-box {
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-height: 3.25rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .location-ephemeris-position-box {
        min-width: 12.5rem;
    }
}

.location-ephemeris-position-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}

.location-ephemeris-position-head strong {
    white-space: nowrap;
}

.location-ephemeris-position-head .badge {
    flex-shrink: 0;
    white-space: nowrap;
}

.location-ephemeris-position-meta {
    margin-top: 0.25rem;
    white-space: nowrap;
}

.location-ephemeris-mw-mini-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.75rem;
}

.location-ephemeris-mw-mini-body {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.15rem;
}

.location-ephemeris-mw-mini-rating {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-ephemeris-mw-mini-aurora {
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-ephemeris-mw-mini-ring {
    --mw-ring-color: #6366f1;
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--mw-ring-color) calc(var(--mw-score, 0) * 1%), #e9ecef 0);
    position: relative;
}

.location-ephemeris-mw-mini-ring::before {
    content: "";
    position: absolute;
    inset: 0.28rem;
    border-radius: 50%;
    background: #fff;
}

.location-ephemeris-mw-mini-ring.is-excellent {
    --mw-ring-color: #22c55e;
}

.location-ephemeris-mw-mini-ring.is-good {
    --mw-ring-color: #38bdf8;
}

.location-ephemeris-mw-mini-ring.is-fair {
    --mw-ring-color: #f59e0b;
}

.location-ephemeris-mw-mini-ring.is-poor,
.location-ephemeris-mw-mini-ring.is-unavailable {
    --mw-ring-color: #94a3b8;
}

.location-ephemeris-mw-mini-value {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.location-tide-panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
}

.location-tide-panel-loading-scene {
    width: min(100%, 12rem);
}

.location-tide-panel-loading-text {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
}

.location-tide-panel-error {
    padding: 0.35rem 0;
}

.location-tide-times {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.65rem;
}

.location-tide-range-toggle .btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.location-tide-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.location-tide-custom-btn {
    margin-left: 0.35rem;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0.15rem 0.5rem rgba(124, 58, 237, 0.25);
}

.location-tide-custom-btn:hover,
.location-tide-custom-btn:focus {
    background: linear-gradient(135deg, #6d28d9 0%, #7e22ce 100%);
    color: #fff;
}

.location-tide-custom-btn--locked {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 0.15rem 0.5rem rgba(71, 85, 105, 0.2);
}

.location-tide-custom-btn--locked:hover,
.location-tide-custom-btn--locked:focus {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: #fff;
}

.location-photo-match-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.75rem 0.8rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    margin: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    height: 100%;
}

.location-photo-match-option:hover {
    border-color: rgba(124, 58, 237, 0.28);
    transform: translateY(-1px);
}

.location-photo-match-option:has(.location-photo-match-checkbox:checked) {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.14);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, rgba(255, 255, 255, 1) 100%);
}

.location-photo-match-checkbox {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    margin: 0;
}

.location-photo-match-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.4rem;
    padding-top: 0.15rem;
}

.location-photo-match-icon {
    width: 3.4rem;
    height: 2.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.location-photo-match-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.location-photo-match-join {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

.location-photo-match-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.05rem;
}

.location-photo-match-label-main {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
}

.location-photo-match-label-sub {
    font-size: 0.78rem;
    color: #64748b;
}

.location-photo-match-option--sunrise-high .location-photo-match-icon--sun,
.location-photo-match-option--sunrise-low .location-photo-match-icon--sun {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.22) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.location-photo-match-option--sunset-high .location-photo-match-icon--sun,
.location-photo-match-option--sunset-low .location-photo-match-icon--sun {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.24) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.location-photo-match-option--sunrise-high .location-photo-match-icon--tide,
.location-photo-match-option--sunset-high .location-photo-match-icon--tide {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.14) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.location-photo-match-option--sunrise-low .location-photo-match-icon--tide,
.location-photo-match-option--sunset-low .location-photo-match-icon--tide {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.16) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.location-photo-match-horizon {
    fill: none;
    stroke: #94a3b8;
    stroke-width: 2;
    stroke-linecap: round;
}

.location-photo-match-sun-rise,
.location-photo-match-sun-set {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.location-photo-match-sun-set {
    stroke: #f97316;
}

.location-photo-match-ray {
    fill: none;
    stroke: #fbbf24;
    stroke-width: 2;
    stroke-linecap: round;
}

.location-photo-match-ray--set {
    stroke: #fb923c;
}

.location-photo-match-wave {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-photo-match-icon--high .location-photo-match-wave {
    stroke: #0d6efd;
}

.location-photo-match-icon--low .location-photo-match-wave {
    stroke: #6366f1;
}

.location-photo-match-arrow {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-photo-match-icon--high .location-photo-match-arrow {
    stroke: #0d6efd;
}

.location-photo-match-icon--low .location-photo-match-arrow {
    stroke: #6366f1;
}

.location-photo-match-results {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.location-photo-match-result,
.location-photo-opportunity-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
}

.location-photo-match-result {
    border-left: 3px solid #7c3aed;
}

.location-photo-match-result--sunrise-high,
.location-photo-match-result--sunrise-low {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.07) 0%, #fff 42%);
}

.location-photo-match-result--sunset-high,
.location-photo-match-result--sunset-low {
    border-left-color: #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, #fff 42%);
}

.location-photo-match-result-main {
    min-width: 0;
    flex: 1 1 auto;
}

.location-photo-match-result-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin-bottom: 0.2rem;
}

.location-photo-match-quality-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.location-photo-match-quality-pill--excellent {
    background: rgba(25, 135, 84, 0.14);
    color: #146c43;
    border: 1px solid rgba(25, 135, 84, 0.22);
}

.location-photo-match-quality-pill--good {
    background: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.location-photo-match-result-date {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.location-photo-match-result-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.location-photo-match-time-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.location-photo-match-time-chip .bi {
    font-size: 0.92rem;
    line-height: 1;
}

.location-photo-match-time-chip--sun {
    background: rgba(251, 191, 36, 0.18);
    color: #b45309;
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.location-photo-match-result--sunset-high .location-photo-match-time-chip--sun,
.location-photo-match-result--sunset-low .location-photo-match-time-chip--sun {
    background: rgba(249, 115, 22, 0.16);
    color: #c2410c;
    border-color: rgba(249, 115, 22, 0.28);
}

.location-photo-match-time-chip--tide {
    background: rgba(13, 110, 253, 0.1);
    color: #0b5ed7;
    border: 1px solid rgba(13, 110, 253, 0.18);
}

.location-photo-match-time-chip--tide.location-photo-match-time-chip--low {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.22);
}

.location-photo-match-tide-arrow {
    font-size: 1rem !important;
    margin-left: -0.12rem;
}

.location-photo-match-result-apart {
    font-size: 0.76rem;
    color: #94a3b8;
}

.location-photo-match-result-title,
.location-photo-opportunity-title {
    font-weight: 600;
    font-size: 0.92rem;
}

.location-photo-match-result-actions,
.location-photo-opportunity-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.location-photo-opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.location-photo-match-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.5rem 1rem 1.25rem;
    border: 1px dashed rgba(124, 58, 237, 0.22);
    border-radius: 0.85rem;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, rgba(13, 110, 253, 0.08) 100%);
}

.location-photo-match-loading-scene {
    width: min(100%, 14rem);
}

.location-photo-match-loading-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.location-photo-match-loading-horizon {
    stroke: #94a3b8;
    stroke-width: 2;
    stroke-linecap: round;
}

.location-photo-match-loading-sun {
    transform-origin: 100px 72px;
    animation: location-photo-match-sun-bob 2.4s ease-in-out infinite;
}

.location-photo-match-loading-rays {
    transform-origin: 100px 72px;
    animation: location-photo-match-rays-spin 6s linear infinite;
}

.location-photo-match-loading-rays line {
    stroke: #fbbf24;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.location-photo-match-loading-wave {
    opacity: 0.85;
}

.location-photo-match-loading-wave-1 {
    fill: rgba(13, 110, 253, 0.38);
    animation: location-photo-match-wave-flow 2.8s ease-in-out infinite;
}

.location-photo-match-loading-wave-2 {
    fill: rgba(99, 102, 241, 0.42);
    animation: location-photo-match-wave-flow 2.8s ease-in-out infinite reverse;
}

.location-photo-match-loading-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

@keyframes location-photo-match-sun-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes location-photo-match-rays-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes location-photo-match-wave-flow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
}

.location-photo-match-empty {
    padding: 0.75rem 0;
}

.location-tide-chart-range-label {
    color: #495057;
}

.location-tide-now {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(13, 110, 253, 0.18);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.12) 100%);
    overflow: hidden;
}

.location-tide-now--falling {
    border-color: rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(148, 163, 184, 0.14) 100%);
}

.location-tide-now-graphic {
    position: relative;
    flex: 0 0 5.5rem;
    width: 5.5rem;
    height: 3rem;
}

.location-tide-now-waves {
    width: 100%;
    height: 100%;
    display: block;
}

.location-tide-wave {
    fill: rgba(13, 110, 253, 0.35);
}

.location-tide-now--falling .location-tide-wave {
    fill: rgba(99, 102, 241, 0.38);
}

.location-tide-wave-1 {
    animation: location-tide-wave-shift 3.2s ease-in-out infinite;
}

.location-tide-wave-2 {
    fill-opacity: 0.65;
    animation: location-tide-wave-shift 3.2s ease-in-out infinite reverse;
}

.location-tide-now--rising .location-tide-wave-1,
.location-tide-now--rising .location-tide-wave-2 {
    animation-name: location-tide-wave-rise;
}

.location-tide-now--falling .location-tide-wave-1,
.location-tide-now--falling .location-tide-wave-2 {
    animation-name: location-tide-wave-fall;
}

.location-tide-now-arrow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    line-height: 1;
    color: #0d6efd;
    animation: location-tide-arrow-bob 2.4s ease-in-out infinite;
}

.location-tide-now--falling .location-tide-now-arrow {
    color: #6366f1;
    transform: rotate(180deg);
    animation-name: location-tide-arrow-bob-fall;
}

.location-tide-now-copy {
    min-width: 0;
}

.location-tide-now-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b3d91;
}

.location-tide-now--falling .location-tide-now-label {
    color: #4338ca;
}

.location-tide-now-height {
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    margin-top: 0.1rem;
}

.location-tide-now-next {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

@keyframes location-tide-wave-shift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}

@keyframes location-tide-wave-rise {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4px, -2px); }
}

@keyframes location-tide-wave-fall {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4px, 2px); }
}

@keyframes location-tide-arrow-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes location-tide-arrow-bob-fall {
    0%, 100% { transform: rotate(180deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-3px); }
}

.location-tide-event {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0;
}

.location-tide-type {
    color: #6c757d;
    font-weight: 600;
}

.location-tide-type.is-high {
    color: #0d6efd;
}

.location-tide-chart-wrap {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
}

.location-tide-chart-wrap canvas {
    width: 100% !important;
    height: 180px !important;
}

.location-tide-chart-toggle .btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.location-weather-header {
    background: #28a745;
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

.location-astro-header {
    background: #1a1a2e;
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

.location-mw-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #1a1a2e 100%);
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

.location-mw-score-ring {
    --mw-ring-color: #6366f1;
    width: 5.5rem;
    height: 5.5rem;
    margin-inline: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--mw-ring-color) calc(var(--mw-score, 50) * 1%), #e9ecef 0);
    position: relative;
}

.location-mw-score-ring::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 50%;
    background: #fff;
}

.location-mw-score-ring.is-excellent {
    --mw-ring-color: #22c55e;
}

.location-mw-score-ring.is-good {
    --mw-ring-color: #38bdf8;
}

.location-mw-score-ring.is-fair {
    --mw-ring-color: #f59e0b;
}

.location-mw-score-ring.is-poor {
    --mw-ring-color: #94a3b8;
}

.location-mw-score-value {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
}

.location-mw-rating {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
}

.location-mw-factor {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    height: 100%;
}

.location-mw-factor-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    font-weight: 600;
}

.location-mw-factor-value {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.location-mw-factor-hint {
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 0.1rem;
}

.location-mw-detail {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
}

.location-weather-icon {
    font-size: 2.5rem;
    color: #6c757d;
}

.location-weather-condition {
    font-weight: 600;
    margin-top: 0.35rem;
}

.location-weather-temp {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.location-wind-arrow {
    display: inline-block;
    font-size: 1.75rem;
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.location-humidity-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.location-humidity-fill {
    height: 100%;
    background: #0d6efd;
    border-radius: 999px;
}

.location-forecast-day {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
}

.location-forecast-day i {
    font-size: 1.35rem;
    margin: 0.35rem 0;
    display: block;
}

.location-astro-badge {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.location-astro-badge-day {
    background: #ffc107;
    color: #212529;
}

.location-astro-stat {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.location-astro-stat i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.35rem;
}

.location-astro-stat .label {
    font-size: 0.85rem;
    color: #6c757d;
}

.location-astro-stat .value {
    font-size: 1.35rem;
    font-weight: 700;
}

.location-astro-stat .date {
    font-size: 0.8rem;
    color: #6c757d;
}

.location-astro-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
}

.location-astro-mini i {
    font-size: 1.5rem;
    color: #0d6efd;
}

.location-astro-mini .label {
    font-size: 0.85rem;
    color: #6c757d;
}

.location-astro-mini .value {
    font-weight: 700;
}

.location-astro-detail {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    height: 100%;
}

.location-astro-detail h6 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-link:hover {
    color: #fff !important;
}

.admin-layout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

body.admin-page .site-main {
    overflow: visible;
}

body.admin-page .site-main > .container-fluid {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--admin-page-top-offset, 4.5rem));
    height: auto;
    max-height: none;
    overflow: visible;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

body.admin-page .admin-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    overflow: visible;
}

body.admin-page .admin-sidebar {
    top: 0;
    align-self: stretch;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.admin-page .admin-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.admin-page .admin-main-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

body.admin-photos-list-page .admin-main-content,
body.admin-locations-list-page .admin-main-content {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

body.admin-photos-list-page .admin-photos-page,
body.admin-locations-list-page .admin-locations-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

body.admin-photos-list-page .admin-photos-page-header,
body.admin-locations-list-page .admin-locations-page-header {
    flex-shrink: 0;
}

body.admin-photos-list-page .admin-photos-panel,
body.admin-locations-list-page .admin-locations-panel {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(calc(100svh - 14rem), 44rem);
}

body.admin-photos-list-page .admin-list-empty,
body.admin-locations-list-page .admin-list-empty {
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    body.admin-page .site-main > .container-fluid {
        min-height: 0;
    }

    body.admin-photos-list-page .admin-photos-panel,
    body.admin-locations-list-page .admin-locations-panel {
        max-height: min(70vh, 32rem);
    }
}

.admin-sidebar {
    width: 240px;
    flex: 0 0 240px;
    padding: 1rem;
    transition: width 0.2s ease, flex-basis 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    position: sticky;
    top: 1rem;
    z-index: 1030;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-sidebar-title {
    font-size: 1.1rem;
    white-space: nowrap;
}

.admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    background: transparent;
    color: #fff;
    flex-shrink: 0;
}

.admin-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
}

.admin-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-sidebar-icon {
    width: 1.15rem;
    font-size: 1.05rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.admin-sidebar-link:hover .admin-sidebar-icon,
.admin-sidebar-link:focus-visible .admin-sidebar-icon {
    opacity: 1;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-main-content {
    width: 100%;
}

.admin-drone-frz-map-card {
    overflow: hidden;
}

body.admin-drone-frz-page .admin-main {
    overflow: visible;
}

body.admin-drone-frz-page .admin-main-content {
    overflow: visible;
}

.admin-drone-frz-map-column {
    align-self: flex-start;
    position: sticky;
    top: 1rem;
}

.admin-drone-frz-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.admin-drone-frz-map {
    height: 560px;
    min-height: 560px;
    width: 100%;
    background: #dfe3e8;
}

.admin-drone-frz-map .leaflet-container {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.leaflet-pane.leaflet-adminDroneFrzPane-pane path {
    pointer-events: visibleFill;
}

.admin-drone-frz-categories {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-drone-frz-category {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.25rem;
}

.admin-drone-frz-category:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-drone-frz-hmp-style {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 0.35rem;
    padding-top: 0.85rem;
}

.admin-drone-frz-swatch {
    border: 2px solid #9d0208;
    border-radius: 999px;
    flex-shrink: 0;
    height: 1.25rem;
    width: 1.25rem;
}

.admin-drone-frz-zone-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 360px;
    overflow-y: auto;
}

.admin-drone-frz-zone-row {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
}

.admin-drone-frz-zone-row.is-hidden {
    background: rgba(0, 0, 0, 0.03);
    opacity: 0.72;
}

.admin-drone-frz-zone-row-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.admin-drone-frz-zone-name {
    font-size: 0.85rem;
    line-height: 1.3;
    word-break: break-word;
}

.admin-sidebar-open {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1025;
}

.admin-layout.is-collapsed .admin-sidebar {
    width: 0;
    flex-basis: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 85vw);
        flex-basis: auto;
        border-radius: 0;
        transform: translateX(0);
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
    }

    .admin-layout.is-collapsed .admin-sidebar {
        transform: translateX(-100%);
        width: min(280px, 85vw);
        flex-basis: auto;
        padding: 1rem;
        opacity: 1;
    }

    .admin-layout.is-collapsed.is-mobile-open .admin-sidebar {
        transform: translateX(0);
        pointer-events: auto;
    }

    .admin-layout.is-collapsed.is-mobile-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-layout.is-collapsed.is-mobile-open .admin-sidebar-backdrop[hidden] {
        display: none;
    }
}

.admin-list-toolbar .input-group-text {
    background: #fff;
}

.admin-list-empty[hidden] {
    display: none !important;
}

.admin-table-sort {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.75);
    font: inherit;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.admin-table-sort:hover,
.admin-table-sort.is-active {
    color: #fff;
}

.admin-table-sort-icon {
    font-size: 0.85rem;
    opacity: 0.85;
}

.admin-approval-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.5rem;
}

.admin-approval-switch .form-check-input {
    cursor: pointer;
    margin-top: 0;
}

.admin-approval-switch .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.admin-approval-switch.is-not-approved .form-check-input:not(:checked) {
    background-color: #dc3545;
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.admin-approval-switch .form-check-input:focus {
    box-shadow: none;
}

.admin-approval-switch.is-approved .admin-approval-switch-label {
    color: #198754;
    font-weight: 600;
}

.admin-approval-switch.is-not-approved .admin-approval-switch-label {
    color: #dc3545;
    font-weight: 600;
}

.admin-approval-switch .form-check-input:disabled {
    cursor: wait;
    opacity: 0.65;
}

.admin-approval-switch-label {
    font-size: 0.875rem;
    user-select: none;
}

.admin-location-type-latest-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.5rem;
}

.admin-location-type-latest-switch .form-check-input {
    cursor: pointer;
    margin-top: 0;
}

.admin-location-type-latest-switch .form-check-input:focus {
    box-shadow: none;
}

.admin-location-type-latest-switch.is-shown .admin-location-type-latest-switch-label {
    color: var(--bs-primary);
    font-weight: 600;
}

.admin-location-type-latest-switch.is-hidden .admin-location-type-latest-switch-label {
    color: var(--bs-secondary-color);
    font-weight: 600;
}

.admin-location-type-latest-switch .form-check-input:disabled {
    cursor: wait;
    opacity: 0.65;
}

.admin-location-type-latest-switch-label {
    font-size: 0.8125rem;
    user-select: none;
    white-space: nowrap;
}

.admin-user-row.is-pending-user td:first-child {
    box-shadow: inset 3px 0 0 #ffc107;
}

.admin-user-row.is-disabled-user td:first-child {
    box-shadow: inset 3px 0 0 #dc3545;
}

.admin-user-row.is-pending-user.is-disabled-user td:first-child {
    box-shadow: inset 3px 0 0 #ffc107, inset 6px 0 0 #dc3545;
}

.admin-users-pending-filter .form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.admin-photo-thumb-link {
    display: inline-block;
    line-height: 0;
}

.admin-photo-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.admin-photo-thumb-link:hover .admin-photo-thumb {
    opacity: 0.9;
}

.admin-photos-panel,
.admin-locations-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 0;
    overflow: hidden;
}

.admin-photos-panel-toolbar,
.admin-locations-panel-toolbar {
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-photos-table-scroll,
.admin-locations-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.admin-photos-table thead th,
.admin-locations-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #212529;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.admin-photos-table thead th i,
.admin-locations-table thead th i {
    opacity: 0.9;
}

.admin-photos-load-sentinel td,
.admin-locations-load-sentinel td {
    font-size: 0.875rem;
    background: #f8f9fa;
}

.admin-photos-load-sentinel.d-none,
.admin-locations-load-sentinel.d-none {
    display: none !important;
}

.photo-stat-views,
.photo-stat-likes {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-photo-uploader {
    font-size: 0.875rem;
    white-space: nowrap;
}

.admin-photo-uploader .profile-avatar-xs {
    flex-shrink: 0;
}

.admin-photo-stat i {
    color: #6c757d;
}

.photo-stat-likes i {
    color: #dc3545;
}

.admin-user-photo-counts {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-user-form {
    max-width: 920px;
}

@media (min-width: 992px) {
    .admin-user-form-password {
        border-left: 1px solid #dee2e6;
        padding-left: 1.5rem;
    }
}

.location-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.location-type-badge .location-marker-icon {
    flex-shrink: 0;
}

.list-group-item .location-marker-icon {
    flex-shrink: 0;
}

.location-type-select-toggle {
    cursor: pointer;
}

.location-type-select-toggle::after {
    display: none;
}

.location-type-select-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.location-type-select-icon:empty {
    display: none;
}

.location-type-select .dropdown-item .location-marker-icon {
    flex-shrink: 0;
}

.location-picker {
    position: relative;
}

.location-picker-control {
    display: flex;
    gap: 0.5rem;
}

.location-picker-input {
    flex: 1 1 auto;
}

.location-picker-clear {
    flex-shrink: 0;
}

.location-picker-list {
    left: 0;
    margin-top: 0.35rem;
    max-height: 16rem;
    overflow-y: auto;
    position: absolute;
    right: 0;
    z-index: 1050;
}

.location-picker-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.location-picker-option.is-active,
.location-picker-option:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

.location-picker-option.is-selected {
    background-color: rgba(13, 110, 253, 0.12);
    font-weight: 600;
}

.location-picker-option-name {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.location-picker-option-meta {
    color: #6c757d;
    font-size: 0.8rem;
}

.location-picker-option-badge {
    font-size: 0.65rem;
}

.location-picker-invalid {
    display: none;
}

.admin-type-preview .location-marker-icon {
    flex-shrink: 0;
}

.admin-type-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
    gap: 0.45rem;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.65rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
}

.admin-type-icon-picker-empty {
    grid-column: 1 / -1;
    padding: 0.75rem 0.35rem;
}

.admin-type-icon-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #dee2e6;
    border-radius: 0.45rem;
    background: #f8f9fa;
    color: #495057;
    font-size: 1.05rem;
    cursor: pointer;
}

.admin-type-icon-option:hover,
.admin-type-icon-option:focus-visible {
    border-color: var(--accent, #e94560);
    background: rgba(233, 69, 96, 0.08);
    color: var(--accent, #e94560);
}

.admin-type-icon-option.is-selected {
    border-color: var(--accent, #e94560);
    background: rgba(233, 69, 96, 0.14);
    color: var(--accent, #e94560);
    box-shadow: inset 0 0 0 1px rgba(233, 69, 96, 0.25);
}

[data-theme="dark"] .admin-type-icon-picker {
    background: var(--surface-bg);
    border-color: var(--surface-border);
}

[data-theme="dark"] .admin-type-icon-option {
    background: var(--surface-muted);
    border-color: var(--surface-border);
    color: var(--text-body);
}

[data-theme="dark"] .admin-type-preview.card {
    background: var(--surface-muted) !important;
}

.photo-stat-updated {
    animation: photo-stat-flash 0.8s ease;
}

@keyframes photo-stat-flash {
    0% { background-color: rgba(25, 135, 84, 0.25); }
    100% { background-color: transparent; }
}

.profile-header {
    max-width: 960px;
}

.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar-lg {
    width: 5.5rem;
    height: 5.5rem;
    font-size: 2.5rem;
}

.profile-avatar-sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.95rem;
}

.profile-avatar-xs {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
}

.user-link-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    white-space: nowrap;
}

.user-link-with-avatar:hover {
    opacity: 0.88;
}

.user-link-with-avatar .profile-avatar,
.user-link-with-avatar .profile-avatar-image {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.profile-avatar-image {
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

.site-header-user-link .profile-avatar,
.site-header-user-link .profile-avatar-image {
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.admin-user-profile-preview-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-profile-preview,
.admin-user-profile-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
}

.admin-user-profile-preview {
    object-fit: cover;
    border: 2px solid #dee2e6;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.admin-user-profile-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: #fff;
    font-size: 2.25rem;
}

.admin-user-profile-file {
    flex: 1 1 180px;
    max-width: 100%;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-stat-label {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    justify-content: center;
}

.profile-stat-icon {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.85;
}

.profile-tabs .nav-link {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.profile-tab-icon {
    font-size: 1rem;
    line-height: 1;
}

.profile-section-heading {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.profile-section-icon {
    color: var(--bs-primary);
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.profile-manage-card {
    display: flex;
    flex-direction: column;
}

.profile-manage-card .photo-card,
.col-sm-6.col-lg-4.col-xl-3 > .photo-card {
    width: 100%;
}

.profile-manage-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.65rem;
}

.profile-settings-form {
    max-width: 960px;
}

.profile-settings-avatar-wrap {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-settings-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-settings-placeholder {
    color: #fff;
    font-size: 2.5rem;
}

.profile-form-preview {
    max-height: 160px;
}

.admin-region-map-card {
    top: 1rem;
    z-index: 1;
}

.admin-region-map {
    height: 620px;
    min-height: 400px;
    width: 100%;
    background: #e9ecef;
}

.admin-region-map-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    z-index: 500;
}

.region-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.region-list-item.active {
    background: #f0f4ff;
    border-left: 4px solid var(--accent);
}

.county-catalog-list {
    max-height: 280px;
    overflow-y: auto;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #c73a52;
    border-color: #c73a52;
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.placeholder-features {
    border-style: dashed;
}

.content-hero {
    background: linear-gradient(180deg, #fff 0%, var(--content-bg) 100%);
}

body.home-page-background {
    position: relative;
}

body.home-page-background::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
    pointer-events: none;
    z-index: 0;
}

body.home-page-background .site-main,
body.home-page-background .site-footer {
    position: relative;
    z-index: 1;
}

body.home-page-background .site-header {
    z-index: 1040;
}

body.home-page-background .content-hero-home {
    background: transparent;
}

body.home-page-background .site-footer {
    background: var(--header-bg);
}

@media (max-width: 991.98px) {
    body.home-page-background {
        background-attachment: scroll;
    }
}

.content-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(233, 69, 96, 0.12);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.content-spot-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%);
}

.content-spot-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.content-spot-image,
.content-welcome-image {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: var(--card-radius);
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.12);
}

.content-spot-placeholder {
    width: 100%;
    min-height: 220px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
}

.content-spot-body {
    padding: 2rem;
}

.content-page-card {
    border-radius: var(--card-radius);
}

@media (min-width: 992px) {
    .content-spot-body {
        padding: 3rem;
    }
}

/* Dark theme */
[data-theme="dark"] {
    color-scheme: dark;
    --content-bg: #121218;
    --surface-bg: #1e1e2a;
    --surface-muted: #252532;
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-body: #ced4da;
    --text-muted: #95a1ae;
    --text-heading: #e2e6ea;
    --bs-body-color: var(--text-body);
    --bs-body-color-rgb: 206, 212, 218;
    --bs-secondary-color: var(--text-muted);
    --bs-secondary-color-rgb: 149, 161, 174;
    --bs-tertiary-color: #7f8b98;
    --bs-emphasis-color: var(--text-heading);
    --bs-heading-color: var(--text-heading);
    --bs-link-color: #8eb8ff;
    --bs-link-hover-color: #b4d0ff;
}

[data-theme="dark"] body {
    background: var(--content-bg);
    color: var(--text-body);
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-body-secondary,
[data-theme="dark"] .form-text {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .lead {
    color: var(--text-body);
    font-weight: 400;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .h1,
[data-theme="dark"] .h2,
[data-theme="dark"] .h3,
[data-theme="dark"] .h4,
[data-theme="dark"] .h5,
[data-theme="dark"] .h6 {
    color: var(--text-heading);
}

[data-theme="dark"] .card,
[data-theme="dark"] .card-body,
[data-theme="dark"] .list-group-item {
    color: var(--text-body);
}

[data-theme="dark"] .site-breadcrumb {
    background: var(--surface-bg);
    border-color: var(--surface-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .site-breadcrumb-link {
    color: var(--text-body);
}

[data-theme="dark"] .site-breadcrumb-link:hover,
[data-theme="dark"] .site-breadcrumb-link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-heading);
}

[data-theme="dark"] .site-breadcrumb-current {
    color: var(--text-heading);
}

[data-theme="dark"] .site-breadcrumb-separator {
    color: #6c757d;
}

[data-theme="dark"] .content-hero-about .site-breadcrumb {
    background: rgba(30, 30, 42, 0.92);
}

[data-theme="dark"] .hero-search {
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--content-bg) 100%);
}

[data-theme="dark"] .site-header-search .input-group-text,
[data-theme="dark"] .site-header-search .form-control {
    background: rgba(255, 255, 255, 0.95);
    color: #212529;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .site-header-search .form-control::placeholder {
    color: #6c757d;
}

[data-theme="dark"] .site-header-search .form-control:focus {
    background: #fff;
    color: #212529;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

[data-theme="dark"] .site-search-suggestions {
    background: var(--surface-bg);
    border-color: var(--surface-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .site-search-option {
    color: var(--text-body);
}

[data-theme="dark"] .site-search-option:hover,
[data-theme="dark"] .site-search-option.is-active {
    background: var(--surface-muted);
}

[data-theme="dark"] .site-search-view-all:hover {
    background: var(--surface-muted);
}

[data-theme="dark"] .marker-details,
[data-theme="dark"] .location-hero-placeholder,
[data-theme="dark"] .photo-thumb-strip,
[data-theme="dark"] .location-ephemeris-position-box,
[data-theme="dark"] .location-ephemeris-controls,
[data-theme="dark"] .admin-photo-form-preview-empty {
    background: var(--surface-muted);
}

[data-theme="dark"] .content-hero {
    background: linear-gradient(180deg, var(--surface-bg) 0%, var(--content-bg) 100%);
}

[data-theme="dark"] .content-spot.card {
    background-color: var(--surface-bg);
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .content-spot-image-col {
    background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface-bg) 100%);
}

[data-theme="dark"] .content-spot-placeholder {
    background: linear-gradient(135deg, #2b2b38 0%, #343446 100%);
    color: var(--text-muted);
}

[data-theme="dark"] body.home-page-background::before {
    background: rgba(18, 18, 24, 0.78);
}

[data-theme="dark"] .map-place-results {
    background: var(--surface-bg);
    border-color: var(--surface-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .map-search-control {
    background: rgba(31, 45, 61, 0.94);
    color: #fff;
}

[data-theme="dark"] .map-search-control .coords-label,
[data-theme="dark"] .map-search-control .input-group-text,
[data-theme="dark"] .map-search-control .form-control {
    color: #fff;
}

[data-theme="dark"] .map-search-control .input-group-text {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .map-search-control .form-control {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .map-search-control .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .map-search-control .form-control:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .map-place-result {
    color: var(--text-body);
}

[data-theme="dark"] .map-place-result:hover,
[data-theme="dark"] .map-place-result:focus-visible {
    background: var(--surface-muted);
}

[data-theme="dark"] .map-place-result-meta {
    color: var(--text-muted);
}

[data-theme="dark"] .map-style-control .map-panel-toggle {
    color: var(--text-body);
}

[data-theme="dark"] .map-coords-box .map-panel-toggle {
    color: #fff;
}

[data-theme="dark"] .map-style-control,
[data-theme="dark"] .map-zoom-level-control,
[data-theme="dark"] .map-locate-control,
[data-theme="dark"] .map-panel:not(.map-search-control):not(.map-coords-box) {
    background: rgba(30, 30, 42, 0.97);
    color: var(--text-body);
}

[data-theme="dark"] .map-locate-btn {
    color: var(--text-body);
}

[data-theme="dark"] .map-locate-btn:hover,
[data-theme="dark"] .map-locate-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

[data-theme="dark"] .map-coords-box {
    background: rgba(106, 76, 147, 0.94);
    color: #fff;
}

[data-theme="dark"] .map-zoom-level-value {
    color: var(--text-body);
}

[data-theme="dark"] .leaflet-tooltip.map-location-hover-tooltip {
    background: var(--surface-bg);
    border-color: var(--surface-border);
    color: var(--text-body);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .leaflet-tooltip.map-location-hover-tooltip::before {
    border-top-color: var(--surface-bg);
}

[data-theme="dark"] .map-location-hover-name {
    color: var(--text-body);
}

[data-theme="dark"] .map-location-hover-pending {
    color: #fbbf24;
}

[data-theme="dark"] .map-location-hover-link:hover .map-location-hover-name {
    color: var(--accent, #e94560);
}

[data-theme="dark"] .map-hover-preview-image {
    background: var(--surface-muted);
}

[data-theme="dark"] .location-astro-card.card,
[data-theme="dark"] .location-mw-card.card,
[data-theme="dark"] .location-weather-card.card {
    background-color: var(--surface-bg);
    color: var(--text-body);
}

[data-theme="dark"] .location-astro-stat,
[data-theme="dark"] .location-astro-mini,
[data-theme="dark"] .location-astro-detail,
[data-theme="dark"] .location-mw-factor,
[data-theme="dark"] .location-tool-static,
[data-theme="dark"] .location-forecast-day {
    background: var(--surface-muted);
    border: 1px solid var(--surface-border);
}

[data-theme="dark"] .location-astro-stat .label,
[data-theme="dark"] .location-astro-stat .date,
[data-theme="dark"] .location-astro-mini .label,
[data-theme="dark"] .location-mw-factor-label,
[data-theme="dark"] .location-mw-factor-hint,
[data-theme="dark"] .location-mw-detail {
    color: var(--text-muted);
}

[data-theme="dark"] .location-astro-stat .value,
[data-theme="dark"] .location-astro-mini .value,
[data-theme="dark"] .location-astro-detail,
[data-theme="dark"] .location-astro-detail h6,
[data-theme="dark"] .location-mw-factor-value,
[data-theme="dark"] .location-mw-score-value,
[data-theme="dark"] .location-mw-rating {
    color: var(--text-body);
}

[data-theme="dark"] .location-mw-score-ring {
    background: conic-gradient(var(--mw-ring-color) calc(var(--mw-score, 50) * 1%), var(--surface-border) 0);
}

[data-theme="dark"] .location-mw-score-ring::before {
    background: var(--surface-bg);
}

[data-theme="dark"] .location-mw-detail {
    border-top-color: var(--surface-border);
}

[data-theme="dark"] .location-mw-card .badge.text-bg-light {
    background-color: var(--surface-muted) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] .location-tool-link {
    border-color: var(--surface-border);
    color: var(--text-body);
}

[data-theme="dark"] a.location-tool-link:hover {
    border-color: #6ea8fe;
    box-shadow: 0 4px 12px rgba(110, 168, 254, 0.15);
    color: var(--text-body);
}

[data-theme="dark"] .photo-exif-item {
    background: var(--surface-muted);
    border: 1px solid var(--surface-border);
}

[data-theme="dark"] .photo-exif-label {
    color: var(--text-muted);
}

[data-theme="dark"] .photo-exif-value {
    color: var(--text-body);
}

[data-theme="dark"] .location-tool-link .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .location-humidity-bar {
    background: var(--surface-border);
}

[data-theme="dark"] .location-weather-icon {
    color: var(--text-muted);
}

[data-theme="dark"] .location-tide-chart-range-label,
[data-theme="dark"] .location-tide-now-height {
    color: var(--text-body);
}

[data-theme="dark"] .location-tide-now-next,
[data-theme="dark"] .location-tide-type:not(.is-high) {
    color: var(--text-muted);
}

[data-theme="dark"] .location-tide-now-label {
    color: #93c5fd;
}

[data-theme="dark"] .location-tide-now--falling .location-tide-now-label {
    color: #a5b4fc;
}

[data-theme="dark"] .location-tide-chart-wrap {
    border-top-color: var(--surface-border);
}

[data-theme="dark"] .location-tide-now {
    border-color: rgba(110, 168, 254, 0.22);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.14) 0%, rgba(13, 202, 240, 0.1) 100%);
}

[data-theme="dark"] .location-tide-now--falling {
    border-color: rgba(129, 140, 248, 0.24);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(148, 163, 184, 0.1) 100%);
}

[data-theme="dark"] .map-location-hover-type {
    color: var(--text-muted);
}

[data-theme="dark"] .location-comment-date,
[data-theme="dark"] .location-rating-row-count {
    color: var(--text-muted);
}

[data-theme="dark"] .pagination-page-dropdown {
    background-color: var(--surface-bg);
    border-color: var(--surface-border);
    color: var(--text-body);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
}

/* Location comments & ratings */
.location-spot-heading {
    font-weight: 700;
}

.location-spot-comments,
.location-spot-ratings {
    border: 0;
}

.location-comment-compose {
    width: 100%;
}

.location-comment-compose-form {
    width: 100%;
}

.location-comment-compose-avatar,
.location-comment-avatar {
    flex-shrink: 0;
}

.location-comment-input {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    resize: vertical;
    min-height: 6rem;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.location-comment-submit-btn {
    background: #2f9e44;
    border-color: #2f9e44;
    color: #fff;
    border-radius: 999px;
    padding-inline: 1.25rem;
}

.location-comment-submit-btn:hover,
.location-comment-submit-btn:focus {
    background: #2b8a3e;
    border-color: #2b8a3e;
    color: #fff;
}

.location-comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.location-comment-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.location-comment-item.is-pending {
    opacity: 0.85;
}

.location-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.location-comment-author {
    font-weight: 600;
    text-decoration: none;
}

.location-comment-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.location-comment-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.location-comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.location-rating-star {
    color: #fcc419;
    font-size: 1.1rem;
}

.location-rating-star-sm {
    color: #adb5bd;
    font-size: 0.75rem;
}

.location-rating-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr 1.75rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.location-rating-row-stars {
    display: flex;
    gap: 0.05rem;
}

.location-rating-bar-track {
    height: 0.65rem;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.location-rating-bar-fill {
    height: 100%;
    background: #fcc419;
    border-radius: 999px;
    min-width: 0;
    transition: width 0.2s ease;
}

.location-rating-row-count {
    text-align: right;
    font-size: 0.875rem;
    color: #6c757d;
}

.location-rating-picker {
    display: flex;
    gap: 0.25rem;
}

.location-rating-picker-user {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.location-rating-remove-btn {
    margin-top: 0.35rem;
    text-decoration: none;
}

.location-rating-remove-btn:hover,
.location-rating-remove-btn:focus {
    text-decoration: underline;
}

.location-rating-pick-btn {
    border: 0;
    background: transparent;
    color: #adb5bd;
    padding: 0.15rem 0.25rem;
    line-height: 1;
}

.location-rating-pick-btn i {
    font-size: 1.5rem;
}

.location-rating-pick-btn.is-selected {
    color: #fcc419;
}

.location-rating-pick-btn i.bi-star-fill {
    color: #fcc419;
}

[data-theme="dark"] .location-comment-input {
    background: var(--surface-muted);
    border-color: var(--surface-border);
    color: var(--text-body);
}

[data-theme="dark"] .location-rating-bar-track {
    background: var(--surface-border);
}

[data-theme="dark"] .location-comment-author {
    color: var(--text-body);
}

[data-theme="dark"] .location-spot-comments,
[data-theme="dark"] .location-spot-ratings {
    background: var(--surface-bg);
    color: var(--text-body);
}

[data-theme="dark"] .location-rating-picker-user {
    border-top-color: var(--surface-border);
}

.location-hero-actions {
    min-width: 8.5rem;
}

.location-add-to-trip .dropdown-toggle::after {
    margin-left: auto;
}

.location-add-to-trip-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.location-add-to-trip-menu {
    max-height: min(320px, calc(100vh - 8rem));
    overflow-y: auto;
}

.location-add-to-trip-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.location-add-to-trip-btn:disabled .location-add-to-trip-icon {
    opacity: 0.45;
}

.location-add-to-trip-label {
    min-width: 0;
    text-align: left;
}

.location-trip-add-message {
    text-align: right;
    line-height: 1.3;
}

.location-bookmark-btn {
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.location-bookmark-btn.is-bookmarked {
    background: #fff4e6;
    border-color: #fd7e14;
    color: #e8590c;
}

.location-bookmark-btn.is-bookmarked i {
    color: #fd7e14;
}

.planner-page-shell {
    max-width: 1800px;
}

.planner-map-wrap {
    position: relative;
}

.planner-map-style-control {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 500;
    width: min(240px, calc(100% - 24px));
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

.planner-map-style-control .map-panel-toggle strong {
    font-size: 0.8125rem;
}

.planner-map-style-control .form-label {
    font-size: 0.6875rem;
}

.planner-map-style-control .form-select-sm {
    font-size: 0.6875rem;
}

.planner-map-style-control .map-labels-toggle .form-check-input {
    width: 2.1rem;
    height: 1.05rem;
}

.planner-map-style-control .map-style-body {
    margin-top: 0.45rem;
}

.leaflet-popup.planner-map-popup {
    margin-bottom: 14px;
}

.leaflet-popup.planner-map-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup.planner-map-popup .leaflet-popup-content {
    margin: 0;
    width: 200px !important;
}

.leaflet-popup.planner-map-popup .leaflet-popup-close-button {
    color: #fff;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.planner-map-popup-card {
    overflow: hidden;
}

.planner-map-popup-image {
    display: block;
    width: 100%;
    height: 108px;
    object-fit: cover;
    background: #e9ecef;
}

.planner-map-popup-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.35rem;
}

.planner-map-popup-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem 0.75rem;
    text-align: left;
}

.planner-map-popup-name {
    font-size: 0.875rem;
    line-height: 1.25;
    color: #212529;
}

.planner-map-popup-type,
.planner-map-popup-address,
.planner-map-popup-count {
    font-size: 0.75rem;
    color: #6c757d;
}

.planner-map-popup-count {
    font-weight: 600;
    color: var(--accent, #6a4c93);
}

.planner-map-popup-pending {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #b45309;
}

.planner-map-popup-body .planner-location-preview-trigger {
    margin-top: 0.35rem;
}

.planner-map {
    min-height: 520px;
    height: calc(100vh - 220px);
}

.planner-map .leaflet-top.leaflet-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    margin-right: 12px;
}

.planner-map .leaflet-top.leaflet-right .leaflet-control {
    float: none;
    margin: 0;
    clear: none;
}

.planner-photo-opportunity-list {
    max-height: min(16rem, 32vh);
    overflow-y: auto;
}

.planner-panel-toggle {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.planner-panel-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
}

.planner-panel-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.planner-panel-toggle .h5 {
    font-size: 1.1rem;
}

.planner-bookmarks-panel {
    min-height: 0;
}

.planner-bookmarks-panel .planner-panel {
    display: flex;
    flex-direction: column;
}

.planner-bookmarks-panel .planner-bookmark-list {
    max-height: none;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 160px;
    max-height: min(calc(100vh - 420px), 42vh);
}

.planner-photo-opportunity-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.planner-photo-opportunity-location {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 0.15rem;
}

.planner-photo-opportunity-location:hover,
.planner-photo-opportunity-location:focus {
    text-decoration: underline;
}

.planner-photo-opportunity-item .location-photo-opportunity-actions {
    flex-shrink: 0;
}

.planner-sidebar {
    max-height: calc(100vh - 140px);
    overflow: auto;
}

.planner-bookmark-list {
    max-height: 320px;
    overflow: auto;
}

.planner-bookmark-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.planner-bookmark-name {
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    color: var(--bs-link-color, #0d6efd);
}

.planner-bookmark-name:hover,
.planner-bookmark-name:focus {
    text-decoration: underline;
}

.planner-trip-pin-name {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.planner-trip-pin-name:hover,
.planner-trip-pin-name:focus {
    text-decoration: underline;
    color: var(--planner-trip-color, #0d6efd);
}

.planner-location-modal-layout {
    display: grid;
    gap: 1rem;
}

.planner-location-modal-photo {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.planner-location-modal-map {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.planner-location-modal-description {
    margin-bottom: 0.75rem;
    white-space: pre-line;
}

.planner-location-modal-details .list-group-item {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    border-left: 0;
    border-right: 0;
}

.planner-location-modal-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.planner-location-modal-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.planner-location-modal-schedule .list-group-item {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    border-left: 0;
    border-right: 0;
}

.planner-location-modal-tide-chart {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    margin-top: 0.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
}

.planner-location-modal-sun-chart {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    background: #fff;
}

.leaflet-popup-content .planner-location-preview-trigger {
    padding-left: 0;
}

[data-theme="dark"] .leaflet-popup.planner-map-popup .leaflet-popup-content-wrapper {
    background: #1f2937;
    color: #f8fafc;
}

[data-theme="dark"] .planner-map-popup-name {
    color: #f8fafc;
}

[data-theme="dark"] .planner-map-popup-type,
[data-theme="dark"] .planner-map-popup-address {
    color: #cbd5e1;
}

[data-theme="dark"] .planner-map-popup-image--empty {
    background: #111827;
    color: #64748b;
}

.planner-trip-item.active {
    background: color-mix(in srgb, var(--planner-trip-color, #fd7e14) 14%, transparent);
    border-left: 3px solid var(--planner-trip-color, #fd7e14);
}

.planner-trip-item.active .planner-trip-select {
    background: transparent;
}

.planner-trip-delete {
    flex-shrink: 0;
    align-self: stretch;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    opacity: 0.65;
}

.planner-trip-delete:hover,
.planner-trip-delete:focus {
    opacity: 1;
    background: rgba(220, 53, 69, 0.08);
}

.planner-stop-remove-btn {
    flex-shrink: 0;
    line-height: 1;
    padding: 0.15rem 0.35rem;
}

.planner-trip-item-head {
    width: 100%;
}

.planner-trip-num {
    flex: 0 0 auto;
    min-width: 1.35rem;
    font-weight: 700;
    color: var(--planner-trip-color, #0d6efd);
}

.planner-trip-icon {
    flex: 0 0 auto;
    width: 1.35rem;
    color: var(--planner-trip-color, #0d6efd);
    line-height: 1.2;
}

.planner-trip-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.planner-trip-pin-num,
.planner-trip-pin-icon {
    color: var(--planner-trip-color, #0d6efd);
}

.planner-map-marker-wrap {
    background: transparent;
    border: 0;
}

.planner-map-marker {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
}

.planner-map-marker i {
    transform: rotate(45deg);
    font-size: 0.95rem;
}

.planner-map-marker-num {
    position: absolute;
    top: -10px;
    right: -10px;
    transform: rotate(45deg);
    background: #fd7e14;
    color: #fff;
    border-radius: 999px;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .location-bookmark-btn {
    background: var(--surface-muted);
    border-color: var(--surface-border);
    color: var(--text-body);
}

[data-theme="dark"] .location-bookmark-btn.is-bookmarked {
    background: rgba(253, 126, 20, 0.15);
    border-color: #fd7e14;
    color: #ffb86c;
}

[data-theme="dark"] .planner-panel,
[data-theme="dark"] .planner-map-card {
    background: var(--surface-bg);
    color: var(--text-body);
}

[data-theme="dark"] .planner-trip-item.active {
    background: rgba(253, 126, 20, 0.18);
}

[data-theme="dark"] .planner-trip-delete {
    border-left-color: rgba(255, 255, 255, 0.12);
}

.planner-trip-card {
    position: relative;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.planner-trip-card-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 72px;
    height: 22px;
    background: #e9c46a;
    opacity: 0.85;
    border-radius: 2px;
}

.planner-trip-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.planner-trip-pin-list {
    max-height: 220px;
    overflow: auto;
}

.planner-trip-pin-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.planner-trip-pin-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.planner-trip-pin-icon {
    color: #dc3545;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.planner-stop-schedule {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    cursor: grab;
}

.planner-stop-schedule.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.planner-stop-schedule.is-drag-over {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.planner-stop-drag-handle {
    color: #adb5bd;
    padding-top: 0.15rem;
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
}

.planner-stop-schedule.is-dragging .planner-stop-drag-handle {
    cursor: grabbing;
}

.planner-stop-schedule-body {
    flex: 1;
    min-width: 0;
}

#plannerStopReorderHint {
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .planner-trip-card {
    background: var(--surface-muted);
    border-color: var(--surface-border);
}

[data-theme="dark"] .planner-stop-schedule {
    background: var(--surface-bg);
    border-color: var(--surface-border);
}

.latest-locations-search {
    width: 100%;
    max-width: 28rem;
}

@media (min-width: 992px) {
    .latest-locations-search {
        min-width: 22rem;
    }
}

.latest-locations-table-wrap.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.latest-location-admin-actions {
    white-space: nowrap;
}

.latest-location-completeness {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1;
    min-width: 2.75rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
}

.latest-location-completeness--complete {
    background: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.latest-location-completeness--good {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.latest-location-completeness--fair {
    background: rgba(255, 193, 7, 0.18);
    color: #997404;
}

.latest-location-completeness--low {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

[data-theme="dark"] .latest-location-completeness--complete {
    background: rgba(117, 183, 152, 0.18);
    color: #75b798;
}

[data-theme="dark"] .latest-location-completeness--good {
    background: rgba(110, 168, 254, 0.16);
    color: #9ec5fe;
}

[data-theme="dark"] .latest-location-completeness--fair {
    background: rgba(255, 193, 7, 0.14);
    color: #ffda6a;
}

[data-theme="dark"] .latest-location-completeness--low {
    background: rgba(234, 134, 143, 0.16);
    color: #ea868f;
}

.admin-photo-title-inline .admin-photo-title-edit-btn {
    color: var(--bs-secondary-color);
    text-decoration: none;
    vertical-align: middle;
}

.admin-photo-title-inline .admin-photo-title-edit-btn:hover,
.admin-photo-title-inline .admin-photo-title-edit-btn:focus-visible {
    color: var(--bs-primary);
}

.admin-photo-title-inline .admin-photo-title-form {
    margin-top: 0.25rem;
}

.admin-photo-title-inline.is-saving {
    opacity: 0.7;
    pointer-events: none;
}

.location-tide-admin-setting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.location-tide-admin-setting--compact {
    margin-bottom: 0.25rem;
}

.location-wikipedia-field {
    position: relative;
}

.location-wikipedia-matches {
    margin-top: 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-body-bg);
    overflow: hidden;
}

.location-wikipedia-matches-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: rgba(var(--bs-secondary-rgb), 0.06);
    font-size: 0.875rem;
}

.location-wikipedia-match-list {
    display: flex;
    flex-direction: column;
}

.location-wikipedia-match-row {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 0.35rem 0.5rem 0.35rem 0;
}

.location-wikipedia-match-row:last-child {
    border-bottom: 0;
}

.location-wikipedia-match {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    padding: 0.45rem 0.5rem 0.45rem 0.75rem;
}

.location-wikipedia-match-row:last-child .location-wikipedia-match {
    border-bottom: 0;
}

.location-wikipedia-match-open {
    align-self: center;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.location-wikipedia-match:hover,
.location-wikipedia-match:focus-visible {
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.location-wikipedia-match-title {
    display: block;
    font-weight: 600;
    color: var(--bs-body-color);
}

.location-wikipedia-match-source,
.location-wikipedia-match-meta {
    display: inline-block;
    margin-top: 0.15rem;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.location-wikipedia-match-snippet {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
    line-height: 1.35;
}

.location-tide-admin-select {
    width: auto;
    min-width: 10rem;
    max-width: 100%;
}

.location-tide-panel-header {
    margin-bottom: 0.25rem;
}

