/* Map container */
.sales-rep-map__svg svg {
    width: 100%;
    height: auto;
    max-width: 1000px;
}

/* State fills */
.sales-rep-map__svg svg path.has-rep {
    fill: #0064A8 !important;
    stroke: #ffffff !important;
    stroke-width: 2.5px !important;
    transition: fill 0.2s ease;
}

.sales-rep-map__svg svg path.no-rep {
    fill: #e0e0e0 !important;
    stroke: #d0d0d0 !important;
    stroke-width: 0.8px !important;
}

/* Background image pattern for south parts of Texas and Illinois when populated */
.sales-rep-map__svg svg path.has-rep[data-id="TX-S"],
.sales-rep-map__svg svg path.has-rep[data-id="IL-S"] {
    fill: url(#stripe-pattern) !important;
}

/* Hover only for states with reps (including patterned states) */
.sales-rep-map__svg svg path.has-rep:hover,
.sales-rep-map__svg svg path.has-rep[data-id="TX-S"]:hover,
.sales-rep-map__svg svg path.has-rep[data-id="IL-S"]:hover {
    fill: #333 !important;
}

/* Modal */
.rep-modal[hidden] {
    display: none;
}

.rep-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.rep-modal__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.rep-modal__content-inner {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.rep-modal__content-inner.fade-out {
    opacity: 0;
}

.rep-modal__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.rep-modal__nav.hidden {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.rep-modal__prev,
.rep-modal__next {
    color: #0064A8;
    text-decoration: none;
    font-size: 0.9rem;
}

.rep-modal__prev:hover,
.rep-modal__next:hover {
    text-decoration: underline;
}

.rep-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: none;
    background: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.rep-modal__close:hover {
    color: #000;
}

.rep-modal__photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.rep-modal__name {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
}

.rep-modal__title {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.95rem;
}

.rep-modal__quote {
    margin: 0 0 1rem;
    padding: 0;
    font-style: italic;
    color: #444;
}

.rep-modal__phone {
    display: inline-block;
    color: #0064A8;
    font-weight: 600;
    text-decoration: none;
}

.rep-modal__phone:hover {
    text-decoration: underline;
}