:root {
    /* Dark Mode Colors */
    --bg-dark: #0a0a0f;
    --bg-gradient-start: #0a0a0f;
    --bg-gradient-end: #1a1a2e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Neon Accents */
    --neon-red: #ff2d55;
    --neon-pink: #ff6b9d;
    --neon-purple: #c084fc;
    --neon-blue: #38bdf8;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Spacing & Layout */
    --border-radius: 16px;
    --spacing: 24px;
    --container-max: 1400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    background-color: #0a0a0f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient background glow effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 45, 85, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(192, 132, 252, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--neon-pink);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-red);
}

/* Navigation - Glassmorphism */
.bento-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin: var(--spacing);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 100000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a img {
    display: block;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links .btn,
.nav-links .btn-outline {
    padding: 7px 14px;
    font-size: 0.8rem;
    letter-spacing: normal;
    text-transform: none;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: none;
}

.nav-links .btn i,
.nav-links .btn-outline i {
    font-size: 0.85rem;
}

.nav-links .btn:hover,
.nav-links .btn-outline:hover {
    transform: none;
    box-shadow: none;
}

.nav-links .btn-outline {
    border-width: 1.5px;
}

.locator-mode .bento-nav {
    position: fixed;
    top: 16px;
    left: 24px;
    right: 24px;
    margin: 0;
    z-index: 100000;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 9999;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-pink));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
}

.mobile-menu-overlay.active {
    display: block;
}

@media (max-width: 1080px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: transform 0.3s ease, visibility 0.3s ease;
        z-index: 9998;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links span {
        font-size: 1rem;
        color: var(--text-primary);
    }

    .nav-links .btn,
    .nav-links .btn-outline {
        width: 80%;
        text-align: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Responsive Grid */
    .bento-grid,
    .bento-grid.two-col {
        grid-template-columns: 1fr;
    }

    .bento-grid .bento-card,
    .bento-grid .bento-card.large {
        grid-column: span 1;
        width: 100%;
    }

    /* Responsive Cards */
    .bento-card {
        padding: 20px;
    }

    .bento-card h2 {
        font-size: 1.5rem;
    }

    .bento-image {
        height: 180px;
    }

    /* Responsive Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Responsive Container */
    .container {
        padding: 0 16px;
    }

    /* Responsive Buttons */
    .btn,
    .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a2e;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: fit-content;
    animation: modalFadeIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--glass-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

/* Responsive Modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        max-width: 90%;
    }
}

/* Tablet view - 3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .bento-card {
        padding: 16px;
    }

    .bento-card h2 {
        font-size: 1.25rem;
    }

    .bento-card h3 {
        font-size: 1rem;
    }

    .bento-image {
        height: 150px;
    }

    .btn,
    .btn-outline {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Buttons - Neon Accents */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-pink));
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 45, 85, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--neon-pink);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing);
    margin-bottom: var(--spacing);
}

.bento-grid.two-col {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Cards - Glassmorphism */
.bento-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--spacing);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(255, 45, 85, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-card.xlarge {
    grid-column: span 3;
}

@media (max-width: 1100px) {
    .bento-grid.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-card.large,
    .bento-card.xlarge {
        grid-column: span 1;
        width: 100%;
    }
}

@media (max-width: 740px) {
    .bento-grid {
        gap: 15px;
    }

    .bento-card {
        padding: 20px;
        width: 100%;
        min-width: 0;
    }

    .bento-card img {
        max-width: 100%;
        height: auto;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 45, 85, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 8px 0;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255, 45, 85, 0.1);
}

.dropdown-item.danger {
    color: var(--neon-red);
}

.dropdown-item.danger:hover {
    background: rgba(255, 45, 85, 0.2);
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

.bento-card h2 {
    margin-bottom: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.bento-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 10;
    font-size: 20px;
}

.image-expand-btn:hover {
    opacity: 1;
}

.bento-card large > div:hover .image-expand-btn,
.bento-card > div:hover .image-expand-btn {
    opacity: 1;
}

/* Forms - Dark Theme */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input[type="file"] {
    padding: 10px;
}

/* Dynamic field builder */
.custom-field-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.custom-field-row:hover {
    border-color: rgba(255, 45, 85, 0.3);
}

.remove-field-btn,
.remove-plus-one {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
}

.remove-btn:hover,
.remove-field-btn:hover,
.remove-plus-one:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* Modern Toggle Switch - Dark Theme */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
}

.toggle-wrapper input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-wrapper input:checked ~ .toggle-track {
    background: linear-gradient(135deg, var(--neon-red), var(--neon-pink));
    border-color: transparent;
}

.toggle-wrapper input:checked ~ .toggle-track .toggle-knob {
    transform: translateX(24px);
    background: white;
    box-shadow: 0 2px 12px rgba(255, 45, 85, 0.5);
}

.toggle-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Progress Bar - Neon Style */
.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px currentColor;
}

/* Status Messages */
.status-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.status-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--neon-red), var(--neon-pink));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
}

.form-group > .ql-toolbar.ql-snow {
    background: black;
    border: 0;
    border-radius: 100000px;
    margin-bottom: 8px;
}

/* Quill Editor Content Styling */
.ql-editor,
.rich-content {
    color: var(--text-primary);
    word-wrap: break-word;
    max-width: 100%;
    width: 100%;
    display: block;
}

.ql-editor ul,
.ql-editor ol,
.rich-content ul,
.rich-content ol {
    padding-left: 20px;
    margin: 10px 0;
}

.ql-editor li,
.rich-content li {
    margin: 5px 0;
    line-height: 1.6;
}

.ql-editor ul,
.rich-content ul {
    list-style-type: disc;
}

.ql-editor ol,
.rich-content ol {
    list-style-type: decimal;
}

.ql-editor ul li::marker,
.rich-content ul li::marker {
    color: var(--neon-pink);
}

.ql-editor ol li::marker,
.rich-content ol li::marker {
    color: var(--neon-pink);
}

.ql-editor p,
.rich-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.rich-content h1,
.rich-content h2,
.rich-content h3 {
    margin: 15px 0 10px 0;
    color: var(--text-primary);
}

.ql-editor h1,
.rich-content h1 {
    font-size: 2rem;
}

.ql-editor h2,
.rich-content h2 {
    font-size: 1.5rem;
}

.ql-editor h3,
.rich-content h3 {
    font-size: 1.25rem;
}

.ql-editor a,
.rich-content a {
color: var(--neon-pink);
text-decoration: none;
transition: color 0.3s ease;
}

.ql-editor a:hover,
.rich-content a:hover {
color: var(--neon-red);
}

.ql-editor img,
.rich-content img {
max-width: 100%;
height: auto;
border-radius: 12px;
margin: 10px 0;
    border-radius: 12px;
    margin: 10px 0;
}

.ql-editor blockquote,
.rich-content blockquote {
    border-left: 4px solid var(--neon-pink);
    padding-left: 15px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.ql-editor strong,
.rich-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.ql-editor em,
.rich-content em {
    color: var(--text-secondary);
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-input {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--neon-pink);
    background: rgba(255, 45, 85, 0.05);
}

.file-upload-label.dragover {
    border-color: var(--neon-red);
    background: rgba(255, 45, 85, 0.1);
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.file-upload-label:hover .file-upload-icon {
    color: var(--neon-pink);
}

.file-upload-label.dragover .file-upload-icon {
    color: var(--neon-red);
}

.file-upload-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.file-upload-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.file-upload-preview {
    margin-top: 15px;
    position: relative;
    display: none;
}

.file-upload-preview.active {
    display: block;
}

.file-upload-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.file-upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.file-upload-remove:hover {
    background: var(--neon-red);
}

.container-full {
    max-width: none;
    padding: 0;
    margin: 0;
    height: 100vh;
}

.locator-mode .bento-nav {
    position: fixed;
    top: 16px;
    left: 24px;
    right: 24px;
    margin: 0;
    z-index: 100000;
}

/* Adjust sidebar and button positions for fixed nav */
.locator-mode .locator-toggle,
.locator-mode #locator-sidebar {
    top: 135px;
    left: 25px;
}

.locator-mode #locator-sidebar {
    max-height: calc(100% - 250px);
}

@media (max-width: 768px) {
    .locator-mode #locator-sidebar {
        top: auto;
        left: 50%;
        right: 50%;
    }
    .locator-mode .locator-toggle {
        top: 125px;
        left: 25px;
    }
}

/* Locator Page */
.locator-btn {
    border-color: var(--neon-blue) !important;
    color: var(--neon-blue) !important;
}

.locator-btn:hover {
    background: var(--neon-blue) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4) !important;
}

.locator-page {
    position: relative;
    width: 100%;
    height: 100%;
}

#locator-map {
    width: 100%;
    height: 100%;
}

#locator-sidebar {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 320px;
    max-height: calc(100% - 32px);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

#locator-sidebar h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
}

.locator-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.locator-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.locator-toggle {
    display: none;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}

.locator-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.locator-filter {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.locator-filter.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.locator-filter:not(.active) {
    opacity: 0.4;
}

.locator-filter:hover {
    opacity: 0.8;
}

.locator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

#locator-list {
    margin-top: 12px;
}

.locator-card {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.locator-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-pink);
    transform: translateX(4px);
}

.locator-card-distance {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.locator-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.locator-card-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.locator-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.locator-card-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.locator-card-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.locator-marker {
    background: none !important;
    border: none !important;
}

.locator-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
}

.locator-pin i {
    font-size: 0.75rem;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.leaflet-popup-tip {
    background: rgba(10, 10, 15, 0.95) !important;
    border: 1px solid var(--glass-border) !important;
}

@media (max-width: 768px) {
    .locator-toggle {
        display: flex;
    }

    .locator-close {
        display: block;
    }

    #locator-sidebar {
        width: calc(100% - 32px);
        max-height: 50%;
        top: auto;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        transition: transform 0.3s ease;
    }

    #locator-sidebar.open {
        transform: translateX(-50%) translateY(calc(100% + 32px));
    }
}

.user-location-marker {
    background: none !important;
    border: none !important;
}

.user-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #38bdf8;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    z-index: 1;
}

.user-dot-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: user-locate-pulse 2s ease-out infinite;
}

@keyframes user-locate-pulse {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.leaflet-control-zoom {
    border: 1px solid var(--glass-border) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}

.leaflet-control-zoom a {
    background: rgba(10, 10, 15, 0.9) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 1.1rem !important;
    transition: background 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.leaflet-control-zoom a.leaflet-disabled {
    color: var(--text-muted) !important;
}

.locate-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--neon-blue) !important;
    font-size: 1rem !important;
}

.locate-btn:hover {
    color: white !important;
    background: rgba(56, 189, 248, 0.2) !important;
}

@media (max-width: 480px) {
    #locator-sidebar {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-height: 45%;
        bottom: 8px;
        padding: 14px;
    }

    #locator-sidebar.open {
        transform: translateX(-50%) translateY(calc(100% + 32px));
    }
}

/* Coordinate Picker Map */
#coordinate-picker-map {
    width: 100%;
    z-index: 1;
}

#coordinate-picker-map .leaflet-container {
    border-radius: 12px;
}