/* MUN stays reusable; all Auxilium visual overrides live in the theme. */
.mc-banner,.mc-dialog,.mc-embed,.mc-policy {
    --mc-primary: #b63c45;
    --mc-primary-light: #f0989f;
    --mc-accent: #f0989f;
    --mc-surface: #282c30;
    --mc-border: #555a60;
    --mc-text: #f3f1ed;
    --mc-muted: #b9bdc1;
    --mc-bg: #202326;
    --mc-radius: 18px;
    font-family: Manrope,sans-serif;
    color-scheme: dark;
}
.mc-banner__inner { border-top-width: 2px; box-shadow: 0 18px 48px #0006; font-size: 16px; }
.mc-banner__title,.mc-dialog__head h2 { color: var(--mc-text); font-family: var(--serif,serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.mc-banner__text a,.mc-dialog__policy a,.mc-cat__more summary,.mc-embed__open { color: var(--mc-accent); }
.mc-banner__close,.mc-dialog__close,.mc-cat__label,.mc-embed__title { color: var(--mc-text); }
.mc-btn { border-radius: 8px; min-height: 48px; font-size: 16px; line-height: 1.4; }
.mc-btn--solid { color: #fff; }
.mc-btn--solid:hover { background: #8e2931; border-color: #8e2931; color: #fff; }
.mc-btn--ghost,.mc-btn--link { color: var(--mc-text); }
.mc-btn--ghost { border-color: var(--mc-border); }
.mc-btn--ghost:hover { background: var(--mc-surface); border-color: var(--mc-accent); }
.mc-btn--link:hover { color: var(--mc-accent); }
.mc-dialog { box-shadow: 0 24px 64px #0008; }
.mc-dialog::backdrop { background: #111315c9; }
.mc-dialog__form { padding: 24px; }
.mc-dialog__intro,.mc-cat__desc,.mc-cat__more,.mc-dialog__policy,.mc-embed__text,.mc-embed__open { font-size: 16px; line-height: 1.65; }
.mc-cat__label small { display: block; font-size: 14px; }
.mc-cat__more ul { padding-left: 18px; }
.mc-policy__table { max-width: 100%; overflow-x: auto; }
.mc-policy table { width: 100%; color: var(--mc-text); font-size: 16px; line-height: 1.65; }
.mc-policy th { background: var(--mc-surface); color: var(--mc-text); }
.mc-policy td { color: var(--mc-muted); }
.mc-policy th,.mc-policy td { padding: 16px; border-color: var(--mc-border); }
.mc-policy code { color: var(--mc-text); overflow-wrap: anywhere; white-space: normal; font-size: 14px; }
.cookie-status { margin: 24px 0; padding: 24px; background: #202326; border: 1px solid #555a60; border-radius: 12px; }
.cookie-status strong { color: #f3f1ed; }
.cookie-status p { margin: 0; }
.cookie-status p+p,.cookie-status button { margin-top: 12px; }
.privacy-contact { font-style: normal; line-height: 1.9; }
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 22px; border-top: 1px solid #ffffff20; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #b9bdc1; text-underline-offset: 4px; }
.footer-legal a:hover,.footer-legal a:focus-visible { color: #f3f1ed; text-decoration: underline; }
.agency-map-link { display: block; margin-top: 28px; overflow: hidden; border: 1px solid #555a60; border-radius: 12px; }
.agency-map-link img { display: block; width: 100%; height: 190px; object-fit: cover; }
.agency-map-caption { display: flex; align-items: center; gap: 16px; padding: 20px; background: #282c30; }
.agency-map-caption>span { display: grid; gap: 5px; }
.agency-map-caption small { font-size: 14px; line-height: 1.5; color: #b9bdc1; }
.agency-map-caption svg { width: 24px; flex: none; color: #f0989f; }
.agency-map-link:hover { border-color: #f0989f; }
@media (max-width: 1100px) {
    .mc-banner__inner {
        max-height: calc(100dvh - 110px - var(--wp-admin--admin-bar--height, 0px) - 1rem);
        overflow-y: auto;
    }
}
@media (max-width: 800px) {
    .single-estate .mc-banner { bottom: calc(116px + env(safe-area-inset-bottom)); }
    .single-estate .mc-banner__inner { max-height: calc(100dvh - 226px - var(--wp-admin--admin-bar--height, 0px) - env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
    .mc-banner__inner { padding-bottom: max(16px,env(safe-area-inset-bottom)); }
    .mc-dialog__form { padding: 18px; }
    .mc-cat__desc,.mc-cat__more { margin-left: 0; }
    .mc-dialog__head h2 { font-size: 28px; }
    .mc-dialog__actions .mc-btn { flex-basis: 100%; }
    .mc-banner__actions .mc-btn { padding-inline: 12px; }
    .cookie-status { padding: 20px; }
    .footer-legal { gap: 4px 22px; }
}
@media (max-width: 1100px) {
    /* Give the open navigation and the pending consent notice separate scrollable areas. */
    .menu-open { --menu-banner-height: min(40dvh, 24rem); }
    .menu-open .mc-banner { bottom: 0; }
    .menu-open .mc-banner__inner { max-height: var(--menu-banner-height); }
    .menu-open:has(#mc-banner:not([hidden])) .primary-navigation {
        max-height: calc(100dvh - var(--menu-banner-height) - var(--header-admin-offset) - var(--header-gap) - 100% - 24px);
        overscroll-behavior: contain;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mc-banner__inner { animation: none; }
    .mc-btn,.mc-switch__ui,.mc-switch__ui::after { transition: none; }
}
