﻿/* ==========================================================================
   Museum Stylesheet: Miskolci Emlékívek Webmúzeuma (miskolc)
   Contains site-specific color palette and museum-specific extensions.
   Common layout, typography, navigation, intro, contact, and catalogue
   structures are centrally unified in css/site_core.css.
   ========================================================================== */

:root {
  --theme-primary: #1e5645;
  --theme-primary-dark: #164234;
  --theme-primary-light: rgba(30, 86, 69, 0.12);
  --theme-border: rgba(22, 66, 52, 0.14);
  --theme-border-subtle: rgba(22, 66, 52, 0.08);
  --theme-text-body: #1b2e26;
  --theme-text-muted: #4b665a;
  --theme-panel-bg: #f4f9f6;
  --theme-panel-bg-subtle: #edf6f2;
  --theme-panel-gradient: linear-gradient(180deg, #ffffff 0%, #f4f9f6 100%);
  --theme-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 246, 0.92) 100%);
  --theme-accent-gradient: linear-gradient(90deg, transparent 0%, #1e5645 50%, transparent 100%);
  --theme-card-shadow: 0 4px 14px rgba(22, 66, 52, 0.04);
  --theme-card-shadow-hover: 0 8px 20px rgba(22, 66, 52, 0.10);
  --nav-bg: #d3e5dc;
  --nav-bg-strong: #a9cbbe;
  --nav-text: #164234;
  --nav-panel-bg: linear-gradient(180deg, #fdfefe 0%, #edf6f2 100%);
  --nav-hover-bg: rgba(30, 86, 69, 0.10);
  --nav-active-bg: linear-gradient(180deg, rgba(30, 86, 69, 0.22), rgba(30, 86, 69, 0.12));
  --nav-parent-active-bg: rgba(30, 86, 69, 0.14);
  --nav-sub-bg: rgba(22, 66, 52, 0.03);
  --page-bg: radial-gradient(circle at top, rgba(30, 86, 69, 0.10), transparent 42%), linear-gradient(180deg, #f2f7f4 0%, #dbe6e0 100%);
  --page-shell-bg: linear-gradient(180deg, #fcfdfd 0%, #f4f8f6 100%);
  --link: #1e5645;
  --link-hover: #164234;
  --border-soft: rgba(22, 66, 52, 0.14);
  --shadow-soft: 0 0 0 1px rgba(22, 66, 52, 0.08), 0 18px 40px rgba(22, 66, 52, 0.12);
}

/* ==========================================================================
   2. Live Site Components & Search Styles
   ========================================================================== */

#layoutHeader {
  background: url(../images/header.webp) no-repeat left;
  background-position: left, left;
  background-repeat: no-repeat, no-repeat;
  position: relative;
  width: 100%;
  height: 116px;
  border-bottom: 1px solid var(--border-soft);
}

.maintitle {
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
  color: #333;
  opacity: 1;
  font: min(max(21px, 3vw), 60px) 'MainTitle';
  position: absolute;
  bottom: 1px;
  right: 10px;
}

.stats td { padding: 5px 8px; text-align: center; line-height: 1; }
.stats td:first-child { padding-left: 10px; }
.stats td:last-child { padding-right: 10px; }
.stats table { padding: 10px 10px; border-collapse: collapse; }
.stats td img { height: 46px; width: 46px; object-fit: contain; }
.stats tr:nth-child(even) { background: #CCC; }
.stats tr:nth-child(odd) { background: #FFF; }
.stats tr:first-child { background: var(--theme-primary); font-weight: bold; color: #fff; }
.stats td:nth-child(5n):not(:last-child) { border-right: 2px solid white; }
.stats a:link, #layoutBodyContent .stats a:visited { color: #000; text-decoration: none; }

.emulated-flex-gap {
  --gap: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  margin: calc(-1 * var(--gap)) 0 0 calc(-1 * var(--gap));
  width: calc(100% + var(--gap));
}
.emulated-flex-gap > * { margin: var(--gap) 0 0 var(--gap); }

.gallery2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0;
  margin-top: 40px;
}
.gallery2.details-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
  justify-items: stretch;
  align-items: stretch;
  text-align: left;
}
.gallery2.details-cards figure { margin: 0; width: 100%; height: 100%; display: flex; }
.gallery2.details-cards .details-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fffdf8;
  border: 3px solid var(--theme-primary);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(41, 38, 23, 0.12), 0 6px 14px rgba(41, 38, 23, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery2.details-cards .details-card-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(41, 38, 23, 0.16), 0 10px 20px rgba(41, 38, 23, 0.22);
}
.gallery2.details-cards .details-card-image {
  background: #ffffff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  min-height: 220px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--theme-border);
}
.gallery2.details-cards .details-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  margin: 0;
  background: transparent;
}
.gallery2.details-cards .details-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  font-size: 0.95rem;
  color: var(--theme-text-body);
  text-align: center;
  background: var(--theme-panel-bg);
}
.gallery2.details-cards .details-card-caption {
  line-height: 1.45;
  white-space: pre-line;
  flex: 1;
  width: 100%;
}
.gallery2 a:hover { font-weight: normal !important; }
.gallery figcaption, .gallery2 figcaption { padding: 5px; background: #292617; color: #fff; }
.gallery2 img {
  width: 220px;
  height: 220px;
  cursor: pointer;
  object-fit: scale-down;
  flex: 0 0 220px;
  margin: 0;
  background: #ffffff;
  animation: fadeIn 0.3s ease-in;
}
.gallery2 img[loading="lazy"] { background: #ffffff; }

#searchForm {
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--theme-panel-bg);
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
#search-results {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 32px;
  padding: 8px 12px;
  box-sizing: border-box;
  display: inline-block;
  background: var(--theme-panel-bg);
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
#search-results p { margin: 0 0 8px 0; font-weight: 600; color: var(--theme-text-body); }
.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 90px;
  row-gap: 20px;
  margin-bottom: 20px;
}
.form-column { width: 100%; }
.form-column:first-child { --search-primary-width: 210px; }
@media (min-width: 768px) {
  .form-column:first-child { width: auto; flex: 0 0 auto; }
  .form-column:last-child { flex: 1 1 0; min-width: 0; }
}
.year-month-box {
  display: flex;
  gap: 10px;
  width: var(--search-primary-width);
  max-width: none;
}
.year-month-box select {
  width: calc((100% - 10px) / 2);
  padding: 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.zpost-box {
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}
.zpost-container { margin-bottom: 10px; }
.zpost-container label { display: block; margin-bottom: 5px; font-weight: bold; }
.zpost-container input[type="text"] {
  padding: 8px 41px 8px 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.form-group { margin-bottom: 15px; }
.form-group label, .form-column label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input[type="text"], .form-group select, .form-group input[type="checkbox"], .form-group input[type="radio"] {
  padding: 8px 0 8px 8px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.form-group input[type="text"] { width: 100%; }
#title { width: var(--search-primary-width); max-width: none; }
.search-actions {
  padding-top: 16px;
  display: flex;
  gap: 10px;
  width: max-content;
  max-width: none;
}
.form-group input[type="checkbox"] { width: auto; display: inline-block; vertical-align: middle; }
.radio-group label { margin-right: 20px; }
.form-group input[type="button"], .form-group input[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  background-color: var(--theme-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.form-group input[type="button"]:hover, .form-group input[type="submit"]:hover {
  background-color: var(--theme-primary-dark);
}

.pagination {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 20px;
  margin-left: 280px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
}
.pagination a, .pagination strong {
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  flex-shrink: 0;
  min-width: max-content;
}
.pagination a {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination a:hover {
  background-color: var(--theme-primary);
  color: white;
  border-color: var(--theme-primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.pagination strong {
  background-color: var(--theme-primary);
  color: #fff;
  font-weight: bold;
  border: 1px solid var(--theme-primary);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pagination-dots {
  padding: 8px 6px;
  color: #999;
  font-size: 14px;
  font-weight: bold;
  cursor: default;
}
.pagination a.prev-btn:hover, .pagination a.next-btn:hover {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  transform: translateY(-2px);
}
.pagination a span.arrow {
  display: inline-block;
  margin: 0 6px;
  font-weight: bold;
  color: inherit;
  transition: all 0.3s ease;
  vertical-align: middle;
  letter-spacing: 0;
}
.pagination a:hover span.arrow {
  transform: scale(1.4) translateY(-2px);
}

.siteinfoLegal { display: flex; align-items: center; }
.cc-icon { height: 22px !important; margin-left: 3px; }
.cc-icon.last { margin-right: 3px; }
.justify-text { text-align: justify; }
.question { border: 0; padding: 5px 0 0 0; }
.hideEX { display: block; }
.hideNA { display: block; }

