/* 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; }

/* Both addresses: IPv4 and IPv6 side by side */
.ip-both { margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); text-align: left; }
.ipb-head { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.ipb-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; }
.ipb-row + .ipb-row { border-top: 1px solid var(--border); }
.ipb-label { font-weight: 700; font-size: .85rem; color: var(--muted); }
.ipb-value { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .98rem; color: var(--text); overflow-wrap: anywhere; }
.ipb-value.pending, .ipb-value.none { color: var(--muted); font-family: inherit; font-style: italic; }
.ipb-copy { margin: 0; padding: 4px 10px; font-size: .8rem; }
.ipb-copy.copied { background: var(--ok); color: #0f172a; }
.ipb-note { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.ipb-note.ok { color: #86efac; }
