
.list-table tbody tr:nth-child(odd) td {
    /*background-color: #f0f0f0 !important;*/
}
.list-table th:nth-child(3),
.list-table td:nth-child(3),
.list-table th:nth-child(4),
.list-table td:nth-child(4) {
    text-align: center;
}
.list-table th:nth-child(2),
.list-table td:nth-child(2),
.list-table th:nth-child(1),
.list-table td:nth-child(1) {
   
}
.list-table th:nth-child(1),
.list-table td:nth-child(1) {
    min-width: 220px;
}
@media screen and (max-width: 1024px) {
    .list-wrapper {
        overflow-x: auto;
        width: 100%;
    }
    
}

.list-table {
  min-width: 1024px;
}
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 60px;               /* add a little more breathing room */
  padding: 10px 0;
  align-items: center;    /* ✅ center radios and selects together */
  font-size: 14px;
}

.filter-group,
.age-group-filter {
  display: flex;
  flex-direction: row;
  align-items: center;    /* ✅ keeps label + control aligned */
  gap: 6px;
}

.filter-group label,
.age-group-filter label {
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  line-height: 1.4;       /* match select’s vertical rhythm */
}

.filter-group select {
  flex: 0 0 auto;
  padding: 6px 8px;
  line-height: 1.4;       /* matches text */
  height: 34px;           /* force consistent height with radios */
  border: 1px solid #ccc;
  border-radius: 0;
  background-color: #fff;
  max-width: 160px;
}

.age-group-filter input[type="radio"] {
  margin: 0 4px 0 0;      /* tighten radios so they center nicely */
  vertical-align: middle;
}


select {
  appearance: none;       /* modern browsers */
  -webkit-appearance: none;
  -moz-appearance: none;
   /* Custom arrow */
   background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="%23004E74"><path d="M7 10l5 5 5-5z"/></svg>');
   background-repeat: no-repeat;
   background-position: right -30px center;
   background-size: 26px;
}

/* Fix for selected text overlapping arrow */
.filter-select option {
   padding-right: 50px; /* Ensures text inside options doesn’t touch the arrow */
}

/* Prevent rounded corners when clicked/focused */
.filter-select:focus,
.filter-select:active {
   border-radius: 0 !important;
   outline: none;
   border-color: #888; /* Optional: Change border color when focused */
}

/* For Firefox (prevents internal focus styles) */
.filter-select::-moz-focus-inner {
   border: 0;
   border-radius: 0;
}
   /* For Firefox (it doesn't fully support appearance: none) */
.filter-select::-moz-focus-inner {
   border: 0;
}

/* Ensure table header text is aligned to the top */
.list-table th {
   vertical-align: middle;
}
   
.list-table select{
   padding: 0 30px 0 10px;
    margin: 10px;
    height: 1.7em;
    width: calc(100% - 20px);
}

@media (min-width: 800px) {
   .filter-group {
       width: auto; /* Allows inputs to be side-by-side on wider screens */
   }
   
   select {
       max-width: 250px; /* Adjust max width as needed */
   }
}

@media (max-width: 799px) {
   .filter-container {
       display: flex; /* Show mobile filters */
   } 
}

.list-table {
    width: 100%;
    border-collapse: collapse;
}

.list-table tbody tr td {
    padding: 20px;
    border-bottom: 2px solid #004E74;
    color: #004E74;
}

.list-table th:nth-child(4),
.list-table td:nth-child(4) {
    /*white-space: nowrap; Prevents text from wrapping */
}

.list-table th,
.list-table td{
    min-width: 220px;
}

@media screen and (max-width: 1200px) {
    .aba-list-wrapper {
        overflow-x: auto;
    }
}
.list-table thead tr th {
    background-color: #004E74 !important;
    color: #FFF;
    padding: 20px 0 !important;
}


.zip-search-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin: 20px 0;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 4px;
    font-weight: 500;
}

.input-group input,
.input-group select {
    padding: 5px;
    min-width: 120px;
    max-width: 200px;
}

.zip-search-wrapper button {
    padding: 6px 12px !important;
    height: fit-content;
}


.zip-search-wrapper input[type="text"],
.zip-search-wrapper input[type="number"],
.zip-search-wrapper button {
    margin: 0;
    height: 2.5rem;
}

.list-wrapper {
    overflow-x: auto;
    width: 100%;
}

/* Optional: Add a horizontal scrollbar style */
.list-wrapper::-webkit-scrollbar {
    height: 10px;
}
.list-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.kp-map-controls {
    border-top: 1px solid #ddd;
    padding-top:30px;

}

.kp-map-two-column-layout {
    display: flex;
    flex-wrap: nowrap; /* 👈 force side-by-side unless media query overrides */
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .kp-agency-cards-column {
    width: 45%;
    min-width: 300px;
    max-width: 500px;
    overflow-y: auto;
    max-height: 650px;
    padding: 0 0 0 0;
    box-sizing: border-box;
  }
  
  .kp-map-column {
    flex-grow: 1;
    min-width: 0;
    max-height: 650px;
    box-sizing: border-box;
  }
  
  .kp-agency-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  
  .kp-agency-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding:0 1rem 1rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
  }

  .kp-agency-categories {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .kp-category-pill {
    background-color: #eef2f6;
    color: #004e74;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
  }

  .kp-agency-card {
    position: relative;
  }
  .kp-pin-number {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 36px;
  }
  .kp-pin-number svg {
    display: block;
  }
  
  .kp-tooltip-icon {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #006BA6;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color:#FFF;
  }
  
  .kp-tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #003B71;
    color: #fff;
    font-size: 12px;
    font-family: sans-serif;
    padding: 6px 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 6px;
    z-index: 999;
  
    display: block;
    max-width: 220px;
    width: max-content;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  
  
  .kp-tooltip-icon:hover::after,
  .kp-tooltip-icon:focus::after,
  .kp-tooltip-icon.active::after {
    opacity: 1;
    visibility: visible;
  }
  
  .kp-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
  }
  
  .kp-category-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .kp-card-directions,
.kp-directions {
  margin-top: 8px;
}

.kp-card-directions a,
.kp-directions a {
  color: #004e74;
  font-weight: 500;
  text-decoration: underline;
}

.kp-agency-card.highlight {
    outline: 2px solid #006BA6;
    outline-offset: -2px;
    box-shadow: 0 0 6px rgba(0, 107, 166, 0.6);
  }

  #kp-reset-filters {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.2;
    height: auto;
    display:block;
    margin: 1rem 0;
  }
    
  @media (max-width: 1024px) {

    .kp-map-two-column-layout {
      flex-direction: column;
      flex-direction: column-reverse; /* 👈 flips map to top, cards to bottom */
    }
  
    .kp-agency-cards-column,
    .kp-map-column {
        width: 100%;
      max-width: 100%;
      flex: 1 1 100%;
      margin: 0 0 20px 0;
      padding: 0;
    }    
  
  }
  
  #kp-agency-map { touch-action: pan-y; }

  /* Cards container should not cause “jump to keep viewport anchored” */
#kp-agency-cards-list {
  overflow-anchor: none;
}

/* Make sure nothing above creates a second scroll area */
.kp-cards-wrap,
#kp-agency-cards-list {
  overflow: visible;          /* avoid nested scrolling */
  position: static;           /* not fixed/sticky */
  max-height: none;
}

/* Touchpads/phones: allow page to scroll vertically */
#kp-agency-cards-list {
  touch-action: pan-y;
}

/* Optional: avoid browser smooth-scrolling fighting dynamic inserts */
html {
  scroll-behavior: auto;
}

.kp-provider-block { line-height: 1.35; }
.kp-prov-title { font-weight: 700; margin-bottom: 10px; line-height: 1em; font-size:1.15em;}
.kp-prov-title a{ font-weight: 700; }
.kp-provider-block a { text-decoration: none; }
.kp-prov-address, .kp-prov-phonefax, .kp-prov-age, .kp-prov-qoc, .kp-prov-pssr { margin: 4px 0 10px 0; font-size:1em; color: #004E74;}


.kp-list {
  font-size: 1em;
  text-align: left;
  margin: 0;
}

.kp-list li{
  padding:0;
  margin: 0 0 6px 0;
  line-height: 1em;
}

.kp-prov-cms{
  padding-top:2px;
}

.cms-headline{
  font-weight: 700;
  font-size: 1em;
  margin: 4px 0 10px 0;
  padding: 0;
  line-height: 1em;
}