/* Calendar Page (web). DF Guide for Visual Style: Inter + Besley, charcoal and white, a coloured
   edge per calendar. Every rule is scoped to the calendar (.cp = standalone page, .cp-embed =
   inside the site layout), so nothing leaks into the theme. Layout follows the width of the
   calendar itself (container queries), which works both full-screen and inside a theme column. */
.cp, .cp-embed { --ink:#231F20; --bg:#f4f2ee; --card:#fff; --line:#e1ddd6; --muted:#6e6869; --red:#FF5447; --labs:#F7861E; }
.cp *, .cp-embed * { box-sizing:border-box; }
.cp h1, .cp h2, .cp p, .cp-embed h2, .cp-embed p { margin:0; padding:0; }

/* standalone page */
body.cp { margin:0; background:var(--bg); color:var(--ink); font-family:Inter, system-ui, sans-serif; font-size:15px; line-height:1.4; -webkit-font-smoothing:antialiased; }
.cp a { color:inherit; }
.cp-head { background:var(--ink); color:#fff; }
.cp-head-in { max-width:1600px; margin:0 auto; padding:28px 28px 30px; }
.cp-org { font-weight:800; font-size:13px; letter-spacing:.08em; text-transform:uppercase; text-decoration:none; opacity:.85; }
.cp-head h1 { font-weight:900; font-size:clamp(32px, 5vw, 56px); line-height:1; text-transform:uppercase; margin-top:8px; }
.cp-head .cp-intro { font-family:Besley, Georgia, serif; font-style:italic; font-weight:700; font-size:18px; color:#d6d0d1; margin-top:12px; max-width:760px; }
.cp .cp-bar { position:sticky; top:0; z-index:5; }
.cp-lock { max-width:560px; margin:0 auto; padding:48px 16px; }

/* inside the site layout */
.cp-embed { color:var(--ink); font-family:Inter, system-ui, sans-serif; font-size:15px; line-height:1.4; text-align:left; max-width:1600px; margin:0 auto; padding:48px 24px 64px; }
.cp-embed-head { margin:0 0 24px; }
.cp-embed .cp-embed-head h1 { font-family:Inter, system-ui, sans-serif; font-weight:900; font-size:clamp(32px, 5vw, 56px); line-height:1; text-transform:uppercase; letter-spacing:0; color:var(--ink); margin:0; padding:0; }
.cp-embed .cp-intro { font-family:Besley, Georgia, serif; font-style:italic; font-weight:700; font-size:20px; line-height:1.35; color:var(--muted); margin:12px 0 0; }
@media (max-width:700px) { .cp-embed { padding:28px 14px 40px; } }
/* [df_calendar] inside a normal page: no page margins of its own */
.cp-embed.cp-inline { max-width:none; padding:0; margin:10px 0 0; }
.cp-inline .cp-foot { margin-top:14px; }
.cp-one .cp-room { display:none; } /* one space only: its name on every booking adds nothing */
.cp-embed a { color:inherit; }

/* shared */
.cp-wrap { container-type:inline-size; background:var(--bg); }
.cp-embed .cp-wrap { border-radius:10px; overflow:hidden; }
.cp-bar { background:var(--bg); border-bottom:1px solid var(--line); }
.cp-bar-in { max-width:1600px; margin:0 auto; padding:14px 24px 8px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 20px; }
.cp-week b { font-weight:900; font-size:22px; text-transform:uppercase; margin-right:6px; }
.cp-week span { font-family:Besley, Georgia, serif; font-style:italic; font-weight:700; font-size:18px; color:var(--muted); }
.cp-nav { display:flex; gap:6px; }
.cp-wrap .cp-btn { display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:40px; padding:0 14px; border-radius:8px; background:#fff; border:1px solid var(--line); color:var(--ink); font-weight:800; font-size:16px; line-height:1; text-decoration:none; }
.cp-wrap .cp-btn:hover { border-color:var(--ink); }
.cp-wrap .cp-today.is-current { background:var(--ink); color:#fff; border-color:var(--ink); }
.cp-wrap .cp-link { gap:8px; margin-left:8px; font-size:14px; }
.cp-link svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }

.cp-filters { max-width:1600px; margin:0 auto; padding:2px 24px 12px; display:flex; flex-wrap:wrap; gap:8px 18px; }
.cp-floor { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.cp-floor-name { font-weight:800; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-right:2px; }
.cp-chipwrap { display:inline-flex; align-items:stretch; border:1px solid var(--line); border-radius:999px; background:#fff; overflow:hidden; }
.cp-wrap .cp-chip { display:inline-flex; align-items:center; gap:8px; height:34px; margin:0; padding:0 12px 0 10px; border:0; border-radius:0; background:transparent; font:600 14px Inter, sans-serif; color:var(--ink); cursor:pointer; text-transform:none; letter-spacing:0; box-shadow:none; }
.cp-chip i { width:12px; height:12px; border-radius:50%; background:var(--c); flex:0 0 12px; }
.cp-chip[aria-pressed="false"] { opacity:.45; }
.cp-chip[aria-pressed="false"] i { background:transparent; box-shadow:inset 0 0 0 2px var(--c); }
.cp-wrap .cp-map { display:inline-flex; align-items:center; justify-content:center; width:34px; border-left:1px solid var(--line); color:var(--ink); text-decoration:none; }
.cp-wrap .cp-map:hover { background:var(--bg); }
.cp-map svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.cp-wrap .cp-pin { display:inline-flex; color:var(--muted); }
.cp-pin svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.2; }

.cp-main { max-width:1600px; margin:0 auto; padding:20px 24px 28px; }
.cp-warn { background:#fff3cd; border-radius:8px; padding:10px 14px; margin-bottom:14px; font-weight:600; }
.cp-days { display:grid; gap:12px; }
.cp-days--7 { grid-template-columns:repeat(7, minmax(0, 1fr)); }
.cp-days--5 { grid-template-columns:repeat(5, minmax(0, 1fr)); }
.cp-day { min-width:0; }
.cp-wrap .cp-day h2 { font-family:Inter, sans-serif; font-weight:900; font-size:17px; line-height:1.2; text-transform:uppercase; letter-spacing:0; color:var(--ink); padding:6px 2px 10px; margin:0 0 10px; border-bottom:3px solid var(--ink); display:flex; align-items:baseline; gap:6px; }
.cp-day h2 em { margin-left:auto; font-style:normal; font-size:11px; letter-spacing:.06em; background:var(--ink); color:#fff; border-radius:4px; padding:2px 7px; }
.cp-wrap .cp-day.is-today h2 { border-bottom-color:var(--labs); }
.cp-day.is-past { opacity:.55; }
.cp-none { color:var(--muted); font-family:Besley, Georgia, serif; font-style:italic; font-weight:700; font-size:15px; padding:4px 2px; }

.cp-ev { background:var(--card); border-radius:8px; border-left:6px solid var(--c); padding:10px 12px 11px; margin-bottom:8px; box-shadow:0 1px 0 rgba(0,0,0,.04); overflow-wrap:break-word; hyphens:auto; }
.cp-ev.is-done { opacity:.5; }
.cp-ev.is-now { box-shadow:0 0 0 2px var(--ink); }
.cp-time { font-weight:800; font-size:13px; font-variant-numeric:tabular-nums; color:var(--muted); display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.cp-time b { white-space:nowrap; font-size:10px; letter-spacing:.06em; text-transform:uppercase; background:var(--red); color:#fff; border-radius:4px; padding:1px 6px; }
.cp-title { font-weight:700; font-size:15px; line-height:1.25; margin-top:3px; }
.cp-room { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; font-size:12px; font-weight:600; color:var(--muted); }
.cp-room i { width:8px; height:8px; border-radius:50%; background:var(--c); }
.cp-wrap .cp-room a { color:var(--muted); text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:2px; }
.cp-wrap .cp-room a:hover { color:var(--ink); }
.cp-badge { font-weight:800; font-size:11px; border-radius:4px; padding:1px 6px; background:var(--ink); color:#fff; }
.kind-tour_missing .cp-badge { background:var(--red); }
.cp-details { margin-top:8px; border-top:1px solid var(--line); padding-top:6px; }
.cp-details summary { cursor:pointer; font-weight:700; font-size:13px; }
.cp-desc { font-size:13px; line-height:1.45; margin-top:6px; color:#3b3637; }
.cp-desc p { margin-bottom:6px; }
.cp-wrap .cp-desc a { color:#0b5cad; }
.cp-foot { margin-top:22px; color:var(--muted); font-size:13px; }
.cp-ev.is-filtered { display:none; }

/* narrower: the week scrolls sideways */
@container (max-width:980px) {
  .cp-main { overflow-x:auto; }
  .cp-days--7 { grid-template-columns:repeat(7, 180px); }
  .cp-days--5 { grid-template-columns:repeat(5, 200px); }
}
/* phones: one day after another, from today */
@container (max-width:700px) {
  .cp-bar-in, .cp-filters, .cp-main { padding-left:14px; padding-right:14px; }
  .cp-main { overflow-x:visible; }
  .cp-days--7, .cp-days--5 { grid-template-columns:1fr; gap:22px; }
  .cp-day.is-past { display:none; }
  .cp-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:12px; }
  .cp-floor { flex-wrap:nowrap; }
  .cp-chipwrap { flex:0 0 auto; }
  .cp-week b { font-size:19px; }
}
@media (max-width:700px) {
  .cp-head-in { padding-left:16px; padding-right:16px; }
}
