/* Place card: floating panel on desktop (408 px), sheet on phone (see phone.css). */
.facts__lang { display: block; margin-top: 2px; font-size: 12px; color: var(--bhm-ink-3); }
.card { position: absolute; right: 16px; top: 16px; bottom: 16px; z-index: 40; width: var(--bhm-card-w); display: flex; flex-direction: column; background: var(--bhm-card); border-radius: var(--bhm-r-panel); box-shadow: var(--bhm-shadow-panel); overflow: hidden; }
.card__handle { display: none; }
.card__body { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 16px; }
.card__head { display: flex; align-items: flex-start; gap: 12px; }
.card__logo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.card__titles { flex-grow: 1; min-width: 0; }
.card__org { font-size: 13px; color: var(--bhm-ink-2); }
.card__title { margin: 2px 0 0; font-size: var(--bhm-fs-h2); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; outline: none; }
.card__close { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--bhm-tint); display: flex; align-items: center; justify-content: center; }

.banner { border-radius: 14px; display: flex; }
.banner--retired { padding: 14px 16px; background: var(--bhm-retired-bg); flex-direction: column; gap: 6px; }
.banner--confirm { padding: 12px 14px; border: 1px dashed var(--bhm-confirm-line); background: var(--bhm-confirm-bg); gap: 10px; align-items: flex-start; }
.banner--confirm .icon-confirm { margin-top: 1px; }
.banner__title { font-size: 15px; font-weight: 600; }
.banner__title--confirm { font-size: 14px; color: var(--bhm-confirm-ink); }
.banner__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: #3A3833; }
.banner__text--confirm { margin-top: 2px; line-height: 1.45; color: #4A3514; }

.plaque-row { display: flex; align-items: stretch; gap: 10px; }
.plaque { flex-grow: 1; padding: 11px 14px 10px; border: 1px solid #D9D3C7; border-radius: var(--bhm-r-plaque); background: #FDFCFA; box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 4px #ECE7DE; }
.plaque__address { font-family: var(--bhm-plaque); font-size: var(--bhm-fs-plaque); line-height: 1.15; }
.plaque__district { margin-top: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bhm-ink-3); }
.plaque-km { width: 76px; flex-shrink: 0; border-radius: var(--bhm-r-plaque); background: var(--bhm-tint); display: flex; align-items: center; justify-content: center; font-family: var(--bhm-mono); font-size: 13px; font-weight: 500; }

.switch { display: flex; flex-direction: column; gap: 8px; }
.switch__label { font-size: 13px; font-weight: 600; color: #3A3833; }
.switch__list { display: flex; flex-direction: column; gap: 6px; }
.switch__item { min-height: 44px; padding: 8px 12px; display: flex; align-items: center; border: 1px solid var(--bhm-field); border-radius: 12px; background: var(--bhm-card); color: var(--bhm-ink); font-size: 14px; font-weight: 500; text-align: left; }
.switch__item[aria-selected="true"] { border-color: var(--bhm-ink); background: var(--bhm-ink); color: #FFFFFF; }

.action { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: #F8F6F1; }
.action__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.action__mode { font-size: 12.5px; font-weight: 600; color: #3A3833; }
.action__booking { font-size: 12px; padding: 2px 8px; border-radius: var(--bhm-r-pill); background: var(--bhm-card); border: 1px solid var(--bhm-line); color: #3A3833; }
.action__title { margin-top: -4px; font-size: var(--bhm-fs-title); font-weight: 600; line-height: 1.3; }
.action__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.item { padding: 6px 10px; border-radius: 10px; background: var(--bhm-card); border: 1px solid var(--bhm-line); font-size: 13.5px; }
.facts { margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; line-height: 1.4; }
.facts dt { color: var(--bhm-ink-3); }
.facts dd { margin: 0; }
.facts__missing { font-weight: 600; color: var(--bhm-hours-missing); }
.action__next { padding-top: 12px; border-top: 1px solid var(--bhm-line); }
.action__next p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }

.review { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--bhm-line); border-radius: 16px; }
.review__title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.review__date { font-weight: 500; }
.review__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--bhm-ink-2); text-wrap: pretty; }
.review__links { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.review__source { align-self: flex-start; color: var(--bhm-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.review__until { color: var(--bhm-ink-3); }
.card__lang { margin: 0; font-size: 12.5px; color: var(--bhm-ink-3); }

.card__foot { padding: 14px 22px 16px; border-top: 1px solid #EFEBE3; display: flex; flex-direction: column; gap: 10px; background: var(--bhm-card); }
.card__cta { height: 48px; border-radius: 14px; font-size: 15px; }
.card__secondary { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card__more { height: 38px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; }
.card__report { margin-left: auto; min-width: 0; height: 38px; padding: 0 2px; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--bhm-ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.card__report-text { overflow: hidden; text-overflow: ellipsis; }
.card__report svg { flex-shrink: 0; }

/* Colour emoji fonts differ in height between systems; fixed line heights keep rows as designed. */
.switch__item { line-height: 20px; }
.item { line-height: 18px; }
.action__meta, .action__mode, .action__booking { line-height: 16px; }

/* The host venue's hours from Guia Barcelona (containers in markets, Punts Verds…): three lines, then "see full". */
.host-hours { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.host-hours__label { font-size: 12.5px; color: var(--bhm-ink-3); }
.host-hours__text { margin: 0; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.host-hours[data-open="true"] .host-hours__text { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.host-hours__toggle { min-height: 32px; padding: 0; border: 0; background: none; color: var(--bhm-ink); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.host-hours__source, .review__guia { font-size: 12.5px; color: var(--bhm-ink-3); }
.review__guia { display: inline-flex; align-items: center; min-height: 32px; }

/* Quoted official conditions (giving blood): the source's words, its owner and date. */
.quote { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.quote__text { margin: 0; padding: 10px 12px; border-left: 3px solid var(--bhm-line); background: var(--bhm-card); font-size: 14px; line-height: 1.45; }
.quote__source { font-size: 12.5px; color: var(--bhm-ink-3); }
.quote__source a { color: inherit; }
.facts__dates { font-weight: 600; }

/* Place photo (place_photos.py): 16:9 on the card; on a phone sheet in peek and half, a 96 px strip instead. */
.card__photo { margin: -4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.card__photo-card, .card__photo-strip { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--bhm-tint); }
.card__photo-card { aspect-ratio: 16 / 9; }
.card__photo-strip { display: none; height: 96px; }
.card__photo-caption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card__photo-note { font-size: 12.5px; color: var(--bhm-ink-2); }
.card__photo-credit { display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--bhm-mono); font-size: 11px; color: #625D55; }
.card__photo-credit a { color: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__photo-credit a:focus-visible { outline: 2px solid var(--bhm-ink); outline-offset: 2px; }
.card__photo-licence { flex-shrink: 0; text-decoration: none; }
.card__photo-mapillary { flex-shrink: 0; padding: 1px 5px; border-radius: 4px; background: #05CB63; color: #FFFFFF; font-family: var(--bhm-sans, inherit); font-weight: 600; }

/* Automatic translation of a source fact: quiet, with the original one tap away. */
.auto-tr { display: block; margin-top: 3px; font-size: 12px; color: var(--bhm-ink-3); }
.auto-tr__toggle { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; min-height: 24px; }
.auto-tr__original { display: block; margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--bhm-line); color: var(--bhm-ink-2); font-style: italic; }
.auto-tr__original span { display: block; }
