html { scroll-behavior: smooth; }
/* Egyedi scrollbar */
:root { scrollbar-color: #43A047 #e5e7eb; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 5px; }
::-webkit-scrollbar-thumb { background: #43A047; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #388E3C; }
/* Szövegkijelölés – professzionális megjelenés */
::selection {
  background: rgba(67, 160, 71, 0.4);
  color: #0f172a;
}
::-moz-selection {
  background: rgba(67, 160, 71, 0.4);
  color: #0f172a;
}
/* Badge Egyéni Vállalkozó */
.badge-ev {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1.5px solid #43A047;
  color: #43A047;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Scroll animációk – kezdeti állapot */
.animate-in { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.animate-in.animate-in-visible { opacity: 1; transform: translateY(0); }
.animate-in-delay-1 { transition-delay: 0.1s; }
.animate-in-delay-2 { transition-delay: 0.2s; }
.animate-in-delay-3 { transition-delay: 0.3s; }
.hero-bg {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%),
    url('img/galeria/kep1.jpg'), url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?w=1920');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.5rem;
}
.hero-accent {
  width: 4rem;
  height: 4px;
  border-radius: 2px;
  background: #43A047;
}
.section-accent {
  width: 4rem;
  height: 4px;
  border-radius: 2px;
  background: #43A047;
}
.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: #43A047;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-card {
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.section-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.btn-primary {
  background: #43A047;
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(67, 160, 71, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: #388E3C;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(67, 160, 71, 0.4);
}
.btn-primary:active { transform: scale(0.98); }
.btn-outline {
  border: 2px solid #43A047;
  color: #43A047;
  border-radius: 0.75rem;
  font-weight: 600;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn-outline:hover {
  background: rgba(67, 160, 71, 0.12);
  transform: scale(1.05);
  border-color: #388E3C;
  color: #2E7D32;
}
.btn-outline:active { transform: scale(0.98); }
a[href]:not(.btn-primary):not(.btn-outline) { transition: color 0.2s ease, opacity 0.2s ease; }
#map-megyek { background: #f5f6f8; }
#map-megyek .leaflet-interactive { cursor: pointer; }
.map-zoom-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.map-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.map-zoom-hint.show,
.map-zoom-overlay.show {
  opacity: 1;
  visibility: visible;
}
.county-label { background: none !important; border: none !important; }
.county-label-inner {
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 52px;
  line-height: 1.1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.county-label-text {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #1f2937;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 1px 1px rgba(255,255,255,0.9);
  pointer-events: none;
  user-select: none;
  display: inline-block;
}
.county-label-text.long-name { font-size: 8px; max-width: 50px; }
.county-label-text.very-long { font-size: 7px; max-width: 46px; }
.card-img-wrap { aspect-ratio: 4/3; }
.card-img-wrap img { transition: transform 0.4s ease; }
.group:hover .card-img-wrap img { transform: scale(1.05); }
.gallery-item { overflow: hidden; transition: transform 0.25s ease; }
.gallery-item img,
.gallery-item video { transition: transform 0.4s ease; }
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.08); }
/* Galéria álló képek: egész kép látszik, responsív */
.gallery-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  aspect-ratio: 3/4;
  background: #f3f4f6;
}
.gallery-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.35s ease, transform 0.4s ease;
}
.gallery-portrait video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #111827;
}
.gallery-item[data-gallery-type="video"] .gallery-portrait {
  position: relative;
  overflow: hidden;
}
.gallery-item[data-gallery-type="video"] .gallery-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.2) 100%);
  transition: background 0.25s ease;
}
.gallery-item[data-gallery-type="video"] .gallery-portrait::after {
  content: '\25B6';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  border: 2px solid rgba(255,255,255,0.75);
  background: rgba(17, 24, 39, 0.52);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}
.gallery-item[data-gallery-type="video"]:hover .gallery-portrait::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.12) 100%);
}
.gallery-item[data-gallery-type="video"]:hover .gallery-portrait::after {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(67, 160, 71, 0.92);
  border-color: #e8f5e9;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.45);
}
.skeleton-media {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}
.skeleton-media img.skeleton-image {
  opacity: 0;
  position: relative;
  z-index: 0;
  transition: opacity 0.4s ease;
}
.skeleton-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
  overflow: hidden;
  pointer-events: none;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.skeleton-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 80%);
  transform: translateX(-120%);
  animation: skeleton-shimmer 1.4s linear infinite;
}
.skeleton-preview {
  position: relative;
  z-index: 1;
  height: 54%;
  min-height: 130px;
  border-radius: 12px;
  background: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skeleton-preview svg {
  width: 38px;
  height: 38px;
  color: #9ca3af;
}
.skeleton-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}
.skeleton-line {
  height: 8px;
  border-radius: 999px;
  background: #d1d5db;
}
.skeleton-line.w-100 { width: 100%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-media.is-loaded img.skeleton-image { opacity: 1; }
.skeleton-media.is-loaded .skeleton-overlay {
  opacity: 0;
  visibility: hidden;
  animation: none;
}
@keyframes skeleton-shimmer {
  100% { transform: translateX(120%); }
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
@media (min-width: 640px) {
  .gallery-portrait { min-height: 320px; }
}
@media (min-width: 1024px) {
  .gallery-portrait { min-height: 380px; }
}
.img-cover { object-fit: cover; object-position: center; }
.contact-bg {
  background-image: linear-gradient(135deg, rgba(67, 160, 71, 0.92) 0%, rgba(56, 142, 60, 0.92) 100%),
    url('img/galeria/kep4.jpg'), url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?w=1920');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 639px) {
  body { padding-bottom: 72px; }
}
/* Back to top: alapból rejtett, csak görgetés után jelenik meg */
#back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 28px rgba(67, 160, 71, 0.45); }
#back-to-top:active { transform: translateY(0) scale(0.98); }
/* Nav linkek: hover aláhúzás + aktív szekció aláhúzva */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #43A047;
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover { color: #43A047; }
.nav-link.active { color: #43A047; }
.mobile-nav-link.active { color: #43A047; text-decoration: underline; text-underline-offset: 4px; }
/* Lightbox galéria */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#lightbox.show { opacity: 1; visibility: visible; }
#lightbox .lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox .lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
#lightbox .lightbox-video {
  width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}
#lightbox .lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(17,24,39,0.75);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  transition: background 0.2s ease, transform 0.2s ease;
}
#lightbox .lightbox-close:hover { background: rgba(255,255,255,0.35); transform: scale(1.05); }
#lightbox .lightbox-prev,
#lightbox .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
#lightbox .lightbox-prev { left: -56px; }
#lightbox .lightbox-next { right: -56px; }
@media (max-width: 640px) {
  #lightbox .lightbox-prev { left: 8px; }
  #lightbox .lightbox-next { right: 8px; }
  #lightbox .lightbox-close { top: 8px; right: 8px; }
}
#lightbox .lightbox-prev:hover,
#lightbox .lightbox-next:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.08); }
#lightbox .lightbox-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.gallery-clickable { cursor: pointer; }
.gallery-clickable:hover { opacity: 0.92; }
.hero-card .bg-transparent.border-2 { transition: background 0.2s ease, transform 0.2s ease; }
.hero-card .bg-transparent.border-2:hover { transform: scale(1.05); }
.contact-copy-btn { transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.contact-copy-btn:hover { transform: translateY(-1px) scale(1.02); }
.contact-copy-btn:active { transform: translateY(0) scale(0.98); }
.contact-priority-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.contact-call-hero {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.95rem;
}
.contact-email-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.9rem;
}
.contact-main-cta {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.contact-secondary-cta {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.44);
}
.contact-secondary-cta:hover { background: rgba(255, 255, 255, 0.26); }
nav a[href] { transition: color 0.2s ease, opacity 0.2s ease; }
#bottom-nav a, #mobile-menu a { transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease; }
#bottom-nav a:active, #mobile-menu a:active { transform: scale(0.97); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed; top: 0; left: 0; z-index: 100; width: auto; height: auto; padding: 0.75rem 1rem; margin: 0; clip: auto; background: #43A047; color: #fff; font-weight: 600; border-radius: 0 0 0.25rem 0; }

/* Loading screen – letisztult */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8faf8;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  font-family: 'Poppins', sans-serif;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(67, 160, 71, 0.2);
  border-top-color: #43A047;
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}
.loader-label {
  margin-top: 1.25rem;
  color: #37474f;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
#kapcsolat .select-all { user-select: all; -webkit-user-select: all; cursor: text; }
