/* ===== 17. Zero block: arbitrary admin code inside a neutral frame ===== */
.hm-zero { position: relative; }
.hm-zero__frame {
    width: 100%;
    max-width: calc(var(--hm-container) + var(--hm-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--hm-gutter);
}
.hm-zero--full .hm-zero__frame { max-width: none; padding-inline: 0; }

/* Whatever comes from the admin must not push the page wider than the viewport */
.hm-zero__content { position: relative; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.hm-zero__content :where(img, video, iframe, svg, canvas, table) { max-width: 100%; }
.hm-zero__content :where(img, video) { height: auto; }
.hm-zero__iframe { display: block; width: 100%; height: var(--hm-zero-h, 600px); border: 0; background: transparent; }

/* ---------- Demo content (mode «html»): booking widget mock, styled with theme tokens ---------- */
.hm-zero__bw {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: clamp(24px, 3.4vw, 44px);
    border-radius: var(--hm-radius-card);
    background: var(--hm-c-dark);
    color: var(--hm-c-on-dark);
}
.hm-zero__bw-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.hm-zero__bw-kicker {
    margin: 0;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hm-c-accent-2);
}
.hm-zero__bw-title { margin: 0; font-family: var(--hm-font-head); font-size: var(--hm-fs-h3); font-weight: var(--hm-head-weight); line-height: 1.2; }
.hm-zero__bw-perks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--hm-c-on-dark-muted); }
.hm-zero__bw-perks li { display: inline-flex; align-items: center; gap: 8px; }
.hm-zero__bw-perks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hm-c-accent); }

.hm-zero__bw-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1.2fr)) minmax(0, 1fr) auto;
    gap: 10px;
}
.hm-zero__bw-field {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 9px 14px 8px;
    border-radius: var(--hm-radius-field);
    background: var(--hm-c-bg);
    color: var(--hm-c-text);
    cursor: text;
}
.hm-zero__bw-field:focus-within { box-shadow: 0 0 0 2px var(--hm-c-accent); }
.hm-zero__bw-label { font-size: 11px; color: var(--hm-c-muted); }
.hm-zero__bw-input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}
.hm-zero__bw-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--hm-radius-field);
    background: var(--hm-c-accent);
    color: var(--hm-c-on-accent);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--hm-dur);
}
.hm-zero__bw-submit:hover { background: var(--hm-c-accent-hover); }
.hm-zero__bw-note { margin: 0; font-size: 12px; color: var(--hm-c-on-dark-muted); }

.hm-zero--full .hm-zero__bw { border-radius: 0; padding-inline: max(var(--hm-gutter), calc((100% - var(--hm-container)) / 2)); }

@media (max-width: 1023px) {
    .hm-zero__bw-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-zero__bw-submit { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .hm-zero__bw-form { grid-template-columns: minmax(0, 1fr); }
    .hm-zero__bw-title { font-size: 20px; }
}
