/* The selected place's card: stay price, rules, sign plates, operator price list, facts. */

.card-hint { padding: 12px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
/* Head: title | sign post centred in its own column. The close button sits in the
   card corner so it does not push the sign to the edge. */
.card-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding-right: 30px; }
.card-head.has-sign { grid-template-columns: minmax(0, 1fr) clamp(96px, 36%, 140px); column-gap: 8px; }
.card-head .sign-post { justify-self: center; }
.card-head [data-action="close"] { position: absolute; top: 10px; right: 10px; }
.card-title { min-width: 0; }
.card h2 { margin: 8px 0 0; font-size: 20px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.card-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px 2px; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* price of the chosen stay */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 12px 8px; border-radius: 9px; background: var(--soft); }
.quote-class { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.quote-class i { flex: none; display: inline-block; width: 12px; height: 12px; margin-top: -2px; border-radius: 3px; }
.quote-value { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.quote-value.is-blocked { font-size: 18px; color: var(--status-banned); }
.quote-value.is-unknown { font-size: 18px; }
.quote-value.is-permit { font-size: 18px; color: var(--muted); }
.quote-note { grid-column: 1 / -1; font-size: 12.5px; }

.rules-sentence { margin: 0; font-size: 15px; font-weight: 600; }
.rules-change { margin: -6px 0 0; color: var(--muted); font-size: 13px; }

/* Sign post in the card head: the blue P with additional plates below, as on the street */
.sign-post { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 2px; }
.sign-post .parking-sign { width: 34px; height: 34px; }
.sign-plate { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 62px; padding: 4px 8px 2px; border: 2px solid var(--sign-ink); border-radius: 5px; background: var(--sign-plate); color: var(--sign-ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.plate-kind { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plate-limit { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 800; }
.plate-times { display: flex; flex-direction: column; align-items: center; font-size: 13px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; }
.plate-times .is-sunday { color: var(--sign-red); }
.sign-caption { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }

/* operator price list */
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-table th { padding: 9px 0 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.price-table td { padding: 4px 0 2px; border-top: 1px solid var(--line); vertical-align: top; }
.price-table .price-cell { padding-left: 10px; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.price-table tr.is-current td { background: var(--soft); }
.price-table tr.is-current td:first-child { padding-left: 8px; box-shadow: inset 3px 0 0 var(--accent); }
.price-table tr.is-current .price-cell { padding-right: 6px; }
.card .source-note { margin-top: 6px; }

/* facts from the data */
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.flag { display: inline-block; margin-left: 4px; padding: 1px 6px 0; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.flag.is-now { border-color: var(--status-banned); background: var(--status-banned); color: #fff; }

.card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.card-links a { color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }
