html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

main.map {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.map path {
  fill: #cbd5e1;
  stroke: #f1f5f9;
  stroke-width: 0.75;
  cursor: pointer;
  transition: fill 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.map path:focus,
.map path:focus-visible {
  outline: none;
}

.map path:hover,
.map path.is-active {
  fill: #c8102e;
}

.map path:hover {
  transition-duration: 0s;
}

.map path.is-active {
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.28));
}

.county-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 40px));
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 6px, 0);
  transition:
    left 0.12s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.12s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.county-tooltip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.ct-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.ct-state {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.ct-services {
  padding: 2px 0;
}

.ct-svc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.84rem;
}

.ct-svc-row + .ct-svc-row {
  border-top: 1px solid #f1f5f9;
}

.ct-svc-num {
  flex-shrink: 0;
  width: 105px;
  padding-top: 1px;
  color: #c8102e;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.ct-svc-num:hover {
  text-decoration: underline;
}

.ct-svc-num[data-311="true"]::after {
  content: "311";
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  color: #fff;
  background: #c8102e;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.ct-svc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ct-svc-use {
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
}

.ct-svc-example {
  color: #000;
  font-size: 0.73rem;
  line-height: 1.45;
}

.ct-custom-select {
  position: relative;
  display: inline;
}

.ct-custom-select-btn {
  display: inline;
  padding: 0 14px 0 0;
  border-bottom: 1.5px solid #cbd5e1;
  color: #c8102e;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23C8102E'/%3E%3C/svg%3E") no-repeat right 2px center;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.ct-custom-select-btn:hover {
  border-bottom-color: #c8102e;
}

.ct-custom-select-drop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999999;
  display: none;
  min-width: 160px;
  max-height: 148px;
  margin-top: 2px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ct-custom-select-drop.is-open {
  display: block;
}

.ct-custom-select-drop::-webkit-scrollbar {
  width: 5px;
}

.ct-custom-select-drop::-webkit-scrollbar-track {
  background: #f8fafc;
}

.ct-custom-select-drop::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #c8102e;
}

.ct-custom-opt {
  display: block;
  padding: 6px 12px;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}

.ct-custom-opt:hover,
.ct-custom-opt.is-selected {
  color: #c8102e;
  background: #fef2f2;
}

.ct-custom-opt.is-selected {
  font-weight: 650;
}

.ct-disclaimer {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 0.66rem;
  line-height: 1.45;
  text-align: center;
}
