:root{
  --paper:#efe1bf;
  --paper2:#d9c18e;
  --ink:#241b12;
  --muted:#6f5d42;
  --brown:#4b2f1d;
  --brown2:#7a4d2b;
  --brass:#b88936;
  --brass2:#f0cf7a;
  --green:#24423a;
  --red:#8c2f26;
  --line:rgba(68,42,23,.28);
  --shadow:rgba(48,30,16,.22);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 16% 10%,rgba(184,137,54,.20),transparent 28%),
    radial-gradient(circle at 86% 12%,rgba(36,66,58,.18),transparent 26%),
    linear-gradient(90deg,rgba(75,47,29,.055) 1px,transparent 1px),
    linear-gradient(0deg,rgba(75,47,29,.045) 1px,transparent 1px),
    linear-gradient(135deg,#efe3c5 0%,#dcc38e 48%,#cba96e 100%);
  background-size:auto,auto,34px 34px,34px 34px,auto;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.18;
  background-image:
    repeating-linear-gradient(0deg,rgba(36,27,18,.24) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(90deg,rgba(36,27,18,.08) 0 1px,transparent 1px 7px);
  mix-blend-mode:multiply;
}
a{color:inherit}
code{
  font-family:"Courier New",monospace;
  background:rgba(75,47,29,.11);
  border:1px solid rgba(75,47,29,.18);
  padding:.12em .36em;
  border-radius:6px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  padding:14px clamp(16px,4vw,56px);
  background:rgba(63,39,24,.91);
  color:#f7ead0;
  border-bottom:4px double rgba(240,207,122,.55);
  box-shadow:0 8px 22px rgba(31,19,10,.28);
  backdrop-filter:blur(8px);
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-mark{
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,#f5d985,#b88936 58%,#6f431f 100%);
  color:#2c1a0e;font-weight:900;font-family:"Courier New",monospace;
  border:2px solid rgba(255,239,185,.7);
  box-shadow:inset 0 2px 4px rgba(255,255,255,.36),0 3px 0 rgba(0,0,0,.18);
}
.brand strong{letter-spacing:.03em;text-transform:uppercase}
.brand small{display:block;color:#dfc89f;margin-top:2px;font-family:"Courier New",monospace;font-size:12px}
nav{display:flex;gap:8px;flex-wrap:wrap}
nav a{
  padding:9px 12px;border:1px solid rgba(240,207,122,.35);border-radius:8px;
  text-decoration:none;color:#f1dfbd;background:rgba(255,255,255,.05);
  font-family:"Courier New",monospace;font-weight:700;font-size:14px;
}
nav a:hover{background:rgba(240,207,122,.16);color:#fff4d7}
main{width:min(1180px,calc(100% - 32px));margin:auto}

.hero{
  min-height:430px;
  display:grid;
  grid-template-columns:1fr 280px;
  gap:28px;
  align-items:center;
  padding:52px 0 34px;
}
.hero-content,.hero-card,.toolbar,.card,.museum-map,.detail-modal,.empty{
  background:
    linear-gradient(180deg,rgba(255,249,225,.84),rgba(231,206,150,.74)),
    repeating-linear-gradient(90deg,rgba(75,47,29,.03) 0 1px,transparent 1px 9px);
  border:2px solid rgba(75,47,29,.32);
  box-shadow:0 18px 44px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.35);
}
.hero-content{
  position:relative;
  padding:34px;
  border-radius:8px;
}
.hero-content::after{
  content:"MŰSZAKI SZERTÁR";
  position:absolute;
  top:18px;right:20px;
  transform:rotate(2deg);
  color:rgba(140,47,38,.60);
  border:3px solid rgba(140,47,38,.42);
  border-radius:4px;
  padding:8px 10px;
  font:900 14px/1 "Courier New",monospace;
  letter-spacing:.12em;
}
.eyebrow{
  margin:0 0 12px;color:var(--red);font-weight:900;text-transform:uppercase;
  letter-spacing:.14em;font:900 13px/1.2 "Courier New",monospace;
}
.hero h1{
  font-size:clamp(34px,6.7vw,66px);line-height:.98;margin:0 0 18px;
  letter-spacing:-.045em;color:#2f2115;text-shadow:0 1px 0 #fff0c9;
}
.lead{font-size:clamp(17px,2.2vw,21px);color:var(--muted);max-width:760px;line-height:1.58}
.hero-actions,.card-actions{display:flex;gap:12px;flex-wrap:wrap}
.button,.small-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900;cursor:pointer}
.button{padding:13px 18px;border-radius:8px;font-family:"Courier New",monospace}
.primary{
  background:linear-gradient(180deg,#efcf7e,#b88936);
  color:#2b1c10;border:1px solid rgba(75,47,29,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48),0 3px 0 rgba(75,47,29,.28);
}
.ghost,.small-button{border:1px solid var(--line);background:rgba(75,47,29,.08)}
.hero-card{
  border-radius:8px;
  padding:24px;
  transform:rotate(1deg);
  border-style:double;
  border-width:4px;
}
.hero-card{
  min-width:0;
  overflow:hidden;
  text-align:center;
}
.hero-card strong{
  display:block;
  width:100%;
  max-width:100%;
  color:var(--red);
  font-family:"Courier New",monospace;
  font-weight:900;
  font-size:clamp(42px, 5.2vw, 66px);
  line-height:.95;
  letter-spacing:-.08em;
  white-space:nowrap;
  overflow:hidden;
}
.hero-card span{
  display:block;
  max-width:100%;
  margin-top:12px;
  font-size:clamp(16px, 1.55vw, 20px);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
  line-height:1.18;
  overflow-wrap:anywhere;
}
.hero-card small{display:block;color:var(--muted);margin-top:16px;line-height:1.55}

.toolbar{
  display:grid;grid-template-columns:1.5fr .8fr;gap:14px;margin:8px 0 22px;
  padding:18px;border-radius:8px;
}
.search-box,.filter-box{display:grid;gap:8px;color:var(--brown);font-weight:900;font-family:"Courier New",monospace;text-transform:uppercase;font-size:13px;letter-spacing:.06em}
.search-box input,.filter-box select{
  width:100%;border:2px solid rgba(75,47,29,.30);border-radius:6px;
  background:#fbf0d1;color:var(--ink);padding:14px 15px;font:16px Georgia,"Times New Roman",serif;outline:none;
  box-shadow:inset 0 2px 8px rgba(75,47,29,.10);
}
.search-box input:focus,.filter-box select:focus{border-color:var(--red);box-shadow:0 0 0 4px rgba(140,47,38,.10),inset 0 2px 8px rgba(75,47,29,.10)}
.filter-box select option{background:#fbf0d1;color:var(--ink)}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{
  scroll-margin-top:104px;position:relative;overflow:hidden;border-radius:8px;
  padding:22px;min-height:420px;cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.card::after{
  content:"";
  position:absolute;left:16px;right:16px;top:68px;border-top:1px dashed rgba(75,47,29,.24);
}
.card:hover,.card:focus-visible{transform:translateY(-4px) rotate(-.25deg);border-color:rgba(140,47,38,.55);box-shadow:0 20px 52px rgba(48,30,16,.28), inset 0 0 0 1px rgba(255,255,255,.38)}
.card:target{outline:3px solid var(--red);box-shadow:0 0 0 8px rgba(140,47,38,.12),0 18px 44px var(--shadow)}
.card.is-active{border-color:var(--red);box-shadow:0 0 0 4px rgba(140,47,38,.16),0 26px 70px rgba(48,30,16,.34);background:linear-gradient(180deg,#fff0c9,#e3c88d)}
.card.is-active::before{
  content:"Kiválasztott tárgy";position:absolute;right:14px;bottom:14px;padding:8px 10px;border-radius:4px;
  background:rgba(140,47,38,.12);color:var(--red);font:900 12px/1 "Courier New",monospace;text-transform:uppercase;letter-spacing:.08em;border:1px solid rgba(140,47,38,.24)
}
.card-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:20px}
.number{
  width:44px;height:44px;display:grid;place-items:center;border-radius:6px;
  background:#3e2a1d;color:#f0cf7a;font:900 18px/1 "Courier New",monospace;
  border:1px solid rgba(240,207,122,.46);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}
.category{font:900 12px/1.2 "Courier New",monospace;text-transform:uppercase;letter-spacing:.10em;color:var(--green)}
.card h2{font-size:23px;line-height:1.13;margin:18px 0 8px;color:#2e2015}
.meta{color:var(--red);font-weight:900;line-height:1.45}
.description{color:var(--muted);line-height:1.62}
.small-button{
  padding:10px 12px;color:var(--ink);font:900 14px/1 "Courier New",monospace;border-radius:6px;font-family:"Courier New",monospace;
}
.open-detail{background:linear-gradient(180deg,#efcf7e,#bd8840);color:#24170c;border:1px solid rgba(75,47,29,.32)}
.anchor-link:hover,.ghost:hover{background:rgba(75,47,29,.14)}

footer{border-top:4px double rgba(75,47,29,.28);padding:26px clamp(16px,4vw,56px);color:var(--muted);text-align:center;background:rgba(63,39,24,.08)}

.modal-open{overflow:hidden}
.modal-backdrop{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(35,23,14,.60);backdrop-filter:blur(9px)}
.modal-backdrop.is-open{display:flex}
.detail-modal{
  position:relative;width:min(760px,100%);max-height:min(86vh,820px);overflow:auto;
  border-radius:8px;border:4px double rgba(75,47,29,.45);padding:clamp(22px,4vw,38px);
  animation:modalPop .18s ease-out;
}
.detail-modal::before{
  content:"KIÁLLÍTÁSI LAP";
  position:absolute;top:18px;right:72px;color:rgba(140,47,38,.58);
  font:900 13px/1 "Courier New",monospace;letter-spacing:.14em;
}
.modal-close{position:absolute;top:14px;right:14px;width:42px;height:42px;border:1px solid var(--line);border-radius:6px;background:rgba(75,47,29,.10);color:var(--brown);font-size:28px;line-height:1;cursor:pointer}
.modal-close:hover{background:rgba(140,47,38,.12);color:var(--red)}
.modal-head{display:flex;align-items:center;gap:12px;margin-right:54px}
.modal-number{width:52px;height:52px;display:grid;place-items:center;border-radius:6px;background:#3e2a1d;color:var(--brass2);font:900 20px/1 "Courier New",monospace;border:1px solid rgba(240,207,122,.45)}
.modal-category{font:900 13px/1.2 "Courier New",monospace;text-transform:uppercase;letter-spacing:.12em;color:var(--green)}
.detail-modal h2{font-size:clamp(30px,5vw,52px);line-height:1.02;letter-spacing:-.04em;margin:22px 0 12px;color:#2e2015}
.modal-meta{color:var(--red);font-weight:900;font-size:18px;line-height:1.45}
.modal-description{color:var(--muted);font-size:18px;line-height:1.72}
.modal-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px dashed rgba(75,47,29,.32)}
.modal-actions>div{display:flex;gap:12px;flex-wrap:wrap}
.empty{grid-column:1/-1;padding:24px;border-radius:8px;color:var(--muted);font-weight:900}
@keyframes modalPop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}

.museum-map{
  margin:48px 0;border-radius:8px;padding:clamp(20px,4vw,34px);
  border-style:double;border-width:4px;
}
.map-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:22px}
.map-heading h2{margin:0 0 12px;font-size:clamp(28px,4vw,42px);letter-spacing:-.04em;color:#2e2015}
.map-heading p:not(.eyebrow){margin:0;color:var(--muted);line-height:1.65;max-width:820px}
.map-frame{margin:0;border:2px solid rgba(75,47,29,.30);border-radius:6px;overflow:hidden;background:#fbf0d1;box-shadow:0 18px 42px var(--shadow)}
.map-frame img{display:block;width:100%;height:auto;min-height:260px;object-fit:contain;background:#ead8ad;filter:sepia(.12) contrast(.96)}
.map-frame figcaption{padding:14px 18px;color:var(--muted);border-top:1px solid var(--line);font-size:14px;line-height:1.5;font-family:"Courier New",monospace;background:rgba(75,47,29,.06)}

@media(max-width:940px){
  .hero,.toolbar{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.site-header{align-items:flex-start;flex-direction:column}.hero{padding:32px 0}.hero-card{display:none}.hero-content::after{position:static;display:inline-block;margin-top:16px;transform:rotate(-1deg)}
}
@media(max-width:640px){
  main{width:min(100% - 24px,1180px)}.cards{grid-template-columns:1fr}.hero-content{padding:24px}.card{min-height:auto}.site-header{position:relative}.detail-modal{border-radius:8px}.modal-actions{align-items:flex-start}.card.is-active::before{position:static;display:inline-flex;margin-top:14px}.museum-map{border-radius:8px;padding:18px}.map-frame{border-radius:6px}.map-frame img{min-height:180px}.detail-modal::before{display:none}
}

/* Tárlatvezető videó */
.tour-video{
  margin: 10px 0 28px;
  padding: clamp(20px,4vw,34px);
  border-radius: 8px;
  border: 4px double rgba(75,47,29,.32);
  background:
    linear-gradient(180deg,rgba(255,249,225,.84),rgba(231,206,150,.72)),
    repeating-linear-gradient(90deg,rgba(75,47,29,.03) 0 1px,transparent 1px 9px);
  box-shadow: 0 18px 44px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.35);
}
.video-player{
  display:block;
  width:100%;
  max-height: 560px;
  background:#1f160f;
  border:2px solid rgba(75,47,29,.36);
  border-radius:8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 12px 28px rgba(48,30,16,.22);
}

/* Tárgyfotók a részletező kártyában */
.modal-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:22px;
}
.gallery-item{
  margin:0;
  overflow:hidden;
  border:1px solid rgba(75,47,29,.28);
  border-radius:8px;
  background:#f9edcf;
  box-shadow:0 8px 18px rgba(48,30,16,.14);
}
.gallery-item img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;filter:sepia(.12) contrast(.98)}
.gallery-item figcaption{
  padding:8px 10px;
  color:var(--muted);
  font:900 12px/1 "Courier New",monospace;
  border-top:1px dashed rgba(75,47,29,.24);
}

/* Kattintható térkép oldal */
.compact-hero{min-height: unset; grid-template-columns:1fr; padding-bottom:18px;}
.interactive-map-section{
  margin: 24px 0 46px;
  padding: clamp(20px,4vw,34px);
  border-radius: 8px;
  border:4px double rgba(75,47,29,.32);
  background:
    linear-gradient(180deg,rgba(255,249,225,.84),rgba(231,206,150,.72)),
    repeating-linear-gradient(90deg,rgba(75,47,29,.03) 0 1px,transparent 1px 9px);
  box-shadow:0 18px 44px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.35);
}
.interactive-map{
  position:relative;
  overflow:hidden;
  border:2px solid rgba(75,47,29,.34);
  border-radius:8px;
  background:#f7eddb;
  box-shadow:0 18px 42px var(--shadow);
}
.interactive-map img{display:block;width:100%;height:auto;filter:sepia(.08) contrast(1.02);}
.map-layer,.wall-labels{position:absolute;inset:0;}
.map-point{
  position:absolute;
  width:34px;height:34px;
  transform:translate(-50%,-50%);
  display:grid;place-items:center;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff2ba,#d99a39 58%,#7b3b1d 100%);
  color:#22150b;
  border:2px solid #3d2515;
  box-shadow:0 4px 12px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.55);
  font:900 14px/1 "Courier New",monospace;
  text-decoration:none;
  z-index:4;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.map-point:hover,.map-point:focus-visible{
  transform:translate(-50%,-50%) scale(1.18);
  filter:saturate(1.2);
  box-shadow:0 0 0 7px rgba(140,47,38,.16),0 8px 18px rgba(0,0,0,.30);
  outline:none;
}
.wall-label{
  position:absolute;
  transform:translate(-50%,-50%) rotate(-1deg);
  padding:6px 9px;
  border:1px solid rgba(75,47,29,.28);
  border-radius:4px;
  background:rgba(255,246,218,.76);
  color:var(--brown);
  font:900 12px/1.1 "Courier New",monospace;
  white-space:nowrap;
  z-index:3;
  box-shadow:0 4px 10px rgba(48,30,16,.10);
}
.shelf-hotspot{
  position:absolute;
  left:22%; top:13%; width:30%; height:39%;
  border:3px dashed rgba(140,47,38,.56);
  border-radius:10px;
  background:rgba(240,207,122,.08);
  color:var(--red);
  cursor:pointer;
  z-index:2;
}
.shelf-hotspot span{
  position:absolute;left:12px;top:12px;
  padding:8px 10px;
  border-radius:4px;
  background:rgba(255,246,218,.86);
  border:1px solid rgba(140,47,38,.25);
  font:900 12px/1.1 "Courier New",monospace;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.shelf-hotspot:hover{background:rgba(240,207,122,.18);border-color:var(--red)}
.shelf-preview{
  position:relative;
  min-height:420px;
  border:2px solid rgba(75,47,29,.34);
  border-radius:8px;
  background:
    linear-gradient(90deg,rgba(75,47,29,.10) 1px,transparent 1px),
    linear-gradient(0deg,rgba(75,47,29,.08) 1px,transparent 1px),
    #f7e6bd;
  background-size:80px 80px,80px 80px,auto;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.36), 0 14px 30px rgba(48,30,16,.16);
}
.shelf-title{
  position:absolute;left:18px;top:16px;
  padding:9px 12px;
  background:#3e2a1d;color:#f0cf7a;
  border-radius:6px;
  font:900 13px/1 "Courier New",monospace;
  text-transform:uppercase;letter-spacing:.12em;
  z-index:2;
}
.shelf-layer{position:absolute;inset:0;}
.shelf-point{width:40px;height:40px;font-size:15px;}
.shelf-modal{width:min(980px,100%)}
.modal-shelf{min-height:520px;margin-top:18px;}

@media(max-width:700px){
  .modal-gallery{grid-template-columns:1fr;}
  .map-point{width:28px;height:28px;font-size:12px;}
  .wall-label{display:none;}
  .shelf-hotspot span{display:none;}
  .shelf-preview{min-height:560px;}
  .shelf-point{width:34px;height:34px;}
}

/* ===== Letisztított megnyitás: nincs linkmásolás, csak részletek + galéria ===== */
.card-actions{justify-content:flex-start;}
.gallery-hint{
  margin:14px 0 0;
  color:var(--muted);
  font:800 13px/1.5 "Courier New",monospace;
}
.modal-gallery{align-items:stretch;}
.gallery-item{
  display:block;
  padding:0;
  border:1px solid rgba(75,47,29,.28);
  border-radius:8px;
  background:#f9edcf;
  box-shadow:0 8px 18px rgba(48,30,16,.14);
  cursor:pointer;
  overflow:hidden;
  text-align:left;
  font:inherit;
}
.gallery-item img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;filter:sepia(.12) contrast(.98);transition:transform .18s ease, filter .18s ease;}
.gallery-item:hover img{transform:scale(1.035);filter:sepia(.05) contrast(1.04);}
.gallery-item span{
  display:block;
  padding:8px 10px;
  color:var(--muted);
  font:900 12px/1 "Courier New",monospace;
  border-top:1px dashed rgba(75,47,29,.24);
}
.image-viewer{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(30,20,12,.88);
}
.image-viewer.is-open{display:flex;}
.image-viewer img{
  max-width:min(1100px,94vw);
  max-height:88vh;
  object-fit:contain;
  border:6px solid #f4dfad;
  box-shadow:0 28px 90px rgba(0,0,0,.55);
  background:#f4dfad;
}
.image-viewer-close{
  position:fixed;
  top:18px;
  right:18px;
  width:46px;
  height:46px;
  border-radius:50%;
  border:2px solid #f4dfad;
  background:#2f1f14;
  color:#f4dfad;
  font-size:30px;
  cursor:pointer;
  z-index:1001;
}

/* ===== Új, képtől független, kattintható CSS/JS térkép ===== */
.nav-button{
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
  text-underline-offset:4px;
}
.plan-board{
  position:relative;
  width:100%;
  min-height:760px;
  padding:26px;
  border:4px double rgba(75,47,29,.38);
  border-radius:10px;
  background:
    radial-gradient(circle at 18% 12%,rgba(255,255,255,.65),transparent 22%),
    linear-gradient(180deg,#fffaf0,#f4e1b4);
  box-shadow:0 24px 60px rgba(48,30,16,.18), inset 0 0 0 1px rgba(255,255,255,.5);
  overflow:auto;
}
.museum-room{
  position:relative;
  width:min(1000px,100%);
  height:520px;
  border:5px solid #151515;
  background:#fffdf7;
  margin:0 auto 120px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);
}
.map-box{
  position:absolute;
  border:2px solid #151515;
  background:#fffefa;
  color:#161616;
  display:grid;
  place-items:center;
  text-align:center;
  font:700 16px/1.2 Arial, sans-serif;
  text-decoration:none;
}
.map-box a,.central-cabinet a,.entrance-case a,.shelf-detail-grid a{
  color:#141414;
  text-decoration:none;
}
.map-box a:hover,.central-cabinet a:hover,.entrance-case a:hover,.shelf-detail-grid a:hover,
.map-box a:focus-visible,.central-cabinet a:focus-visible,.entrance-case a:focus-visible,.shelf-detail-grid a:focus-visible{
  outline:3px solid #8c2f26;
  outline-offset:2px;
  background:#f3cf6a;
}
.textbooks{left:2%;top:2%;width:100px;height:40px;}
.yearbooks{left:18%;top:0;width:150px;height:72px;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;}
.yearbooks span{grid-column:1 / -1;align-self:start;}
.certificates{left:50%;top:0;width:160px;height:72px;grid-template-rows:1fr 1fr;}
.retrodesk{right:1%;top:0;width:110px;height:84px;}
.jubileum{right:1%;top:105px;width:95px;height:300px;}
.teacher{left:2%;top:145px;width:155px;height:210px;gap:18px;}
.teacher strong{font:900 42px/1 "Courier New",monospace;}
.table-label{left:70%;top:130px;width:110px;height:250px;border-radius:14px;writing-mode:vertical-rl;font-size:28px;letter-spacing:.08em;}
.entrance-label{position:absolute;left:74%;bottom:-60px;font:800 34px/1 Arial,sans-serif;color:#161616;}
.entrance-label::after{
  content:"";position:absolute;left:-34px;top:34px;width:105px;height:70px;border:3px dashed #222;border-left:0;border-top:0;border-radius:0 0 80px 0;opacity:.8;
}
.wall-panels{
  position:absolute;left:1%;bottom:0;width:67%;height:38px;display:grid;grid-template-columns:repeat(6,1fr);gap:8px;align-items:end;
}
.wall-panels span{border:2px solid #151515;background:#fffefa;padding:8px 4px;font:700 12px/1.1 Arial,sans-serif;text-align:center;min-height:32px;display:grid;place-items:center;}
.central-cabinet{
  position:absolute;left:34%;top:150px;width:310px;height:235px;padding:8px;border:3px solid #151515;background:#fffefa;cursor:pointer;color:#111;box-shadow:0 0 0 2px rgba(0,0,0,.03);}
.central-cabinet::before{content:"";position:absolute;inset:-10px;border:2px dashed rgba(20,20,20,.55);border-radius:4px;pointer-events:none;}
.central-cabinet:hover{background:#fff8dc;}
.cabinet-title{position:absolute;left:8px;top:-28px;font:900 12px/1 "Courier New",monospace;letter-spacing:.08em;color:#5b3926;text-transform:uppercase;}
.cabinet-grid{height:100%;display:grid;grid-template-columns:repeat(10,1fr);grid-auto-rows:1fr;border:1px solid #151515;}
.cabinet-grid a{display:grid;place-items:center;border:1px solid #151515;font:900 14px/1 "Courier New",monospace;background:rgba(255,255,255,.54);}
.mini-grid{gap:0;overflow:hidden;}
.entrance-case{
  position:absolute;right:5.5%;bottom:45px;width:330px;height:150px;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,1fr);border:3px solid #151515;background:#fffefa;z-index:2;
}
.entrance-case a{display:grid;place-items:center;border:1px solid #151515;font:900 24px/1 "Courier New",monospace;}
.entrance-case a:nth-child(1){grid-column:1 / 3;}
.entrance-case a:nth-child(2){grid-column:3 / 5;}
.entrance-case a:nth-child(7){grid-column:1 / 2;}
.entrance-case a:nth-child(8){grid-column:2 / 4;}
.entrance-case a:nth-child(9){grid-column:4 / 5;}
.case-caption{position:absolute;right:8%;bottom:14px;font:800 14px/1.2 Arial,sans-serif;color:#4b2f1d;}

.shelf-modal{width:min(1100px,100%);}
.shelf-detail-grid{
  position:relative;
  min-height:520px;
  margin-top:18px;
  border:3px solid #151515;
  border-radius:8px;
  background:#fffefa;
  display:grid;
  grid-template-columns:repeat(10,1fr);
  grid-template-rows:repeat(7,1fr);
  overflow:hidden;
}
.slot{display:grid;place-items:center;border:1px solid #151515;font:900 clamp(18px,3vw,32px)/1 "Courier New",monospace;background:rgba(255,255,255,.6);}
.slot:hover{background:#f3cf6a;}
.s38{grid-area:1/1/2/3}.s39{grid-area:1/3/2/5}.s40{grid-area:1/5/2/7}.s41{grid-area:1/7/2/9}.s42{grid-area:1/9/3/11}
.s34{grid-area:2/1/3/2}.s33{grid-area:3/1/4/2}.s35{grid-area:2/2/4/5}.s36{grid-area:2/5/4/7}.s37{grid-area:2/7/4/9}
.s32{grid-area:4/1/5/2}.s31{grid-area:4/2/5/3}.s30{grid-area:4/3/5/4}.s29{grid-area:4/4/5/5}.s28{grid-area:4/5/5/6}.s27{grid-area:4/6/5/7}.s26{grid-area:4/7/5/8}.s25{grid-area:4/8/5/9}
.s23{grid-area:5/1/6/3}.s20{grid-area:5/3/6/6}.s17{grid-area:5/6/6/9}.s21{grid-area:6/2/7/4}.s15{grid-area:6/5/7/7}
.s22{grid-area:7/1/8/2}.s24{grid-area:7/2/8/4}.s19{grid-area:7/4/8/5}.s18{grid-area:7/5/8/7}.s16{grid-area:7/7/8/9}
.s4{grid-area:5/9/6/10}.s2{grid-area:5/10/6/11}.s3{grid-area:6/9/7/10}.s1{grid-area:6/10/7/11}.s5{grid-area:7/9/8/10}

@media(max-width:900px){
  .plan-board{padding:14px;min-height:680px;}
  .museum-room{width:900px;height:520px;margin-left:0;margin-right:0;}
  .entrance-case{right:30px;}
}
@media(max-width:640px){
  .modal-gallery{grid-template-columns:1fr 1fr;}
  .shelf-detail-grid{min-height:460px;grid-template-columns:repeat(10,minmax(42px,1fr));overflow:auto;}
  .slot{font-size:20px;min-width:42px;}
}

.cabinet-open-btn{position:absolute;right:8px;bottom:8px;border:2px solid #151515;background:#f3cf6a;color:#151515;padding:6px 8px;font:900 11px/1 "Courier New",monospace;cursor:pointer;z-index:5;}
.cabinet-open-btn:hover{background:#fff0a6;}


/* --- Logó + videó + nem kattintható térképkép --- */
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.museum-media-section,
.museum-map-image-section {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 10px;
}

.section-heading p {
  max-width: 760px;
}

.video-frame,
.map-image-frame {
  margin: 0;
  border: 2px solid rgba(40, 28, 16, .28);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 248, 232, .72);
  box-shadow: 0 18px 50px rgba(35, 24, 12, .16);
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #111;
}

.map-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.map-image-frame figcaption {
  padding: 12px 16px;
  color: var(--muted, #6d6255);
  font-size: .95rem;
  border-top: 1px solid rgba(40, 28, 16, .16);
}

@media (max-width: 640px) {
  .brand-logo {
    width: 38px;
    height: 38px;
  }
}

/* =========================
   MOBIL OPTIMALIZÁLÁS
========================= */

@media (max-width: 900px){

  .hero{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-card{
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-card strong{
    font-size: clamp(42px, 12vw, 72px);
  }

  .toolbar{
    flex-direction: column;
    gap: 12px;
  }

  .search-box,
  .filter-box{
    width: 100%;
  }

  .search-box input,
  .filter-box select{
    width: 100%;
  }

  .cards{
    grid-template-columns: 1fr;
  }

  .video-frame video{
    width: 100%;
    height: auto;
  }

  .map-image-frame img{
    width: 100%;
    height: auto;
    display: block;
  }

  .detail-modal{
    width: calc(100vw - 24px);
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-head{
    flex-wrap: wrap;
  }

  .modal-number{
    font-size: 32px;
  }

  .modal-gallery{
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item img{
    height: 120px;
  }
}

@media (max-width: 600px){

  .site-header{
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .brand{
    width: 100%;
    justify-content: center;
  }

  .brand-logo{
    width: 52px;
    height: 52px;
  }

  .hero{
    padding: 24px 16px;
  }

  .hero h1{
    font-size: 32px;
    line-height: 1.1;
  }

  .lead{
    font-size: 16px;
  }

  .section-heading h2{
    font-size: 28px;
  }

  .modal-gallery{
    grid-template-columns: 1fr;
  }

  .gallery-item img{
    height: 180px;
  }

  .card{
    padding: 16px;
  }

  .card h2{
    font-size: 20px;
  }

  footer{
    text-align: center;
    padding: 24px 16px;
  }
}

.video-frame iframe{
  width:100%;
  aspect-ratio:16/9;
  min-height:500px;
  border:none;
  border-radius:20px;
}



.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;

    max-width: 900px;
    margin: auto;

    padding: 20px;

    background: #ffffff;
    color: #222;

    border: 1px solid #ccc;
    border-radius: 10px;

    box-shadow: 0 4px 20px rgba(0,0,0,.2);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    z-index: 9999;
}

.cookie-banner p {
    margin: 5px 0 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 10px 16px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons {
        justify-content: flex-end;
    }
}