/* Allow full width usage */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

#page-content {
    max-width: 2000px;
    padding: 0;
    margin: 0;
}

/* Optional: remove default padding from any layout wrapper */
.container,
.wrapper,
.content,
.main,
.site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

#us-map {
    fill: #F1E7DE;
    stroke: #444;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.2s;
    padding-top: 20px;
}

@media (max-width: 850px) {
    #us-map,
    #state-name{
        display: none;
    }
}

#map-container {
    text-align: center;
}

#us-map path:hover {
    fill: #FEB8BA !important;
}

.southcentral {
    background-color: #5de4ff;
}

#us-map {
    width: 100%; !important;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

#state-info {
    text-align: center;
}

.state-selected {
    fill: #FEB8BA !important; /* blue highlight color */
}

#map-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

#map-container {
    flex: 3;
    min-width: 300px;
}

#rep-info {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 1400px) {
    #map-wrapper {
        flex-direction: column;
    }

    #map-container,
    #rep-info {
        width: 100%;
    }
}

#rep-info h2 {
    margin-top: 0;
    font-family: 'Anton', sans-serif;
}

#map-header h2 {
    margin-top: 0;
    font-family: 'Anton', sans-serif;
}

#rep-list div {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
}

.rep-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

.rep-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #eee;
    flex-shrink: 0;
}

.rep-details {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.dropdown-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 10px;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 150px;
}

.dropdown-group label {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.dropdown-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease-in-out;
}

.dropdown-group select:focus {
    border-color: #2a9fd6;
    outline: none;
}

@media (max-width: 500px) {
    .dropdown-group {
        min-width: 100%;
    }
}

.loader-wrapper {
    position: relative;
}

#page-content {
    position: relative;
}

/* The overlay */
.block-loader {
    position: absolute;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* The spinner */
.block-loader .spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.rep-details .button {
    display: inline-block;                  /* makes the padding work like a button */
    background: var(--e-global-color-secondary);
    color: black;
    padding: 8px 20px;                      /* slightly balanced top/bottom */
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;              /* smooth hover transition */
    text-decoration: none;                  /* removes underline */
}

.rep-details .button:hover {
    background: #f2f2f2;                    /* subtle hover color */
    border: 1px solid black;
    color: black;
}