:root {
  --bg: #f4f0e6;
  --header-bg: #2a3520;
  --header-text: #e8e0cc;
  --card-bg: #fff;
  --accent: #7a3b1e;
  --text: #1a1a1a;
  --text-light: #555;
  --border: #ddd;
  --max-w: 920px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ── Header ── */
header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 1.25rem 1rem 1rem;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

header h1 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  font-weight: normal;
  letter-spacing: 0.015em;
}

header .subtitle {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

.lang-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lang-nav a {
  color: var(--header-text);
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.75;
  transition: opacity 0.15s, border-color 0.15s;
}

.lang-nav a:hover { opacity: 1; border-color: rgba(255,255,255,0.55); }
.lang-nav a.active { opacity: 1; border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); }

/* ── Main ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.intro {
  max-width: 660px;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-size: 1rem;
}

/* ── Museum card ── */
.museum-card {
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.09);
  margin-bottom: 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 580px) {
  .museum-card { flex-direction: row; }
  .museum-card.flip { flex-direction: row-reverse; }
}

.museum-body {
  padding: 1.4rem 1.5rem;
  flex: 1;
  min-width: 0;
}

.museum-body h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.museum-body .desc {
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.details p, .details address { font-style: normal; }
.details a { color: var(--accent); text-decoration: none; }
.details a:hover { text-decoration: underline; }

/* Ticket table */
.tickets {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.tickets .detail-label { margin-bottom: 0.4rem; }

.ticket-row {
  display: flex;
  justify-content: space-between;
  padding: 0.1rem 0;
}

.ticket-row.gratis { color: #2a5a18; font-weight: 500; }

/* Special event highlight */
.event-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f0f8e6;
  border-left: 3px solid #5a8a2a;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Museum photo */
.museum-photo {
  overflow: hidden;
  flex-shrink: 0;
}

.museum-photo img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 580px) {
  .museum-photo { width: 210px; }
  .museum-photo img { width: 210px; height: 100%; }
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--text-light);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}
