/* Legal pages, cookie bar and map consent (13 Oct 2026; includes/legal.php, assets/consent.js). Tonal surfaces only. */

/* Formatted text („Текст с форматиране“): one reading column of about 70 characters under the page title. */
.module-richtext { padding-block: 4px 72px; }
.richtext-body { max-width: 70ch; color: var(--ink); font-size: 16px; line-height: 1.75; }
.richtext-body > :first-child { margin-top: 0; }
.richtext-body h2 { margin: 52px 0 14px; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.2; text-wrap: balance; scroll-margin-top: calc(var(--sticky-offset, 102px) + 16px); }
.richtext-body h3 { margin: 32px 0 10px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; text-wrap: balance; scroll-margin-top: calc(var(--sticky-offset, 102px) + 16px); }
.richtext-body :is(p, li) { color: var(--ink); }
.richtext-body p { margin: 0; text-wrap: pretty; }
.richtext-body p + p { margin-top: 14px; }
.richtext-body :is(ul, ol) { margin: 14px 0; padding-left: 1.5em; }
.richtext-body :is(ul, ol) :is(ul, ol) { margin: 6px 0; }
.richtext-body ul { list-style: disc; }
.richtext-body ul ul { list-style: circle; }
.richtext-body ol { list-style: decimal; }
.richtext-body ol ol { list-style: lower-alpha; }
.richtext-body li { padding-left: .2em; }
.richtext-body li + li { margin-top: 6px; }
.richtext-body li::marker { color: var(--gold-icon, #956c24); }
.richtext-body :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 14px; }
.richtext-body strong { font-weight: 700; }
.richtext-body em { font-style: italic; }
.richtext-body a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-icon, #956c24); text-underline-offset: 3px; overflow-wrap: anywhere; }
.richtext-body a:hover { text-decoration-thickness: 2px; }
@media (min-width: 1800px) { .richtext-body { font-size: 18px; } }
@media (max-width: 600px) {
  .module-richtext { padding-block: 0 48px; }
  .richtext-body { font-size: 15px; line-height: 1.7; }
  .richtext-body h2 { margin-top: 40px; font-size: 25px; }
  .richtext-body h3 { margin-top: 26px; font-size: 19px; }
}

/* The line under the three forms. */
.form-legal-note { margin-top: 14px; max-width: 70ch; color: var(--muted); font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.form-legal-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-icon, #956c24); text-underline-offset: 3px; }
.form-legal-note a:hover { text-decoration-thickness: 2px; }
.booking-dialog .form-legal-note { margin-top: 16px; }
.contact-form .form-legal-note, .inline-reservation-form .form-legal-note { margin-top: 16px; }
@media (max-width: 800px) { .form-legal-note { font-size: 12px; } }

/* The legal row under every footer: Общи условия · Политика за поверителност · Политика за бисквитките · Настройки. */
.footer-bottom { flex-wrap: wrap; row-gap: 12px; }
.footer-legal ul { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin: 0; padding: 0; list-style: none; row-gap: 4px; }
.footer-legal li { display: inline-flex; align-items: center; }
.footer-legal li + li::before { content: '·'; content: '·' / ''; margin: 0 10px; color: #c1b6a8; }
.footer-legal a, .footer-legal-settings { color: inherit; font: inherit; text-decoration: none; }
.footer-legal-settings { padding: 0; border: 0; background: none; cursor: pointer; }
.footer-legal a:hover, .footer-legal-settings:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal [aria-current="page"] { color: var(--ivory); }
@media (max-width: 800px) {
  .footer-legal { flex-basis: 100%; }
  /* Phones: the links wrap as words of their own, without the dots (a dot would start a line). */
  .footer-legal ul { justify-content: flex-start; gap: 0 22px; }
  .footer-legal li + li::before { content: none; }
  .footer-legal a, .footer-legal-settings { display: inline-flex; align-items: center; min-height: 40px; }
}

/* The map before consent: the same space as the map, a short note, the button that loads it and the outside link. */
.map-consent { display: grid; place-items: center; padding: 28px; background: var(--canvas); text-align: center; }
.map-consent-inner { display: grid; justify-items: center; gap: 14px; max-width: 48ch; }
.map-consent-inner > .icon { width: 34px; height: 34px; color: var(--ink); }
.map-consent-inner p { color: var(--ink); font-size: 15px; line-height: 1.6; }
.map-consent-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.map-consent-actions .button { min-height: 48px; padding: 12px 24px; }
@media (max-width: 600px) { .map-consent { padding: 22px; } .map-consent-inner p { font-size: 14px; } .map-consent-actions { flex-direction: column; } }

/* The cookie bar (owner, 13 Oct 2026): a small card floating above everything in the bottom-left corner – light, with a
   gold border, so it stands out on the light pages and on the dark footer alike. The page keeps no room for it, so it
   never ends up in a strip under the footer; on phones it spans the width and lifts the back-to-top button. */
.consent-bar { position: fixed; z-index: 1000; left: 24px; bottom: 24px; width: min(440px, calc(100% - 48px)); transform: translateY(12px); opacity: 0; padding: 18px 20px; border: 1px solid var(--button-gold); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 12px 32px rgb(24 18 13 / 22%); transition: transform .28s var(--ease, ease), opacity .28s ease; }
.consent-bar.is-shown { transform: none; opacity: 1; }
.consent-bar[hidden] { display: none; }
.consent-bar-inner { display: grid; gap: 14px; }
.consent-bar-text { color: var(--ink); font-size: 13.5px; line-height: 1.55; text-wrap: pretty; }
.consent-bar-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-bar-text a:hover { text-decoration-thickness: 2px; }
.consent-bar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-bar .consent-choice { min-height: 42px; padding: 8px 14px; font-size: 13px; }
.consent-bar :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) {
  .consent-bar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 14px 16px; }
  .consent-bar-inner { gap: 10px; }
  .consent-bar-text { font-size: 13px; line-height: 1.5; }
  .consent-bar .consent-choice { min-height: 44px; padding: 8px 6px; white-space: nowrap; }
  html.consent-open .back-to-top { bottom: calc(var(--consent-height, 0px) + 24px); }
}
@media (max-width: 400px) { .consent-bar .consent-choice { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .consent-bar, .consent-bar.is-shown { transition: none; transform: none; }
}
