body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

#usa-map {
    width: 100%;
    max-width: 1200px; /* Optional: constrain map width on very large screens */
    text-align: center; /* Center the SVG if its max-width is hit */
}

#usa-map svg {
    max-width: 90%; /* Make SVG responsive */
    height: auto;
    border: 1px solid #ccc; /* Optional: border around the SVG */
    background-color: #fdfdfd; /* Slightly off-white background for the SVG area */
}

#usa-map path {
    fill: lightblue;       /* Set the fill color to light blue */
    stroke: #666;          /* Add a subtle dark grey border to states */
    stroke-width: 0.5;     /* Make the border thin */
    cursor: pointer;
    transition: fill 0.2s ease-in-out;
}

#usa-map path:hover {
    fill: steelblue;       /* Change color on hover for feedback */
}

#usa-map path.selected {
    fill: #4682b4; /* A darker steelblue when selected */
    stroke: #333;
    stroke-width: 1.5;
}


#details-container {
    width: 80%;
    max-width: 960px;
    border: 1px solid #eee;
    padding: 15px;
    min-height: 200px; /* Ensure space even when empty */
    background-color: #f9f9f9;
}

#member-details h3,
#member-details h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.member-card {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}


#member-details p,
#member-details ul {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 0.9em;
}
#member-details ul {
    list-style: disc;
    margin-left: 20px;
}

#member-details li {
    margin-bottom: 3px;
}

.loading {
    text-align: center;
    font-style: italic;
    color: #555;
}

.error {
    color: red;
    font-weight: bold;
}

.error-details {
    color: #700;
    font-family: monospace;
    font-size: 0.8em;
    background-color: #fdd;
    padding: 5px;
    border-radius: 3px;
}
