/* Tema das páginas públicas (marcação /, /m/…, /eventos e /e/…). Aplica-se só a <body class="public-booking">:
   a Gestão não carrega este ficheiro. Fontes alojadas na própria app (public/fonts, licença SIL OFL 1.1). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2?v=5d669bd785) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2?v=5d669bd785) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/playfair-display-latin-wght-normal.woff2?v=5d669bd785) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/playfair-display-latin-ext-wght-normal.woff2?v=5d669bd785) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body.public-booking {
  --bg: #faf8f3; --surface: #ffffff; --surface-2: #f6f3ec;
  --text: #181d2e; --muted: #50596a; --faint: #5f6676;
  --border: rgba(24,29,46,0.12); --border-strong: rgba(24,29,46,0.24);
  --primary: #000064; --primary-hover: #17176e; --on-primary: #ffffff;
  --primary-soft: #fff6df; --chart: #9b711d; --gold: #9b711d;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 16px; --radius-lg: 20px; --header-bg: rgba(255,255,255,0.92);
  /* Tema claro também com o sistema em modo escuro (campos e barras de deslocamento) */
  color-scheme: light;
}
body.public-booking :is(h1, h2, h3, .site-header .brand) { font-family: 'Playfair Display', Georgia, serif; letter-spacing: 0; }
body.public-booking .site-header .brand { font-weight: 700; font-size: 1.35rem; color: var(--text); text-decoration: none; }
body.public-booking .site-header .brand-mark { display: none; }
body.public-booking :is(.btn, .chip) { border-radius: 999px; min-height: 44px; }
body.public-booking :is(.option.selected, .chip.selected, .edition-row.selected, .edition.selected, .quick-card.selected) {
  background: var(--primary-soft) !important; border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold);
  /* o texto da escolha fica legível sobre o fundo claro (antes era branco sobre a cor principal) */
  color: var(--text);
}
body.public-booking .day.available.selected { background: var(--primary); color: var(--on-primary); }
body.public-booking :where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Visto no item escolhido (o estado também vai em aria-pressed / aria-current para leitores de ecrã) */
body.public-booking :is(.option, .edition).selected { position: relative; }
body.public-booking .option.selected::after {
  content: '✓'; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
}
body.public-booking .chip.selected::before { content: '✓'; font-weight: 700; color: var(--gold); }
body.public-booking .edition.selected { padding-right: 34px; }
body.public-booking .edition.selected::after {
  content: '✓'; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
body.public-booking .calendar .day.selected { position: relative; }
body.public-booking .calendar .day.selected::after {
  content: '✓'; position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
}
