﻿html, body {
    height: 100%;
    margin: 0;
}

.main-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.campgrounds-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    height: 80vh;
}

.list-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    order: 2;
}

.map-col {
    position: relative;
    order: 1;
}

#map {
    width: 100%;
    height: 100%;
}

.list-header {
    flex: 0 0 auto;
}

.list-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

@media (max-width: 1199.98px) {
    .campgrounds-row {
        height: auto;
    }

    .map-col {
        height: 40vh;
    }

    .list-col {
        height: 60vh;
    }
}

@media (max-width: 576px) {
    .map-col {
        height: 30vh;
    }

    .list-col {
        height: 90vh;
    }
}

@media (min-width: 1200px) {
    .list-col {
        order: 1;
    }

    .map-col {
        order: 2;
    }
}

.back-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

    .back-link:hover {
        color: var(--brand-dark);
    }

.page-title {
    color: var(--brand);
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 0.15rem;
}

.page-subtitle {
    color: var(--muted-gray);
    font-size: 0.95rem;
}
