.us-territory-map svg {
  width: 100%;
  max-width: 100%;
  margin: auto;
  display: block;
}
.e-n-tabs-heading {
    margin-top: -70px; z-index: 999;
}
.state {
  cursor: pointer;
  transition: fill 0.3s;
}

.state:hover {
  opacity: 0.8;
}

/* Tooltip */
.utm-tooltip {
  position: absolute;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  pointer-events: none;
  display: none;
  z-index: 1000;
}
.utm-tooltip strong {
  display: block;
  margin-bottom: 3px;
}

/* Modal */
.utm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.utm-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  max-width: 35%;
  /* border-radius: 8px; */
  position: relative;
}

.utm-close {
  position: absolute;
  top: 0px; right: 1%;
  font-size: 20px;
  cursor: pointer;
}

/* Franchisee card */
.franchisee-card {
  border-bottom: 1px solid #d9e3ec;
  /* background: #f9fbfc; */
  /* border-radius: 6px; */
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #222;
}

.franchisee-info {
  font-size: 100%;
  width: -webkit-fill-available;
}

.franchisee-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: x-large;
}

.franchisee-actions {
  text-align: left;
}

.franchisee-actions a {
  display: block;
  margin: 5px;
  text-decoration: none;
  background: #91B7CA;
  color: #2A2826;
  padding: 5% 40px;
  font-weight: 700;
  width: max-content;
  /* border-radius: 4px; */
}

/* Legend */
.utm-legend {
  display: none;
  margin: 15px auto;
  text-align: center;
  font-size: 14px;
}

.utm-legend .legend {
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.state-label {
  font-size: 10px;
  font-weight: bold;
  fill: #b3b3b3;
  text-anchor: middle;
  dominant-baseline: middle;
  display:none;
  pointer-events: none; /* doesn’t block hover/click */
}

.state.unavailable {
  cursor: not-allowed;
}

/* Popup scroll wrapper */
.utm-modal-body {
  max-height: 50vh;   /* never overflow screen */
  overflow: hidden;   /* default: no scroll */
}

.utm-modal-body.scrollable {
  overflow-y: auto;   /* enable scroll only when needed */
  padding-right: 10px; /* space for scrollbar */
}

.fa-solid{
  color: #536C79;
  margin-right: 12px;
}

@media (max-width: 1440px){
  .utm-modal-content{
    max-width: 70%;
    margin: 20% auto;
  }
}

@media (max-width: 1024px){
  .utm-modal-content{
    max-width: 70%;
    margin: 20% auto;
  }
     
}

@media (max-width: 768px){
.utm-modal-content{
  margin: 25% auto;
  max-width: 90%;
}
.utm-modal-body {
  overflow-x: hidden;
    overflow-y: auto !important;
}
}

@media (max-width: 550px){
.utm-modal-content{
  padding: 5px;
  max-width: 90%;
}
.franchisee-info{
  font-size: 100%;
}
.franchisee-actions a{
  padding: 7% 20%;
  font-size: 15px;
}
.franchisee-actions{
  font-size: 100%;
  width: max-content;
}
.franchisee-card{
  display: block;
}
}

/* Fade-in animation for state labels */
.state-label {
  font-size: 10px;
  font-weight: bold;
  fill: #444;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.state-label.fade-in {
  opacity: 1;
}
