/* MuseumsAtlas CZ Frontend Styles */
:root {
    --ma-bg: #f6f4f0;
    --ma-surface: #ffffff;
    --ma-border: #e5e0d8;
    --ma-text: #1c1917;
    --ma-muted: #686158;
    --ma-accent: #b8441e;
    --ma-accent-soft: #e2f1ef;
    --ma-teal: #18646b;
    --ma-radius: 16px;
}

.ma-wrap {
    max-width: 1140px;
    margin: 24px auto;
    padding: 0 16px;
    color: var(--ma-text);
    font-family: system-ui, -apple-system, sans-serif;
}

.ma-hero-img img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--ma-radius);
    margin-bottom: 16px;
}

.ma-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ma-chip {
    background: var(--ma-surface);
    border: 1px solid var(--ma-border);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
}

.ma-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ma-badge {
    background: var(--ma-surface);
    border: 1px solid var(--ma-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ma-badge.is-open { background: #ebfbee; border-color: #b2f2bb; color: #2b8a3e; }
.ma-badge.is-closed { background: #fff5f5; border-color: #ffc9c9; color: #c92a2a; }

.ma-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.ma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--ma-border);
    background: var(--ma-surface);
    color: var(--ma-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.15s;
}

.ma-btn:hover { background: #f0ece4; }
.ma-btn.primary { background: var(--ma-accent); border-color: var(--ma-accent); color: #fff; }
.ma-btn.primary:hover { background: #9c3615; }
.ma-btn-full { width: 100%; margin-top: 14px; }

.ma-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .ma-layout { grid-template-columns: 1fr; }
}

.ma-card {
    background: var(--ma-surface);
    border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius);
    padding: 22px 24px;
    margin-bottom: 20px;
}

.ma-card h2 {
    margin: 0 0 16px 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.ma-exh-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ma-exh-item {
    background: var(--ma-accent-soft);
    border-radius: 12px;
    padding: 16px 18px;
}

.ma-edu-item {
    background: #eef2ff;
}

.ma-exh-date {
    margin: 0 0 4px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ma-teal);
}

.ma-edu-item .ma-exh-date { color: #364fc7; }

.ma-exh-item h3 {
    margin: 0 0 6px 0;
    font-size: 1.12rem;
}

.ma-exh-item h3 a {
    color: var(--ma-text);
    text-decoration: none;
}

.ma-exh-item h3 a:hover { text-decoration: underline; }

.ma-exh-item p:last-child {
    margin: 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ma-kv {
    width: 100%;
    border-collapse: collapse;
}

.ma-kv th, .ma-kv td {
    padding: 8px 0;
    border-bottom: 1px solid #f0ece4;
    font-size: 0.95rem;
}

.ma-kv th {
    text-align: left;
    font-weight: 400;
    color: var(--ma-muted);
}

.ma-kv td {
    text-align: right;
    font-weight: 700;
}

.ma-kv tr:last-child th, .ma-kv tr:last-child td { border-bottom: none; }

.ma-open-box {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.92rem;
}
.ma-open-box.is-open { background: #ebfbee; color: #2b8a3e; }
.ma-open-box.is-closed { background: #fff5f5; color: #c92a2a; }

.ma-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ma-contact a {
    color: var(--ma-text);
    text-decoration: none;
}
.ma-contact a:hover { text-decoration: underline; color: var(--ma-accent); }
