/* ================================
   WieHersteld Public Site
   Served within TPM at /{culture}
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --wh-primary: #b30000;
    --wh-primary-hover: #8f0000;
    --wh-primary-dark: #730000;
    --wh-primary-rgb: 179, 0, 0;
    --wh-dark: #1b242d;
    --wh-ink: #1f2933;
    --wh-steel: #5c6470;
    --wh-bg: #f5f3ef;
    --wh-surface: #ffffff;
    --wh-border: rgba(31, 41, 51, 0.1);
    --wh-shadow: 0 4px 12px rgba(31, 41, 51, 0.08);
    --wh-success: #155c48;
    --wh-success-soft: #dff1ea;
    --wh-danger: #8a2f2f;
    --wh-danger-soft: #fae3e1;
    --wh-warning: #d48806;
    --wh-warning-soft: #fff8e1;
    --wh-hotspot-tenant: #e91e90;
    --wh-hotspot-pspm: #2196f3;
    --wh-hotspot-shared: #ffc107;
    --wh-hotspot-warning: #f44336;
    --wh-hotspot-neutral: #4caf50;
}

/* ── Reset ─────────────────────── */

.wh-site *, .wh-site *::before, .wh-site *::after { box-sizing: border-box; }

.wh-site {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--wh-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wh-site h1, .wh-site h2, .wh-site h3, .wh-site h4 {
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
}

.wh-site a { color: var(--wh-primary); text-decoration: none; }
.wh-site a:hover { color: var(--wh-primary-hover); }
.wh-site img { max-width: 100%; height: auto; }

/* ── Header ────────────────────── */

.wh-header {
    background: var(--wh-header-bg, #000);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wh-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.wh-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.wh-header__brand-name {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #fff;
}

.wh-header__logo {
    height: 36px;
    max-height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.wh-header__nav {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wh-header__nav a {
    display: block;
    padding: 18px 16px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.15s;
}

.wh-header__nav a:hover,
.wh-header__nav a.active {
    color: var(--wh-accent, var(--wh-primary));
}

.wh-header__nav a i {
    margin-right: 2px;
}

.wh-header__divider {
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.25);
    margin: 0 4px;
    align-self: center;
}

.wh-header__admin-link {
    color: var(--wh-primary) !important;
}

.wh-header__user {
    opacity: 0.8;
    font-size: 12px !important;
}

/* Login card */
.wh-card {
    background: #fff;
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Mobile toggle */
.wh-header__toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .wh-header__toggle { display: block; }
    .wh-header__nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 56px;
        left: 0;
        background: #000;
        z-index: 99;
    }
    .wh-header__nav.open { display: flex; }
    .wh-header__nav a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
    .wh-header__inner { flex-wrap: wrap; }
}

/* ── Hero Banner ───────────────── */

.wh-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.5)),
                url('/images/wiehersteld/voorkanthuis.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.wh-hero--tall { min-height: 300px; }
.wh-hero--short { min-height: 160px; }

.wh-hero::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -5%;
    right: -5%;
    height: 50px;
    background: var(--wh-primary);
    transform: rotate(-1.5deg);
}

.wh-hero__content {
    position: relative;
    z-index: 1;
    padding: 48px 20px;
}

.wh-hero__logo { width: 180px; margin-bottom: 20px; }

.wh-hero__title {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: 0;
}

/* ── CTA Tiles ─────────────────── */

.wh-cta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 760px;
    margin: 48px auto;
    padding: 0 20px;
}

.wh-cta-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--wh-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.wh-cta-tile, .wh-cta-tile:hover, .wh-cta-tile:visited,
.wh-cta-tile span { color: #fff !important; }
.wh-cta-tile:hover { background: var(--wh-primary-hover); transform: translateY(-2px); }
.wh-cta-tile__number { font-family: "Poppins", sans-serif; font-size: 1.5rem; font-weight: 700; }
.wh-cta-tile__sub { font-size: 0.85rem; opacity: 0.9; margin: 8px 0; }
.wh-cta-tile__label { font-family: "Poppins", sans-serif; font-size: 1.1rem; font-weight: 600; }

/* ── Room Grid ─────────────────── */

.wh-room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

@media (max-width: 1100px) { .wh-room-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .wh-room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .wh-room-grid { grid-template-columns: 1fr; } }

.wh-room-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.wh-room-card:hover { opacity: 0.88; color: inherit; }

.wh-room-card, .wh-room-card:visited { color: inherit !important; }

.wh-room-card__title {
    background: #000;
    color: #fff !important;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.wh-room-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--wh-bg);
    display: block;
}

/* ── Room Detail ───────────────── */

.wh-room-stage {
    position: relative;
    width: 100%;
    background: var(--wh-bg);
}

.wh-room-stage__img { width: 100%; display: block; }

.wh-hotspot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.12s;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    background: var(--wh-hotspot-tenant);
}

.wh-hotspot:hover { transform: translate(-50%, -50%) scale(1.5); z-index: 3; }
.wh-hotspot--selected { transform: translate(-50%, -50%) scale(1.6); box-shadow: 0 0 0 4px rgba(var(--wh-primary-rgb), 0.4); }

/* ── Topic Sidebar ─────────────── */

.wh-topic-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wh-topic-list a,
.wh-topic-list a:visited {
    display: block;
    padding: 10px 14px;
    background: #000;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
}

.wh-topic-list a:hover,
.wh-topic-list a.active {
    background: var(--wh-primary);
    color: #fff !important;
}

/* ── Topic Detail ──────────────── */

.wh-topic-body { line-height: 1.8; }
.wh-topic-body p { margin-bottom: 1rem; }

.wh-topic-warning {
    padding: 16px;
    background: var(--wh-warning-soft);
    border-left: 4px solid var(--wh-warning);
    border-radius: 4px;
    margin-bottom: 24px;
}

/* ── Legend ─────────────────────── */

.wh-legend { padding: 24px 0; }
.wh-legend h3 { color: var(--wh-primary); font-size: 1.3rem; margin-bottom: 16px; }

.wh-legend__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.wh-legend__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ── Buttons ───────────────────── */

.wh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 48px;
}

.wh-btn--primary, .wh-btn--primary:hover, .wh-btn--primary:visited { background: var(--wh-primary); color: #fff !important; }
.wh-btn--primary:hover { background: var(--wh-primary-hover); }
.wh-btn--block { width: 100%; }

.wh-btn--outline {
    background: transparent;
    color: var(--wh-primary);
    border: 1px solid rgba(var(--wh-primary-rgb), 0.3);
}
.wh-btn--outline:hover { background: rgba(var(--wh-primary-rgb), 0.06); color: var(--wh-primary); }

/* ── Footer ────────────────────── */

.wh-footer {
    position: relative;
    background: var(--wh-header-bg, #000);
    color: #fff;
    padding: 40px 0 32px;
    margin-top: 48px;
    overflow: hidden;
}

.wh-footer::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -5%;
    right: -5%;
    height: 40px;
    background: var(--wh-primary);
    transform: rotate(-1deg);
}

.wh-footer__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    font-size: 0.85rem;
}

.wh-footer__contact { font-weight: 600; margin-bottom: 12px; }
.wh-footer__copy { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

/* ── Content Pages ─────────────── */

.wh-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wh-content h1 { text-transform: uppercase; margin-bottom: 24px; }

/* ── QR Card ───────────────────── */

.wh-qr-shell {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.wh-qr-card {
    width: min(100%, 560px);
    background: var(--wh-surface);
    border: 1px solid var(--wh-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(31,41,51,0.1);
    padding: 32px;
}

/* ── Spinner ───────────────────── */

.wh-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(var(--wh-primary-rgb), 0.15);
    border-top-color: var(--wh-primary);
    animation: wh-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes wh-spin { to { transform: rotate(360deg); } }

/* ── Utility ───────────────────── */

/* ── Forms ─────────────────────── */

.wh-form { }

.wh-form__group {
    margin-bottom: 20px;
}

.wh-form__group--checkbox {
    margin-bottom: 16px;
}

.wh-form__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--wh-ink);
}

.wh-form__label--required::after {
    content: ' *';
    color: var(--wh-primary);
}

.wh-form__input,
.wh-form__select,
.wh-form__textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(31, 41, 51, 0.2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--wh-ink);
    background: var(--wh-surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wh-form__input:focus,
.wh-form__select:focus,
.wh-form__textarea:focus {
    outline: none;
    border-color: var(--wh-primary);
    box-shadow: 0 0 0 2px rgba(var(--wh-primary-rgb), 0.15);
}

.wh-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.wh-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.wh-form__checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--wh-primary);
}

.wh-form__hint {
    display: block;
    font-size: 0.8rem;
    color: var(--wh-steel);
    margin-top: 4px;
}

.wh-form__actions {
    margin-top: 28px;
}

.wh-form__actions .wh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wh-form__file {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 2px dashed rgba(31, 41, 51, 0.2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--wh-ink);
    background: var(--wh-bg);
    cursor: pointer;
    transition: border-color 0.15s;
}

.wh-form__file:hover,
.wh-form__file:focus {
    border-color: var(--wh-primary);
}

/* ── Tarievenlijst ─────────────── */

.wh-tarief-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 2px solid var(--wh-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .wh-tarief-header { flex-direction: column; }
}

/* ── Alerts ────────────────────── */

.wh-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.wh-alert i { font-size: 1.2rem; margin-top: 2px; }
.wh-alert p { margin: 0; }

.wh-alert--success {
    background: var(--wh-success-soft);
    color: var(--wh-success);
    border: 1px solid rgba(21, 92, 72, 0.2);
}

.wh-alert--danger {
    background: var(--wh-danger-soft);
    color: var(--wh-danger);
    border: 1px solid rgba(138, 47, 47, 0.2);
}

/* ── Tables (Beheer Eigendom) ──── */

.wh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.wh-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--wh-border);
    font-weight: 600;
    color: var(--wh-primary);
}

.wh-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--wh-border);
    vertical-align: top;
}

.wh-table tr:hover td {
    background: rgba(var(--wh-primary-rgb), 0.02);
}

/* ── Utility ───────────────────── */

.wh-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wh-mt-3 { margin-top: 24px; }
.wh-mt-5 { margin-top: 48px; }
.wh-text-muted { color: var(--wh-steel); }
.wh-text-center { text-align: center; }
