.km-gallery-page{
  font-family:'Montserrat',Arial,sans-serif;
  background:#F8FAFC;
  color:#0F172A;
  padding:70px 20px;
  box-sizing:border-box;
}

.km-gallery-page *{
  box-sizing:border-box;
}

.km-gallery-wrap{
  max-width:1240px;
  margin:0 auto;
}

.km-gallery-hero{
  background:linear-gradient(135deg,#02112E 0%,#06235A 52%,#003C9E 100%);
  color:#fff;
  border-radius:20px;
  padding:56px 44px;
  margin-bottom:34px;
  box-shadow:0 18px 45px rgba(15,23,42,.18);
  position:relative;
  overflow:hidden;
}

.km-gallery-hero::after{
  content:"";
  position:absolute;
  right:-90px;
  top:-90px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:rgba(118,209,0,.18);
}

.km-gallery-hero h1{
  margin:0 0 18px;
  color:#fff;
  font-size:44px;
  line-height:1.1;
  font-weight:900;
  text-transform:uppercase;
}

.km-gallery-hero h1 span{
  color:#76D100;
}

.km-gallery-hero p{
  max-width:880px;
  margin:0;
  color:#E8EEF5;
  font-size:18px;
  line-height:1.7;
  font-weight:600;
}

.km-gallery-filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin:0 0 32px;
}

.km-gallery-filter{
  border:0;
  border-radius:999px;
  padding:13px 22px;
  background:#fff;
  color:#0F172A;
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(15,23,42,.08);
  transition:.25s ease;
}

.km-gallery-filter:hover,
.km-gallery-filter.active{
  background:#76D100;
  color:#fff;
  transform:translateY(-2px);
}

.km-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.km-gallery-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 14px 38px rgba(15,23,42,.10);
  transition:.25s ease;
  display:block;
}

.km-gallery-card.hide{
  display:none;
}

.km-gallery-card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 46px rgba(15,23,42,.16);
}

.km-gallery-media{
  position:relative;
  height:260px;
  overflow:hidden;
  background:#02112E;
  cursor:pointer;
}

.km-gallery-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:.35s ease;
}

.km-gallery-card:hover .km-gallery-media img{
  transform:scale(1.06);
}

.km-gallery-label{
  position:absolute;
  top:14px;
  left:14px;
  background:#76D100;
  color:#fff;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  z-index:2;
}

.km-gallery-featured-badge{
  position:absolute;
  right:14px;
  top:14px;
  background:#02112E;
  color:#fff;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  z-index:2;
  box-shadow:0 8px 20px rgba(0,0,0,.22);
}

.km-video-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(2,17,46,.22);
}

.km-video-play span{
  width:72px;
  height:72px;
  border-radius:50%;
  background:#76D100;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  box-shadow:0 16px 36px rgba(0,0,0,.28);
}

.km-gallery-content{
  padding:22px;
}

.km-gallery-content h3{
  margin:0 0 10px;
  color:#0F172A;
  font-size:18px;
  font-weight:900;
  text-transform:uppercase;
}

.km-gallery-content p{
  margin:0;
  color:#334155;
  font-size:14px;
  line-height:1.6;
  font-weight:600;
}

.km-gallery-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:-2px 0 12px;
}

.km-gallery-meta span{
  display:inline-flex;
  align-items:center;
  background:#F8FAFC;
  color:#334155;
  border:1px solid #E2E8F0;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  line-height:1;
  font-weight:900;
}

.km-gallery-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:14px;
}

.km-gallery-tags span{
  background:#EEF2F7;
  color:#0F172A;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.km-gallery-empty,
.km-gallery-empty-state{
  padding:30px;
  text-align:center;
  color:#64748B;
  font-weight:800;
}

.km-gallery-cta{
  margin-top:34px;
  background:linear-gradient(135deg,#02112E 0%,#06235A 55%,#003C9E 100%);
  color:#fff;
  border-radius:18px;
  padding:42px;
  text-align:center;
  box-shadow:0 18px 45px rgba(15,23,42,.18);
}

.km-gallery-cta h2{
  margin:0 0 14px;
  color:#fff;
  font-size:32px;
  font-weight:900;
  text-transform:uppercase;
}

.km-gallery-cta h2 span{
  color:#76D100;
}

.km-gallery-cta p{
  max-width:760px;
  margin:0 auto 24px;
  color:#E8EEF5;
  font-size:16px;
  line-height:1.65;
}

.km-gallery-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 30px;
  border-radius:10px;
  background:linear-gradient(180deg,#8BE11A 0%,#5AB400 100%);
  color:#fff!important;
  font-size:18px;
  font-weight:900;
  text-transform:uppercase;
  text-decoration:none!important;
  box-shadow:0 12px 28px rgba(118,209,0,.32);
  transition:.25s ease;
}

.km-gallery-btn:hover{
  transform:translateY(-2px);
  color:#fff!important;
  text-decoration:none!important;
}

body.km-lightbox-open{
  overflow:hidden;
}

.km-lightbox{
  position:fixed;
  inset:0;
  background:rgba(2,17,46,.94);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.km-lightbox.active{
  display:flex;
}

.km-lightbox-content{
  position:relative;
  width:100%;
  max-width:1040px;
  background:#02112E;
  border-radius:18px;
  padding:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
}

.km-lightbox-content img,
.km-lightbox-content iframe{
  width:100%;
  max-height:78vh;
  border-radius:12px;
  display:block;
  border:0;
}

.km-lightbox-content img{
  object-fit:contain;
  background:#02112E;
}

.km-lightbox-close{
  position:absolute;
  right:-14px;
  top:-14px;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:#76D100;
  color:#fff;
  font-size:26px;
  cursor:pointer;
  font-weight:900;
  z-index:6;
}

.km-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border:0;
  border-radius:50%;
  background:#76D100;
  color:#fff;
  font-size:40px;
  line-height:1;
  cursor:pointer;
  z-index:5;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.25s ease;
}

.km-lightbox-nav:hover,
.km-lightbox-close:hover{
  background:#5AB400;
}

.km-lightbox-prev{
  left:-22px;
}

.km-lightbox-next{
  right:-22px;
}

.km-lightbox-nav.is-hidden,
.km-lightbox-counter.is-hidden{
  display:none;
}

.km-lightbox-counter{
  position:absolute;
  left:50%;
  bottom:-18px;
  transform:translateX(-50%);
  background:#76D100;
  color:#fff;
  padding:8px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}

@media(max-width:1024px){
  .km-gallery-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:767px){
  .km-gallery-page{
    padding:50px 16px;
  }

  .km-gallery-hero{
    padding:38px 24px;
  }

  .km-gallery-hero h1{
    font-size:32px;
  }

  .km-gallery-hero p{
    font-size:16px;
  }

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

  .km-gallery-media{
    height:230px;
  }

  .km-gallery-filter{
    width:100%;
  }

  .km-gallery-cta{
    padding:28px 22px;
  }

  .km-gallery-cta h2{
    font-size:26px;
  }

  .km-gallery-btn{
    width:100%;
    text-align:center;
  }

  .km-gallery-featured-badge{
    right:10px;
    top:48px;
  }

  .km-lightbox{
    padding:18px;
  }

  .km-lightbox-content{
    padding:10px;
  }

  .km-lightbox-nav{
    width:42px;
    height:42px;
    font-size:30px;
  }

  .km-lightbox-prev{
    left:8px;
  }

  .km-lightbox-next{
    right:8px;
  }

  .km-lightbox-close{
    right:6px;
    top:6px;
    width:40px;
    height:40px;
    font-size:24px;
  }

  .km-lightbox-counter{
    bottom:14px;
  }
}

/* v1.4 SEO Max */
.km-lightbox-caption{
  color:#E8EEF5;
  font-size:14px;
  line-height:1.5;
  font-weight:700;
  text-align:center;
  padding:12px 12px 2px;
}

/* v1.5 – Térképes referenciák */
.km-gallery-map-section{
  margin-top:34px;
  background:#fff;
  border-radius:18px;
  padding:34px;
  box-shadow:0 14px 38px rgba(15,23,42,.10);
}

.km-gallery-map-head{
  text-align:center;
  margin-bottom:26px;
}

.km-gallery-map-head h2{
  margin:0 0 12px;
  color:#0F172A;
  font-size:32px;
  font-weight:900;
  text-transform:uppercase;
}

.km-gallery-map-head h2 span{
  color:#76D100;
}

.km-gallery-map-head p{
  max-width:760px;
  margin:0 auto;
  color:#334155;
  font-size:15px;
  line-height:1.65;
  font-weight:600;
}

.km-gallery-map-layout{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:24px;
  align-items:stretch;
}

.km-gallery-map-canvas{
  position:relative;
  min-height:420px;
  border-radius:18px;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(118,209,0,.18), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(14,116,217,.18), transparent 38%),
    linear-gradient(135deg,#02112E 0%,#06235A 55%,#003C9E 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.km-gallery-map-canvas::before{
  content:"";
  position:absolute;
  inset:28px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
}

.km-gallery-map-shape{
  position:absolute;
  left:50%;
  top:50%;
  width:72%;
  height:56%;
  transform:translate(-50%,-50%) rotate(-7deg);
  border-radius:48% 52% 45% 55% / 46% 42% 58% 54%;
  background:rgba(255,255,255,.08);
  border:2px solid rgba(255,255,255,.18);
  box-shadow:0 22px 60px rgba(0,0,0,.18);
}

.km-gallery-map-shape strong{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) rotate(7deg);
  color:rgba(255,255,255,.32);
  font-size:34px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
  white-space:nowrap;
}

.km-map-region{
  position:absolute;
  border-radius:50%;
  background:rgba(118,209,0,.12);
}

.km-map-region-1{ width:120px; height:80px; left:14%; top:22%; }
.km-map-region-2{ width:160px; height:100px; right:16%; top:28%; }
.km-map-region-3{ width:150px; height:90px; left:32%; bottom:14%; }

.km-map-pin{
  position:absolute;
  width:24px;
  height:24px;
  border:0;
  padding:0;
  border-radius:50% 50% 50% 0;
  background:#76D100;
  transform:translate(-50%,-100%) rotate(-45deg);
  cursor:pointer;
  z-index:4;
  box-shadow:0 10px 24px rgba(0,0,0,.32);
  transition:.25s ease;
}

.km-map-pin span{
  position:absolute;
  left:50%;
  top:50%;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#fff;
  transform:translate(-50%,-50%);
}

.km-map-pin:hover,
.km-map-pin.active{
  background:#8BE11A;
  transform:translate(-50%,-100%) rotate(-45deg) scale(1.18);
}

.km-map-pin.hide{
  display:none;
}

.km-gallery-map-list{
  display:grid;
  gap:12px;
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}

.km-map-list-item{
  width:100%;
  border:1px solid #E2E8F0;
  border-radius:14px;
  background:#F8FAFC;
  padding:16px;
  text-align:left;
  cursor:pointer;
  transition:.25s ease;
}

.km-map-list-item:hover,
.km-map-list-item.active{
  background:#02112E;
  border-color:#02112E;
  transform:translateY(-2px);
}

.km-map-list-item strong{
  display:block;
  color:#0F172A;
  font-size:15px;
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:7px;
}

.km-map-list-item span{
  display:block;
  color:#334155;
  font-size:13px;
  line-height:1.45;
  font-weight:700;
  margin-bottom:8px;
}

.km-map-list-item em{
  display:inline-flex;
  border-radius:999px;
  background:#76D100;
  color:#fff;
  padding:6px 10px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  font-style:normal;
}

.km-map-list-item:hover strong,
.km-map-list-item:hover span,
.km-map-list-item.active strong,
.km-map-list-item.active span{
  color:#fff;
}

.km-map-list-item.hide{
  display:none;
}

.km-gallery-card.km-card-highlight{
  outline:4px solid rgba(118,209,0,.55);
  outline-offset:4px;
}

@media(max-width:1024px){
  .km-gallery-map-layout{
    grid-template-columns:1fr;
  }
}

@media(max-width:767px){
  .km-gallery-map-section{
    padding:26px 18px;
  }

  .km-gallery-map-head h2{
    font-size:26px;
  }

  .km-gallery-map-canvas{
    min-height:310px;
  }

  .km-gallery-map-shape strong{
    font-size:20px;
  }

  .km-gallery-map-list{
    max-height:none;
  }
}


/* v2.0 – Teljes referencia rendszer */
.km-reference-service{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#02112E;
  color:#fff;
  border-radius:999px;
  padding:7px 12px;
  margin:0 0 12px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.km-before-after-slider{
  margin:16px 0;
}

.km-ba-images{
  position:relative;
  height:230px;
  border-radius:14px;
  overflow:hidden;
  background:#02112E;
  box-shadow:0 12px 28px rgba(15,23,42,.14);
}

.km-ba-images img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
}

.km-ba-before{
  z-index:1;
}

.km-ba-after{
  z-index:2;
  clip-path:inset(0 0 0 50%);
}

.km-ba-range{
  position:absolute;
  inset:0;
  z-index:4;
  width:100%;
  height:100%;
  opacity:0;
  cursor:ew-resize;
}

.km-ba-images::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:var(--km-ba-pos, 50%);
  width:3px;
  background:#76D100;
  z-index:3;
  transform:translateX(-50%);
  box-shadow:0 0 0 999px rgba(0,0,0,0);
}

.km-ba-label{
  position:absolute;
  z-index:5;
  top:12px;
  background:rgba(2,17,46,.82);
  color:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.km-ba-label-before{
  left:12px;
}

.km-ba-label-after{
  right:12px;
  background:#76D100;
}

.km-reference-story{
  margin:14px 0;
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  border-radius:12px;
  padding:14px;
}

.km-reference-story p{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.55;
}

.km-reference-story p:last-child{
  margin-bottom:0;
}

.km-gallery-testimonial{
  margin-top:16px;
  background:#02112E;
  color:#E8EEF5;
  border-radius:14px;
  padding:16px;
}

.km-gallery-testimonial p{
  color:#E8EEF5;
  margin:0 0 10px;
  font-size:13px;
  line-height:1.55;
  font-weight:700;
}

.km-gallery-testimonial strong{
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.km-gallery-stars{
  color:#76D100;
  letter-spacing:2px;
  margin-bottom:8px;
  font-size:16px;
}

.km-lightbox-open{
  overflow:hidden;
}

@media(max-width:767px){
  .km-ba-images{
    height:210px;
  }
}
