/* ── TYPOLOGY TOGGLE BUTTONS (below day/night) ── */
#typoToggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.typo-btn {
  position: relative;
  height: 28px;
  width: 26px;
  min-width: 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition:
    width 360ms cubic-bezier(.4, 0, .2, 1),
    background 360ms cubic-bezier(.4, 0, .2, 1),
    border-color 360ms cubic-bezier(.4, 0, .2, 1),
    box-shadow 360ms cubic-bezier(.4, 0, .2, 1);
}

.typo-btn:hover {
  width: var(--tw, 160px);
  background: #fff;
  border-color: rgba(30, 30, 40, .14);
  box-shadow: 0 2px 8px rgba(30, 30, 40, .18), 0 1px 3px rgba(30, 30, 40, .10);
}

.typo-btn.on:hover {
  background: #f4f0e8;
  border-color: rgba(30, 30, 40, .28);
  box-shadow: 0 2px 10px rgba(30, 30, 40, .22), 0 1px 4px rgba(30, 30, 40, .12);
}

.typo-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(30, 30, 40, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  color: rgba(30, 30, 40, .55);
  box-shadow: 0 1px 4px rgba(30, 30, 40, .18);
  transition:
    left 360ms cubic-bezier(.4, 0, .2, 1),
    background 320ms, border-color 320ms, color 320ms, box-shadow 320ms;
}

.typo-btn.on .typo-thumb {
  background: #1a1a22;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(26, 26, 34, .12), 0 1px 4px rgba(0, 0, 0, .22);
}

.typo-btn.on:hover .typo-thumb {
  left: calc(100% - 23px);
}

.typo-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: rgba(30, 30, 40, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: .03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms 110ms;
}

.typo-btn:hover .typo-label {
  opacity: 1;
}

.typo-btn.on:hover .typo-label {
  color: rgba(30, 30, 40, .88);
}

.typo-icon {
  display: block;
  flex-shrink: 0;
}

#s-dash .drCard {
  background: #fff;
  border-radius: 10px;
  padding: 11px;
  border: 1px solid rgba(30, 30, 40, .09);
  position: relative;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  margin-bottom: 7px
}

#s-dash .drCard:hover {
  border-color: rgba(30, 30, 40, .3)
}

#s-dash .drCard.dactive {
  border-color: #1a1a22;
  box-shadow: 0 3px 12px rgba(5, 5, 13, .1)
}

.drBadge {
  position: absolute;
  top: 9px;
  left: 9px;
  color: #fff;
  border-radius: 5px;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 10px
}

.drTitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: #1a1a22;
  margin-left: 26px;
  margin-bottom: 2px
}

.drCoords {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  color: rgba(30, 30, 40, .42);
  margin-bottom: 5px
}

.drTraffic {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: rgba(30, 30, 40, .62);
  margin-bottom: 6px
}

.drTraffic strong {
  color: #1a1a22;
  font-weight: 600
}

.drMetrics {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 7px
}

.drMR {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.drMN {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: rgba(30, 30, 40, .62)
}

.dbadge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px
}

.dbVL {
  background: #3288bd1a;
  color: #1f6595;
  border: 1px solid #3288bd33
}

.dbL {
  background: #99d5941a;
  color: #4a8a4a;
  border: 1px solid #99d59455
}

.dbM {
  background: #d6c95014;
  color: #7a6c20;
  border: 1px solid #c8c86055
}

.dbH {
  background: #fc8d591a;
  color: #b85a28;
  border: 1px solid #fc8d5955
}

.dbVH {
  background: #d53e4f1a;
  color: #a02838;
  border: 1px solid #d53e4f55
}

.dgmBtn {
  display: block;
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  background: transparent;
  border: 1.5px solid rgba(30, 30, 40, .14);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: #1a1a22;
  text-align: center;
  text-decoration: none;
  transition: all .18s
}

.dgmBtn:hover {
  border-color: rgba(30, 30, 40, .3);
  background: rgba(30, 30, 40, .04)
}

#dmapOverlays {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  width: max-content;
  max-width: 420px
}

#dmapBanner {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(30, 30, 40, .09);
  border-radius: 8px;
  padding: 6px 11px;
  display: none;
  align-items: flex-start;
  gap: 7px;
  backdrop-filter: blur(6px);
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(5, 5, 13, .06)
}

#dmapBanner .dico {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a1a22;
  color: #fff;
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center
}

#dmapBanner p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: rgba(30, 30, 40, .62);
  line-height: 1.5
}

#dstaleBanner {
  background: #fff3e8;
  border: 1px solid #e8a877;
  border-radius: 8px;
  padding: 6px 11px;
  display: none;
  align-items: center;
  gap: 7px;
  pointer-events: auto
}

#dstaleBanner span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: #9b4d10
}

#dapplyBtn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  background: var(--brand-mid);
  color: #fff;
  border: none;
  border-radius: var(--btn-capsule);
  padding: 4px 10px;
  cursor: pointer;
  transition: opacity .2s
}

#dapplyBtn:hover {
  opacity: .85
}

#dsearchWrap {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px
}

#dzoom-bar {
  position: absolute;
  bottom: 18px;
  left: 10px;
  z-index: 700;
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(30, 30, 40, .1);
  border-radius: 8px;
  padding: 5px 9px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(5, 5, 13, .07);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px
}

#dzoom-bar-lbl {
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--light);
  margin-right: 3px;
  white-space: nowrap
}

.dzpill {
  background: none;
  border: 1px solid rgba(30, 30, 40, .18);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  cursor: pointer;
  color: rgba(30, 30, 40, .55);
  transition: all .15s;
  white-space: nowrap
}

.dzpill:hover {
  border-color: #1a4f8a;
  color: #1a4f8a
}

.dzpill.active {
  background: #1a4f8a;
  border-color: #1a4f8a;
  color: #fff
}

.dzpill.loading {
  opacity: .6;
  cursor: wait
}

#dsearchBar {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(30, 30, 40, .14);
  border-radius: 999px;
  padding: 4px 4px 4px 11px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(5, 5, 13, .09);
  min-width: 280px
}

#dsearchIn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 4px 3px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: #1a1a22;
  outline: none
}

#dsearchIn::placeholder {
  color: rgba(30, 30, 40, .42)
}

#dsearchGo {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  background: var(--brand-mid);
  color: #fff;
  border: none;
  border-radius: var(--btn-capsule);
  padding: 5px 13px;
  cursor: pointer;
  transition: opacity .2s
}

#dsearchGo:hover {
  opacity: .85
}

#dsearchFeedback {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  padding: 3px 11px;
  border-radius: 999px;
  display: none;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(30, 30, 40, .09)
}

#doverlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 232, .92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 800;
  gap: 14px;
  backdrop-filter: blur(6px)
}

#doverlay h2 {
  font-family: 'Zilla Slab', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: #1a1a22
}

#doverlay>p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: rgba(30, 30, 40, .62);
  text-align: center;
  max-width: 260px;
  line-height: 1.6
}

#ddz {
  border: 1.5px dashed rgba(30, 30, 40, .14);
  border-radius: 11px;
  padding: 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  background: rgba(255, 255, 255, .4);
  transition: border-color .2s, background .2s
}

#ddz:hover,
#ddz.over {
  border-color: #1a1a22;
  background: rgba(255, 255, 255, .7)
}

#ddz strong {
  font-family: 'Zilla Slab', Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a22
}

#ddz span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  color: rgba(30, 30, 40, .42)
}

#ddzBtn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  background: var(--brand-mid);
  color: #fff;
  border: none;
  border-radius: var(--btn-capsule);
  padding: 8px 20px;
  cursor: pointer;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: opacity .2s;
  box-shadow: 0 2px 8px rgba(6, 74, 207, .25)
}

#ddzBtn:hover {
  opacity: .85
}

#dfileIn {
  display: none
}
