/* Consent bar + blocked-content placeholders.
 *
 * The bar is non-blocking: fixed to the bottom, the page stays fully usable
 * behind it, and it is only shown when the visitor has not chosen yet (the
 * server renders `hidden` once a decision exists; the footer "Cookie options"
 * link removes it again).
 */

.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: #fff;
  border-top: 1px solid #d8d8d8;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .12);
}
.consent-bar[hidden] { display: none; }
.consent-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}
.consent-bar-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}
.consent-bar-text a {
  color: #0078A8;
  text-decoration: underline;
  white-space: nowrap;
}
.consent-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 700px) {
  .consent-bar-inner { flex-direction: column; align-items: stretch; }
  .consent-bar-actions { justify-content: stretch; }
  .consent-bar-actions .btn { flex: 1 1 auto; }
}

/* Placeholder that replaces blocked third-party content (map, rating,
 * weather, video). Sits in the flow so layout does not jump when the real
 * content is loaded on the next view. */
.consent-placeholder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  margin: 6px 0;
  background: #f8f8f5;
  border: 1px solid #e2e2dd;
  border-radius: 3px;
  text-align: center;
}
.consent-placeholder-text {
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
.consent-placeholder-link {
  font-size: 13px;
  color: #0078A8;
  text-decoration: underline;
}

/* Blocked video: 16:9 still served from our own gdpr-thumb endpoint, with a
 * play button on top. Clicking grants consent and reloads; the server then
 * renders the real embed. Mirrors the site's existing .ratio-16-9 boxes. */
.eg-video {
  position: relative;
  display: block;
  margin: 1em 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
/* Fallback for engines without aspect-ratio (the ratio lives on the padding
 * box, exactly like the classic fluid-video trick). */
@supports not (aspect-ratio: 16 / 9) {
  .eg-video { height: 0; padding-top: 56.25%; }
}
.eg-video-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.eg-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .32);
  cursor: pointer;
  font: inherit;
  color: #fff;
}
.eg-video-play > span {
  display: inline-block;
  padding: 0.7em 1.4em;
  background: rgba(0, 0, 0, .65);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
.eg-video-play:hover > span { background: rgba(0, 0, 0, .85); }
.eg-video-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 6px 10px;
  text-align: right;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent);
}
.eg-video-note .consent-placeholder-link {
  color: #fff;
  font-size: 12px;
  opacity: .9;
}
