/* Admin metabox elrendezés */
.hk-etlap-fields .hk-field-row { display:flex; gap:16px; align-items:flex-end; }
.hk-etlap-fields .hk-field { flex:1; }

/* Desktop Grid - alapértelmezetten látható */
.etlap-grid.etlap-desktop {
  display: grid;
  grid-template-columns: repeat(var(--cols,3), minmax(0,1fr));
  gap: 16px;
  width: 510px;
}

/* Mobile Slider - alapértelmezetten rejtett */
.etlap-slider.etlap-mobile {
  display: none;
}

/* Kártya alap stílus */
.etlap-card {
  position: relative;
  aspect-ratio: 3 / 4.2;
  background: #cc1820;
  border-radius: 8px;
  text-decoration: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  height: auto;
}

.etlap-card .card-bg{
  position:absolute; 
  inset:12px;
  z-index:1;
}

.etlap-card .card-frame{
  position:absolute; inset:0;
  border-radius:10px;
  outline: 1px solid #F2E8DA;
  outline-offset:-6px;
  z-index:1;
  pointer-events:none;
}

.etlap-card .card-label {
  position: relative;
  z-index: 2;
  font-size: 16px;
  color: #fff;
  font-family: "NeueHaas", Sans-serif;
  letter-spacing: .12em;
  text-align: center;
  padding: 0 18px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Hover képréteg */
.etlap-card .card-hover{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  transform: scale(1.04);
  z-index:0;
}

/* Sarok ikonok */
.etlap-card .card-icon {
  position: absolute;
  width: 15px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

.etlap-card .card-icon-top {
  top: 12px;
  left: 12px;
  transform: rotate(0deg);
}

.etlap-card .card-icon-bottom {
  bottom: 12px;
  right: 12px;
  transform: rotate(180deg);
}

.etlap-card:hover .card-hover{ opacity:1; transform: scale(1.02); }
.etlap-card:hover .card-label{ text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* Tablet */
@media (max-width: 1024px){
  .etlap-grid.etlap-desktop { 
    grid-template-columns: repeat(var(--cols,2), minmax(0,1fr)); 
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Mobile - egyszerű váltás */
@media (max-width: 680px){
  .etlap-grid.etlap-desktop {
    display: none;
  }

  .etlap-card {
    width: 200px;
    height: 280px;
}
  
  .etlap-slider.etlap-mobile {
    display: block;
  }
  
  .etlap-slider .etlap-card .card-label {
    font-size: 14px;
  }
}

/* Egyedi dot stílusok */
.etlap-slider .splide__pagination__page {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  border: 1px solid #F2E8DA;
  background: transparent;
  opacity: 1;
}

.etlap-slider .splide__pagination__page.is-active {
  background: #F2E8DA;
}


.splide__pagination {
    bottom: -2.5em;
    left: 0;
    padding: 0 1em;
    position: absolute;
    right: 0;
    z-index: 1;
    gap: 10px;
}