/* =========================================================
   referenciak.v2.css – EGYSÉGES (site design) + refs-trap
   ========================================================= */

.refs-trap{
  display:block;
  width:100%;
}

.refs-trap__wrap{
  max-width: var(--container, 1180px);
  margin: 0 auto;
  padding: 0 var(--pad, 16px) 72px;
  box-sizing: border-box;
}

/* HERO + BAR + PANEL: site "surface" */
.refs-trap__hero,
.refs-trap__bar,
.refs-trap__panel{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
}

.refs-trap__hero{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 16px;
  padding: 18px;
  margin-top: 18px;
}

.refs-trap__badge{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(245,238,220,.9);
  font-size: 12px;
  letter-spacing: .8px;
}

.refs-trap__h1{
  margin: 10px 0 8px;
  color: var(--text, #EAF0F6);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: .2px;
}

.refs-trap__lead{
  margin: 0 0 14px;
  color: rgba(234,240,246,.74);
  line-height: 1.7;
}

.refs-trap__actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Panel */
.refs-trap__panel{
  padding: 16px;
}
.refs-trap__panelT{
  color: rgba(245,238,220,.92);
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 8px;
}
.refs-trap__panelP{
  color: rgba(234,240,246,.74);
  line-height: 1.7;
}
.refs-trap__panelLine{
  height: 1px;
  margin: 12px 0;
  background: rgba(255,255,255,.10);
}
.refs-trap__panelHint{
  color: rgba(234,240,246,.62);
  font-size: 13px;
}

/* Search bar */
.refs-trap__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 16px;
  margin: 16px 0;
}
.refs-trap__kicker{
  color: rgba(245,238,220,.88);
  letter-spacing: .8px;
  font-size: 12px;
}
.refs-trap__barTitle{
  color: var(--text, #EAF0F6);
  font-weight: 850;
  margin-top: 3px;
}
.refs-trap__barDesc{
  color: rgba(234,240,246,.72);
  margin-top: 2px;
  font-size: 13px;
}

.refs-trap__search{
  display:flex;
  align-items:center;
  gap: 10px;
}
.refs-trap__search input{
  width: min(520px, 70vw);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--text, #EAF0F6);
  padding: 12px 12px;
  outline: none;
}
.refs-trap__search input::placeholder{
  color: rgba(234,240,246,.55);
}
#refsClear{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(245,238,220,.9);
  cursor: pointer;
}

/* Grid + cards */
.refs-trap__grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.rt-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0,0,0,.32);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.rt-card:hover{
  transform: translateY(-2px);
  border-color: rgba(198,90,46,.28);
  box-shadow: 0 24px 58px rgba(0,0,0,.40);
}

.rt-card__media{
  display:block;
  width:100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.rt-card__media img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
.rt-card__zoom{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11,15,20,.72);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(245,238,220,.92);
  font-size: 12px;
}

.rt-card__thumbs{
  display:flex;
  gap: 8px;
  padding: 10px 10px 0;
  overflow:auto;
}
.rt-thumb{
  flex: 0 0 auto;
  width: 56px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(255,255,255,.04);
  padding: 0;
  cursor: pointer;
}
.rt-thumb img{ width:100%; height:100%; object-fit: cover; display:block; }

.rt-card__body{ padding: 12px 12px 14px; }
.rt-card__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.rt-card__title{
  color: var(--text, #EAF0F6);
  font-weight: 850;
  line-height: 1.25;
}
.rt-card__pill{
  background: rgba(198,90,46,.14);
  border: 1px solid rgba(198,90,46,.22);
  color: rgba(245,238,220,.95);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.rt-card__meta{
  margin-top: 8px;
  color: rgba(234,240,246,.70);
  font-size: 13px;
}
.rt-card__meta .dot{ opacity:.6; margin: 0 6px; }
.rt-card__tags{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rt-card__tags span{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(234,240,246,.85);
  font-size: 12px;
}
.rt-card__desc{
  margin-top: 10px;
  color: rgba(234,240,246,.72);
  line-height: 1.6;
}

/* Empty */
.refs-trap__empty{
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(234,240,246,.74);
}
.refs-trap__empty[hidden]{ display:none !important; }

/* Lightbox */
.rt-lb[hidden]{ display:none !important; }
.rt-lb{
  position: fixed;
  inset: 0;
  z-index: 20000;
}
.rt-lb__ov{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}
.rt-lb__panel{
  position: relative;
  margin: 6vh auto;
  width: min(1080px, calc(100vw - 24px));
  background: rgba(11,15,20,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0,0,0,.60);
  overflow:hidden;
}
.rt-lb__close{
  position:absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(245,238,220,.95);
  cursor: pointer;
}
.rt-lb__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 8px;
}
.rt-lb__title{ color: var(--text,#EAF0F6); font-weight: 900; }
.rt-lb__meta,
.rt-lb__desc,
.rt-lb__cap{ color: rgba(234,240,246,.72); margin-top: 4px; }
.rt-lb__cta{ display:flex; gap: 10px; flex-wrap: wrap; }

.rt-lb__stage{
  position: relative;
  padding: 10px 16px 16px;
}
#lbImg{
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display:block;
  background: rgba(0,0,0,.35);
  border-radius: 18px;
}
.rt-lb__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(245,238,220,.95);
  cursor: pointer;
}
.rt-lb__nav--prev{ left: 10px; }
.rt-lb__nav--next{ right: 10px; }

.rt-lb__foot{
  padding: 0 16px 16px;
}
.rt-lb__hint{
  color: rgba(234,240,246,.62);
  font-size: 13px;
}

/* Mobil */
@media (max-width: 980px){
  .refs-trap__hero{ grid-template-columns: 1fr; }
  .refs-trap__h1{ font-size: 26px; }
  .refs-trap__bar{ flex-direction: column; align-items: stretch; }
  .refs-trap__search input{ width: 100%; }
  .rt-card__media img{ height: 200px; }
  .rt-lb__panel{ margin: 10vh auto; }
}
