/**
 * Genbrugskort.dk - Main Stylesheet
 */

/* CSS Variables */
:root {
    --primary-color: #2D5016;
    --secondary-color: #7CAA52;
    --background-color: #F5F5F0;
    --accent-color: #D97706;
    --success-color: #059669;
    --warning-color: #F59E0B;
    --error-color: #DC2626;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Global list styling */
ul,
ol {
    padding-left: 2rem;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    padding-left: 0.25rem;
}

.no-select {
  user-select: none;
}

/* Page Wrapper for Sticky Footer */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Map Page Layout */
body.map-page {
    height: 100vh;
    height: 100svh;
    /* Small viewport height - accounts for mobile browser UI */
    overflow: hidden;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo-icon {
    height: 2rem;
    width: auto;
    vertical-align: middle;
}

.maintenance-badge {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.maintenance-badge:hover {
    transform: scale(1.2);
}

.maintenance-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    color: var(--text-light);
    font-style: italic;
}

.modal-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    position: relative;
    align-items: center;
}

.phone-country-flag {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.phone-country-input {
    flex: 0 0 80px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.phone-country-input:focus {
    cursor: text;
}

.phone-number-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.country-code-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 0.25rem;
}

.country-code-dropdown.hidden {
    display: none;
}

.country-code-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s;
}

.country-code-item:last-child {
    border-bottom: none;
}

.country-code-item:hover,
.country-code-item.active {
    background-color: #e8f5e9;
}

.country-code-item .fi {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.country-code-item .code {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 50px;
}

.country-code-item .name {
    color: var(--text-color);
    flex: 1;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu a:not(.btn) {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.navbar-menu a:not(.btn):hover {
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-menu a.submit-spot-link {
    color: #4caf50;
    font-weight: 600;
}

/* Navbar buttons styling - Ensure proper inheritance */
.navbar-menu .btn.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s;
}

.navbar-menu .btn.btn-primary:hover {
    background: var(--secondary-color);
    text-decoration: none;
    color: white;
}

/* Navbar Icon Links */
.navbar-text-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.navbar-text-link:hover {
    color: var(--primary-color);
}

.navbar-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.navbar-icon-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

.navbar-icon-link.submit-spot-link {
    color: #4caf50;
}

.navbar-icon-link.submit-spot-link:hover {
    background-color: rgba(76, 175, 80, 0.15);
    color: #388e3c;
}

.navbar-icon-link.navbar-register-link {
    background-color: var(--primary-color);
    color: white;
}

.navbar-icon-link.navbar-register-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.navbar-icon-link.navbar-register-link .navbar-icon {
    stroke: white;
}

.navbar-icon-link.navbar-search-btn {
    background-color: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.navbar-icon-link.navbar-search-btn:hover {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: var(--primary-color);
}

.navbar-icon {
    width: 24px;
    height: 24px;
}

/* Navbar Tooltips */
.navbar-icon-link[data-tooltip],
.navbar-profile-link[data-tooltip] {
    position: relative;
}

.navbar-icon-link[data-tooltip]::after,
.navbar-profile-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.navbar-icon-link[data-tooltip]:hover::after,
.navbar-profile-link[data-tooltip]:hover::after {
    opacity: 1;
}

/* Navbar Badge (Notification Count) */
.navbar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #f44336;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Plain presence dot (no count) - e.g. the "?" navbar icon when a support
   ticket has new activity. .navbar-icon-link is already position:relative. */
.navbar-badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 9px;
    height: 9px;
    background-color: #f44336;
    border: 2px solid white;
    border-radius: 50%;
}
.navbar-badge-dot--inline {
    position: static;
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 0.4rem;
    border: none;
    vertical-align: middle;
}

/* Navbar Avatar */
.navbar-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.navbar-profile-link:hover {
    transform: scale(1.05);
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.navbar-profile-link:hover .navbar-avatar {
    border-color: var(--primary-color);
}

.navbar-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
}

.navbar-profile-link:hover .navbar-avatar-initials {
    border-color: var(--primary-color);
}

/* Notifications Dropdown */
.navbar-notifications-dropdown {
    position: relative;
}

.navbar-notifications-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.navbar-notifications-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.notifications-dropdown-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.notifications-dropdown-count {
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.notifications-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.notification-dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.notification-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notifications-dropdown-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.notifications-footer-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border-right: 1px solid var(--border-color);
}

.notifications-footer-link:last-child {
    border-right: none;
}

.notifications-footer-single {
    border-right: none;
    border-radius: 0 0 8px 8px;
}

.notifications-footer-link:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.notifications-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #f44336;
}

.notifications-clear-btn:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

.footer-link-icon {
    width: 16px;
    height: 16px;
}

.notifications-dropdown-empty {
    padding: 2rem 1.5rem;
    text-align: center;
}

.notifications-dropdown-empty .empty-icon {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    margin: 0 auto 1rem;
}

.notifications-dropdown-empty p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Mobile Notifications Modal */
.notifications-modal {
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 0;
}

@media (max-width: 768px) {
    .notifications-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100svh;
        height: 100svh;
        border-radius: 0;
        margin: 0 !important;
    }

    /* Ensure modal wrapper doesn't scroll on mobile for notifications */
    #notificationsMobileModal.modal[style*="display: block"] {
        overflow: hidden !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }

    #notificationsMobileModal .modal-content {
        margin: 0 !important;
        max-width: 100% !important;
        height: 100svh !important;
        max-height: 100svh !important;
        padding: 0 !important;
        animation: none !important;
        transform: none !important;
    }
}

.notifications-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: white;
}

.notifications-modal .modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.notifications-modal .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    min-height: 0;
}

.notifications-modal-list {
    display: flex;
    flex-direction: column;
}

.notification-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.notification-modal-item .notification-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification-modal-item .notification-item-title {
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 500;
}

.notification-modal-item .notification-item-chain {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
    margin-top: 0.125rem;
    margin-bottom: 0.125rem;
}

.notification-modal-item .notification-item-meta {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #6c757d;
}

.notification-modal-item:last-child {
    border-bottom: none;
}

.notification-modal-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.notifications-modal-empty {
    padding: 1.5rem 0.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.notifications-modal-empty .empty-icon {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    margin: 0 auto 0.75rem;
}

.notifications-modal-empty p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.notifications-modal .modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    background: white;
}

.notifications-modal .modal-footer .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Profile Dropdown */
.navbar-profile-dropdown {
    position: relative;
}

.navbar-profile-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.navbar-profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.navbar-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.navbar-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.navbar-dropdown-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.navbar-dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.navbar-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.25rem 0;
}

/* Mobile Actions */
.navbar-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.navbar-notifications-mobile {
    background: none;
    border: none;
    padding: 0;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Map Container */
#map {
    flex: 1;
    width: 100%;
    position: relative;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: block;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 140px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
    flex-shrink: 0;
}

.search-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.search-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.search-modal-close svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

.search-modal-close:hover {
    background: var(--border-color);
}

.search-modal-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .search-modal-content {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .search-modal-header {
        padding: 0.875rem 1rem;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .search-modal-header h3 {
        font-size: 1.125rem;
    }

    .search-modal-body {
        padding: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .search-group {
        margin-bottom: 0.75rem;
    }

    .filter-divider {
        margin: 1rem 0;
    }

    .filter-group {
        margin-bottom: 0.875rem;
    }

    .search-view.active {
        /* On mobile, search view is 3-part layout */
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .search-input-wrapper {
        /* Input fixed at top */
        flex-shrink: 0;
        background: white;
        z-index: 5;
    }

    .search-results-wrapper {
        /* Results wrapper scrolls */
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .search-results {
        /* Results grow with content */
        min-height: 0;
    }


    .filters-view.active {
        /* On mobile, filters view is 2-part layout like search */
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .filters-scrollable {
        /* Scrollable filters area */
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .filter-actions {
        /* Actions fixed at bottom */
        flex-shrink: 0;
        background: white;
        padding-top: 0.75rem;
        padding-bottom: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0;
    }
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--background-color);
    padding: 0.25rem;
    border-radius: 8px;
}

.view-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle-btn svg {
    flex-shrink: 0;
}

.view-toggle-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-toggle-btn:hover:not(.active) {
    color: var(--text-color);
}

/* Search & Filter Views */
.search-view,
.filters-view {
    display: none;
}

.search-view.active,
.filters-view.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.search-group {
    margin-bottom: 0.5rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
    /* Ensure dropdown stays within modal on mobile */
    overflow: visible;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow);
    overflow-y: auto;
    margin-top: 0.5rem;
}

/* Desktop: Limit search results height */
@media (min-width: 769px) {
    .search-results {
        max-height: 300px;
    }
}

/* Mobile: Search results configured via search-group flexbox */

.search-results.hidden {
    display: none;
}

.search-result-item {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background-color: #f8f9fa;
}

.search-result-item.no-results {
    cursor: default;
    color: #6c757d;
    justify-content: center;
}

.search-result-item.no-results:hover {
    background-color: white;
}

.result-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-name strong {
    color: var(--primary-color);
    font-weight: 600;
}

.result-meta {
    font-size: 0.875rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-chain {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section-title {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-option {
    position: relative;
}

.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.filter-option label:hover {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
}

.filter-option input[type="checkbox"]:checked+label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.filter-option-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Active Filters Summary */
.active-filters {
    margin-bottom: 1rem;
    min-height: 32px;
}

.active-filters:empty {
    display: none;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-size: 0.8rem;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
}

.active-filter-badge button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.active-filter-badge button:hover {
    opacity: 1;
}

.active-filter-badge svg {
    width: 14px;
    height: 14px;
}

.filter-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radius-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
}

.radius-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.radius-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.radius-slider-wrapper {
    margin-top: 0.75rem;
}

.radius-slider-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.radius-filter-clear {
    display: block;
    margin-top: 0.625rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.radius-filter-clear:hover {
    opacity: 0.8;
}

/* Custom Markers */
.custom-marker-wrapper {
    background: none;
    border: none;
}

.custom-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: var(--shadow);
    position: relative;
}

.custom-marker img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
}

.custom-marker > span:not(.open-badge):not(.inactive-badge):not(.offer-badge) {
    font-size: 1.5rem;
}

.open-badge {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    background: #7caa52;
    color: white;
    /* font-size: 0.5rem; */ /* Removed - uses default browser size */
    padding: 2px 4px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Guld-sol animation for åbne spots */
.marker-open {
    position: relative;
}

.marker-open::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 200, 0, 0.5) 25%, rgba(255, 215, 0, 0.2) 60%, rgba(255, 215, 0, 0) 100%);
    animation: sunGlow 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes sunGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6),
                    0 0 25px rgba(255, 200, 0, 0.4),
                    0 0 35px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                    0 0 35px rgba(255, 200, 0, 0.6),
                    0 0 50px rgba(255, 215, 0, 0.4),
                    0 0 65px rgba(255, 215, 0, 0.2);
    }
}

/* Pulserende glød for spots med aktivt tilbud (bruger ::after så den kan ses samtidig med marker-open's ::before) */
.marker-has-offer {
    position: relative;
}

.marker-has-offer::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.75) 0%, rgba(255, 107, 53, 0.45) 30%, rgba(230, 57, 70, 0.15) 65%, rgba(230, 57, 70, 0) 100%);
    animation: offerPulse 1.6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes offerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
        box-shadow: 0 0 10px rgba(230, 57, 70, 0.5),
                    0 0 18px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.22);
        opacity: 1;
        box-shadow: 0 0 16px rgba(230, 57, 70, 0.7),
                    0 0 28px rgba(255, 107, 53, 0.45);
    }
}

.offer-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #e63946);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Tilbuds-indikation på cluster-bobler (udzoomet kortvisning) */
.marker-cluster-has-offer {
    position: relative;
}

.marker-cluster-has-offer::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.55) 0%, rgba(255, 107, 53, 0.35) 35%, rgba(230, 57, 70, 0.1) 70%, rgba(230, 57, 70, 0) 100%);
    animation: offerPulse 1.6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.cluster-offer-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #e63946);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-size: 10px;
    line-height: 1;
    z-index: 1;
}

/* Spot Popup */
.spot-popup-content {
    padding: 0;
}

.spot-popup-content h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.popup-offer-banner {
    background: linear-gradient(135deg, #ff6b35, #e63946);
    color: white;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.35);
}

.popup-offer-banner .offer-banner-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-offer-banner .offer-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.popup-offer-banner .offer-discount {
    font-size: 0.9rem;
    font-weight: 600;
}

.popup-offer-banner .offer-title {
    margin-top: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

.popup-offer-banner .offer-description {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.popup-offer-banner .offer-expires {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.popup-header {
    margin-bottom: 0.75rem;
}

.popup-header h3 {
    margin-bottom: 0.25rem;
}

.popup-images {
    margin-bottom: 1rem;
}

.popup-image-single {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.popup-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    position: relative;
}

.popup-image-gallery-item {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.popup-image-gallery-item:hover {
    transform: scale(1.05);
}

.popup-image-more {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.popup-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}

.popup-logo img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

/* Logo Style Variants - Issue #92 */
.popup-logo.logo-style-square img {
    border-radius: 0;
}

.popup-logo.logo-style-rounded img {
    border-radius: 8px;
}

.popup-logo.logo-style-circular img {
    border-radius: 50%;
}

.popup-chain {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.popup-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.popup-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.popup-info-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.popup-info-item a {
    color: var(--text-color);
    text-decoration: none;
}

.popup-info-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.popup-hours-compact {
    position: relative;
}

.hours-toggle {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: auto;
    color: var(--primary-color);
}

.hours-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.badge-open,
.badge-closed {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-open {
    background: var(--success-color);
    color: white;
}

.badge-closed {
    background: var(--error-color);
    color: white;
}

.hours-details {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    padding-left: 1.5rem;
}

.hours-table {
    width: 100%;
    font-size: 0.85rem;
}

.hours-table td {
    padding: 2px 4px;
}

.hours-table td:first-child {
    font-weight: 500;
    width: 40px;
}

.hours-notes {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
}

/* Data tables (for policy pages) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: var(--primary-color);
    color: white;
}

.data-table th {
    padding: 0.875rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.data-table td {
    padding: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.data-table tbody tr:hover {
    background: var(--background-color);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.popup-description {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.popup-directions {
    margin: 0.75rem 0;
    padding: 0.625rem;
    background: var(--background-color);
    border-radius: 6px;
}

.directions-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.directions-header svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.directions-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.btn-direction {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    background: var(--primary-color);
    color: white !important;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-direction:hover {
    background: var(--secondary-color);
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Locked directions (for non-logged users) */
.popup-directions-locked {
    filter: grayscale(100%);
    opacity: 0.6;
    position: relative;
}

.popup-directions-locked .btn-direction {
    cursor: pointer;
    background: var(--primary-color);
}

.popup-directions-locked .btn-direction:hover {
    opacity: 0.8;
}

/* Address locked for non-logged users */
.popup-address-locked {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-show-address {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-show-address:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.btn-action {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-action svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

.btn-action:hover {
    border-color: var(--primary-color);
    background: var(--background-color);
}

.btn-action:hover svg {
    color: var(--primary-color);
}

.btn-action.favorited {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.btn-action.favorited svg {
    color: white;
}

.btn-action.checked-in {
    border-color: var(--primary-color);
    background: var(--primary-color);
    cursor: default;
}

.btn-action.checked-in svg {
    color: white;
}

/* Tooltips for btn-action and btn-direction */
.btn-action[title]:hover::after,
.btn-direction[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

.btn-action[title]:hover::before,
.btn-direction[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Custom tooltips for action buttons (popup and panel) */
.btn-action[data-tooltip],
.panel-action-btn[data-tooltip] {
    position: relative;
}

.btn-action[data-tooltip]::after,
.panel-action-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-action[data-tooltip]:hover::after,
.panel-action-btn[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
}

.btn-primary:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    background: #ccc;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-color);
}

/* Only .data-table had scoped versions of these until now - a bare
   .btn-danger/.btn-success outside a data table (e.g. admin/tickets.php's
   ticket-detail-view.php action buttons) fell through to the browser's
   unstyled native button, which is where "text blends into the button"
   reports came from. */
.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c62828;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #047857;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    z-index: 1000;
}

.footer-compact {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.footer-brand strong {
    color: var(--primary-color);
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-links-inline a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-links-inline a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.7rem;
}

.footer-copyright a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-copyright a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 80px;
    right: 1rem;
    max-width: 400px;
    padding: 1rem 2.5rem 1rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: var(--success-color);
    color: white;
}

.flash-error {
    background: var(--error-color);
    color: white;
}

.flash-warning {
    background: var(--warning-color);
    color: white;
}

.flash-info {
    background: var(--primary-color);
    color: white;
}

.flash-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    /* padding: 2rem; */
    /* Commented out - conflicts with admin modal structure */
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

/* Frontend modals (simple structure without header/body/footer) get padding */
#reportModal .modal-content,
#offerModal .modal-content,
#maintenanceModal .modal-content,
.feedback-modal-content {
    padding: 2rem;
    width: 90%;
    max-width: 600px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: none;
}

.modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* .modal-content ul {
    margin-left: 1.5rem;
} */

/* About Modal Specific Styles */
.about-modal-content {
    max-width: 750px;
}

.about-intro {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.about-photo {
    flex-shrink: 0;
}

.about-photo a {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo a:hover {
    transform: scale(1.05);
}

.about-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.about-photo a:hover img {
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-text p:first-child {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.about-text a:hover {
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

.about-modal-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* .about-modal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
} */

.about-modal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.about-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.about-footer p {
    margin-bottom: 0.5rem;
}

.about-signature {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.about-signature a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.about-signature a:hover {
    border-bottom-color: var(--primary-color);
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.modal-content .form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.modal-content .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Feedback Modal Specific Styles */
.feedback-modal-content {
    max-width: 600px;
}

.feedback-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.feedback-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
    flex-shrink: 0;
}

.feedback-header-text {
    flex: 1;
}

.feedback-header-text h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.feedback-header-text p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.feedback-info {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #f0f7ff;
    border: 1px solid #b8d4f1;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.feedback-info-icon {
    width: 20px;
    height: 20px;
    color: #0066cc;
    flex-shrink: 0;
    margin-top: 2px;
}

.feedback-info-content {
    flex: 1;
}

.feedback-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #003d7a;
}

.feedback-info strong {
    color: #002952;
}

.feedback-info-screenshot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0066cc;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: white;
    border: 1px solid #b8d4f1;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
    vertical-align: middle;
    white-space: nowrap;
}

.feedback-info-screenshot-link:hover {
    background: #e6f2ff;
    border-color: #0066cc;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.feedback-info-screenshot-link:hover .feedback-info-screenshot-icon {
    transform: translate(1px, -1px);
}

.feedback-info-thumbnail {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 3px;
    border: 1.5px solid #b8d4f1;
    transition: border-color 0.2s ease;
}

.feedback-info-screenshot-link:hover .feedback-info-thumbnail {
    border-color: #0066cc;
}

.feedback-info-screenshot-label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.feedback-info-screenshot-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    transition: all 0.2s ease;
    margin-left: -0.125rem;
}

/* Feedback Screenshot Lightbox */
.feedback-screenshot-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.feedback-screenshot-lightbox.active {
    display: flex;
}

.feedback-screenshot-content {
    position: relative;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.feedback-screenshot-content img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.feedback-screenshot-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.feedback-screenshot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.feedback-screenshot-caption {
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    max-width: 500px;
}

/* Feedback Success Overlay & Report Success Overlay (shared styles) */
.feedback-success-overlay,
.report-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.feedback-success-overlay.active,
.report-success-overlay.active {
    display: flex;
    animation: feedbackOverlayFadeIn 0.4s ease;
}

@keyframes feedbackOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.feedback-success-content,
.report-success-content {
    text-align: center;
    padding: 2rem;
    animation: feedbackSuccessSlideUp 0.5s ease;
}

@keyframes feedbackSuccessSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-success-icon,
.report-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c28 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: feedbackIconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3);
}

@keyframes feedbackIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.feedback-success-icon svg,
.report-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 3;
    animation: feedbackCheckDraw 0.5s ease 0.3s both;
}

@keyframes feedbackCheckDraw {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }

    to {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

.feedback-success-content h3,
.report-success-content h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feedback-success-content p,
.report-success-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Feedback Impersonation Section (Admin Only) */
.feedback-impersonate-section {
    margin-bottom: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.feedback-impersonate-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.feedback-impersonate-toggle:hover {
    background: #e9ecef;
}

.feedback-impersonate-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.feedback-impersonate-toggle.active .feedback-impersonate-icon {
    transform: rotate(180deg);
}

.feedback-impersonate-dropdown {
    display: none;
    background: white;
    border-top: 1px solid var(--border-color);
}

.feedback-impersonate-dropdown.active {
    display: block;
}

.feedback-impersonate-search {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.feedback-impersonate-search input {
    margin: 0;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.feedback-impersonate-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.feedback-impersonate-list {
    max-height: 250px;
    overflow-y: auto;
}

.feedback-impersonate-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feedback-impersonate-user {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.feedback-impersonate-user:last-child {
    border-bottom: none;
}

.feedback-impersonate-user:hover {
    background: #f8f9fa;
}

.feedback-impersonate-user-name {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 0.25rem;
}

.feedback-impersonate-user-email {
    font-size: 0.85rem;
    color: var(--text-light);
}

.feedback-impersonate-selected {
    padding: 1rem;
    background: #e7f3e7;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feedback-impersonate-selected strong {
    color: var(--primary-color);
}

.feedback-impersonate-selected span {
    flex: 1;
}

.feedback-impersonate-clear {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.feedback-impersonate-clear:hover {
    color: #dc3545;
}

.feedback-impersonate-clear svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .feedback-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feedback-avatar {
        width: 70px;
        height: 70px;
    }

    .feedback-header-text h2 {
        font-size: 1.3rem;
    }

    .feedback-success-icon,
    .report-success-icon {
        width: 70px;
        height: 70px;
    }

    .feedback-success-icon svg,
    .report-success-icon svg {
        width: 35px;
        height: 35px;
    }

    .feedback-success-content h3,
    .report-success-content h3 {
        font-size: 1.5rem;
    }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
}

.auth-box.policy-page {
    max-width: 800px;
}

/* Nested lists */
ul ul,
ol ul,
ul ol,
ol ol {
    margin: 0.25rem 0;
}

.policy-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Removed - now handled by consistent styling below */

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Password requirements indicator */
.password-requirements {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #dee2e6;
}

.password-requirements .requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

.password-requirements .requirement:last-child {
    margin-bottom: 0;
}

.password-requirements .requirement .indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.password-requirements .requirement.met {
    color: var(--success-color);
}

.password-requirements .requirement.met .indicator {
    background-color: var(--success-color);
}

/* hCaptcha centering */
.h-captcha {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* Profile Completion Modal */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.profile-modal {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.profile-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.profile-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.profile-modal-body {
    padding: 1.25rem;
}

/* Progress Section */
.profile-progress-section {
    margin-bottom: 1rem;
}

.profile-completion-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.profile-progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.profile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 12px;
    transition: width 0.6s ease;
}

/* Milestone Section */
.profile-milestone-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.milestone-title {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* CTA Text */
.profile-cta-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Onboarding intro's feature list (reuses the .profile-modal-* container
   classes above - same overlay/header/footer, different body content) */
.onboarding-feature-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.onboarding-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.onboarding-feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.3;
}

/* Modal Footer */
.profile-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.btn-complete-profile {
    display: block;
    text-align: center;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.btn-complete-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.profile-modal-dismiss {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.btn-dismiss-session,
.btn-dismiss-permanent {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: white;
    color: var(--text-light);
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-dismiss-session:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

.btn-dismiss-permanent {
    color: #999;
}

.btn-dismiss-permanent:hover {
    background-color: #fff5f5;
    border-color: #ffcccc;
    color: #cc0000;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-modal {
        width: 92%;
        max-width: none;
    }

    .profile-modal-header {
        padding: 0.875rem 1rem;
    }

    .profile-modal-header h2 {
        font-size: 1.1rem;
    }

    .profile-modal-body {
        padding: 1rem;
    }

    .profile-modal-footer {
        padding: 0.875rem 1rem;
    }

    .profile-modal-dismiss {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-dismiss-session,
    .btn-dismiss-permanent {
        width: 100%;
    }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox label {
    margin-bottom: 0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Registration Success Overlay - Centered modal with separate backdrop */
.auth-box {
    position: relative;
}

/* Backdrop - separate element */
.registration-success-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
}

.registration-success-backdrop.active {
    display: block;
    animation: backdropFadeIn 0.3s ease;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal card */
.registration-success-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 3rem 2rem;
}

.registration-success-overlay.active {
    display: flex;
    animation: registrationOverlayFadeIn 0.4s ease;
}

@keyframes registrationOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.registration-success-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    animation: registrationSuccessSlideUp 0.5s ease;
}

@keyframes registrationSuccessSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c28 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: registrationIconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3);
}

@keyframes registrationIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.registration-success-icon svg {
    width: 50px;
    height: 50px;
    color: white;
    stroke-width: 3;
    animation: registrationCheckDraw 0.5s ease 0.3s both;
}

@keyframes registrationCheckDraw {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

.registration-success-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.registration-success-content p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .registration-success-icon {
        width: 80px;
        height: 80px;
    }
    
    .registration-success-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .registration-success-content h3 {
        font-size: 1.6rem;
    }
    
    .registration-success-content p {
        font-size: 1rem;
    }
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* .alert ul {
    margin-left: 1.25rem;
} */

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #3B82F6;
}

/* Image Modal */
.image-modal {
    display: block;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.image-modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.image-modal-close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Profile Page */
.profile-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Profile Stats Box */
.profile-stats-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.profile-stats-header h2 {
    margin: 0;
    text-transform: none;
}

.profile-completion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.completion-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.completion-bar {
    width: 120px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.profile-tab:hover {
    color: var(--primary-color);
    background-color: rgba(45, 80, 22, 0.05);
}

.profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-icon {
    font-size: 1.1rem;
}

/* Tab Content */
.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.profile-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    text-transform: none;
}

.profile-section.danger-zone {
    border: 2px solid #dc3545;
}

.danger-heading {
    color: #dc3545 !important;
    border-bottom-color: #dc3545 !important;
}

.danger-warning {
    color: #666;
    margin: 1rem 0;
}

/* Profile "Sikkerhed" tab - Passkeys card */
#passkey-list {
    margin: 1rem 0;
}

.session-list__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.session-list__item:last-child {
    border-bottom: none;
}

.session-list__item span {
    font-weight: 600;
}

.session-list__item small {
    color: #666;
    flex: 1;
}

/* Profile "Kalender" tab (.ics subscription links) - these classes had
   no CSS at all, rendering as unstyled default <label>/<input>/<details>. */
.calendar-link-label {
    display: block;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #333;
}

.calendar-link-label:first-of-type {
    margin-top: 0;
}

.calendar-link-row {
    display: flex;
    gap: 0.5rem;
}

.calendar-link-row input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: monospace;
    background: #f9fafb;
    color: #555;
}

.calendar-link-row input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calendar-link-row .btn {
    flex-shrink: 0;
}

.calendar-link-help {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.calendar-login-details {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.calendar-login-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-login-details[open] summary {
    margin-bottom: 1rem;
}

.calendar-login-details .calendar-link-label:first-of-type {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .calendar-link-row {
        flex-direction: column;
    }

    .calendar-link-row .btn {
        width: 100%;
    }
}

.notification-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.submission-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.submission-card.status-pending {
    border-left: 4px solid #fbbf24;
}

.submission-card.status-approved {
    border-left: 4px solid #10b981;
}

.submission-card.status-rejected {
    border-left: 4px solid #ef4444;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.submission-title {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.submission-chain {
    font-size: 0.9rem;
    color: #666;
}

.submission-status {
    background: #fbbf24;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.submission-status.approved {
    background: #10b981;
}

.submission-status.rejected {
    background: #ef4444;
}

.submission-info {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.submission-note {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.submission-date {
    color: #999;
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
}

.submission-actions {
    margin-top: 0.75rem;
}

.report-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.report-title {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.report-link {
    color: #2D5016;
    text-decoration: none;
}

.report-link:hover {
    text-decoration: underline;
}

.report-status {
    background: #fbbf24;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.report-status.resolved {
    background: #10b981;
}

.report-status.dismissed {
    background: #6b7280;
}

.report-info {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.report-description {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.report-date {
    color: #999;
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
}

.profile-info {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-row {
    display: flex;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.info-label {
    font-weight: bold;
    min-width: 150px;
    color: #555;
}

.info-value {
    color: #333;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Shared across the spot/chain/city/category/event detail pages:
   breadcrumb nav + open/closed status badge. Each page still keeps its
   own local .status-badge { margin: ... } rule since badge positioning
   differs per layout - only shape/color live here. */
.breadcrumbs {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.form-section {
    margin-top: 2rem;
}

#notification-map {
    height: 300px;
    border-radius: 8px;
    margin-top: 1rem;
}

.chain-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: #f9f9f9;
    border-radius: 4px;
}

.chain-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
}

.chain-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: auto;
    border: 2px solid #ddd;
    background-color: var(--chain-color, #ccc);
}

/* ===================================
   Notifications Page Styles
   =================================== */

.notifications-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Hero Section */
.notifications-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notifications-hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

.notifications-hero h1 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.notifications-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Value Propositions (Locked State) */
.notifications-locked {
    margin-bottom: 3rem;
}

.notifications-value-props h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.value-prop {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-prop:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.value-prop-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.value-prop h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.value-prop p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Notifications Form */
.notifications-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.notifications-form-locked {
    opacity: 0.95;
}

/* Toggle Section */
.notifications-toggle-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.notifications-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.notifications-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.1);
}

.notifications-toggle input[type="checkbox"] {
    display: none;
}

.notifications-toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    background-color: #ccc;
    border-radius: 14px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.notifications-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notifications-toggle input[type="checkbox"]:checked+.notifications-toggle-switch {
    background-color: var(--success-color);
}

.notifications-toggle input[type="checkbox"]:checked+.notifications-toggle-switch::after {
    transform: translateX(28px);
}

.notifications-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notifications-toggle-label strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.notifications-toggle-label small {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Notification Steps */
.notification-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.notification-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notification-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(45, 80, 22, 0.2);
}

.notification-step-content {
    flex: 1;
}

.notification-step-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.optional-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f8f9fa;
    color: var(--text-light);
    font-size: 0.8rem;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Map Container with Locked Overlay */
.map-container {
    position: relative;
    margin-bottom: 1rem;
}

#notification-map {
    height: 400px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: opacity 0.3s ease;
}

#notification-map.locked {
    opacity: 0.4;
    pointer-events: none;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.locked-overlay-content {
    text-align: center;
    padding: 2rem;
}

.locked-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.locked-overlay-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* Inline Location Form View */
.location-form-view {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e0e0e0;
}

.location-form-header {
    margin-bottom: 1.5rem;
}

.location-form-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.location-form-header p {
    margin: 0;
    color: var(--text-light);
}

.inline-location-form .form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.inline-location-form .form-group {
    margin-bottom: 0;
}

.inline-location-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.inline-location-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.inline-location-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.inline-location-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.inline-location-form .form-note {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.inline-location-form .form-note small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.map-view.hidden {
    display: none;
}

.location-form-view.hidden {
    display: none;
}

.map-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Radius Selection */
.radius-selection {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.radius-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.radius-preset {
    padding: 0.75rem 1rem;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.radius-preset:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 80, 22, 0.2);
}

.radius-preset.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

.radius-preset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.radius-custom {
    border-top: 2px solid #e0e0e0;
    padding-top: 1.5rem;
}

.radius-custom label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.radius-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 200px;
}

.radius-input {
    flex: 1;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.radius-input:hover {
    border-color: #ccc;
}

.radius-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.radius-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.radius-unit {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

.radius-reset {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.btn-reset-center {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-center:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 80, 22, 0.2);
}

.btn-reset-center:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.radius-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Chains Grid */
.chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Equal height chain cards */
.chain-card {
    display: flex;
}

.chain-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chain-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chain-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chain-card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 52px;
}

.chain-card:not(.disabled):hover .chain-card-content {
    border-color: var(--primary-color);
    background-color: rgba(45, 80, 22, 0.05);
}

.chain-card input[type="checkbox"]:checked+.chain-card-content {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.chain-card-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.chain-card-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.chain-card-name {
    flex: 1;
    font-weight: 500;
}

.chain-card-check {
    opacity: 0;
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
}

.chain-card input[type="checkbox"]:checked+.chain-card-content .chain-card-check {
    opacity: 1;
}

.chains-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Geographic Options (Radio buttons) */
.geographic-options,
.frequency-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.geographic-option,
.frequency-option {
    position: relative;
    cursor: pointer;
}

.geographic-option input[type="radio"],
.frequency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.geographic-option:hover .option-content,
.frequency-option:hover .option-content {
    border-color: var(--primary-color);
    background-color: rgba(45, 80, 22, 0.05);
}

.geographic-option input[type="radio"]:checked+.option-content,
.frequency-option input[type="radio"]:checked+.option-content {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.geographic-option input[type="radio"]:checked+.option-content small,
.frequency-option input[type="radio"]:checked+.option-content small {
    color: rgba(255, 255, 255, 0.9);
}

.geographic-option input[type="radio"]:disabled+.option-content,
.frequency-option input[type="radio"]:disabled+.option-content {
    opacity: 0.6;
    cursor: not-allowed;
}

/* .geographic-option reused for the "content type" checkboxes (Nye
   spots/Nye begivenheder, notifications.php Step 1) - the radio rules
   above only match input[type="radio"], so checkboxes need their own
   copy of the same hide-native-input + :checked-highlight behavior. */
.geographic-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.geographic-option input[type="checkbox"]:checked+.option-content {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.geographic-option input[type="checkbox"]:checked+.option-content small {
    color: rgba(255, 255, 255, 0.9);
}

.geographic-option input[type="checkbox"]:disabled+.option-content {
    opacity: 0.6;
    cursor: not-allowed;
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.option-text strong {
    font-size: 1.1rem;
}

.option-text small {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Cities Selector */
.cities-selector {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.cities-selector label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.cities-multiselect {
    width: 100%;
    min-height: 150px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

.cities-multiselect option {
    padding: 0.5rem;
}

.cities-multiselect option:hover {
    background-color: rgba(45, 80, 22, 0.1);
}

.cities-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Radius Selector */
.radius-selector {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

/* Chains Master Toggle */
.chains-master-toggle {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.chains-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.chains-toggle input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.chains-toggle input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.chains-toggle-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chains-toggle-content strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.chains-toggle-content small {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Chains Selector */
.chains-selector {
    margin-top: 1.5rem;
}

.chains-selector-label {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Hidden state for conditional sections */
.cities-selector.hidden,
.radius-selector.hidden,
.chains-selector.hidden {
    display: none;
}

/* Locked Preview State */
.locked-preview {
    opacity: 0.7;
    pointer-events: none;
}

.locked-preview .notification-step-number {
    background: linear-gradient(135deg, #ccc, #999);
}

/* Submit Section */
.notifications-submit {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 250px;
}

.submit-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Web Push opt-in card - a browser permission, not a form field, so it's
   styled distinctly from the email-preference steps around it */
.notifications-push-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.notifications-push-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.notifications-push-content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.notifications-push-content p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Blog/news email-subscription section - own card, separate from the
   main email-preferences form/steps above it */
.notifications-blog-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.notifications-blog-section h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Calendar cross-promo tip (links to /profile.php#calendar) */
.notifications-calendar-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.notifications-calendar-tip-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.notifications-calendar-tip-content a {
    color: var(--primary-color);
    font-weight: 600;
}

/* FAQ Section */
.notifications-faq {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notifications-faq h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '\25B6';
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item summary:hover {
    background-color: #e9ecef;
}

.faq-item p {
    padding: 1rem 1.25rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-page {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .notifications-hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .notifications-hero-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .notifications-hero h1 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .notifications-hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .notifications-locked {
        margin-bottom: 1.5rem;
    }

    .notifications-value-props h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .value-prop {
        padding: 0.75rem 0.5rem;
    }

    .value-prop-icon {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .value-prop h3 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .value-prop p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .notifications-form {
        padding: 1rem;
    }

    .notifications-toggle-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .notifications-toggle {
        padding: 1rem;
        gap: 0.75rem;
    }

    .notifications-toggle-label strong {
        font-size: 1rem;
    }

    .notifications-toggle-label small {
        font-size: 0.85rem;
    }

    .notification-step {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .notification-step-number {
        align-self: flex-start;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .notification-step-content h3 {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }

    .option-content {
        padding: 1rem;
        gap: 0.75rem;
    }

    .option-icon {
        font-size: 1.5rem;
    }

    .option-text strong {
        font-size: 1rem;
    }

    .option-text small {
        font-size: 0.85rem;
    }

    .cities-selector,
    .radius-selector {
        padding: 1rem;
    }

    .cities-multiselect {
        font-size: 0.95rem;
    }

    #notification-map {
        height: 250px;
    }

    .locked-icon {
        font-size: 3rem;
    }

    .locked-overlay-content p {
        font-size: 1rem;
    }

    .map-hint,
    .radius-hint,
    .chains-hint,
    .cities-hint {
        font-size: 0.85rem;
    }

    .radius-selection {
        padding: 1rem;
    }

    .radius-presets {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .radius-preset {
        padding: 0.625rem 0.75rem;
        font-size: 0.95rem;
    }

    .radius-input-wrapper {
        max-width: 100%;
    }

    .chains-master-toggle {
        padding: 1rem;
    }

    .chains-toggle-content strong {
        font-size: 1rem;
    }

    .chains-toggle-content small {
        font-size: 0.85rem;
    }

    .chains-selector-label {
        font-size: 0.95rem;
    }

    .chains-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .chain-card-content {
        padding: 0.75rem 0.875rem;
        min-height: 48px;
    }

    .chain-card-name {
        font-size: 0.95rem;
    }

    .notifications-submit {
        padding-top: 1.5rem;
    }

    .btn-large {
        width: 100%;
        min-width: auto;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .submit-hint {
        font-size: 0.85rem;
    }

    .notifications-faq {
        padding: 1rem;
    }

    .notifications-faq h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .faq-item summary {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .faq-item p {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.favorite-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favorite-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.favorite-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.favorite-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.favorite-info p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.favorite-chain {
    font-weight: 500;
    color: var(--text-color);
}

.favorite-address {
    font-size: 0.85rem;
}

.favorite-type {
    font-style: italic;
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.loading-message,
.empty-state,
.error-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error-message {
    color: var(--error-color);
}

/* Submit Spot Page */
.submit-spot-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.submit-spot-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submit-spot-card h1 {
    margin-top: 0;
    color: #2c5f2d;
}

.type-choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .type-choice-cards {
        grid-template-columns: 1fr;
    }
}

.type-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.type-choice-card:hover {
    border-color: #7CAA52;
    transform: translateY(-1px);
}

.type-choice-card.selected {
    border-color: #2D5016;
    background: #f9fbe7;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.15);
}

.type-choice-icon {
    font-size: 2rem;
}

.type-choice-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c5f2d;
}

.type-choice-desc {
    font-size: 0.85rem;
    color: #666;
}

.info-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-box h2 {
    margin-top: 0;
    color: #155724;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-group label .optional {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

/* CONSISTENT INPUT STYLING - All input types */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Form validation error states */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-error-message {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Profile Section Additions */
.section-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.profile-image-preview {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-image-preview img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-image-name {
    color: #666;
    font-size: 0.9rem;
}

/* Image Cropper Modal */
.cropper-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem !important;
}

.cropper-container-wrapper {
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.cropper-container-wrapper img {
    max-width: 100%;
    display: block;
}

.cropper-preview-container {
    text-align: center;
    margin-bottom: 0;
}

.cropper-preview-container p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.cropper-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Spot Preview Tooltip - Shows full chain logo on marker hover */
/* Used when a chain has both a square (cropped) logo for markers and a full logo */
.spot-preview-tooltip {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    padding: 0 !important;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.spot-preview-tooltip.leaflet-tooltip-top {
    opacity: 1;
}

.spot-preview-tooltip .leaflet-tooltip-content {
    margin: 0;
    padding: 0;
    animation: spotPreviewFadeIn 0.25s ease;
}

.spot-preview-tooltip::before {
    border-top-color: var(--primary-color) !important;
}

.leaflet-tooltip-top.spot-preview-tooltip::before {
    border-top-color: var(--primary-color) !important;
}

@keyframes spotPreviewFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    text-transform: none;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
}

/* Old search-results CSS removed - now using the new one at line ~208 */

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.opening-hours-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.opening-hours-section h3 {
    margin-top: 0;
}

.day-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.day-label {
    font-weight: 500;
}

.time-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.closed-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.closed-checkbox-input {
    margin: 0;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

/* Error Pages */
.error-page {
    text-align: center;
}

.error-page h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page p {
    margin-top: 1rem;
    color: var(--text-light);
}

.error-page .btn-container {
    margin-top: 2rem;
}

/* 500 Error Standalone Styles */
.error-500-container {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-500-container h1 {
    font-size: 5rem;
    color: #DC2626;
    margin-bottom: 1rem;
}

.error-500-container h2 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.error-500-container p {
    color: #6B7280;
    margin-bottom: 2rem;
}

/* Utility Classes for Map Page */
.hidden {
    display: none;
}

.filter-divider {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.filter-heading {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.report-message {
    margin-top: 1rem;
    display: none;
}

.report-spot-name {
    margin-bottom: 1rem;
    color: #666;
}

/* Offcanvas Menu */
.offcanvas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offcanvas-overlay.show {
    display: block;
    opacity: 1;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.offcanvas-menu.show {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
}

.offcanvas-header-link {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.offcanvas-header-link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.offcanvas-header h3 {
    color: white;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offcanvas-logo-icon {
    height: 1.5rem;
    width: auto;
    vertical-align: middle;
}

.offcanvas-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.offcanvas-close:hover {
    opacity: 0.7;
}

.offcanvas-body {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
}

/* Offcanvas Profile Header */
.offcanvas-profile-header {
    padding: 0.5rem;
}

.offcanvas-profile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.offcanvas-profile-link:hover {
    background-color: #f5f5f5;
}

.offcanvas-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.offcanvas-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    border: 2px solid var(--border-color);
}

.offcanvas-profile-info {
    flex: 1;
    min-width: 0;
}

.offcanvas-profile-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offcanvas-profile-action {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.offcanvas-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 1rem;
    position: relative;
}

.offcanvas-link:hover {
    background-color: var(--background-color);
    text-decoration: none;
}

/* Offcanvas Badge */
.offcanvas-badge {
    background-color: #f44336;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    margin-left: auto;
}

.offcanvas-link-primary {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    margin: 0.5rem 1rem;
    border-radius: 6px;
    padding: 1rem;
}

.offcanvas-link-primary:hover {
    background: var(--secondary-color);
}

.offcanvas-icon {
    font-size: 1.25rem;
    width: 24px;
    display: inline-block;
}

.offcanvas-icon-svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.offcanvas-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.offcanvas-section-title {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.offcanvas-footer {
    padding: 1rem;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    text-align: center;
}

.offcanvas-footer-links {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.offcanvas-footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.offcanvas-footer-links a:hover {
    color: var(--primary-color);
}

.offcanvas-footer-divider {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.offcanvas-footer-contact {
    margin-bottom: 0.75rem;
}

.offcanvas-footer-contact a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.8rem;
}

.offcanvas-footer-contact a:hover {
    color: var(--primary-color);
}

.offcanvas-footer-copyright {
    color: var(--text-light);
    font-size: 0.7rem;
    line-height: 1.4;
}

.offcanvas-footer-copyright a {
    color: var(--text-light);
    text-decoration: none;
}

.offcanvas-footer-copyright a:hover {
    color: var(--primary-color);
}

/* Hide offcanvas on desktop */
@media (min-width: 769px) {

    .offcanvas-overlay,
    .offcanvas-menu {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        padding: 1rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu-desktop {
        display: none;
    }

    /* Icons + hamburger never shrink or wrap - a fifth icon (Nyheder)
       was added 2026-08-24 and without this, the row could overflow the
       viewport and clip the hamburger toggle off-screen (body/html use
       overflow-x:hidden, so an overflow here doesn't scroll, it just cuts
       off the rightmost item - exactly the toggle button). The brand logo
       shrinks instead, see .navbar-brand below. */
    .navbar-mobile-actions {
        display: flex;
        flex-shrink: 0;
        gap: 0.35rem;
    }

    /* Let the brand give up space to the action icons rather than forcing
       the whole navbar row wider than the viewport. */
    .navbar-brand {
        min-width: 0;
        flex-shrink: 1;
    }

    .navbar-brand a {
        min-width: 0;
    }

    .navbar-brand a span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.15rem;
    }

    /* Footer - Already compact, just adjust padding */
    .footer {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .footer-links-inline {
        gap: 0.35rem 0.75rem;
        font-size: 0.7rem;
    }

    .footer-copyright {
        border-top: none;
        padding-top: 0;
        font-size: 0.7rem;
    }

    /* Hide site name on mobile, show only tagline */
    .footer-brand-name {
        display: none;
    }

    .footer-tagline {
        margin-left: 0;
    }

    /* Flash Messages */
    .flash-message {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }

    /* Auth Pages */
    .auth-container {
        padding: 1rem;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Profile */
    .profile-container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .profile-stats-box {
        padding: 1rem;
    }

    .profile-stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        gap: 0.25rem;
    }

    .profile-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .profile-section {
        padding: 1.5rem;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    /* Submit Spot */
    .submit-spot-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .submit-spot-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .day-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .time-inputs {
        justify-content: space-between;
    }

    /* Campaign System */
    .campaign-modal {
        max-width: 100%;
        width: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        margin: 0 !important;
    }

    /* Fallback for browsers that don't support dvh */
    @supports not (height: 100dvh) {
        .campaign-modal {
            max-height: 100vh;
            min-height: 100vh;
            height: 100vh;
        }
    }

    /* Ensure overlay doesn't add padding on mobile */
    .campaign-overlay {
        padding: 0 !important;
        align-items: flex-start !important;
    }

    /* Adjust header padding on mobile */
    .campaign-header {
        padding: 16px 16px;
        min-height: 48px;
        border-radius: 0;
    }

    /* Make ad label slightly smaller on very small screens but keep visible */
    .campaign-ad-label {
        font-size: 10px;
        gap: 4px;
    }

    .campaign-ad-icon {
        width: 12px;
        height: 12px;
    }

    /* Adjust body padding on mobile */
    .campaign-body {
        padding: 15px 20px;
    }

    /* Adjust footer padding on mobile */
    .campaign-footer {
        padding: 15px 20px;
        border-radius: 0;
    }

    /* Make CTA button full width on mobile */
    .campaign-footer .campaign-cta {
        width: 100%;
        display: block;
        text-align: center;
    }

    .campaign-title {
        font-size: 20px;
    }

    .campaign-description {
        font-size: 14px;
    }

    .campaign-banner-content {
        flex-direction: column;
    }

    .campaign-banner-text {
        flex-direction: column;
    }

    .campaign-inline-content {
        flex-direction: column;
    }

    .campaign-inline-image {
        width: 100%;
        height: auto;
    }

    /* About Modal Mobile */
    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-photo img {
        width: 120px;
        height: 120px;
    }

    .modal-content {
        margin: 2% 5%;
        padding: 1.5rem;
    }
}

/* ===========================
   ADVERTISING & PARTNERSHIP PAGE
   =========================== */

.lead-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.advertising-option {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
}

.advertising-option:hover {
    border-color: var(--primary-color);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.option-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.option-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.price-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-monthly {
    font-size: 0.95rem;
    color: var(--text-light);
}

.option-cta {
    margin-top: 1rem;
    text-align: center;
}

.option-cta a {
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.partnership-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.partnership-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.partnership-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.partnership-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.highlight-section {
    background: linear-gradient(135deg, #f8fdf4 0%, #e8f5e0 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

/* .benefit-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
} */

/* .benefit-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
} */

.case-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.case-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.case-card strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.case-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #2D5016 0%, #3d6b1e 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section .lead-text {
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Advertising page CTA button styling - scoped to avoid conflicts */
.cta-section .btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-section .btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Login Prompt Modal */
.login-prompt-modal {
    max-width: 460px;
    text-align: center;
    padding: 30px 25px 25px;
    border-radius: 12px;
}

.login-prompt-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.login-prompt-modal h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #2D5016;
    line-height: 1.3;
}

.login-prompt-modal p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.login-prompt-why {
    text-align: left;
    margin-bottom: 20px;
    padding: 18px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2D5016;
}

.login-prompt-why strong {
    display: block;
    color: #2D5016;
    font-size: 15px;
    margin-bottom: 10px;
}

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

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.benefits-list .benefit-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.login-prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-large {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    font-size: 14px;
    padding: 10px 16px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-prompt-footer {
    font-size: 12px;
    color: #888;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsive for login modal */
/* Extra small screens - reduce logo size to prevent wrapping */
@media (max-width: 576px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-brand a {
        font-size: 1.1rem;
    }

    .navbar-brand a span {
        font-size: 1rem;
        max-width: 38vw;
    }

    .navbar-logo-icon {
        height: 1.5rem;
    }

    .navbar-icon {
        width: 20px;
        height: 20px;
    }

    .navbar-mobile-actions {
        gap: 0.2rem;
    }

    .navbar-icon-link {
        width: 36px;
        height: 36px;
    }

    .navbar-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        min-width: 16px;
    }
}

@media (max-width: 576px) {
    .login-prompt-modal {
        padding: 25px 20px 20px;
        max-width: 95%;
        margin: 20px auto;
    }

    .login-prompt-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .login-prompt-modal h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .login-prompt-modal p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .login-prompt-why {
        padding: 15px 16px;
        margin-bottom: 15px;
    }

    .login-prompt-why strong {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .benefits-list li {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .benefits-list .benefit-icon {
        font-size: 16px;
    }

    .btn-large {
        padding: 11px 18px;
        font-size: 14px;
    }

    .btn-secondary {
        font-size: 13px;
        padding: 9px 14px;
    }

    .login-prompt-footer {
        font-size: 11px;
    }
}

/* Responsive for advertising page */
@media (max-width: 768px) {

    .feature-grid,
    .partnership-types,
    .case-examples {
        grid-template-columns: 1fr;
    }

    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* ===========================
   INLINE CAMPAIGN MARKERS
   =========================== */

.campaign-marker-wrapper {
    z-index: 1000 !important;
}

.campaign-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    animation: campaignPulse 2s infinite;
    overflow: hidden;
}

@keyframes campaignPulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 2px 16px rgba(255, 107, 53, 0.6);
    }
}

.campaign-marker img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    object-position: center;
}

.campaign-marker > span:not(.campaign-badge) {
    font-size: 1.2rem;
}

.campaign-badge {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    color: #000;
    padding: 2px 4px;
    border-radius: 5px;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.campaign-popup {
    border-radius: 12px;
    overflow: hidden;
}

.campaign-popup-content {
    padding: 0;
}


.campaign-popup-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.campaign-popup-content .campaign-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin: 0 0 15px 0;
    border-radius: 8px;
}

.campaign-popup-content .campaign-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333333;
    font-size: 15px;
}

.campaign-popup-content .campaign-description p {
    margin: 0 0 8px;
}

.campaign-popup-content .campaign-description br {
    display: block;
    content: "";
    margin: 0.4em 0;
}

.campaign-cta-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===========================
   CAMPAIGN SYSTEM
   =========================== */

/* Campaign Overlay (for popups) */
.campaign-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    overscroll-behavior: contain;
}

.campaign-overlay.active {
    opacity: 1;
}

/* Campaign Modal */
.campaign-modal {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.campaign-modal * {
    box-sizing: border-box;
}

.campaign-overlay.active .campaign-modal {
    transform: translateY(0);
}

/* Campaign Modal Header - Fixed */
.campaign-header {
    flex-shrink: 0;
    padding: 10px;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 12px 12px 0 0;
}

.campaign-ad-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}

.campaign-ad-label:hover {
    color: #6b7280;
    text-decoration: none;
}

.campaign-ad-icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
}

.campaign-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333333;
    transition: background-color 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

.campaign-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Campaign Modal Body - Scrollable */
.campaign-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    text-align: left;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Campaign Modal Footer - Fixed */
.campaign-footer {
    flex-shrink: 0;
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* Campaign Footer as CTA Button */
.campaign-cta-footer {
    background: linear-gradient(-45deg,
            var(--cta-bg-color, #2D5016),
            var(--cta-bg-color, #2D5016),
            color-mix(in srgb, var(--cta-bg-color, #2D5016) 80%, white),
            var(--cta-bg-color, #2D5016),
            var(--cta-bg-color, #2D5016));
    background-size: 400% 400%;
    color: var(--cta-text-color, #ffffff);
    font-weight: 600;
    font-size: 18px;
    border-top: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: campaignCtaGradient 8s ease-in-out infinite;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    will-change: background-position;
}

@keyframes campaignCtaGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.campaign-cta-footer:hover {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    filter: brightness(1.1);
}

.campaign-cta-footer:active {
    transform: scale(0.98);
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.campaign-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.campaign-title {
    font-size: 24px;
    font-weight: 600;
    color: #2D5016;
    margin: 0 0 15px;
}

.campaign-description {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 25px;
    white-space: pre-wrap;
    /* Preserve line breaks */
}

.campaign-description p {
    margin: 0 0 10px;
}

.campaign-description br {
    display: block;
    content: "";
    margin: 0.5em 0;
}

.campaign-description strong {
    font-weight: 600;
}

.campaign-description em {
    font-style: italic;
}

.campaign-description a {
    color: #2D5016;
    text-decoration: underline;
}

.campaign-cta {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg,
            var(--cta-bg-color, #2D5016) 0%,
            color-mix(in srgb, var(--cta-bg-color, #2D5016) 85%, white) 100%);
    background-size: 200% 200%;
    color: var(--cta-text-color, #ffffff);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    animation: campaignCtaGradient 3s ease-in-out infinite, campaignCtaPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes campaignCtaGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes campaignCtaPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
}

.campaign-content .campaign-cta {
    display: block;
    text-align: center;
    max-width: 250px;
    margin: 0 auto;
}

.campaign-footer:hover .campaign-cta {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Campaign Banner */
.campaign-banner {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.campaign-banner.active {
    opacity: 1;
    transform: translateY(0);
}

.campaign-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.campaign-banner-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.campaign-banner-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.campaign-banner-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #2D5016;
}

.campaign-banner-text span {
    display: block;
    font-size: 14px;
    color: #555555;
}

.campaign-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Campaign Inline */
.campaign-inline {
    background-color: #f9f9f9;
    border: 2px solid #2D5016;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    transition: opacity 0.3s ease;
}

.campaign-inline-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.campaign-inline-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.campaign-inline-text {
    flex: 1;
}

.campaign-inline-text h3 {
    font-size: 22px;
    color: #2D5016;
    margin: 0 0 10px;
}

.campaign-inline-text p {
    font-size: 15px;
    color: #333333;
    margin: 0 0 15px;
    line-height: 1.6;
}

.campaign-inline-text div {
    white-space: pre-wrap;
    /* Preserve line breaks */
}

.campaign-inline-text br {
    display: block;
    content: "";
    margin: 0.5em 0;
}

.campaign-inline-text strong {
    font-weight: 600;
}

.campaign-inline-text em {
    font-style: italic;
}

.campaign-inline-text a {
    color: #2D5016;
    text-decoration: underline;
}

.campaign-inline-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #666666;
    transition: background-color 0.2s ease;
}

.campaign-inline-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Campaign Templates */
.campaign-template-discount .campaign-title::before {
    content: "\1F4B0 ";
}

.campaign-template-affiliate .campaign-title::before {
    content: "\1F517 ";
}

.campaign-template-event .campaign-title::before {
    content: "\1F4C5 ";
}

.campaign-template-announcement .campaign-title::before {
    content: "\1F4E2 ";
}

/* === Temporary Spot Styling === */
.temporary-spot-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(238, 90, 111, 0.3);
}

.temporary-spot-badge::before {
    content: '\1F551 ';
}

.upcoming-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-events-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.upcoming-events-list li:last-child {
    border-bottom: none;
}

.upcoming-event-dates {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.temporary-spot-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ff6b6b;
}

.help-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Inactive spot styling */
.inactive-spot .custom-marker {
    opacity: 0.5;
    filter: grayscale(80%);
}

.inactive-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 14px;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.inactive-result {
    opacity: 0.7;
}

.pending-spot-badge {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 12px 0;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-spot-badge svg {
    flex-shrink: 0;
}

.inactive-spot-badge {
    background: #FEF3C7;
    color: #92400E;
    border: 2px solid #FDE68A;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   POPUP CAMPAIGN FOOTER (Banner Type)
   ============================================ */

.popup-campaign-footer-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-campaign-footer-link:hover {
    text-decoration: none;
}

.popup-campaign-footer-link:hover .popup-campaign-footer {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.popup-campaign-footer {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-campaign-image {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.popup-campaign-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Spot-detail page's campaign banner (#campaign-banner-container, see
   spot-detail.php) reuses these same .popup-campaign-* classes as the
   compact Leaflet map popup version (map.js's .campaign-popup-content) -
   scoped here so the banner can be taller without affecting the popup,
   which has much less room to work with. */
#campaign-banner-container .popup-campaign-image img {
    max-height: 300px;
}

.popup-campaign-content h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.popup-campaign-content p,
.popup-campaign-content .campaign-description {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.popup-campaign-content .campaign-description p {
    margin: 0 0 8px 0;
}

.popup-campaign-content .campaign-description p:last-child {
    margin-bottom: 10px;
}

.popup-campaign-cta {
    display: block;
    width: 80%;
    max-width: 280px;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(-45deg,
            var(--cta-bg-color, #2D5016),
            var(--cta-bg-color, #2D5016),
            color-mix(in srgb, var(--cta-bg-color, #2D5016) 80%, white),
            var(--cta-bg-color, #2D5016),
            var(--cta-bg-color, #2D5016));
    background-size: 400% 400%;
    color: var(--cta-text-color, #ffffff);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    animation: campaignCtaGradient 8s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    will-change: background-position;
    pointer-events: none;
    /* Let clicks pass through to parent link */
}

.popup-campaign-footer-link:hover .popup-campaign-cta {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

/* ============================================
   RATING SYSTEM STYLES
   ============================================ */

/* Rating Display (Read-only) */
.spot-ratings {
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
}

.spot-ratings h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #333;
}

.rating-overall {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

/* Same box, but inside the rating-submission form (see reviews.js
   updateOverallPreview()) - centered since it's the live-computed average
   of the category widgets below it, not a value with a label next to it. */
.rating-overall-preview .rating-overall {
    justify-content: center;
    margin-bottom: 8px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 24px;
}

.rating-stars.small {
    font-size: 16px;
}

.rating-stars .star {
    color: #ddd;
    position: relative;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-stars .star.half {
    color: #ddd;
}

.rating-stars .star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #ffc107;
    width: 50%;
    overflow: hidden;
}

.rating-value {
    font-size: 28px;
    font-weight: 700;
    color: #2D5016;
    min-width: 60px;
}

.rating-value-small {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-width: 36px;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.rating-row:hover {
    background: #e9ecef;
}

.rating-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.rating-description {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-left: auto;
}

.rating-cta {
    margin-top: 16px;
}

.rating-cta .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rating-cta .btn-primary {
    background: #2D5016;
    color: white;
    border: none;
}

.rating-cta .btn-primary:hover {
    background: #1e3510;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}

.rating-cta .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.rating-cta .btn-secondary:hover {
    background: #5a6268;
}

/* Interactive Star Rating Widget */
.star-rating-widget {
    margin-bottom: 24px;
}

.star-rating-widget label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.star-rating-widget label .required {
    color: #dc3545;
}

.star-rating-widget label .optional {
    color: #6c757d;
    font-weight: 400;
    font-size: 12px;
}

.stars-interactive {
    display: flex;
    gap: 10px;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    justify-content: center;
}

.stars-interactive .star {
    color: #ddd;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stars-interactive .star:hover,
.stars-interactive .star.hover {
    color: #ffc107;
    transform: scale(1.15);
}

.stars-interactive .star.selected {
    color: #ffc107;
}

.stars-interactive .star:active {
    transform: scale(0.95);
}

.rating-helper {
    font-size: 13px;
    color: #6c757d;
    margin-top: 6px;
    min-height: 0;
    text-align: center;
}

/* Rating Modal */
.rating-modal {
    max-width: 600px;
    width: 90%;
    padding: 40px;
    text-align: center;
}

.rating-modal h2 {
    font-size: 24px;
    margin: 0 0 28px 0;
    color: #333;
    text-align: center;
}

.rating-modal #rating-spot-name {
    color: #2D5016;
    font-weight: 600;
    display: block;
    margin-top: 4px;
    text-align: center;
}

.rating-modal-intro {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2D5016;
}

.rating-form-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.rating-form-footer .btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rating-form-footer .btn-primary {
    background: #2D5016;
    color: white;
    border: none;
}

.rating-form-footer .btn-primary:hover:not(:disabled) {
    background: #1e3510;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}

.rating-form-footer .btn-primary:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.rating-form-footer .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.rating-form-footer .btn-secondary:hover {
    background: #5a6268;
}

/* Empty state */
.rating-empty {
    text-align: center;
    padding: 24px;
    color: #6c757d;
}

.rating-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.rating-empty p {
    margin: 0;
    font-size: 14px;
}

/* Comment textarea in the rating/review modal */
.rating-modal textarea.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.rating-modal textarea.form-control:focus {
    outline: none;
    border-color: #2D5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Individual review list (with comment text) shown under the aggregate
   stats on a spot's ratings panel - see reviews.js renderReviewCard(). */
.review-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.review-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.review-card-stars .rating-stars {
    gap: 1px;
}

.review-card-author {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.review-card-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.review-card-text {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.review-card-footer {
    margin-top: 8px;
}

.review-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: white;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-helpful-btn:hover {
    border-color: #2D5016;
    color: #2D5016;
}

.review-helpful-btn.voted {
    background: #2D5016;
    border-color: #2D5016;
    color: white;
}

/* Price level descriptions - 1 star = dyrt, 5 stjerner = billigt (2026-08-22) */
.price-level-1::after {
    content: " (Meget dyrt)";
}

.price-level-2::after {
    content: " (Dyrt)";
}

.price-level-3::after {
    content: " (Moderat)";
}

.price-level-4::after {
    content: " (Billigt)";
}

.price-level-5::after {
    content: " (Meget billigt)";
}

/* Rating Success Overlay */
.rating-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.rating-success-overlay.active {
    display: flex;
    animation: feedbackOverlayFadeIn 0.4s ease;
}

.rating-success-content {
    text-align: center;
    padding: 2rem;
    animation: feedbackSuccessSlideUp 0.5s ease;
}

.rating-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: feedbackIconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}

.rating-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    fill: white;
}

.rating-success-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.rating-success-content p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Responsive - Mobile fullscreen like coffee modal */
@media (max-width: 576px) {
    #ratingModal.modal {
        overflow: hidden !important;
        align-items: flex-start !important;
        padding: 0 !important;
    }

    #ratingModal.modal[style*="display: block"] {
        overflow: hidden !important;
        padding: 0 !important;
    }

    .rating-modal {
        margin: 0 !important;
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height - better for mobile */
        max-height: 100vh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        padding: 0 !important;
    }

    .rating-modal h2 {
        font-size: 1.375rem;
        padding: 1.5rem 1.25rem 1.25rem;
        margin: 0;
        flex-shrink: 0;
        text-align: center;
    }

    .rating-modal #rating-spot-name {
        display: block;
        margin-top: 4px;
        font-size: 1.125rem;
    }

    .rating-modal-intro {
        margin: 0 1rem 1rem;
        padding: 0.75rem;
        font-size: 13px;
        flex-shrink: 0;
    }

    #rating-form {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    /* Scrollable content area */
    .rating-form-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 1.25rem 1.25rem;
    }

    .rating-overall {
        padding: 12px;
    }

    .rating-stars {
        font-size: 20px;
    }

    .rating-value {
        font-size: 24px;
    }

    .stars-interactive {
        font-size: 38px;
        gap: 8px;
        justify-content: center;
    }

    .star-rating-widget {
        margin-bottom: 2rem;
    }

    .star-rating-widget label {
        font-size: 14px;
        text-align: center;
    }

    .rating-helper {
        font-size: 12px;
        text-align: center;
    }

    /* Fixed footer */
    .rating-form-footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        margin: 0;
        border-top: 1px solid #e9ecef;
        flex-shrink: 0;
        background: white;
    }

    .rating-form-footer .btn {
        padding: 0.875rem;
        font-size: 1rem;
    }

    /* Close button positioning */
    .rating-modal .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1;
        font-size: 2rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   SPOT SIDE PANEL (Admin Only)
   ============================================ */

.spot-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.spot-side-panel.active {
    display: block;
    pointer-events: all;
}

/* Overlay */
.side-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spot-side-panel.active .side-panel-overlay {
    opacity: 1;
}

/* Panel Content */
.side-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    user-select: none;
}

.spot-side-panel.active .side-panel-content {
    transform: translateX(0);
}

/* Panel Header */
.side-panel-header {
    /* padding: 20px 24px; */
    padding: 12px 24px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    flex-shrink: 0;
}

.side-panel-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.side-panel-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-panel-close:hover {
    background: #e9ecef;
    color: #333;
}

/* Panel Body */
.side-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Panel Loading State */
.panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Panel Sections */
.panel-section {
    margin-bottom: 24px;
    /* padding-bottom: 24px; */
    /* border-bottom: 1px solid #e9ecef; */
}

.panel-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.panel-section h3 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Panel Section - Active Offer (highlighted accordion, shown first) */
.offer-accordion-section {
    background: linear-gradient(135deg, #e8590c, #c1121f);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(193, 18, 31, 0.4);
}

.offer-accordion-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: white;
    text-transform: none;
    letter-spacing: normal;
}

.offer-accordion-header .chevron-icon {
    color: white;
}

.offer-accordion-section .offer-discount-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.offer-accordion-section .offer-title {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.offer-accordion-section .offer-description {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.4;
}

.offer-accordion-section .offer-expires {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
}

/* Spot Detail Page - Active Offer Banner */
.spot-offers-section {
    margin-bottom: 1.5rem;
}

.spot-offer-banner {
    background: linear-gradient(135deg, #e8590c, #c1121f);
    color: white;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(193, 18, 31, 0.4);
    margin-bottom: 1rem;
}

.spot-offer-banner:last-child {
    margin-bottom: 0;
}

.spot-offer-banner .offer-tag-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.spot-offer-banner .offer-tag,
.spot-offer-banner .offer-discount {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.spot-offer-banner .offer-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.spot-offer-banner .offer-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
}

.spot-offer-banner .offer-expires {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Panel Section - Chain Header */

.panel-section.chain-header {
    background: #7caa52;
    /* Background Color is to be fetched dynamically based on chain color */
    margin: -24px -24px 0px -24px;
    text-align: center;
    padding-top: 24px;
}

img.chain-logo {
    padding: 12px 0 12px 0;
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.panel-section>.chain-name {
    color: #fff;
    font-size: 14px;
    padding-bottom: 24px;
    margin: 0 0 24px 0;
}

/* Panel Info Grid */
.panel-info-grid {
    /* padding-top: 12px; */
    display: grid;
    gap: 12px;
}

.panel-info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
}

.panel-info-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

.panel-info-value {
    color: #333;
    font-size: 14px;
    text-align: right;
    flex: 1;
    margin-left: 16px;
    word-break: break-word;
}

/* Panel Action Buttons */
.panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.panel-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none !important;
    display: inline-block;
    min-width: 120px;
}

.panel-btn a {
    text-decoration: none !important;
}

/* Action buttons grid (like popup) */
.panel-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.panel-action-btn {
    flex: 1;
    min-width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.panel-action-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.panel-action-btn.favorited {
    background: #fee;
    color: #e74c3c;
    border-color: #e74c3c;
}

.panel-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Direction service buttons */
.panel-direction-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.panel-direction-btn {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none !important;
}

.panel-direction-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.panel-direction-btn svg,
.panel-direction-btn img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.panel-btn-primary {
    background: var(--primary-color);
    color: white;
}

.panel-btn-primary:hover {
    background: #2d8a54;
    transform: translateY(-1px);
}

.panel-btn-secondary {
    background: #6c757d;
    color: white;
}

.panel-btn-secondary:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 1024px) {
    .side-panel-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .side-panel-content {
        max-width: 100%;
    }
}

/* ============================================
   TOAST NOTIFICATIONS (FRONTEND)
   ============================================ */
.map-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 500;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

.map-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.map-toast.toast-success {
    border-left-color: #10b981;
    background: #f0fdf4;
    color: #065f46;
}

.map-toast.toast-error {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.map-toast.toast-info {
    border-left-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.map-toast.toast-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

/* Comment section - shared by news-post.php and event-detail.php
   (public/js/comments.js). Blog posts use their own page-local <style>
   for .news-post-* since that page is self-contained; comments are a
   genuinely shared component across two different page layouts, so it
   lives here instead. */
.comments-section {
    margin: 2rem 0;
}

/* On spot-detail.php/event-detail.php the comments section is also an
   .info-section card inside .spot-info's flex column, which already
   spaces cards via gap:20px - the margin above (needed standalone on
   news-post.php) would stack on top of that gap instead of collapsing
   into it, roughly tripling the gap around comments specifically. */
.info-section.comments-section {
    margin: 0;
}

.comments-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark, #222);
}

.comment-login-prompt {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.comment-form {
    margin-bottom: 1.5rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
}

.comment-form button {
    margin-top: 0.5rem;
}

.comments-empty {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light, #f8f9fa);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-item-main {
    flex: 1;
    min-width: 0;
}

.comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.comment-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.comment-author-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    min-width: 0;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark, #222);
}

.comment-date {
    font-size: 0.78rem;
    color: var(--text-light);
}

.comment-edited-marker {
    font-style: italic;
}

.comment-body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Per-comment "⋮" dropdown - Rediger/Slet/Rapportér, top-right of the
   comment instead of an inline text-link row, so the actions don't
   compete with the comment body for visual attention. */
.comment-menu {
    position: relative;
    flex-shrink: 0;
}

.comment-menu-btn {
    background: none;
    border: none;
    padding: 0.1rem 0.4rem;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 4px;
}

.comment-menu-btn:hover {
    background: #f0f0f0;
    color: var(--text-dark, #222);
}

.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-width: 140px;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
}

.comment-menu-dropdown[hidden] {
    display: none;
}

.comment-menu-dropdown button {
    background: none;
    border: none;
    text-align: left;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
    color: var(--text-dark, #222);
    cursor: pointer;
    border-radius: 6px;
}

.comment-menu-dropdown button:hover {
    background: #f5f5f5;
}

.comment-menu-dropdown .comment-delete-btn:hover {
    background: #fdecea;
    color: #dc3545;
}

.comment-edit-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    box-sizing: border-box;
}

.comment-edit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.4rem;
}

.comments-load-more-btn {
    display: block;
    margin: 1rem auto 0;
}

/* Threaded replies (one level, Facebook-style), @mention autocomplete,
   the deep-link highlight, and the reply/mute actions row - added
   2026-08-25 on top of the flat comment styling above. */

.comment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0;
}

.comment-reply-btn:hover {
    color: var(--primary-color);
}

.comment-replies {
    margin-top: 0.6rem;
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-left: 2px solid var(--border-color);
}

.comment-replies:empty {
    display: none;
}

.comment-item.comment-reply {
    background: #fff;
    padding: 0.7rem 0.85rem;
}

.comment-reply .comment-avatar,
.comment-reply .comment-avatar-initials {
    width: 28px;
    height: 28px;
}

.comments-replies-more-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem 0;
}

.comment-reply-form {
    margin-top: 0.4rem;
}

.comment-reply-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    resize: vertical;
    box-sizing: border-box;
}

.comment-removed-stub {
    font-style: italic;
    color: var(--text-light);
}

/* @mention autocomplete dropdown - anchored under the textarea it's
   wired to, not caret-position-tracked (a deliberate v1 simplification -
   comment textareas are small/short). */
.comment-textarea-wrap {
    position: relative;
}

.mention-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.mention-autocomplete-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    cursor: pointer;
}

.mention-autocomplete-item:hover {
    background: #f5f5f5;
}

/* Deep-link target highlight - a comment reached via a bell notification. */
@keyframes commentHighlightPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(45, 80, 22, 0.5); }
}

.comment-item-highlighted {
    animation: commentHighlightPulse 2s ease-in-out 3;
}

.comments-target-context {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.comments-target-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}