/* ============================================
   MISSING MOTORBIKES - Dark Glassmorphism Theme
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(20px);
    --accent: #00e68a;
    --accent-dim: rgba(0, 230, 138, 0.15);
    --accent-glow: 0 0 20px rgba(0, 230, 138, 0.3);
    --danger: #ff4757;
    --danger-dim: rgba(255, 71, 87, 0.15);
    --warning: #ffa502;
    --warning-dim: rgba(255, 165, 2, 0.15);
    --info: #3742fa;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 230, 138, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(55, 66, 250, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(255, 71, 87, 0.02) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -3%); }
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 20px;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.nav-brand i {
    color: var(--accent);
    font-size: 1.5rem;
}

.nav-brand strong {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-link.btn-report {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.nav-link.btn-report:hover {
    background: rgba(255, 71, 87, 0.25);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.2);
}

.nav-link.btn-cta {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 230, 138, 0.2);
}

.nav-link.btn-cta:hover {
    background: rgba(0, 230, 138, 0.25);
}

.badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: 85px;
    min-height: calc(100vh - 200px);
    padding-bottom: 40px;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0f;
}

.btn-primary:hover {
    background: #00cc7a;
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #e8404f;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-dim);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group label i {
    width: 18px;
    text-align: center;
    color: var(--accent);
    margin-right: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: rgba(255, 255, 255, 0.06);
}

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

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.form-divider span {
    position: relative;
    background: var(--bg-primary);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Toggle Switch */
.toggle-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-primary) !important;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    transition: var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-label input:checked ~ .toggle-switch {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
}

.toggle-label input:checked ~ .toggle-switch::after {
    transform: translateX(22px);
    background: var(--accent);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert p {
    margin-bottom: 4px;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert-error {
    background: var(--danger-dim);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
}

.alert-success {
    background: var(--accent-dim);
    border: 1px solid rgba(0, 230, 138, 0.3);
    color: var(--accent);
}

.alert-warning {
    background: var(--warning-dim);
    border: 1px solid rgba(255, 165, 2, 0.3);
    color: var(--warning);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 500px;
}

.auth-card h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-card h1 i {
    color: var(--accent);
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--accent);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   LISTING CARDS
   ============================================ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.listing-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.listing-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-secondary);
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.listing-card:hover .listing-card-image img {
    transform: scale(1.05);
}

.listing-card-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 3rem;
}

.listing-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-status.missing {
    background: rgba(255, 71, 87, 0.9);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
}

.listing-status.found {
    background: rgba(0, 230, 138, 0.9);
    color: #0a0a0f;
    box-shadow: 0 2px 10px rgba(0, 230, 138, 0.4);
}

.listing-card-body {
    padding: 20px;
}

.listing-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.listing-card-reg {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.listing-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-card-meta i {
    color: var(--accent);
    font-size: 0.8rem;
}

.listing-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.listing-expires {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-expires.expiring-soon {
    color: var(--warning);
}

/* ============================================
   SINGLE LISTING PAGE
   ============================================ */
.listing-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.listing-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 450px;
}

.listing-gallery .main-photo {
    grid-row: span 2;
}

.listing-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.listing-gallery img:hover {
    opacity: 0.85;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.listing-title-group h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.listing-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #0a0a0f;
}

/* Stripe every other ROW */
.spec-row:nth-child(4n+1),
.spec-row:nth-child(4n+2) {
    background: #10101a;
}

.spec-label {
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
}

.spec-label i {
    width: 16px;
    text-align: center;
    margin-right: 6px;
    color: var(--accent);
    font-size: 0.75rem;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    color: #fff;
}

.listing-map {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.listing-description,
.listing-features {
    margin-bottom: 24px;
}

.listing-description h3,
.listing-features h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.listing-description p,
.listing-features p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.listing-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   HEATMAP PAGE
   ============================================ */
.heatmap-page .main-content {
    padding-bottom: 0;
}

.heatmap-page .site-footer {
    display: none;
}

.heatmap-container {
    padding: 12px 20px 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 85px);
}

.heatmap-header {
    text-align: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.heatmap-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.heatmap-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.heatmap-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

#heatmapMap {
    flex: 1;
    min-height: 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.heatmap-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.map-popup {
    max-width: 280px;
}

.map-popup img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.map-popup h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.map-popup .popup-reg {
    display: inline-block;
    background: #ffcc00;
    color: #000;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.map-popup .popup-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.map-popup .popup-status.missing {
    background: var(--danger);
    color: #fff;
}

.map-popup .popup-status.found {
    background: var(--accent);
    color: #000;
}

.map-popup .popup-meta {
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

.heatmap-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ============================================
   REPORT PAGE
   ============================================ */
.report-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.report-container h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.report-container > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.photo-upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    position: relative;
}

.photo-upload-area:hover,
.photo-upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.photo-upload-area i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.photo-upload-area p {
    color: var(--text-secondary);
}

.photo-upload-area small {
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.photo-previews {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.photo-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 2px solid var(--glass-border);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reportMap {
    height: 350px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    margin-bottom: 10px;
}

.map-instruction {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.color-chip input {
    display: none;
}

.color-chip .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

.color-chip.selected {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
}

.dashboard-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border-radius: var(--border-radius-sm);
    padding: 4px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
}

.dashboard-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: var(--font);
    white-space: nowrap;
}

.dashboard-tab:hover {
    color: var(--text-primary);
}

.dashboard-tab.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.tab-content {
    display: none;
}

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

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    transition: var(--transition);
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.notification-item.unread {
    border-left: 3px solid var(--accent);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.notification-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Settings */
.settings-grid {
    display: grid;
    gap: 24px;
}

.settings-section {
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.settings-section h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ============================================
   MINI MAP (registration/location picker)
   ============================================ */
.mini-map {
    height: 200px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    margin-top: 10px;
    overflow: hidden;
}

.location-section {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.location-results.show {
    display: block;
}

.location-result-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.location-result-item:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.form-group {
    position: relative;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ============================================
   LOADING
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-secondary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    padding: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.pagination a:hover {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent);
}

.pagination .current {
    background: var(--accent);
    color: #0a0a0f;
    font-weight: 700;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    padding: 16px 0 10px;
    margin-top: 40px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.footer-brand i {
    color: var(--accent);
    margin-right: 5px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

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

.footer-contact {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 10px;
    text-align: center;
}

/* ========== PWA Install Banner ========== */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--accent);
    padding: 14px 20px;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.install-banner.show {
    transform: translateY(0);
}

.install-banner-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.install-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-banner-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.install-banner-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.install-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: var(--transition);
}

.install-dismiss:hover {
    color: var(--text-primary);
}

/* ========== Admin Panel ========== */
.admin-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 18px 20px;
    backdrop-filter: blur(10px);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.admin-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-chart-card {
    padding: 20px;
}

.admin-chart-card h3 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.admin-chart-card canvas {
    max-height: 200px;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead th {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.admin-table tbody td {
    padding: 10px 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

.admin-table .row-archived {
    opacity: 0.5;
}

.admin-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.admin-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.admin-reg {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255,255,255,0.06);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.admin-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    min-width: 80px;
}

.admin-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00b36b);
    border-radius: 4px;
    transition: width 0.4s ease;
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-charts-row {
        grid-template-columns: 1fr;
    }
    .admin-stat-card {
        padding: 14px;
    }
    .admin-stat-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   LEAFLET OVERRIDES (Dark Theme)
   ============================================ */
.leaflet-container {
    background: var(--bg-secondary) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-radius: var(--border-radius-sm) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
}

.leaflet-popup-tip {
    background: var(--bg-secondary) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

.leaflet-control-attribution {
    background: rgba(10,10,15,0.8) !important;
    color: var(--text-muted) !important;
}

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

/* ============================================
   LEGAL PAGES (Privacy / Terms)
   ============================================ */
.glass-card h2 {
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--accent);
}

.glass-card h2:first-of-type {
    margin-top: 0;
}

.glass-card p,
.glass-card li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.glass-card ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: var(--glass-blur);
        padding: 16px;
        flex-direction: column;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .listing-gallery {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .listing-header {
        flex-direction: column;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .listing-specs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .listing-specs {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        padding: 20px;
    }

    .hero {
        padding: 30px 16px 20px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.listing-card {
    animation: fadeInUp 0.5s ease forwards;
}

.listing-card:nth-child(2) { animation-delay: 0.05s; }
.listing-card:nth-child(3) { animation-delay: 0.1s; }
.listing-card:nth-child(4) { animation-delay: 0.15s; }
.listing-card:nth-child(5) { animation-delay: 0.2s; }
.listing-card:nth-child(6) { animation-delay: 0.25s; }

/* Archived listing style */
.listing-card.archived {
    opacity: 0.5;
}

.listing-card.archived .listing-card-image::after {
    content: 'ARCHIVED';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 3px;
}
