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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
    background: #fcfcfc;
    color: #2c3e50;
    line-height: 1.6;
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 1.5rem 0 0.5rem 0;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a2a3a;
    margin: 3rem 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e05c7a;
    display: inline-block;
}

p {
    color: #4a5a6a;
    max-width: 850px;
    margin: 0.5rem 0 1rem 0;
}

#hint {
    font-style: italic;
    color: #e05c7a;
    font-size: 0.9rem;
    margin: 0.2rem 0 1rem 0;
}

/* hard facts */
.facts {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin: 2rem 0 3rem 0;
    background: #f5f0ed;
    border-radius: 16px;
    padding: 2rem 1rem;
}

.facts div {
    text-align: center;
}

.facts h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1a2a3a;
}

.facts h3 span:last-child {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-left: 4px;
}

.facts p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

/* -- filters -- */
.filter-controls {
    display: flex;
    gap: 1.5rem;
    margin: 0.5rem 0 1.5rem 0;
    background: #f5f0ed;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: inline-flex;
}

.filter-controls label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #4a5a6a;
}

.filter-controls input[type="radio"] {
    accent-color: #e05c7a;
    width: 16px;
    height: 16px;
}

.filters {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 1rem 0 1.5rem 0;
    background: #f5f0ed;
    border-radius: 12px;
    padding: 1rem 2rem;
    max-width: 480px;
}

.filter-controls-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-controls-vertical b {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.filter-controls-vertical label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: #4a5a6a;
}

.filter-controls-vertical input[type="radio"] {
    accent-color: #e05c7a;
    width: 15px;
    height: 15px;
}

/* -- map layout -- */
.map {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f0ebe8;
    border-radius: 16px;
    padding: 1rem;
}

#vienna-map {
    width: 100%;
    max-width: 800px;
    height: 600px;
    background: #f0ebe8;
}

/* -- charts layout -- */
#breed-chart {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#breed-chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2a3a;
    margin-bottom: 0.5rem;
}

.capita,
.apartments,
.activity,
.socioeconomic {
    width: 100%;
    max-width: 932px;
    margin: 1rem auto 2rem auto;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0ebe8;
    display: flex;
    justify-content: center;
    align-items: center;
}

#capita-chart-svg,
#apartment-chart-svg,
#activity-chart-svg,
#socioeconomic-chart-svg {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    background: white;
    border-radius: 8px;
}

/* -- tooltip -- */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-weight: 400;
    backdrop-filter: blur(4px);
}

/* in case we need responsiveness*/
@media (max-width: 992px) {
    .capita,
    .apartments,
    .activity,
    .socioeconomic {
        max-width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .facts {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.5rem 0.5rem;
    }

    .facts h3 {
        font-size: 1.5rem;
    }

    .filters {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
        padding: 1rem;
    }

    .filter-controls {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 0.6rem 1rem;
        display: flex;
    }

    .capita,
    .apartments,
    .activity,
    .socioeconomic {
        padding: 0.5rem;
        max-width: 100%;
    }

    #vienna-map {
        height: 400px;
    }

    #breed-chart {
        max-width: 100%;
    }
}