/* Spanish site (30 Nov 2026): exam-centre finder on centros-examen.html (list + simplified map of Spain with the Canary
   Islands in an inset), copied from the Polish WORD finder. Search and filter on the left, map on the right, map first on
   phones. Classes start with wd- (finder) and ce- (notes and link rows on centros-examen and centro-madrid). */
.wd-lead { margin-top: 12px; }
.wd { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.wd-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wd-search { max-width: none; }
.wd-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.wd-select { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.wd-select:focus-within { border-color: var(--blue); }
.wd-select > .ms { font-size: 19px; color: var(--muted); }
.wd-select select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; text-overflow: ellipsis; }
.wd-select .wd-chev { position: absolute; right: 10px; pointer-events: none; color: var(--muted); }
.wd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.wd-head b { font-size: 16px; font-weight: 600; color: var(--ink); }

.wd-list { position: relative; display: flex; flex-direction: column; gap: 12px; max-height: min(780px, calc(100vh - 120px)); overflow: auto; padding: 3px 8px 10px 3px; margin: -3px -8px 0 -3px; overscroll-behavior: contain; scrollbar-width: thin; }
.wd-card { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.wd-card:hover { border-color: #C9D6E6; }
.wd-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.wd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wd-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.wd-cat { flex: none; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-d); font-size: 12px; font-weight: 600; }
.wd-addr { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.wd-loc { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text); }
.wd-loc .ms { font-size: 17px; color: var(--muted); }
.wd-rates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.wd-rates span { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 12px; background: var(--soft); }
.wd-rates small { font-size: 12px; color: var(--muted); }
.wd-rates b { font-size: 18px; font-weight: 700; color: var(--ink); }
.wd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.wd-pin { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 500; font-size: 14px; }
.wd-pin .ms, .wd-go .ms { font-size: 18px; }
.wd-pin:hover { color: var(--blue-d); }
.wd-go { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-d); font-weight: 600; }
.wd-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.wd-soon { font-size: 13px; color: var(--muted); }

.wd-mapcol { position: sticky; top: 88px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wd-map { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #EAF3FC; }
.wd-map svg { display: block; width: 100%; height: auto; }
.wd-land { fill: #fff; stroke: #AFC6DF; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wd-sea { fill: #86AAD3; font-size: 15px; font-style: italic; letter-spacing: .04em; transition: opacity .2s; }
.wd-pins circle { fill: var(--blue); stroke: #fff; cursor: pointer; transition: opacity .2s, fill .15s; }
.wd-pins circle:hover { fill: var(--blue-d); }
.wd-pins circle.dim { opacity: .16; pointer-events: none; }
.wd-pins circle.on { fill: var(--navy); }
.wd-label { font-family: var(--font); font-weight: 600; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-linejoin: round; pointer-events: none; }
.wd-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 10px)); padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.wd-reset { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(20, 40, 80, .08); }
.wd-reset .ms { font-size: 18px; }
.wd-card[hidden], .wd-reset[hidden], .wd-tip[hidden], .wd-empty[hidden] { display: none; }
.wd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wd-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.wd-stats b { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.wd-stats b small { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--text); }
.wd-stats span { font-size: 12.5px; line-height: 1.35; color: var(--text); }
.wd-fine { margin-top: 18px; max-width: 760px; }

@media (max-width: 900px) {
  .wd { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wd-mapcol { display: contents; }
  .wd-map { order: -1; }
  .wd-stats { order: 1; }
  .wd-list { max-height: none; overflow: visible; padding: 0; margin: 0; }
  .wd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-map { border-radius: 20px; }
}

/* Spain additions */
.wd-top { align-items: flex-start; }
.wd-cat.wd-ol, .wd-cat.wd-jl { background: var(--soft); color: var(--text); }
.wd-cat.wd-ce { background: var(--navy); color: #fff; }
.wd-inset { fill: #F4F9FE; stroke: #AFC6DF; stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.wd-inset-t { fill: #86AAD3; font-size: 13px; font-weight: 500; transition: opacity .2s; }
.ce-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; max-width: 760px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.45; color: var(--text); }
.ce-note .ms { flex: none; font-size: 19px; color: var(--muted); }
.ce-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.ce-links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--blue-d); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.ce-links a:hover { border-color: var(--blue); }
.ce-links .ms { font-size: 18px; }
@media (max-width: 900px) {
  .wd-stats div { padding: 10px 12px; }
}
