/* ----------------------------------------
   Global styles
---------------------------------------- */

:root {
    --forest-deep: #0f3d2e;
    --forest-green: #166b3a;
    --leaf-green: #4caf50;
    --sage: #8fbe8f;
    --moss: #b7c8a6;
    --cream: #f7f5ec;
    --sand: #e9e3c9;
    --earth: #cdba9a;
    --charcoal: #1f1f1f;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ----------------------------------------
   Header
---------------------------------------- */

.site-header {
    background-color: var(--cream);
    border-bottom: 1px solid rgba(15, 61, 46, 0.12);
}

.header-inner {
    width: min(1200px, 92%);
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    width: 135px;
    height: auto;
}

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

.main-nav a {
    color: var(--forest-deep);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--leaf-green);
}


/* ----------------------------------------
   Hero
---------------------------------------- */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-image: url("../backgrounds/hero-home.0418c2518e47.jpg");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 61, 46, 0.92) 0%,
            rgba(15, 61, 46, 0.72) 45%,
            rgba(15, 61, 46, 0.18) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 5rem 0;
    color: var(--white);
}

.hero-content > * {
    max-width: 680px;
}

.hero-eyebrow {
    margin: 0 0 1rem;
    color: var(--sand);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.05;
}

.hero-text {
    margin: 1.5rem 0 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


/* ----------------------------------------
   Buttons
---------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
}

.button-primary {
    background-color: var(--leaf-green);
    color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
    background-color: var(--forest-green);
}

.button-secondary {
    border-color: var(--white);
    color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background-color: var(--white);
    color: var(--forest-deep);
}

.button-map {
    margin-top: 0.5rem;
    background-color: var(--forest-deep);
    color: var(--white);
}

.button-map:hover,
.button-map:focus-visible {
    background-color: var(--forest-green);
}


/* ----------------------------------------
   Shared section styles
---------------------------------------- */

.section-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.section-eyebrow {
    margin: 0 0 0.75rem;
    color: var(--forest-green);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ----------------------------------------
   How it works
---------------------------------------- */

.how-it-works {
    padding: 6rem 0;
    background-color: var(--cream);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-heading h2,
.reports-map-heading h2 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: #4f554f;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    min-height: 290px;
    padding: 2.25rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.06);
}

.feature-number {
    width: 54px;
    height: 54px;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sand);
    color: var(--forest-deep);
    border-radius: 50%;
    font-weight: 600;
}

.feature-card h3 {
    margin: 0 0 0.75rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.feature-card p {
    margin: 0;
    color: #555b55;
    line-height: 1.8;
}


/* ----------------------------------------
   Recent reports and map
---------------------------------------- */

.reports-map-section {
    padding: 6rem 0;
    background-color: #eef2e8;
}

.reports-map-heading {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.reports-map-heading h2 {
    margin-bottom: 0;
}

.text-link {
    color: var(--forest-green);
    font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--leaf-green);
}

.reports-map-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
}

.recent-reports-panel,
.map-preview-panel {
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.06);
    overflow: hidden;
}

.recent-reports-panel {
    padding: 2rem;
}

.recent-reports-panel > h3 {
    margin: 0 0 1.5rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.report-list {
    display: grid;
    gap: 0;
}

.report-preview {
    padding: 1.4rem 0;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.report-preview:first-child {
    padding-top: 0;
    border-top: 0;
}

.report-marker {
    width: 42px;
    margin-top: 0.15rem;
}

.report-preview h4 {
    margin: 0.35rem 0 0.35rem;
    color: var(--forest-deep);
    font-size: 1rem;
}

.report-preview p {
    margin: 0;
    color: #5a605a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-active {
    background-color: #e2f1df;
    color: #296b2b;
}

.status-progress {
    background-color: #fff0d5;
    color: #9a5b00;
}

.status-protected {
    background-color: #e3edf8;
    color: #2f669c;
}


/* ----------------------------------------
   Map preview
---------------------------------------- */

.map-placeholder {
    min-height: 420px;
    padding: 2rem;
    background:
        linear-gradient(
            rgba(233, 227, 201, 0.68),
            rgba(233, 227, 201, 0.68)
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 32px,
            rgba(15, 61, 46, 0.05) 33px,
            rgba(15, 61, 46, 0.05) 34px
        );
}

.map-placeholder-content {
    position: relative;
    min-height: 356px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-message {
    max-width: 330px;
    padding: 2rem;
    background-color: rgba(247, 245, 236, 0.94);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.1);
}

.map-message h3 {
    margin: 0 0 0.7rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.map-message p:not(.section-eyebrow) {
    margin: 0 0 1rem;
    color: #555b55;
    line-height: 1.6;
}

.map-preview-marker {
    position: absolute;
    width: 44px;
}

.marker-one {
    top: 12%;
    left: 15%;
}

.marker-two {
    right: 12%;
    top: 20%;
}

.marker-three {
    left: 20%;
    bottom: 12%;
}

.map-legend {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    background-color: var(--white);
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.map-legend span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #555b55;
    font-size: 0.8rem;
}

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

.active-dot {
    background-color: #2f6f2e;
}

.progress-dot {
    background-color: #e68b14;
}

.protected-dot {
    background-color: #3774b0;
}


/* ----------------------------------------
   Responsive
---------------------------------------- */

@media (max-width: 850px) {
    .header-inner {
        padding: 1rem 0;
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }

    .hero {
        min-height: 560px;
    }

    .hero-overlay {
        background: rgba(15, 61, 46, 0.78);
    }

    .feature-grid,
    .reports-map-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .reports-map-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .site-logo {
        width: 125px;
    }

    .main-nav {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 4rem 0;
    }

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

    .how-it-works,
    .reports-map-section {
        padding: 4rem 0;
    }

    .feature-card,
    .recent-reports-panel {
        padding: 1.75rem;
    }

    .map-placeholder {
        min-height: 380px;
        padding: 1rem;
    }
}

/* ----------------------------------------
   Community section
---------------------------------------- */

.community-section {
    padding: 6rem 0;
    background-color: var(--cream);
}

.community-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.community-content h2 {
    max-width: 620px;
    margin: 0 0 1.5rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.12;
}

.community-content > p:not(.section-eyebrow) {
    max-width: 620px;
    margin: 0 0 1rem;
    color: #555b55;
    line-height: 1.8;
}

.button-community {
    margin-top: 1rem;
    background-color: var(--forest-deep);
    color: var(--white);
}

.button-community:hover,
.button-community:focus-visible {
    background-color: var(--forest-green);
}

.community-card {
    padding: 3rem;
    background-color: var(--forest-deep);
    color: var(--white);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 61, 46, 0.14);
}

.community-card-label {
    color: var(--sand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.community-card h3 {
    margin: 1rem 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.25;
}

.community-card > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.community-stat-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.community-stat-grid div {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.community-stat-grid strong,
.community-stat-grid span {
    display: block;
}

.community-stat-grid strong {
    margin-bottom: 0.3rem;
    color: var(--sand);
}

.community-stat-grid span {
    font-size: 0.78rem;
    line-height: 1.5;
}


/* ----------------------------------------
   Footer
---------------------------------------- */

.site-footer {
    background-color: var(--forest-deep);
    color: var(--white);
}

.footer-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 4rem 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.footer-brand h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.footer-brand p {
    margin: 0.3rem 0 0;
    color: var(--sand);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links h3 {
    margin: 0 0 1rem;
    color: var(--sand);
    font-size: 0.9rem;
}

.footer-links a {
    margin-bottom: 0.6rem;
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--white);
}

.footer-bottom {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}


/* ----------------------------------------
   Community and footer responsive
---------------------------------------- */

@media (max-width: 850px) {
    .community-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .community-grid {
        gap: 2.5rem;
    }

    .footer-inner {
        gap: 3rem;
    }
}

@media (max-width: 520px) {
    .community-section {
        padding: 4rem 0;
    }

    .community-card {
        padding: 2rem;
    }

    .community-stat-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo {
        width: 72px;
        height: 72px;
    }
}

/* ----------------------------------------
   Tree report list
---------------------------------------- */

.report-list-section,
.report-detail-section {
    padding: 5rem 0 6rem;
    background-color: var(--cream);
}

.page-heading {
    max-width: 700px;
    margin-bottom: 3rem;
}

.page-heading h1,
.report-detail-header h1 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
}

.page-heading > p:not(.section-eyebrow) {
    margin: 0 0 1.5rem;
    color: #555b55;
    line-height: 1.8;
}

.tree-report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tree-report-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.06);
}

.tree-report-card-top {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-card-marker {
    width: 44px;
}

.report-status,
.detail-status,
.progress-status {
    padding: 0.35rem 0.7rem;
    display: inline-block;
    background-color: #e2f1df;
    color: var(--forest-green);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tree-report-card h2 {
    margin: 0 0 0.4rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.tree-report-card h2 a:hover,
.tree-report-card h2 a:focus-visible {
    color: var(--forest-green);
}

.report-card-location {
    margin: 0 0 1rem;
    color: var(--forest-green);
    font-size: 0.9rem;
    font-weight: 600;
}

.report-card-description {
    margin: 0 0 1.5rem;
    color: #5a605a;
    line-height: 1.7;
}

.report-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
    color: #777d77;
    font-size: 0.8rem;
}

.empty-state {
    max-width: 620px;
    margin: 2rem auto 0;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 20px;
    text-align: center;
}

.empty-state img {
    width: 180px;
    margin: 0 auto 1.5rem;
}

.empty-state h2 {
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}


/* ----------------------------------------
   Tree report detail
---------------------------------------- */

.back-link {
    margin-bottom: 2rem;
    display: inline-block;
    color: var(--forest-green);
    font-weight: 600;
}

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

.detail-marker {
    width: 72px;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.25rem;
    color: #626862;
    font-size: 0.9rem;
}

.report-detail-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1.5rem;
    align-items: start;
}

.report-detail-main,
.location-card {
    display: grid;
    gap: 1.5rem;
}

.report-detail-photo,
.report-photo-placeholder,
.report-information-card,
.location-card {
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.05);
}

.report-detail-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.report-photo-placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2e8;
    color: #747b74;
}

.report-information-card,
.location-card {
    padding: 2rem;
}

.report-information-card h2,
.location-card h2,
.progress-heading h2 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.report-information-card > p {
    color: #555b55;
    line-height: 1.8;
}

.report-facts {
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem;
}

.report-facts div {
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.report-facts dt {
    color: #777d77;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.report-facts dd {
    margin: 0.3rem 0 0;
    color: var(--forest-deep);
    font-weight: 500;
}

.detail-map-placeholder {
    min-height: 240px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #e9e3c9;
    border-radius: 12px;
    text-align: center;
}

.detail-map-placeholder p {
    margin: 0 0 0.4rem;
    color: var(--forest-deep);
    font-weight: 600;
}

.detail-map-placeholder span {
    max-width: 260px;
    color: #606760;
    font-size: 0.85rem;
}

.coordinate-list {
    display: grid;
    gap: 0.75rem;
}

.coordinate-list p {
    margin: 0;
    color: #555b55;
}

.coordinate-list strong {
    margin-right: 0.4rem;
    color: var(--forest-deep);
}


/* ----------------------------------------
   Progress history
---------------------------------------- */

.progress-section {
    margin-top: 4rem;
}

.progress-heading {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.progress-heading h2 {
    margin-bottom: 0;
}

.progress-heading > p {
    max-width: 420px;
    margin: 0;
    color: #666c66;
    line-height: 1.6;
}

.progress-list {
    display: grid;
    gap: 1rem;
}

.progress-card,
.progress-empty {
    padding: 1.75rem 2rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 16px;
}

.progress-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
}

.progress-date {
    color: var(--forest-green);
    font-weight: 600;
}

.progress-card p {
    margin: 0.75rem 0 0;
    color: #555b55;
    line-height: 1.7;
}

.progress-empty h3 {
    margin: 0 0 0.5rem;
    color: var(--forest-deep);
}

.progress-empty p {
    margin: 0;
    color: #666c66;
}


/* ----------------------------------------
   Report pages responsive
---------------------------------------- */

@media (max-width: 900px) {
    .tree-report-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .tree-report-grid {
        grid-template-columns: 1fr;
    }

    .report-detail-header,
    .progress-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-marker {
        width: 58px;
    }

    .progress-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .report-list-section,
    .report-detail-section {
        padding: 3.5rem 0 4rem;
    }
}

@media (max-width: 650px) {
    .location-card {
        gap: 1rem;
        padding: 1.35rem;
    }

    .location-card h2 {
        margin-bottom: 0.5rem;
        font-size: 1.7rem;
    }

    .detail-marker {
        margin-bottom: -0.5rem;
    }

    .owner-actions {
        gap: 0.65rem;
    }

    .owner-actions .button {
        min-height: 44px;
        padding: 0.65rem 1rem;
    }
}

/* ----------------------------------------
   Report ownership actions
---------------------------------------- */

.owner-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.owner-actions {
    margin: -1rem 0 2rem;
}

.report-form .form-actions {
    margin: 2rem 0 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 61, 46, 0.12);
}

.report-form .form-actions .button {
    min-width: 220px;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
}

.button-outline-dark {
    border-color: var(--forest-deep);
    color: var(--forest-deep);
}

.button-outline-dark:hover,
.button-outline-dark:focus-visible {
    background-color: var(--forest-deep);
    color: var(--white);
}

.button-danger {
    background-color: #a33232;
    color: var(--white);
}

.button-danger:hover,
.button-danger:focus-visible {
    background-color: #7d2525;
}

.button-danger-outline {
    border-color: #a33232;
    color: #a33232;
}

.button-danger-outline:hover,
.button-danger-outline:focus-visible {
    background-color: #a33232;
    color: var(--white);
}


/* ----------------------------------------
   Delete confirmation
---------------------------------------- */

.delete-section {
    padding: 6rem 0;
    background-color: var(--cream);
}

.delete-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.06);
}

.delete-card h1 {
    margin: 0 0 1.25rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.delete-card > p:not(.section-eyebrow) {
    color: #555b55;
    line-height: 1.8;
}

.delete-card form {
    margin-top: 2rem;
}

@media (max-width: 520px) {
    .owner-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-card {
        padding: 2rem;
    }
}

/* ----------------------------------------
   Progress update actions
---------------------------------------- */

.progress-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.delete-text-link {
    color: #a33232;
    font-weight: 600;
}

.delete-text-link:hover,
.delete-text-link:focus-visible {
    color: #7d2525;
}

/* ----------------------------------------
   Authentication navigation and messages
---------------------------------------- */

.nav-logout-form {
    margin: 0;
}

.nav-logout-button {
    padding: 0;
    background: none;
    border: 0;
    color: var(--forest-deep);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-logout-button:hover,
.nav-logout-button:focus-visible {
    color: var(--leaf-green);
}

.message-container {
    width: min(1200px, 92%);
    margin: 1rem auto 0;
}

.site-message {
    padding: 1rem 1.25rem;
    background-color: #e2f1df;
    color: var(--forest-deep);
    border: 1px solid rgba(15, 61, 46, 0.15);
    border-radius: 10px;
}

.site-message.error {
    background-color: #f8e3e3;
    color: #7d2525;
}

/* ----------------------------------------
   User profile and woodland avatars
---------------------------------------- */

.profile-section {
    padding: 5rem 0 6rem;
    background-color: var(--cream);
}

.profile-heading {
    max-width: 720px;
    margin-bottom: 3rem;
}

.profile-heading h1 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
}

.profile-heading > p:not(.section-eyebrow) {
    margin: 0;
    color: #555b55;
    line-height: 1.8;
}

.profile-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 2rem;
    align-items: start;
}

.profile-preview-card,
.profile-form {
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.06);
}

.profile-preview-card {
    padding: 2.5rem;
    text-align: center;
}

.profile-preview-label {
    margin: 0 0 1.5rem;
    color: var(--forest-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-current-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.profile-preview-card h2 {
    margin: 0;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.profile-avatar-name {
    margin: 0.4rem 0 1.5rem;
    color: var(--forest-green);
    font-weight: 600;
}

.profile-bio-preview {
    margin: 0;
    color: #555b55;
    line-height: 1.7;
}

.profile-bio-empty {
    color: #858b85;
    font-style: italic;
}

.profile-form {
    padding: 2.5rem;
}

.avatar-fieldset {
    margin: 0 0 2.5rem;
    padding: 0;
    border: 0;
}

.avatar-fieldset legend {
    margin-bottom: 1.5rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 600;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.avatar-option {
    cursor: pointer;
}

.avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-card {
    min-height: 145px;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background-color: var(--cream);
    border: 2px solid transparent;
    border-radius: 14px;
    text-align: center;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.avatar-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.avatar-card span {
    color: var(--forest-deep);
    font-size: 0.8rem;
    font-weight: 600;
}

.avatar-option:hover .avatar-card {
    transform: translateY(-2px);
    border-color: var(--sage);
}

.avatar-option input:checked + .avatar-card {
    background-color: #e4eee0;
    border-color: var(--forest-green);
}

.avatar-option input:focus-visible + .avatar-card {
    outline: 3px solid var(--leaf-green);
    outline-offset: 3px;
}

.profile-bio-field {
    margin-bottom: 1.5rem;
}

.profile-bio-field textarea {
    width: 100%;
}

@media (max-width: 950px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .profile-section {
        padding: 3.5rem 0 4rem;
    }

    .profile-preview-card,
    .profile-form {
        padding: 1.75rem;
    }

    .avatar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-current-avatar {
        width: 120px;
        height: 120px;
    }
}

/* ----------------------------------------
   User dashboard
---------------------------------------- */

.dashboard-section {
    padding: 5rem 0 6rem;
    background-color: var(--cream);
}

.dashboard-header {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.dashboard-header > div {
    max-width: 720px;
}

.dashboard-header h1 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
}

.dashboard-header > div > p:not(.section-eyebrow) {
    margin: 0;
    color: #555b55;
    line-height: 1.8;
}

.dashboard-profile-link {
    min-width: 130px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 16px;
    color: var(--forest-deep);
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-profile-link img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.dashboard-profile-link:hover,
.dashboard-profile-link:focus-visible {
    border-color: var(--forest-green);
}

.dashboard-stats {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dashboard-stat {
    padding: 1.5rem;
    background-color: var(--forest-deep);
    color: var(--white);
    border-radius: 16px;
}

.dashboard-stat strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
}

.dashboard-stat span {
    color: var(--sand);
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-panels {
    display: grid;
    gap: 1.5rem;
}

.dashboard-panel {
    padding: 2rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.05);
}

.dashboard-panel-heading {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-panel-heading h2 {
    margin: 0;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.dashboard-item {
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.dashboard-item:first-of-type {
    border-top: 0;
}

.dashboard-item h3 {
    margin: 0.45rem 0 0.25rem;
    color: var(--forest-deep);
    font-size: 1rem;
}

.dashboard-item p {
    margin: 0;
    color: #666c66;
    font-size: 0.9rem;
}

.dashboard-status {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: #e2f1df;
    color: var(--forest-green);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.dashboard-empty {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
    color: #777d77;
}

.dashboard-empty p {
    margin: 0;
}

@media (max-width: 700px) {
    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-profile-link {
        flex-direction: row;
    }

    .dashboard-profile-link img {
        width: 52px;
        height: 52px;
    }

    .dashboard-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ----------------------------------------
   Authentication helper links
---------------------------------------- */

.auth-links {
    margin: 0 0 1.5rem;
}

.auth-links a {
    color: var(--forest-green);
    font-weight: 600;
}

.auth-links a:hover,
.auth-links a:focus-visible {
    color: var(--leaf-green);
}

/* ----------------------------------------
   Community
---------------------------------------- */

.community-section {
    padding: 4.5rem 0 6rem;
    background-color: var(--cream);
}

.community-heading {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.community-heading > div {
    max-width: 700px;
}

.community-heading h1 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
}

.community-heading > div > p:not(.section-eyebrow) {
    margin: 0;
    color: #555b55;
    line-height: 1.8;
}

.community-post-list {
    display: grid;
    gap: 1.5rem;
}

.community-post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.05);
}

.community-post-image {
    min-height: 240px;
}

.community-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.community-post-content {
    padding: 2rem;
}

.community-post-label {
    margin: 0 0 0.75rem;
    color: var(--forest-green);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.community-post-content h2 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    line-height: 1.25;
}

.community-post-preview {
    margin: 0 0 1.25rem;
    color: #555b55;
    line-height: 1.75;
}

.community-post-meta {
    margin: 0;
    color: #777d77;
    font-size: 0.8rem;
}

.community-empty {
    padding: 3rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    text-align: center;
}

.community-empty h2 {
    margin: 0 0 0.75rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.community-empty p {
    margin: 0 auto 1.5rem;
    max-width: 520px;
    color: #666c66;
}

@media (max-width: 750px) {
    .community-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-post-card {
        grid-template-columns: 1fr;
    }

    .community-post-image {
        min-height: 220px;
        max-height: 280px;
    }
}

.community-post-content h2 a {
    color: inherit;
}

.community-post-content h2 a:hover,
.community-post-content h2 a:focus-visible {
    color: var(--forest-green);
}

.community-read-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--forest-green);
    font-weight: 600;
}

.community-read-link:hover,
.community-read-link:focus-visible {
    color: var(--leaf-green);
}

.community-author-link {
    color: var(--forest-green);
    font-weight: 600;
}

.community-author-link:hover,
.community-author-link:focus-visible {
    color: var(--leaf-green);
    text-decoration: underline;
}

/* ----------------------------------------
   Public member profile
---------------------------------------- */

.public-profile-section {
    padding: 4.5rem 0 6rem;
    background-color: var(--cream);
}

.public-profile-header {
    margin-bottom: 2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.05);
}

.public-profile-avatar {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    object-fit: contain;
}

.public-profile-intro {
    max-width: 720px;
}

.public-profile-intro h1 {
    margin: 0 0 0.75rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.public-profile-intro > p:not(.section-eyebrow) {
    margin: 0 0 1.25rem;
    color: #555b55;
    line-height: 1.8;
}

.public-profile-stats {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.public-profile-stat {
    padding: 1.5rem;
    background-color: var(--forest-deep);
    color: var(--white);
    border-radius: 16px;
}

.public-profile-stat strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
}

.public-profile-stat span {
    color: var(--sand);
    font-size: 0.9rem;
    font-weight: 600;
}

.public-profile-content {
    display: grid;
    gap: 1.5rem;
}

.public-profile-panel {
    padding: 2rem;
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.05);
}

.public-profile-panel-heading {
    margin-bottom: 1rem;
}

.public-profile-panel-heading h2 {
    margin: 0;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.public-profile-list {
    display: grid;
}

.public-profile-item {
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.public-profile-item:first-child {
    border-top: 0;
}

.public-profile-item h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1rem;
}

.public-profile-item h3 a {
    color: var(--forest-deep);
}

.public-profile-item h3 a:hover,
.public-profile-item h3 a:focus-visible {
    color: var(--forest-green);
}

.public-profile-item p {
    margin: 0;
    color: #666c66;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .public-profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-profile-avatar {
        width: 100px;
        height: 100px;
    }

    .public-profile-stats {
        grid-template-columns: 1fr;
    }

    .public-profile-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ----------------------------------------
   Explore map
---------------------------------------- */

.map-page-section {
    padding: 4.5rem 0 6rem;
    background-color: var(--cream);
}

.map-page-heading {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.map-page-heading > div {
    max-width: 720px;
}

.map-page-heading h1 {
    margin: 0 0 1rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
}

.map-page-heading > div > p:not(.section-eyebrow) {
    margin: 0;
    color: #555b55;
    line-height: 1.8;
}

.map-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.map-panel,
.map-report-panel {
    background-color: var(--white);
    border: 1px solid rgba(15, 61, 46, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 46, 0.05);
}

.map-panel {
    padding: 1rem;
}

.report-map-placeholder {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            rgba(247, 245, 236, 0.9),
            rgba(247, 245, 236, 0.9)
        );
    border: 1px dashed rgba(15, 61, 46, 0.25);
    border-radius: 14px;
    text-align: center;
}

.map-placeholder-content {
    max-width: 430px;
    padding: 2rem;
}

.map-placeholder-content h2 {
    margin: 0 0 0.75rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.map-placeholder-content > p:last-child {
    margin: 0;
    color: #666c66;
    line-height: 1.7;
}

.map-report-panel {
    padding: 1.5rem;
}

.map-report-heading {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.map-report-heading h2 {
    margin: 0;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
}

.map-report-heading span {
    color: #777d77;
    font-size: 0.85rem;
}

.map-report-list {
    display: grid;
}

.map-report-card {
    padding: 1.25rem 0;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.map-report-card:first-child {
    border-top: 0;
}

.map-report-marker img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.map-report-card h3 {
    margin: 0.6rem 0 0.3rem;
    font-size: 1rem;
}

.map-report-card h3 a {
    color: var(--forest-deep);
}

.map-report-card h3 a:hover,
.map-report-card h3 a:focus-visible {
    color: var(--forest-green);
}

.map-report-card p {
    margin: 0;
    color: #666c66;
    font-size: 0.85rem;
}

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

    .report-map-placeholder {
        min-height: 430px;
    }
}

@media (max-width: 700px) {
    .map-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-map-placeholder {
        min-height: 340px;
    }
}

/* Keep Explore Map placeholder content centred */
.report-map-placeholder .map-placeholder-content {
    display: block;
    width: 100%;
    max-width: 430px;
    padding: 2rem;
    text-align: center;
}

.report-map-placeholder .map-placeholder-content h2 {
    width: auto;
    margin: 0 0 0.75rem;
    white-space: normal;
}

.report-map-placeholder .map-placeholder-content p {
    width: auto;
}

.report-map {
    width: 100%;
    min-height: 560px;
    border-radius: 14px;
}

@media (max-width: 900px) {
    .report-map {
        min-height: 430px;
    }
}

@media (max-width: 700px) {
    .report-map {
        min-height: 340px;
    }
}

.map-report-card {
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.map-report-card-selected {
    background: rgba(143, 190, 143, 0.18);
    border-left: 4px solid #166B3A;
    box-shadow:
        inset 0 0 0 1px rgba(22, 107, 58, 0.12);
}

.map-report-card-selected h3 {
    color: #166B3A;
}


/* Explore Map report list scrolling */

@media (min-width: 901px) {
    .map-report-panel {
        max-height: 620px;
        display: flex;
        flex-direction: column;
    }

    .map-report-heading {
        flex-shrink: 0;
    }

    .map-report-list {
        overflow-y: auto;
        min-height: 0;
        scrollbar-width: thin;
        scrollbar-color: #8FBE8F #F7F5EC;
    }

    .map-report-list::-webkit-scrollbar {
        width: 8px;
    }

    .map-report-list::-webkit-scrollbar-track {
        background: #F7F5EC;
        border-radius: 999px;
    }

    .map-report-list::-webkit-scrollbar-thumb {
        background: #8FBE8F;
        border-radius: 999px;
    }
}

/* Ensure filtered map reports are actually hidden */

.map-report-card[hidden],
#map-no-filter-results[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------
   Error pages
   --------------------------------------------------------- */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
    background: #F7F5EC;
}

.error-page__content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.error-page__image {
    display: block;
    width: min(280px, 70vw);
    height: auto;
    margin: 0 auto 2rem;
}

.error-page .eyebrow {
    margin-bottom: 0.75rem;
    color: #166B3A;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.error-page h1 {
    margin-bottom: 1rem;
}

.error-page__message {
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.error-page__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .error-page {
        min-height: 60vh;
        padding: 3rem 1rem;
    }

    .error-page__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-page__actions .button {
        width: 100%;
    }
}

/* ----------------------------------------
   Final mobile navigation and footer polish
---------------------------------------- */

.nav-toggle {
    display: none;
}

@media (max-width: 600px) {
    .header-inner {
        position: relative;
        min-height: 72px;
        padding: 0;
        flex-direction: row;
        gap: 1rem;
    }

    .site-logo {
        width: 112px;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: 1px solid rgba(15, 61, 46, 0.2);
        border-radius: 10px;
        cursor: pointer;
    }

    .nav-toggle-line {
        width: 21px;
        height: 2px;
        display: block;
        background-color: var(--forest-deep);
        border-radius: 999px;
    }

    .main-nav {
        position: absolute;
        z-index: 1000;
        top: calc(100% - 1px);
        left: 0;
        width: 100%;
        padding: 0.75rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--cream);
        border: 1px solid rgba(15, 61, 46, 0.12);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 14px 28px rgba(15, 61, 46, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .nav-logout-button {
        width: 100%;
        padding: 0.8rem 0.75rem;
        display: block;
        color: var(--forest-deep);
        font-size: 0.95rem;
        text-align: left;
        border-radius: 8px;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible,
    .nav-logout-button:hover,
    .nav-logout-button:focus-visible {
        background-color: rgba(143, 190, 143, 0.18);
        color: var(--forest-deep);
    }

    .nav-logout-form {
        width: 100%;
    }

    .footer-inner {
        padding: 2rem 0 1.5rem;
        gap: 1.75rem;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo {
        width: 54px;
        height: 54px;
    }

    .footer-brand h2 {
        font-size: 1.4rem;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .footer-links h3 {
        margin-bottom: 0.65rem;
        font-size: 0.78rem;
    }

    .footer-links a {
        margin-bottom: 0.45rem;
        font-size: 0.78rem;
    }

    .footer-bottom {
        padding: 0.9rem 0;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }
}

/* ----------------------------------------
   Dashboard visual polish
---------------------------------------- */

.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.dashboard-visibility {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.dashboard-visibility-public {
    background-color: #edf5ec;
    color: var(--forest-green);
}

.dashboard-visibility-private {
    background-color: #f1eee5;
    color: #665f50;
}

@media (max-width: 700px) {
    .dashboard-section {
        padding: 3.5rem 0 4rem;
    }

    .dashboard-stats {
        gap: 0.65rem;
    }

    .dashboard-stat {
        padding: 0.9rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .dashboard-stat strong {
        margin-bottom: 0;
        font-size: 1.9rem;
    }

    .dashboard-panel {
        padding: 1.5rem;
    }

    .dashboard-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-report-link {
        display: inline-block;
    }
}

/* ----------------------------------------
   Explore Map mobile report list polish
---------------------------------------- */

@media (max-width: 900px) {
    .map-report-panel {
        max-height: 560px;
        display: flex;
        flex-direction: column;
    }

    .map-report-heading {
        flex-shrink: 0;
    }

    .map-report-list {
        min-height: 0;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #8FBE8F #F7F5EC;
    }

    .map-report-list::-webkit-scrollbar {
        width: 8px;
    }

    .map-report-list::-webkit-scrollbar-track {
        background: #F7F5EC;
        border-radius: 999px;
    }

    .map-report-list::-webkit-scrollbar-thumb {
        background: #8FBE8F;
        border-radius: 999px;
    }
}

@media (max-width: 700px) {
    .map-report-panel {
        padding: 1.25rem;
    }

    .map-report-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .map-report-heading-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
    }

    .map-report-heading h2 {
        font-size: 1.6rem;
    }

    .map-filter-controls {
        width: 100%;
        display: grid;
        gap: 0.65rem;
    }

    .map-search-field,
    .map-status-field {
        width: 100%;
    }

    .map-search-field input,
    .map-status-field select {
        width: 100%;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        border: 1px solid rgba(15, 61, 46, 0.2);
        border-radius: 10px;
        background-color: var(--white);
        font: inherit;
        font-size: 0.85rem;
    }

    .map-filter-summary {
        font-size: 0.8rem;
    }

    .map-report-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.9rem;
    }

    .map-report-marker img {
        width: 36px;
        height: 36px;
    }

    .map-report-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 0.9rem;
    }
}

/* ----------------------------------------
   Community mobile card polish
---------------------------------------- */

@media (max-width: 600px) {
    .community-post-list {
        gap: 1rem;
    }

    .community-post-image {
        min-height: 0;
        height: 180px;
        max-height: 180px;
    }

    .community-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .community-post-content {
        padding: 1.35rem;
    }

    .community-post-label {
        margin-bottom: 0.5rem;
    }

    .community-post-content h2 {
        margin-bottom: 0.7rem;
        font-size: 1.5rem;
    }

    .community-post-preview {
        margin-bottom: 0.9rem;
        line-height: 1.6;
    }
}

/* ----------------------------------------
   Support page mobile polish
---------------------------------------- */

@media (max-width: 600px) {
    .support-donation-form .form-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .support-donation-form .form-group label {
        display: block;
        width: 100%;
    }

    .support-donation-form .form-group input {
        width: 100%;
        min-height: 44px;
        padding: 0.7rem 0.8rem;
        font: inherit;
    }

    .support-donation-form .button {
        width: 100%;
        min-height: 44px;
        margin-top: 0.5rem;
    }
}

/* ----------------------------------------
   Report form polish
---------------------------------------- */

.report-form {
    max-width: 900px;
}

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

.report-form .form-group > label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0F3D2E;
}

.report-form input[type="text"],
.report-form input[type="search"],
.report-form textarea,
.report-form select {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 61, 46, 0.25);
    border-radius: 10px;
    background-color: #fff;
    color: #1F1F1F;
    font: inherit;
}

.report-form textarea {
    min-height: 130px;
    resize: vertical;
}

.report-form input[type="text"]:focus,
.report-form input[type="search"]:focus,
.report-form textarea:focus,
.report-form select:focus {
    outline: 3px solid rgba(76, 175, 80, 0.2);
    border-color: #166B3A;
}

.report-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.65rem;
    border: 1px solid rgba(15, 61, 46, 0.18);
    border-radius: 10px;
    background-color: #fff;
    font: inherit;
}

.form-help-text,
.report-form small {
    display: block;
    margin-top: 0.55rem;
    color: #5f665f;
    font-size: 0.9rem;
    line-height: 1.55;
}

.field-error {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.location-picker-actions {
    margin: 1rem 0;
}

.what3words-entry {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.what3words-entry input {
    flex: 1;
    min-width: 0;
}

.location-details {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid rgba(15, 61, 46, 0.16);
    border-radius: 12px;
    background-color: #F7F5EC;
}

.location-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #0F3D2E;
}

.report-visibility-field {
    padding: 1rem;
    border: 1px solid rgba(15, 61, 46, 0.16);
    border-radius: 12px;
    background-color: #F7F5EC;
}

.report-visibility-field select {
    width: 100%;
}

@media (max-width: 600px) {
    .report-form .form-group {
        margin-bottom: 1.25rem;
    }

    .what3words-entry {
        flex-direction: column;
    }

    .what3words-entry .button,
    .location-picker-actions .button,
    .report-form .form-actions .button {
        width: 100%;
        min-height: 44px;
    }

    .location-details,
    .report-visibility-field {
        padding: 0.9rem;
    }
}

.detail-report-map {
    min-height: 320px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* ----------------------------------------
   Homepage live report map
----------------------------------------- */

.home-report-map {
    width: 100%;
    min-height: 420px;
    background-color: #e7ebe5;
}

.home-map-marker-content {
    width: 38px;
    height: 48px;
    display: block;
    object-fit: contain;
    transform-origin: bottom center;
    transition: transform 0.2s ease;
}

.home-map-marker-active {
    transform: scale(1.25);
}

.map-preview-footer {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background-color: var(--white);
    border-top: 1px solid rgba(15, 61, 46, 0.1);
}

.map-preview-footer strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--forest-deep);
}

.map-preview-footer p {
    margin: 0;
    color: #5a605a;
    font-size: 0.88rem;
    line-height: 1.5;
}

.map-preview-footer .button {
    flex-shrink: 0;
}

.home-reports-empty {
    padding: 1rem 0 0;
}

.home-reports-empty h4 {
    margin: 0 0 0.75rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.home-reports-empty > p:not(.section-eyebrow) {
    margin: 0 0 1rem;
    color: #5a605a;
    line-height: 1.7;
}

.home-map-unavailable,
.home-map-error {
    min-height: 420px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eef2e8;
    text-align: center;
}

.home-map-unavailable h3,
.home-map-error h3 {
    margin: 0 0 0.75rem;
    color: var(--forest-deep);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.home-map-unavailable > p:not(.section-eyebrow),
.home-map-error > p:not(.section-eyebrow) {
    max-width: 440px;
    margin: 0 0 1.25rem;
    color: #555b55;
    line-height: 1.7;
}

.report-preview h4 a {
    color: inherit;
}

.report-preview h4 a:hover,
.report-preview h4 a:focus-visible {
    color: var(--leaf-green);
}

@media (max-width: 850px) {
    .home-report-map,
    .home-map-unavailable,
    .home-map-error {
        min-height: 380px;
    }
}

@media (max-width: 520px) {
    .home-report-map,
    .home-map-unavailable,
    .home-map-error {
        min-height: 340px;
    }

    .map-preview-footer {
        padding: 1.25rem;
        align-items: stretch;
        flex-direction: column;
    }

    .map-preview-footer .button {
        width: 100%;
        text-align: center;
    }
}