body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

header, footer {
    background-color: #43a047;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 0.5rem;
    flex-shrink: 0;
}

header h1 {
    margin: 0;
}

#map {
    flex-grow: 1;
    overflow: hidden;
}

.pota-catalogue-marker {
    background: #ffebee;
    border: 2px solid #b71c1c;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    color: #b71c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pota-osm-cluster,
.pota-catalogue-cluster {
    align-items: center;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.pota-osm-cluster {
    background: rgba(67, 160, 71, 0.3);
    border: 2px solid #1b5e20;
}

.pota-catalogue-cluster {
    background: rgba(211, 47, 47, 0.28);
    border: 2px solid #b71c1c;
}

.pota-osm-cluster-count,
.pota-catalogue-cluster-count {
    align-items: center;
    border-radius: 50%;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    line-height: 1;
    min-width: 30px;
    padding: 0 4px;
}

.pota-osm-cluster-count {
    background: #2e7d32;
    border: 2px solid #e8f5e9;
}

.pota-catalogue-cluster-count {
    background: #c62828;
    border: 2px solid #ffebee;
}

.pota-catalogue-popup {
    max-width: 280px;
    text-align: center;
}

.pota-catalogue-popup code {
    overflow-wrap: anywhere;
}

.pota-osm-popup {
    max-width: 300px;
    text-align: center;
}

.pota-status-inactive,
.pota-status-mixed {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
}

.pota-status-inactive {
    background: #eeeeee;
    color: #424242;
}

.pota-status-mixed {
    background: #fff3cd;
    color: #6b4f00;
}

.pota-inactive-marker {
    align-items: center;
    background: #eeeeee;
    border: 2px solid #616161;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
}

.pota-inactive-marker-mixed {
    background: #fff3cd;
    border-color: #a66b00;
}

.pota-inactive-icon {
    color: #616161;
    font-size: 22px;
}

.pota-inactive-marker-mixed .pota-inactive-icon {
    color: #8a5a00;
}

.pota-status-legend {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
}

.pota-status-legend span {
    align-items: center;
    display: flex;
    gap: 0.35rem;
}

.pota-legend-swatch {
    border: 1px solid #424242;
    border-radius: 50%;
    display: inline-block;
    height: 0.7rem;
    width: 0.7rem;
}

.pota-legend-active {
    background: #43a047;
}

.pota-legend-inactive {
    background: #757575;
}

.pota-legend-unmapped {
    background: #b71c1c;
}

footer {
    font-size: 0.8rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
    width: 100%;
    min-height: 3em;
    line-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer p {
    margin: 0;
    padding: 0 0.5rem;
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    footer {
        font-size: 0.7rem;
        min-height: 2.6em;
    }
}
