/**
 * Place ID Finder — page styles on top of the shared ipk chrome (front-page.css).
 *
 * @package dev
 */

/* Compact hero for tool subpages */
.ipk-hero--tool { padding-bottom: 88px; }

/* Result cards appear after a place is chosen */
.ipk-place-result {
  margin-top: -58px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px;
  position: relative; z-index: 11;
}
.ipk-place-result[hidden] { display: none; }
.ipk-card--id .v code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem; background: rgba(20, 18, 11, 0.06);
  padding: 3px 8px; border-radius: 6px; overflow-wrap: anywhere;
}
.ipk-pr-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.ipk-copy {
  font: inherit; font-size: 0.85rem; cursor: pointer;
  background: var(--ipk-geo); color: #fff; border: 0; border-radius: 6px; padding: 7px 14px;
}
.ipk-copy:hover { background: var(--ipk-geo-dark); }
.ipk-copy.done { background: #1a9c5b; }
.ipk-pr-actions a { color: var(--ipk-geo); text-decoration: none; font-size: 0.85rem; }

/* Map panel: without a prior result row, pull the panel over the hero seam */
.ipk-place-result[hidden] + .ipk-map-panel { margin-top: -58px; position: relative; z-index: 11; }
.ipk-map-stage--finder { height: 520px; }
.ipk-map-stage--finder .ipk-livemap { position: absolute; inset: 0; display: none; }
.ipk-map-stage--finder .ipk-livemap.on { display: block; }

/* Google autocomplete dropdown: above the glass header, styled to match */
.pac-container {
  z-index: 70 !important;
  border-radius: 10px; border: 1px solid rgba(20, 18, 11, 0.12);
  box-shadow: 0 18px 50px rgba(10, 9, 4, 0.35);
  font-family: inherit; margin-top: 6px; overflow: hidden;
}
.pac-item { padding: 9px 14px; font-size: 0.9rem; cursor: pointer; }
.pac-item:hover, .pac-item-selected { background: rgba(14, 165, 233, 0.08); }

/* Ported infowindow bits (hidden template node, shown inside the map) */
#infowindow-content { display: none; }
#map-id-finder #infowindow-content { display: inline; }
#infowindow-content .title { font-weight: 700; }

/* SEO copy section */
.ipk-copytext { margin: 44px 0 0; max-width: 68ch; }
body.iplokus-front .ipk-copytext h2 { color: #171410; font-size: 1.2rem; margin: 26px 0 8px; font-weight: 400; letter-spacing: -0.3px; }
body.iplokus-front .ipk-copytext h3 { color: #171410; font-size: 1rem; margin: 18px 0 6px; font-weight: 400; }
.ipk-copytext p, .ipk-copytext li { font-size: 0.95rem; }
.ipk-copytext ol, .ipk-copytext ul { padding-left: 22px; margin: 0 0 12px; }
.ipk-copytext a { color: var(--ipk-geo); }
.ipk-copytext code { background: rgba(20, 18, 11, 0.06); padding: 1px 6px; border-radius: 5px; }

@media (max-width: 700px) {
  .ipk-place-result { grid-template-columns: 1fr; margin-top: -48px; }
  .ipk-map-stage--finder { height: 60vh; }
}

/* Lookup page: status/error note */
.ipk-lookup-note {
  margin: -46px 0 14px; position: relative; z-index: 11;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--ipk-line);
  border-radius: var(--ipk-radius); padding: 12px 16px; font-size: 0.92rem;
}
.ipk-lookup-note[hidden] { display: none; }
.ipk-lookup-note a { color: var(--ipk-geo); }
.ipk-lookup-note:not([hidden]) + .ipk-place-result { margin-top: 14px; }
.ipk-lookup-note:not([hidden]) ~ .ipk-map-panel { margin-top: 16px; }

/* ── Readability fix (2026-07-05): tool RESULT cards are dynamic output, not
   hero furniture — solid white, no hero overlap, no glass. Overrides the
   glass/overlap rules above (later in cascade, same specificity). ── */
.ipk-place-result {
  margin-top: 20px;
  align-items: start;
}
.ipk-place-result .ipk-card {
  background: var(--ipk-card);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--ipk-line);
  box-shadow: 0 6px 18px rgba(24, 20, 8, 0.07);
}
.ipk-place-result .ipk-card .v { font-size: 1.12rem; }
.ipk-pr-actions { margin-top: 12px; }
.ipk-pr-actions span { font-size: 0.78rem; color: var(--ipk-muted); }
.ipk-lookup-note { margin: 20px 0 0; }
@media (max-width: 700px) {
  .ipk-place-result { margin-top: 16px; }
}
