* { 
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Clean, Minimal Color Palette */
:root {
  --sp-primary: #003b5c;
  --sp-secondary: #1e5e7a;
  --sp-accent: #3498db;
  --sp-light: #fafbfc;
  --sp-muted: #6c757d;
  --sp-border: #e1e4e8;
  --sp-shadow: rgba(0, 59, 92, 0.08);
  --sp-red: #ef3340;
  --sp-blue-light: #99d6ea;
  --radius: 8px;
  --radius-lg: 12px;
}

/* Page header styling */
.text-primary { color: var(--sp-primary) !important; }

/* Hero Section - matching other pages */
#hero {
  background: var(--sp-primary);
  display: flex;
  justify-content: center;
  border-bottom: solid 10px #99d6ea;
  position: relative;
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  align-items: center;
  width: 85%;
  margin: 0 auto;
  padding: 0;
  gap: 2rem;
  max-width: 1800px;
  justify-content: space-between;
}

.hero-content-image {
  width: 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-content-image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.text-content {
  width: 45%;
  padding: 1rem 1rem 1rem 0;
  color: white;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 560px;
}

.text-content h1 {
  font-size: 5rem;
  font-weight: bold;
  margin: 0;
  letter-spacing: 2px;
  text-align: left;
  color: white;
  line-height: 1.1;
}

.text-content .subtext {
  font-size: 2rem;
  color: #99d6ea;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.text-content .divider {
  width: 60px;
  height: 4px;
  background: #ef3340;
  margin: 1rem 0 1.25rem 0;
  border-radius: 2px;
}

/* Page sections */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--sp-primary);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--sp-red);
  margin: 0.75rem auto 0;
}

.instruction-text {
  font-size: 0.9375rem;
  color: var(--sp-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Map section - Clean and Minimal */
.map-section {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px var(--sp-shadow), 0 0 0 1px var(--sp-border);
  overflow: hidden;
}

.map-header {
  background: white;
  color: var(--sp-primary);
  padding: 1.5rem 2rem;
  text-align: left;
  border-bottom: 1px solid var(--sp-border);
}

.map-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--sp-primary);
}

.map-header {
  border-bottom: none !important;
}


.map-subtitle {
  font-size: 1rem;
  margin: 0;
  color: var(--sp-muted);
  font-weight: 500;
}

.map-container {
  background: white;
  padding: 2rem;
}

/* Clean Region Key */
.region-key {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: white;
  border: 1px solid var(--sp-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
  max-width: 600px;
}

.region-key-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sp-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--sp-red);
  padding-bottom: 0.5rem;
}

.region-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.region-key-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.region-key-item strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.region-key-item span {
  font-size: 0.6875rem;
  color: var(--sp-muted);
  line-height: 1.3;
}

 svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}




path, polyline, polygon {
 opacity: 1;
}


.active { 
  opacity: 1 !important;
  stroke: var(--sp-primary) !important;
  stroke-width: 3 !important;
  filter: brightness(1.1);
}

/* Sidebar - Minimal Design */
.rep-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px var(--sp-shadow), 0 0 0 1px var(--sp-border);
  overflow: hidden;
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.sidebar-header {
  background: var(--sp-primary);
  padding: 1.5rem 2rem;
  text-align: left;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
  letter-spacing: -0.01em;
}

.rep-info-container {
  padding: 0;
}

.placeholder-content {
  padding: 3rem 2rem;
  text-align: center;
}

.placeholder-icon {
  color: var(--sp-muted);
  margin-bottom: 1rem;
  font-size: 2.5rem;
  opacity: 0.4;
}

.placeholder-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.placeholder-text {
  font-size: 0.9375rem;
  color: var(--sp-muted);
  line-height: 1.6;
  margin: 0;
}







#repsInfo  { 
    background: transparent;
    flex-direction: column;
    margin-top: 2rem;
    display: flex;
    width: 450px;
    opacity: 0;
    margin-bottom: 2rem;
    
}


#repsInfo.show { opacity: 1;  }

/* Clean Rep Card */
.rep-card {
  background: white;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.rep-card__header {
  padding: 2rem;
  background: var(--sp-light);
  border-bottom: 1px solid var(--sp-border);
}

.rep-card__title { 
  display: flex; 
  align-items: flex-start; 
  gap: 1rem; 
}

.rep-card__title-text { 
  flex: 1;
}

.rep-card__company {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--sp-primary);
  line-height: 1.3;
}

.rep-card__state {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rep-card__logo { 
  max-height: 60px; 
  width: auto; 
  border-radius: var(--radius);
  flex-shrink: 0;
}

.rep-card__logo--inline { 
  max-height: 50px; 
}

.rep-card__body { 
  display: flex; 
  flex-direction: column; 
  gap: 0; 
  padding: 2rem;
}

.rep-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.rep-card__contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sp-border);
}

.rep-card__contact-item:first-child {
  padding-top: 0;
}

.rep-card__contact-item:last-child {
  border-bottom: none;
}

.rep-card__contact-item strong {
  color: var(--sp-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rep-card__contact-item a {
  color: var(--sp-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.rep-card__contact-item a:hover {
  color: var(--sp-accent);
}

.rep-card__sp-section {
  background: var(--sp-primary);
  padding: 2rem;
  text-align: left;
  color: white;
  border-top: 3px solid var(--sp-accent);
  border-radius: var(--radius);
}

.rep-card__sp-brand { 
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.rep-card__manager { 
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Removed old icon styles - no longer needed */




.reps-container a {
  text-decoration: none;
  cursor: pointer;
  color: black;
  padding: .5rem;
  font-size: large;


 
}

.no-display {
 display: none!important;
 

}

.reps-container p {
  color: white;
  font-size: large;
  margin-top: .5rem;
  margin-bottom: .5rem;
}



#maps-container {
  margin-bottom: 0 !important;
  background: white;
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

#maps-container .row.justify-content-center {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

#maps-container .row.gx-4 {
  --bs-gutter-x: 2rem;
}




/* Simplified Map Colors - Override all regional colors */

/* Universal map state styling - overrides all specific regional colors */
svg#usrepsmap g[id] {
  fill: #e3e7eb !important;
  opacity: 1 !important;
  stroke-width: 1.5 !important;
  stroke: #8b95a1 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


/* Subtle region labels on the map */
.region-label-map {
  font-size: 10px;
  font-weight: 600;
  fill: #99a5b2;
  letter-spacing: 1.5px;
  opacity: 0.6;
  pointer-events: none;
  text-anchor: middle;
}

/* Hover state for all clickable states */
svg#usrepsmap g[id]:hover {
  fill: var(--sp-accent) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  stroke: var(--sp-primary) !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 4px 8px rgba(0, 59, 92, 0.15));
}

/* Active/clicked state */
svg#usrepsmap g[id].active {
  fill: var(--sp-primary) !important;
  opacity: 1 !important;
  stroke: var(--sp-red) !important;
  stroke-width: 2.5 !important;
  filter: drop-shadow(0 6px 12px rgba(0, 59, 92, 0.25));
}

/* Default text color for all state abbreviations */
svg#usrepsmap text,
svg#usrepsmap text tspan {
  fill: #495057 !important;
  color: #495057 !important;
}

/* White text on hover for state abbreviations - Higher specificity to override default */
svg#usrepsmap g[id]:hover text.cls-2,
svg#usrepsmap g[id]:hover text.cls-2 tspan,
svg#usrepsmap g[id]:hover text,
svg#usrepsmap g[id]:hover text tspan {
  fill: white !important;
  font-weight: bold !important;
  color: white !important;
}

/* White text on active/clicked state - MUST come after default text to override it */
/* Exclude cls-5 (city labels) from white text treatment */
svg#usrepsmap g[id].active text.cls-2,
svg#usrepsmap g[id].active text.cls-2 tspan,
svg#usrepsmap g[id].active text:not(.cls-5),
svg#usrepsmap g[id].active text:not(.cls-5) tspan {
  fill: white !important;
  font-weight: bold !important;
  color: white !important;
}

/* Additional specificity for active state text - targeting all possible text elements */
/* Exclude cls-5 (city labels) from white text treatment */
svg#usrepsmap g.active text:not(.cls-5),
svg#usrepsmap g.active text:not(.cls-5) tspan,
svg#usrepsmap g.active text.cls-2,
svg#usrepsmap g.active text.cls-2 tspan {
  fill: white !important;
  font-weight: bold !important;
  color: white !important;
}

/* Maximum specificity for active state text - using multiple approaches */
/* Exclude cls-5 (city labels) from white text treatment */
svg#usrepsmap g[id].active text:not(.cls-5),
svg#usrepsmap g[id].active text:not(.cls-5) tspan,
svg#usrepsmap g[id].active text.cls-2,
svg#usrepsmap g[id].active text.cls-2 tspan,
svg#usrepsmap g.active text:not(.cls-5),
svg#usrepsmap g.active text:not(.cls-5) tspan,
svg#usrepsmap g.active text.cls-2,
svg#usrepsmap g.active text.cls-2 tspan,
svg#usrepsmap g[id].active text[class*="cls"]:not(.cls-5),
svg#usrepsmap g[id].active text[class*="cls"]:not(.cls-5) tspan {
  fill: white !important;
  font-weight: bold !important;
  color: white !important;
}

/* Nuclear option - target ALL text elements within active states */
svg#usrepsmap g[id].active *,
svg#usrepsmap g.active * {
  fill: white !important;
  color: white !important;
}

/* But then reset non-text elements back to their proper colors */
svg#usrepsmap g[id].active path,
svg#usrepsmap g[id].active polygon,
svg#usrepsmap g[id].active polyline,
svg#usrepsmap g.active path,
svg#usrepsmap g.active polygon,
svg#usrepsmap g.active polyline {
  fill: var(--sp-primary) !important;
  stroke: var(--sp-accent) !important;
  stroke-width: 2 !important;
}

/* Reset city labels (cls-5) back to default color */
svg#usrepsmap g[id].active text.cls-5,
svg#usrepsmap g[id].active text.cls-5 tspan,
svg#usrepsmap g.active text.cls-5,
svg#usrepsmap g.active text.cls-5 tspan {
  fill: #495057 !important;
  color: #495057 !important;
  font-weight: normal !important;
}

/*Map region and state colors */



/*West Region */

/* Buche and Associates h1 background color  */

#Montana, #Wyoming, #Colorado, #New-Mexico, #El-paso {

  background-color: #02AAAA ;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

}

/* Buche and Associates */

g#Montana, g#Wyoming, g#Colorado, g#New-Mexico, g#El-paso 
{
  fill: #02AAAA ;
  opacity: .7;
  stroke-width: .8;
  stroke: black;

}

/*TRC Sales h1 background color*/
#Arizona, #LasVegas, #SouthCali, #Hawaii {
  background-color: #58207C ;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}


/*TRC Sales*/

g#Arizona, g#LasVegas,  g#SouthCali, g#Hawaii  {
  fill: #58207C;
  opacity: .7;
  stroke-width: .8;
  stroke: black;
}

/* GSC h1 background color*/

#Utah, #Idaho {
  background-color: #AA5F5D ;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

/* GSC */

g#Utah, g#Idaho {
  fill: #AA5F5D;
  opacity: .7;
  stroke-width: .8;
  stroke: black;
}

/*RJA h1 background color*/
#Nevada, #Cali, #Oregon, #Alaska, #Washington-State {
  background-color: #CF232B ;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}


/* RJA */

g#Nevada, g#Cali, g#Oregon, g#Alaska, g#Washington-State {
  fill: #CF232B;
  opacity: .7;
  stroke-width: .8;
  stroke: black;
}




g#Oregon:hover, 
g#Cali:hover,
g#SouthCali:hover,
g#Nevada:hover,
g#Idaho:hover,
g#Utah:hover,
g#Montana:hover,
g#Wyoming:hover,
g#New-Mexico:hover,
g#Colorado:hover,
g#El-paso:hover,
g#Arizona:hover,
g#LasVegas:hover,
g#Alaska:hover,
g#Hawaii:hover,
g#Washington-State:hover
{ 
  opacity: 1;
  cursor: pointer;
  stroke:  black;
  stroke-width: 1;
  stroke-miterlimit: 10;

 
 
}

/*Central Region*/

/*Gunder H1 background color */

#Texas, #Louisiana, #Arkansas, #Oklahoma {
  background-color: #AC91AC;
  color: white;
  padding-left: 1rem;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.4) 2.5px 2.5px 3.5px;
  /* Add a subtle border to highlight the South Central Region */
  border: 2px solid #8a698a;
}

/*Gunder - South Central Region*/

/* Create clean island-like separation for South Central Region */
g#Texas, g#Louisiana, g#Arkansas, g#Oklahoma {
  fill: #AC91AC;
  opacity: 0.7; /* Match other regions opacity */
  stroke-width: 0.8; /* Match other regions border width */
  stroke: black; /* Match other regions border color */
  /* Keep the translation to maintain the separation */
  transform: translate(50px, 100px); /* Shift right AND down to separate from northern states */
  z-index: 100; /* Ensure it appears above other elements */
  /* Removed filter to match other regions */
}

/*Kasco H1 background color */
#Nebraska, #Missouri, #Kansas, #South-Illinois 
{
  background-color: #9A1A4C ;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;


}


/*Kasco*/

g#Nebraska, g#Missouri, g#Kansas, g#South-Illinois {

  fill: #9A1A4C;
  opacity: .7;
  stroke-width: .8;
  stroke: black;

}


/* A to Z H1 background color */


#Illinois-North,  #Indiana {

  background-color: #999797;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

}


/* A to Z */

g#Illinois-North,  g#Indiana {

  fill: #999797;
  opacity: .7;
  stroke-width: .8;
  stroke: black;

}

/* Raley Brothers Inc H1 background color*/

#Michigan, #Toledo {

  background-color: #C7B180;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

}


/* Raley Brothers */

g#Michigan, g#Toledo {

  fill: #C7B180;
  opacity: .7;
  stroke-width: .8;
  stroke: black;
}


/* EP Sales Inc */

 g#South-Dakota, g#North-Dakota, g#Minnesota, g#Iowa, g#Wisconsin, g#MichiganUpper {

  fill: #92AED2;
  opacity: .7;
  stroke-width: .8;
  stroke: black;

}

/* EP Sales Inc H1 background color*/

#South-Dakota, #North-Dakota, #Minnesota, #Iowa, #Wisonsin, #MichiganUpper, #Wisconsin {
  background-color: #92AED2;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

}

/* Central Region On state Hover Effect */

/* Standard hover effect for South Central Region */
g#Texas:hover, g#Oklahoma:hover, g#Arkansas:hover, g#Louisiana:hover {
  opacity: 1;
  cursor: pointer;
  stroke: black;
  stroke-width: 2;
  stroke-miterlimit: 10;
}

/* Central Region hover effect (excluding South Central) */
g#Nebraska:hover,
g#South-Dakota:hover,
g#North-Dakota:hover,
g#Kansas:hover,
g#Minnesota:hover,
g#Iowa:hover,
g#Missouri:hover,
g#Wisconsin:hover,
g#Illinois-North:hover,
g#MichiganUpper:hover,
g#Indiana:hover,
g#Michigan:hover,
g#South-Illinois:hover {
  opacity: 1;
  cursor: pointer;
  stroke: black;
  stroke-width: 2;
  stroke-miterlimit: 10;
}







/*East Region*/




/*Stamberger H1 color background */

#Virginia, #Penn, #New-York, #Maryland, #Delaware, #NewJersey
{

  background-color: #6fbe59;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

}


/*Stamberger */

g#Virginia, g#Penn, g#New-York, g#Maryland, 
g#Delaware, g#NewJersey
{

 fill: #6fbe59;
 opacity: .7;
 stroke-width: .8;
 stroke:  black;

}


/*McAllister H1 background color*/


#North-Carl, #South-Carl, #Florida, #Alabama, #Missip, #Tenn, #Georgia {

  background-color: #e1d817;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

}


/*McAllister*/

g#North-Carl, g#South-Carl, g#Florida, g#Georgia, g#Alabama, g#Missip, g#Tenn
{

  fill: #ede65a;
  opacity: .7;
  stroke-width: .8;
  stroke:  black;
 }


 /*HBB Pro H1 background color*/

#West-Virginia, #Ohio, #Kentucky, #Pitt {

  background-color: #af1698;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}


/*HBB Pro*/

 g#West-Virginia, 
 g#Ohio, g#Kentucky, g#Pitt
{

  fill: #af1698;
  opacity: .7;
  stroke-width: .8;
  stroke:  black;
}



/*RTS H1 background color h1 */

#Conn, #Mass, #RhodeIsland, #NewHampshire, #Vermont, #Maine {
  background-color: #F7A121;
  color: white;
  padding-left: 1rem ;
  margin-top: 0rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}


/*RST*/

g#Conn, g#Mass, g#RhodeIsland,g#NewHampshire, g#Vermont, g#Maine
{

  fill: #F7A121;
  opacity: .7;
  stroke-width: .8;
  stroke:  black;
}


/* Easter Region On State Hover Effect*/

g#Missip:hover, 
g#Tenn:hover, 
g#Kentucky:hover, 
g#Alabama:hover, 
g#Ohio:hover, 
g#Georgia:hover, 
g#North-Carl:hover, 
g#Virginia:hover, 
g#South-Carl:hover, 
g#West-Virginia:hover, 
g#Penn:hover, 
g#New-York:hover, 
g#Maryland:hover, 
g#Delaware:hover,
g#NewJersey:hover,
g#Vermont:hover,
g#Pitt:hover,
g#Mass:hover,
g#Conn:hover,
g#NewHampshire:hover,
g#Maine:hover,
g#RhodeIsland:hover,
g#Florida:hover,
g#Toledo:hover {
  cursor: pointer;
  opacity: 1;
  stroke: black;
  stroke-width: 2;
  stroke-miterlimit: 10;
}

.title-nodisplay {
 display: none;
}







#rsm-link {
  font-size: small!important;
  margin-top: .5rem;
  font-weight: 800;
  
}

/* Legends map*/


/*Buche and Associates*/

#legend14 {
  background: #02AAAA ;
}


/*TRC Sales*/

#legend13{
  background: #58207C ;
}

/*RJA Group*/

#legend12 {
  background: #CF232B ;
}

/*GSC Inc*/

#legend11 {
  background: #AA5F5D; 
}

/*Greater NW Reps*/

#legend10 {
background: #ADC974; 
}

/*EP Sales Inc*/

#legend9 {
background: #92AED2;
}

/*Kasco*/

#legend8 {
background: #9A1A4C;
}

/*A to Z Sales and Marketing*/

#legend7 {
background: #999797;
}

/*Raley Brothers Inc.*/

#legend6 {
background: #C7B180;
}

/*Gunder Associates*/

#legend5 {
background: #AC91AC;
}

/*McAllister Group Inc*/


#legend4 {
background: #ede65a; 
}

/*HBB Pro Sales Group Inc*/

#legend3 {
background: #af1698;
}

/*Stamberger-Sender Associates Inc*/

#legend2 {
background: #6FBE59;
}

/*RST Thermal*/

#legend1 {
  background: #F7A121;
}
  
  .colour {
    height: 20px;
    width: 20px;
  }

/* New Legend Design */
.legend-section-bottom {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px var(--sp-shadow);
  border: 1px solid var(--sp-border);
}

.legend-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sp-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.legend-description {
  font-size: 1.1rem;
  color: var(--sp-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.region-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.region-group {
  background: var(--sp-light);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--sp-border);
}

.region-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-primary);
  margin-bottom: 1rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sp-accent);
}

.region-reps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid var(--sp-border);
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--sp-accent);
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.legend-label {
  font-weight: 600;
  color: var(--sp-primary);
  font-size: 0.95rem;
  line-height: 1.2;
  }

  table {
    border-spacing: 5px !important;
    border-collapse: inherit;
    padding: 0.25rem;
    margin-top: 10rem;
    margin-right: 0;
    margin-left: 1rem;
    font-size: 12px;
    height: 100%;
    border: 1px solid lightgray;
  
    border-radius: 8px;
  
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

#caption {
  padding-top: 0rem;
  padding-bottom: 0.75rem;
  padding-left: 0.25rem;
  font-weight: 500;
  color: black;
  text-align: left;
  caption-side: top;
  font-size: 15px;

}

/* Responsive Design */
@media (max-width: 1200px) {
  .region-groups {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  #Map-col {
    margin-bottom: 2rem;
  }
  
  .rep-sidebar {
    position: static;
  }
  
  .region-groups {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #hero { 
    padding: 2rem 1rem;
    margin-top: 100px; /* More space below mobile header */
  }
  
  .hero-content { 
    flex-direction: column; 
  }
  
  .hero-content-image { 
    width: 100%; 
    height: 320px; 
    justify-content: center; 
    margin-top: 1rem; 
  }
  
  .text-content { 
    text-align: center; 
    padding: 1rem; 
    width: 100%;
    align-items: center; 
  }
  
  .text-content h1 { 
    font-size: 2.6rem; 
    text-align: center; 
  }
  
  .text-content .subtext { 
    font-size: 1.3rem; 
    text-align: center; 
  }
  
  /* Hide map and sidebar on mobile - show only rep cards */
  #Map-col {
    display: none !important;
  }
  
  #display-rep {
    display: none !important;
  }
  
  /* Hide instruction section on mobile */
  #maps-container .row.justify-content-center.mb-5 {
    display: none !important;
  }
  
  #maps-container .section-title {
    display: none;
  }
  
  #maps-container .instruction-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .map-container {
    padding: 1rem;
  }
  
  .map-header {
    padding: 1rem;
  }
  
  .map-title {
    font-size: 1.25rem;
  }
  
  .legend-section-bottom {
    padding: 1.5rem;
  }
  
  .region-key {
    position: static;
    margin-bottom: 1rem;
    max-width: 100%;
  }
  
  .region-key-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .region-groups {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .region-group {
    padding: 1rem;
  }
  
  .rep-card {
    padding: 1rem;
  }
  
  .rep-card__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .rep-card__logo--inline {
    max-height: 32px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .instruction-text {
    font-size: 1.1rem;
  }
  
  /* Mobile-optimized rep cards */
  .rep-grid-item__coverage {
    padding: 1.25rem;
    background: var(--sp-light);
  }
  
  .coverage-label {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  /* Make state badges more prominent on mobile */
  .state-badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
    margin: 0.125rem 0;
  }
  
  .state-badge:hover,
  .state-badge:active {
    background-color: var(--sp-light);
    border-radius: 4px;
  }
  
  /* Add helper text for mobile users */
  .rep-grid-item__coverage::before {
    content: "Tap any state to view details";
    display: block;
    font-size: 0.6875rem;
    color: var(--sp-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  #hero {
    margin-top: 90px; /* More space for very small screens */
    padding: 1.5rem 1rem;
  }
  
  #maps-container {
    padding: 1rem !important;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .map-container {
    padding: 0.75rem;
  }
  
  .legend-section-bottom {
    padding: 1rem;
  }
  
  .legend-main-title {
    font-size: 1.5rem;
  }
  
  .region-title {
    font-size: 1.1rem;
  }
  
  .sidebar-header {
    padding: 1rem;
  }
  
  .placeholder-content {
    padding: 1.5rem 1rem;
  }
}

/* Clean Representative Grid */
.rep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.rep-grid-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 3px var(--sp-shadow), 0 0 0 1px var(--sp-border);
  transition: all 0.2s ease;
  cursor: pointer;
    text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.rep-grid-item:hover {
  box-shadow: 0 4px 12px rgba(0, 59, 92, 0.12), 0 0 0 1px var(--sp-primary);
  transform: translateY(-2px);
}

.rep-grid-item.active {
  box-shadow: 0 0 0 2px var(--sp-primary);
  background: var(--sp-light);
}

.rep-grid-item__logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: var(--radius);
  background: var(--sp-light);
  padding: 1.25rem;
}

.rep-grid-item__company {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--sp-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rep-grid-item__company:hover {
  color: var(--sp-accent);
  text-decoration: underline;
}

.rep-grid-item__coverage {
  font-size: 0.875rem;
  color: var(--sp-muted);
  margin: 0 0 1rem 0;
  line-height: 1.6;
  padding: 1rem;
  background: var(--sp-light);
  border-radius: var(--radius);
  border: 1px solid var(--sp-border);
  width: 100%;
  flex-grow: 1;
}

.coverage-label {
  font-weight: 600;
  color: var(--sp-primary);
    display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coverage-states {
    display: block;
    color: var(--sp-secondary);
    font-weight: 500;
    line-height: 1.8;
    font-size: 0.8125rem;
}

/* Clickable State Badges - Minimal text style */
.state-badge {
  display: inline;
  color: var(--sp-secondary);
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  position: relative;
}

.state-badge:hover {
  color: var(--sp-primary);
  text-decoration: underline;
  font-weight: 600;
}

.state-badge:active {
  color: var(--sp-accent);
}

.rep-grid-item__region {
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  background: var(--sp-primary);
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

/* Responsive grid adjustments */
@media (max-width: 992px) {
  .rep-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  #maps-container .row {
    max-width: 100%;
  }
  
  /* Show 2 cards per row on mobile */
  .rep-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0;
  }
  
  /* Simplified, compact card design */
  .rep-grid-item {
    padding: 1rem 0.75rem;
  }
  
  .rep-grid-item__logo {
    width: 80px;
    height: 80px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .rep-grid-item__company {
    font-size: 0.8125rem;
    font-weight: 700;
    min-height: auto;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
  
  .rep-grid-item__coverage {
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .coverage-label {
    font-size: 0.6875rem;
    margin-bottom: 0.5rem;
  }
  
  .state-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
  }
  
  .rep-grid-item__region {
    font-size: 0.625rem;
    padding: 0.375rem 0.5rem;
  }
  
  /* Remove helper text on compact cards */
  .rep-grid-item__coverage::before {
    display: none;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .instruction-text {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  /* Keep 2 columns even on very small screens */
  .rep-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
  
  .rep-grid-item {
    padding: 0.875rem 0.5rem;
  }
  
  .rep-grid-item__logo {
    width: 70px;
    height: 70px;
    padding: 0.375rem;
    margin-bottom: 0.5rem;
  }
  
  .rep-grid-item__company {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  .rep-grid-item__coverage {
    padding: 0.625rem 0.375rem;
  }
  
  .coverage-label {
    font-size: 0.625rem;
  }
  
  .state-badge {
    font-size: 0.6875rem;
  }
  
  .rep-grid-item__region {
    font-size: 0.5625rem;
    padding: 0.3125rem 0.375rem;
  }
}

/* Hidden elements for backwards compatibility */
.no-display { display: none !important; }
.title-nodisplay { display: none; }

/* Mobile Rep Details Modal */
.mobile-rep-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.mobile-rep-modal.active {
  display: block;
}

.mobile-rep-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.mobile-rep-modal__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-rep-modal__close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  background: var(--sp-primary);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  margin: 1rem 1rem 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.mobile-rep-modal__close:hover {
  background: var(--sp-accent);
  transform: scale(1.1);
}

.mobile-rep-modal__close:active {
  transform: scale(0.95);
}

.mobile-rep-details {
  padding: 1.5rem;
  clear: both;
}

/* Style the rep card inside modal */
.mobile-rep-details .rep-card {
  box-shadow: none;
  border-radius: 0;
}

.mobile-rep-details .rep-card__header {
  padding: 1.5rem 1rem;
}

.mobile-rep-details .rep-card__body {
  padding: 1.5rem 1rem;
}

.mobile-rep-details .rep-card__logo {
  max-height: 80px !important;
}


