:root {
    --primary-color: #0078d4;
    --primary-dark: #005a9e;
    --primary-light: #deecf9;
    --secondary-color: #107c10;
    --danger-color: #d13438;
    --text-primary: #201f1e;
    --text-secondary: #605e5c;
    --bg-light: #f3f2f1;
    --bg-muted: #edebe9;
    --bg-white: #ffffff;
    --border-color: #e1dfdd;
    --radius: 2px;
    --radius-md: 4px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 1.6px 3.6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 3.2px 7.2px rgba(0, 0, 0, 0.1);
    --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.55;
    background-color: var(--bg-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 24px;
    min-height: 56px;
}

.logo a,
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    transition: opacity 0.2s ease;
}

.logo a:hover,
.logo-link:hover {
    opacity: 0.85;
}

.logo-text {
    display: none;
}

.logo-img {
    height: 36px;
    width: auto;
    max-height: 40px;
    max-width: min(220px, 55vw);
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* Guest report header: logo + nav in one row */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.header-content nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.header-content nav a:hover {
    color: var(--primary-color);
}

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

.nav-links {
    display: flex;
    gap: 1.35rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section — full-bleed atmospheric promo */
.hero {
    position: relative;
    color: var(--text-primary);
    min-height: min(72vh, 620px);
    display: flex;
    align-items: center;
    padding: 4.5rem 0 4rem;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 242, 241, 0.82) 45%, rgba(0, 120, 212, 0.14) 100%),
        linear-gradient(165deg, #f3f2f1 0%, #e8f1fa 55%, #d6e8f7 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 120, 212, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 120, 212, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-brand {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    animation: heroRise 0.7s ease both;
}

.hero-title {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    animation: heroRise 0.7s ease 0.08s both;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    margin: 0 auto 1.75rem;
    color: var(--text-secondary);
    max-width: 34rem;
    line-height: 1.5;
    animation: heroRise 0.7s ease 0.14s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    animation: heroRise 0.7s ease 0.2s both;
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-brand,
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        animation: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.2;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: #c8c6c4;
}

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

.btn-outline:hover {
    background: var(--bg-light);
    border-color: #c8c6c4;
    color: var(--text-primary);
}

/* Report Section */
.report-section {
    padding: 3.5rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.report-form {
    max-width: 880px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 1.75rem 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border-color);
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.form-group input[readonly] {
    background-color: var(--bg-light);
    cursor: not-allowed;
    color: var(--text-secondary);
}

.form-group input[readonly]:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.form-row > .form-group {
    min-width: 0;
}

.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* The admin search form sits directly above its results grid, so it spans the
   full container instead of the narrower centred column the report form uses.
   Otherwise its inputs are visibly inset from the log cards below them. */
.admin-search-form {
    max-width: none;
    padding-top: 0;
    border-top: none;
}

.admin-search-row {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.landmark-map-row {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
}

.landmark-side-fields {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
}

.landmark-side-fields > .form-group:last-child {
    margin-bottom: 0;
}

.location-map-group {
    min-width: 0;
}

.location-map-group .location-map {
    /* Stretch map to better match the stacked left-side fields */
    height: 460px;
}

.location-map-wrap {
    position: relative;
}

.location-map {
    width: 100%;
    height: 380px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #e8eef3;
    z-index: 1;
}

.location-map .leaflet-control-zoom a {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 16px;
}

.location-map-hint {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 400;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.location-map-hint.is-hidden {
    display: none;
}

.details-location-map-block {
    margin: 1rem 0 1.25rem;
}

.details-location-map-block h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.details-location-map {
    height: 360px;
}

.details-map-link {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.success-message {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1rem;
    background: #d1fae5;
    border: 1px solid var(--secondary-color);
    border-radius: 0.5rem;
    color: #065f46;
    text-align: center;
}

/* Reports Section */
.reports-section {
    padding: 3.5rem 0;
    background: var(--bg-light);
}

.feed-location-status {
    margin: -0.25rem 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
}

.feed-location-status button {
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Community impact — clean metric strip */
.impact-dashboard-section {
    padding: 3rem 0 1.5rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.impact-dashboard {
    padding: 0;
}

.impact-dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.impact-dashboard-header .section-title {
    margin-bottom: 0.35rem;
    text-align: left;
}

.impact-dashboard-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.impact-range {
    display: inline-flex;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.impact-range-btn {
    border: none;
    border-right: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.impact-range-btn:last-child {
    border-right: none;
}

.impact-range-btn:hover {
    color: var(--text-primary);
    background: var(--bg-light);
}

.impact-range-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.impact-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
}

.impact-kpi {
    appearance: none;
    border: none;
    border-right: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 0;
    padding: 1.15rem 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.impact-kpi:last-child {
    border-right: none;
}

.impact-kpi:hover,
.impact-kpi:focus-visible {
    background: var(--bg-light);
    outline: none;
}

.impact-kpi.is-active {
    background: var(--primary-light);
    box-shadow: inset 0 -2px 0 var(--primary-color);
}

.impact-kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.impact-kpi-value {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.impact-kpi-meta {
    margin-top: auto;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.impact-kpi--bribe .impact-kpi-value {
    color: #8a3707;
}

.impact-kpi--resolved .impact-kpi-value {
    color: var(--secondary-color);
}

.impact-kpi--views .impact-kpi-value {
    color: var(--primary-color);
}

.impact-kpi-skeleton {
    grid-column: 1 / -1;
    padding: 1.5rem;
    text-align: left;
    color: var(--text-secondary);
    background: var(--bg-light);
    border-radius: 0;
}

.impact-dashboard-hint {
    margin: 0.9rem 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

@media (max-width: 960px) {
    .impact-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .impact-kpi:nth-child(2n) {
        border-right: none;
    }

    .impact-kpi:nth-child(-n+2) {
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 560px) {
    .impact-dashboard-header {
        align-items: stretch;
    }

    .impact-range {
        width: 100%;
    }

    .impact-range-btn {
        flex: 1;
    }

    .impact-kpi-grid {
        grid-template-columns: 1fr;
    }

    .impact-kpi {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .impact-kpi:last-child {
        border-bottom: none;
    }
}

/* Category Statistics */
.category-stats {
    background: var(--bg-white);
    padding: 1.25rem 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

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

.stats-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
}

.total-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
}

.stat-card:hover {
    border-color: #c8c6c4;
    box-shadow: none;
    transform: none;
}

.stat-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-category.corruption {
    background: #fee2e2;
    color: #991b1b;
}

.stat-category.pothole {
    background: #fef3c7;
    color: #92400e;
}

.stat-category.bad-service {
    background: #dbeafe;
    color: #1e40af;
}

.stat-category.infrastructure {
    background: #e0e7ff;
    color: #3730a3;
}

.stat-category.other {
    background: #f3f4f6;
    color: #374151;
}

.stat-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.filter-bar {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
    border-color: #c8c6c4;
    color: var(--text-primary);
    background: var(--bg-muted);
}

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

.reports-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.report-card {
    background: var(--bg-white);
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    position: relative;
}

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

.edit-report-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s ease;
}

.edit-report-btn:hover {
    background: var(--primary-dark);
}

.modal-large {
    max-width: 700px;
    width: 90%;
}

/* Make edit form modal wider for better usability on dense forms */
#editReportModal .modal-content.modal-large {
    max-width: 980px;
    width: min(96vw, 980px);
}

/* Make Log Details modal a bit wider for better readability */
#reportDetailsModal .modal-content.modal-large {
    max-width: 920px;
    width: min(96vw, 920px);
}

.report-details-body {
    margin: 1rem 0 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.details-grid p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.details-text-block,
.details-evidence-block,
.details-comments-block,
.details-dispute-block {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.details-text-block h3,
.details-evidence-block h3,
.details-comments-block h3,
.details-dispute-block h3 {
    margin-bottom: 0.75rem;
}

.details-text-block p {
    margin: 0;
    white-space: pre-wrap;
}

.details-evidence-image,
.details-evidence-video {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    max-height: 420px;
    object-fit: contain;
    background: #000;
}

.report-card:hover {
    border-color: #c8c6c4;
    background: #faf9f8;
}

.details-soft-delete-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.details-soft-delete-banner p {
    margin: 0.25rem 0;
}

.details-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.report-badge-deleted {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b2c2c;
    background: #fde8e8;
    border: 1px solid #e8b4b4;
    border-radius: 4px;
}

.report-category {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.report-category.corruption {
    background: #fee2e2;
    color: #991b1b;
}

.report-category.pothole {
    background: #fef3c7;
    color: #92400e;
}

.report-category.bad-service {
    background: #dbeafe;
    color: #1e40af;
}

.report-category.infrastructure {
    background: #e0e7ff;
    color: #3730a3;
}

.report-category.other {
    background: #f3f4f6;
    color: #374151;
}

.report-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.report-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.report-card .login-prompt {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.report-card .login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.report-card .login-prompt a:hover {
    text-decoration: underline;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.report-engagement {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thumbs-up-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: var(--radius);
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.thumbs-up-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.thumbs-up-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.impression-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.report-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.report-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.report-views,
.report-upvotes,
.report-comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.details-vote-actions {
    margin: 0.75rem 0 1rem;
}

.details-comment-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.details-dispute-form textarea,
.details-dispute-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.6rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    /* Report containers are grids, so span every column instead of sitting in
       the first one. Ignored when the parent is not a grid. */
    grid-column: 1 / -1;
}

.empty-state p {
    font-size: 1.125rem;
}

/* Validation Error Display */
.validation-error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.validation-error-header h3 {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.validation-error-header p {
    color: #7f1d1d;
    margin-bottom: 1rem;
}

.validation-errors-list {
    margin: 1rem 0;
}

.validation-error-item {
    background: #fff;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.validation-error-item h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.validation-error-item .error-details {
    color: #991b1b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.validation-corrections {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.validation-corrections h4 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.correction-item {
    margin-bottom: 1.5rem;
}

.correction-item:last-child {
    margin-bottom: 0;
}

.correction-item label {
    display: block;
    color: #065f46;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.correction-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.correction-original,
.correction-new {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.correction-original {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.correction-original::before {
    content: "Original: ";
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.correction-new {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.correction-new::before {
    content: "Corrected: ";
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

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

.success-message {
    background: #dff6dd;
    border: 1px solid #107c10;
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    color: #0b5a08;
}

.success-message p {
    margin: 0;
    font-weight: 500;
}

/* Responsive styles for validation errors */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .correction-comparison {
        grid-template-columns: 1fr;
    }
    
    .validation-actions {
        flex-direction: column;
    }
    
    .validation-actions .btn {
        width: 100%;
    }
}

/* About Section */
.about-section {
    padding: 3.5rem 0;
    background: var(--bg-white);
}

.about-section .section-title {
    text-align: center;
    max-width: none;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-content ul {
    margin: 1.25rem 0;
    padding-left: 0;
    list-style-position: inside;
}

.about-content li {
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-actions {
    margin-top: 1.5rem;
}

/* The contact form sits inside a modal, so it drops the report form's own width
   cap and top rule and lets the modal supply the framing. */
.contact-form {
    max-width: none;
    padding: 0;
    border-top: none;
}

.contact-form .form-group:last-of-type {
    margin-bottom: 1rem;
}

.contact-form-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
}

.contact-form-status {
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.contact-form-status.is-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.contact-form-status.is-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Footer */
.footer {
    background: #201f1e;
    color: #f3f2f1;
    text-align: left;
    padding: 2rem 0;
    border-top: 1px solid #323130;
}

.footer p {
    font-size: 0.9rem;
    color: #c8c6c4;
}

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

.modal[style*="display: block"] {
    display: block !important;
}

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

.modal-content {
    background-color: var(--bg-white);
    margin: 8% auto;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.25s ease;
}

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

.modal-close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

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

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

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.modal-buttons .btn {
    min-width: 120px;
}

/* Keep action buttons compact only in Log Details modal */
#reportDetailsModal .modal-buttons .btn {
    min-width: 92px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
}

/* Keep details actions aligned with modal width while allowing wrap */
#reportDetailsModal .modal-buttons {
    width: 100%;
    justify-content: flex-end;
}

/* Admin console search actions should align with form fields */
#admin-console .modal-buttons {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

/* Responsive Design */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 16px;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .nav-links {
        gap: 0.85rem;
        flex-wrap: wrap;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0 2.75rem;
    }

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

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

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

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

    .landmark-map-row {
        grid-template-columns: 1fr;
    }

    .location-map-group .location-map,
    .location-map {
        height: 280px;
    }

    .reports-container {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 1.45rem;
    }
}
