/* Xyncema Commons — bright architectural. The floor plan is the centrepiece: walls are drawn in SVG,
   and every seat is a real button laid over the drawing, so its colour is its state. */

[data-theme="coworking"] body { background: var(--bg); color: var(--text); font-family: var(--font-body); }
.cm-wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.cm-muted { color: var(--muted); }
.cm-h1, .cm-h2, .cm-h3, .cm-h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.cm-h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.4rem); line-height: 1.05; }
.cm-h2 { font-size: clamp(1.45rem, 1.1rem + 1.35vw, 2.1rem); }
.cm-h3 { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); }
.cm-h4 { font-size: 0.95rem; }
.cm-eyebrow { font: 600 0.75rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-ink); margin: 0 0 0.9rem; }
.cm-lead { font-size: clamp(1rem, 0.97rem + 0.3vw, 1.15rem); line-height: 1.65; color: var(--muted); }

/* ---------- Header ---------- */
.cm-notice { background: var(--surface-2); color: var(--on-surface-2); font-size: 0.8125rem; line-height: 1.45; padding: 0.55rem 0; }
.cm-notice p { margin: 0; }
.cm-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 245, 242, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.cm-header__row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.cm-logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; margin-right: auto; letter-spacing: -0.02em; }
.cm-logo i { width: 1.5rem; height: 1.5rem; border: 2px solid var(--primary); border-radius: 5px; position: relative; flex: none; }
.cm-logo i::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--primary); transform: translateX(-50%); }
.cm-logo i::after { content: ""; position: absolute; left: 0; right: 50%; top: 50%; height: 2px; background: var(--primary); }
.cm-logo small { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--muted); letter-spacing: 0; }
.cm-nav { display: flex; gap: 1.4rem; }
.cm-nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.cm-nav a:hover { border-bottom-color: var(--primary); }
.cm-nav a[aria-current="page"] { color: var(--primary-ink); border-bottom-color: var(--primary); }
.cm-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; padding: 0.6rem; color: var(--text); cursor: pointer; }
.cm-toggle svg { width: 100%; height: 100%; }
.cm-mobile { display: none; flex-direction: column; padding-bottom: 1rem; }
.cm-mobile a { padding: 0.8rem 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.cm-mobile[data-open] { display: flex; }
@media (max-width: 900px) { .cm-nav, .cm-header .cm-btn { display: none; } .cm-toggle { display: block; } }

/* ---------- Buttons ---------- */
.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1.35rem; border-radius: var(--radius-btn); border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); font: 600 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.cm-btn:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.cm-btn--line { background: transparent; color: var(--text); border-color: var(--border); }
.cm-btn--line:hover { background: transparent; border-color: var(--text); }
.cm-btn svg { width: 1.05rem; height: 1.05rem; }
.cm-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary-ink); font-weight: 600; text-decoration: none; }
.cm-link:hover { text-decoration: underline; }
.cm-link svg { width: 1rem; height: 1rem; }

/* ---------- Sections ---------- */
.cm-section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.cm-section + .cm-section { border-top: 1px solid var(--border); }
.cm-section--tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cm-head { display: grid; gap: 0.85rem; margin-bottom: 2.25rem; max-width: 44rem; }

/* ---------- Hero ---------- */
.cm-hero { padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem) 0; }
.cm-hero__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.cm-hero h1 { max-width: 15ch; }
.cm-hero__copy { line-height: 1.7; color: var(--muted); margin: 0; }
.cm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.cm-hero__img { margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.cm-hero__img img { width: 100%; height: min(54vh, 480px); object-fit: cover; border-radius: calc(var(--radius) * 1.5); display: block; }
@media (max-width: 860px) { .cm-hero__top { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- Space cards ---------- */
.cm-spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cm-space { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.cm-space img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cm-space__body { padding: 1.1rem; display: grid; gap: 0.6rem; align-content: start; }
.cm-space h3 a { color: inherit; text-decoration: none; }
.cm-space h3 a:hover { color: var(--primary-ink); }
.cm-space p { margin: 0; color: var(--muted); font-size: 0.9125rem; line-height: 1.6; }
.cm-price { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--text); margin-top: auto; }
.cm-price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: var(--muted); margin-top: 0.15rem; }
.cm-tag { display: inline-block; font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.55rem; border-radius: 999px; background: rgba(107, 63, 160, 0.1); color: var(--primary-ink); justify-self: start; }
@media (max-width: 1000px) { .cm-spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cm-spaces { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Booking ---------- */
.cm-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.cm-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.cm-step { border: 0; margin: 0 0 1.75rem; padding: 0; }
.cm-step legend { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0.8rem; }
.cm-opts { display: grid; gap: 0.55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-opts label { display: grid; gap: 0.15rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 0.9rem; cursor: pointer; background: var(--bg); }
.cm-opts label:hover { border-color: var(--muted); }
.cm-opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.cm-opts label b { font-size: 0.9375rem; font-weight: 600; }
.cm-opts label span { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.cm-opts label:has(input:checked) { border-color: var(--primary); background: rgba(107, 63, 160, 0.07); box-shadow: inset 0 0 0 1px var(--primary); }
.cm-opts label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.cm-when { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.cm-days { display: flex; gap: 0.4rem; overflow-x: auto; padding: 5px 5px calc(5px + 0.3rem); margin: -5px -5px calc(-5px); scrollbar-width: thin; min-width: 0; }
.cm-day { flex: none; display: grid; gap: 0.1rem; justify-items: center; min-width: 3.6rem; padding: 0.55rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; color: var(--text); font: inherit; }
.cm-day small { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cm-day b { font-family: var(--font-heading); font-size: 1.05rem; }
.cm-day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cm-day[aria-pressed="true"] small { color: var(--on-primary); opacity: 0.85; }
.cm-stepper { display: inline-grid; grid-template-columns: 2.6rem 3rem 2.6rem; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.cm-stepper button { height: 2.6rem; border: 0; background: none; cursor: pointer; color: var(--text); display: grid; place-items: center; border-radius: 999px; }
.cm-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.cm-stepper button svg { width: 1rem; height: 1rem; }
.cm-stepper output { text-align: center; font-family: var(--font-heading); font-weight: 600; }
@media (max-width: 720px) { .cm-opts { grid-template-columns: minmax(0, 1fr); } .cm-when { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Floor plan ---------- */
.cm-planwrap { display: grid; gap: 0.75rem; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.8125rem; color: var(--muted); }
.cm-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cm-legend i { width: 0.9rem; height: 0.9rem; border-radius: 3px; border: 1.5px solid var(--primary); background: var(--surface); }
.cm-legend i.is-sel { background: var(--primary); }
.cm-legend i.is-off { border-color: var(--border); background: repeating-linear-gradient(45deg, #ECE9E3 0 3px, #F6F5F2 3px 6px); }
.cm-plan { position: relative; width: 100%; aspect-ratio: 1000 / 620; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cm-plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-plan__hits { position: absolute; inset: 0; }
.cm-seat { position: absolute; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--primary); border-radius: 6px; background: var(--surface); color: var(--primary-ink); font: 600 clamp(0.55rem, 0.4rem + 0.35vw, 0.8rem)/1.1 var(--font-body); cursor: pointer; text-align: center; transition: background-color .15s, color .15s; }
.cm-seat:hover:not(:disabled) { background: rgba(107, 63, 160, 0.12); }
.cm-seat[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.cm-seat:disabled { cursor: not-allowed; border-color: #D4D0C8; color: #8B8892; background: repeating-linear-gradient(45deg, #ECE9E3 0 4px, #F6F5F2 4px 8px); }
.cm-seat--room, .cm-seat--studio { border-radius: 10px; font-size: clamp(0.62rem, 0.45rem + 0.4vw, 0.9rem); }
.cm-seat span { display: block; padding: 0 0.2rem; }
.cm-seat small { display: block; font-weight: 500; font-size: 0.85em; opacity: 0.85; margin-top: 0.15rem; }
.cm-planlist { display: none; }
.cm-group { margin-top: 0.9rem; }
.cm-group h4 { margin: 0 0 0.5rem; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); }
.cm-group__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: 0.45rem; }
.cm-group__items--wide { grid-template-columns: minmax(0, 1fr); }
.cm-group .cm-seat { position: static; min-height: 2.9rem; padding: 0.45rem 0.6rem; font-size: 0.875rem; }
.cm-group__items--wide .cm-seat { justify-items: start; text-align: left; }
.cm-planmsg { font-size: 0.9125rem; line-height: 1.6; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: rgba(107, 63, 160, 0.07); border: 1px solid rgba(107, 63, 160, 0.25); margin: 0; }
.cm-planmsg--warn { background: rgba(179, 38, 30, 0.06); border-color: rgba(179, 38, 30, 0.3); }
@media (max-width: 720px) { .cm-plan__hits { display: none; } .cm-plan { display: none; } .cm-planlist { display: block; } .cm-legend { display: none; } }

/* ---------- Times ---------- */
.cm-times { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cm-time { min-height: 2.6rem; padding: 0 0.85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font: 600 0.875rem/1 var(--font-body); color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; }
.cm-time[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cm-time:disabled { cursor: not-allowed; color: #8B8892; text-decoration: line-through; background: repeating-linear-gradient(45deg, #ECE9E3 0 4px, #F6F5F2 4px 8px); }
.cm-durations { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }

/* ---------- Summary ---------- */
.cm-summary { position: sticky; top: 5.75rem; display: grid; gap: 1rem; }
.cm-sumlist { list-style: none; margin: 0; padding: 0; display: grid; }
.cm-sumlist li { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9125rem; line-height: 1.5; }
.cm-sumlist .cm-k { color: var(--muted); font-size: 0.8125rem; }
.cm-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; }
.cm-total b { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.cm-total span { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-ok { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.4; margin: 0 0 1rem; }
.cm-ok svg { width: 1.3rem; height: 1.3rem; color: var(--primary-ink); margin-top: 0.1rem; }
@media (max-width: 980px) { .cm-book { grid-template-columns: minmax(0, 1fr); } .cm-summary { position: static; } }

/* ---------- Included / rules ---------- */
.cm-incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cm-incl > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.5rem); }
.cm-incl ul { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.cm-incl li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; line-height: 1.55; font-size: 0.9375rem; }
.cm-yes li::before { content: "✓"; color: var(--primary-ink); font-weight: 700; }
.cm-no li::before { content: "✕"; color: var(--muted); font-weight: 700; }
.cm-rules { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.cm-rules img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.cm-rulelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cm-rulelist > div { border-top: 2px solid var(--primary); padding-top: 0.9rem; display: grid; gap: 0.35rem; }
.cm-rulelist p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.9375rem; }
@media (max-width: 860px) { .cm-incl, .cm-rules, .cm-rulelist { grid-template-columns: minmax(0, 1fr); } .cm-rules__media { max-width: 18rem; } }

/* ---------- Collection ---------- */
.cm-pagehead { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); border-bottom: 1px solid var(--border); }
.cm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.cm-chip { min-height: 2.6rem; padding: 0 1rem; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font: 500 0.875rem/1 var(--font-body); color: var(--text); cursor: pointer; }
.cm-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.cm-tablewrap { overflow-x: auto; min-width: 0; position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cm-table { width: 100%; border-collapse: collapse; font-size: 0.9125rem; min-width: 38rem; }
.cm-table th, .cm-table td { text-align: left; padding: 0.8rem 0.95rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.cm-table thead th { font: 600 0.75rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cm-table tbody tr:last-child th, .cm-table tbody tr:last-child td { border-bottom: 0; }
.cm-table tbody th a { color: var(--text); font-weight: 600; }

/* ---------- Detail ---------- */
.cm-dhead { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.25rem); }
.cm-crumb { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; }
.cm-crumb a { color: var(--muted); }
.cm-dhero { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: calc(var(--radius) * 1.5); margin-top: 1.75rem; }
.cm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.cm-aside { display: grid; gap: 1rem; position: sticky; top: 5.75rem; }
.cm-aside .cm-panel { display: grid; gap: 0.6rem; }
.cm-aside h3 { font: 600 0.75rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.cm-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; }
.cm-list li { padding: 0.8rem 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; line-height: 1.6; }
.cm-list li:last-child { border-bottom: 1px solid var(--border); }
.cm-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1.1rem; }
.cm-thumb { padding: 0; border: 1px solid var(--border); background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.cm-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cm-thumb:hover { border-color: var(--primary); }
@media (max-width: 940px) { .cm-cols { grid-template-columns: minmax(0, 1fr); } .cm-aside { position: static; } }
@media (max-width: 560px) { .cm-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.cm-faq details { border-top: 1px solid var(--border); }
.cm-faq details:last-of-type { border-bottom: 1px solid var(--border); }
.cm-faq summary { cursor: pointer; padding: 1.05rem 0; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; line-height: 1.45; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: "+"; color: var(--primary-ink); font-size: 1.2rem; line-height: 1; }
.cm-faq details[open] summary::after { content: "–"; }
.cm-faq p { margin: 0 0 1.15rem; color: var(--muted); line-height: 1.7; max-width: 46rem; }

/* ---------- Band + footer ---------- */
.cm-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.cm-band img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 800px) { .cm-band { grid-template-columns: minmax(0, 1fr); } }
.cm-footer { background: var(--surface-2); color: var(--on-surface-2); padding-block: clamp(2.5rem, 2rem + 3vw, 3.75rem) 2rem; }
.cm-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.cm-footer .cm-logo { color: var(--on-surface-2); }
.cm-footer .cm-logo i { border-color: var(--primary-on-dark); }
.cm-footer .cm-logo i::before, .cm-footer .cm-logo i::after { background: var(--primary-on-dark); }
.cm-footer .cm-logo small { color: var(--primary-on-dark); }
.cm-footer p { color: var(--on-surface-2); opacity: 0.82; line-height: 1.7; font-size: 0.9rem; margin: 0.8rem 0 0; }
.cm-footer h3 { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-on-dark); margin: 0 0 0.9rem; }
.cm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.cm-footer a { color: var(--on-surface-2); text-decoration: none; font-size: 0.9rem; }
.cm-footer a:hover { text-decoration: underline; }
.cm-footer__note { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid rgba(246, 245, 242, 0.18); font-size: 0.8125rem; line-height: 1.7; opacity: 0.75; }
.cm-footer .xy-attribution { opacity: 0.75; }
.cm-footer .xy-attribution a { text-decoration: underline; }
@media (max-width: 820px) { .cm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cm-footer__grid { grid-template-columns: minmax(0, 1fr); } }
