:root {
    --header-bg: #1a1a2e;
    --accent: #e94560;
    --content-bg: #f8f9fa;
    --card-radius: 12px;
    --site-header-height: 4.5rem;
}

body {
    background: var(--content-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.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 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.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);
}

.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-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;
}

.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;
}

.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-container {
    height: 100%;
    min-height: 400px;
    width: 100%;
    background: #e9ecef;
    z-index: 1;
}

.map-controls-stack {
    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% - 180px);
    overflow-y: auto;
    pointer-events: none;
}

.map-controls-stack > .map-panel {
    pointer-events: auto;
}

.map-panel {
    border-radius: 10px;
}

.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;
}

.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;
}

.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: none;
}

.leaflet-tooltip.map-location-hover-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.98);
}

.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);
    padding: 0.65rem 0.85rem;
}

.map-panel-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
    border: 0;
    background: transparent;
    color: #212529;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
}

.map-panel-mobile-toggle i {
    transition: transform 0.2s ease;
}

.map-panel-mobile-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.map-style-row {
    flex-wrap: wrap;
}

.map-style-row .form-select {
    flex: 1 1 120px;
    min-width: 0;
}

.map-style-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .map-style-body {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

.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-coords-box {
    background: rgba(106, 76, 147, 0.94);
    color: #fff;
    padding: 0.75rem 1rem;
}

.map-w3w-box {
    background: rgba(220, 53, 69, 0.94);
    color: #fff;
    padding: 0.55rem 1rem;
}

.map-nearby-box {
    position: absolute;
    bottom: 94px;
    left: 12px;
    z-index: 600;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.85rem 1rem;
    width: min(300px, calc(100% - 24px));
    max-height: 260px;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.map-nearby-box.is-collapsed {
    max-height: none;
    padding: 0.55rem 0.85rem;
}

.map-nearby-toggle {
    color: inherit;
}

.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.875rem;
    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.8125rem;
    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-controls-stack {
        width: min(200px, calc(100% - 56px));
        top: 8px;
        left: 8px;
        gap: 6px;
        max-height: calc(100% - 140px);
    }

    .map-panel {
        border-radius: 8px;
    }

    .map-style-control {
        padding: 0.45rem 0.55rem;
    }

    .map-style-control .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .map-style-control .form-select-sm {
        font-size: 0.75rem;
        padding: 0.2rem 1.75rem 0.2rem 0.45rem;
    }

    .map-style-control .btn-sm {
        font-size: 0.6875rem;
        padding: 0.2rem 0.45rem;
    }

    .map-labels-toggle .form-check-input {
        width: 2rem;
        height: 1rem;
    }

    .map-labels-hint {
        font-size: 0.6875rem !important;
    }

    .map-coords-box {
        padding: 0.45rem 0.55rem;
    }

    .map-w3w-box {
        padding: 0.4rem 0.55rem;
    }

    .coords-label {
        font-size: 0.625rem;
    }

    .coords-value {
        font-size: 0.75rem;
    }

    .coords-place,
    .w3w-value {
        font-size: 0.6875rem;
    }

    .coords-location {
        margin-top: 0.35rem !important;
    }

    .map-nearby-box {
        bottom: 82px;
        left: 8px;
        max-height: 130px;
        width: min(200px, calc(100% - 16px));
        padding: 0.55rem 0.65rem;
        font-size: 0.8125rem;
    }

    .map-nearby-box strong {
        font-size: 0.8125rem;
    }

    .map-nearby-list li {
        font-size: 0.75rem;
        padding: 0.25rem 0;
    }

    .map-marker-panel {
        top: auto;
        bottom: 12px;
        right: 8px;
        width: min(180px, calc(100% - 16px));
        padding: 0.55rem 0.65rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 399.98px) {
    .map-controls-stack {
        width: min(176px, calc(100% - 48px));
    }

    .map-nearby-box {
        width: min(176px, calc(100% - 16px));
    }
}

.marker-details {
    background: #f8f9fa;
    border-radius: var(--card-radius);
    padding: 1rem;
}

.location-hero-img {
    max-height: 420px;
    object-fit: cover;
}

.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-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 {
    text-decoration: underline;
}

.photo-thumb-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.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;
}

.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;
}

.location-coords-line .location-coords-value {
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.location-weather-card,
.location-astro-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-map-modal-slot {
    width: 100%;
    height: calc(100vh - 3.5rem);
    min-height: 320px;
    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);
}

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    font-size: 1.05rem;
}

.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-slider {
    margin-bottom: 0;
}

.location-ephemeris-position-box {
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-height: 3.25rem;
}

.location-tide-times {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.65rem;
}

.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-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;
}

.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-main {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-main-content {
    width: 100%;
}

.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-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;
}

.photo-stat-views,
.photo-stat-likes {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-photo-stat {
    color: #495057;
}

.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;
}

.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 {
    text-decoration: underline;
}

.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-tabs .nav-link {
    white-space: nowrap;
}

.profile-manage-card {
    display: flex;
    flex-direction: column;
}

.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;
    }
}
