:root {
  --tnp-dark: #020818;
  --tnp-dark-soft: #061028;
  --tnp-pink: #ff3b8d;
  --tnp-light: #98e2ff;
  --tnp-border: rgba(152, 226, 255, 0.6);
  --tnp-card-bg: rgba(2, 8, 24, 0.96);
  --tnp-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #18203a 0, #020818 52%, #000 100%);
  color: #fff;
}

/* Header */

.tnp-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(90deg, #020818, #060b1a 50%, #020818);
  border-bottom: 1px solid rgba(152, 226, 255, 0.25);
}

.tnp-map-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tnp-map-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tnp-map-logo span {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 18px;
}

.tnp-map-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

#city-select {
  background: var(--tnp-dark-soft);
  color: var(--tnp-light);
  border-radius: 999px;
  border: 1px solid var(--tnp-border);
  padding: 6px 12px;
  font-size: 14px;
}

.tnp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--tnp-light);
  cursor: pointer;
}

.tnp-toggle input {
  accent-color: var(--tnp-pink);
}

/* Layout */

.tnp-map-main {
  position: relative;
  width: 100vw;
  height: calc(100vh - 52px);
  overflow: hidden;
}

#tnp-map {
  width: 100%;
  height: 100%;
}

/* Legend */

.tnp-legend {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(2, 8, 24, 0.9);
  border-radius: 10px;
  border: 1px solid var(--tnp-border);
  padding: 8px 10px;
  box-shadow: var(--tnp-shadow);
  z-index: 2;
  max-width: 260px;
}

.tnp-legend-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tnp-legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.tnp-legend-row span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.dot-red {
  background: hsl(0, 90%, 52%);
}

.dot-orange {
  background: hsl(30, 100%, 52%);
}

.dot-yellow {
  background: hsl(60, 100%, 55%);
}

.dot-blue {
  background: hsl(210, 100%, 55%);
}

/* Info card */

.tnp-info-card {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  background: var(--tnp-card-bg);
  border-radius: 18px;
  border: 1px solid var(--tnp-pink);
  padding: 14px 16px 16px;
  box-shadow: var(--tnp-shadow);
  z-index: 3;
}

.tnp-info-card.hidden {
  display: none;
}

.tnp-info-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.tnp-info-card h2 {
  margin: 0 30px 4px 0;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tnp-info-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--tnp-light);
}

.tnp-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(152, 226, 255, 0.09);
  border: 1px solid rgba(152, 226, 255, 0.4);
  font-size: 12px;
}

.info-pill .icon {
  font-size: 13px;
}

.tnp-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--tnp-pink);
  background: rgba(255, 59, 141, 0.15);
  color: var(--tnp-pink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* Mobile tweaks */

@media (max-width: 600px) {
  .tnp-map-header {
    padding-inline: 10px;
  }

  .tnp-map-logo span {
    font-size: 16px;
  }

  .tnp-map-controls {
    gap: 8px;
  }
}



/* ============================
   HEADER (logo + brand)
   ============================ */
.site-header .nav-row{
  display:flex; align-items:center; gap:18px; padding:14px 24px;
}
.site-header .brand{
  display:flex; align-items:center; gap:10px;
  margin-right:auto;
  min-width:fit-content;
  white-space:nowrap;
}
.site-header .brand img{
  width:32px; height:32px; object-fit:contain; display:block;
}
.site-header .brand span{
  font-weight:700; font-size:1.25rem; line-height:1;
}

header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(10,15,31,.95), rgba(10,15,31,.80));
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(120%) blur(6px);
}

.site-header .nav-row{
  display:flex; align-items:center; gap:18px; padding:14px 24px;
}
.site-header .brand{
  display:flex; align-items:center; gap:10px;
  margin-right:auto;
  min-width:fit-content;
  white-space:nowrap;
}
.site-header .brand img{
  width:32px; height:32px; object-fit:contain; display:block;
}
.site-header .brand span{
  font-weight:700; font-size:1.25rem; line-height:1;
}


.tnp-map-search {
  margin-top: 8px;
}

.tnp-map-search input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
}

.tnp-map-search {
  margin-top: 8px;
  position: relative;
}

.tnp-map-search input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
}

/* suggestions container */
.map-search-results {
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid #eee;
}

/* individual suggestion “cards” */
.map-search-result {
  width: 100%;
  padding: 6px 8px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: block;
}

.map-search-result:hover {
  background: #f3f3f3;
}

.map-search-result-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.map-search-result-address {
  font-size: 0.78rem;
  color: #666;
}
