/* ip.css – styles for the My IP tool (index.php) only */
.ip {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  word-break: break-all;
  margin: 16px 0 8px;
}

/* Two-column layout: IP card on the left, map on the right */
.ip-layout {
  width: 100%;
  max-width: 640px;
  display: grid;
  gap: 24px;
}
.ip-layout.has-map {
  max-width: 1100px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.ip-layout .card { max-width: none; }

.map-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 20px;
}
.map {
  flex: 1;
  min-height: 300px;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid var(--border);
}
/* Slightly dim the map so it sits better on the dark theme */
.map .leaflet-tile-pane { filter: brightness(.85) saturate(.9); }
.map .leaflet-control-attribution { font-size: 10px; }
.map-note {
  margin: 14px 0 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .ip-layout.has-map { grid-template-columns: 1fr; max-width: 640px; }
  .map { min-height: 260px; }
}

.lookup-other { margin: 20px 0 0; text-align: left; font-size: .85rem; }
.lookup-other a { color: var(--accent); text-decoration: none; }
.lookup-other a:hover { text-decoration: underline; }
