/* ----- RESET & ALAPOK (színek: rgba(45,58,66) = #2D3A42, rgba(237,27,36) = #ED1B24, fehér) ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: "Barlow", sans-serif;
  overflow-x: hidden;
  background-color: #ecf0f4; /* világos háttér, közel fehér */
  color: #2d3a42; /* sötét szürke */
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* az oldal legalább a képernyő magassága */
  margin: 0;
  padding: 0;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.kezdo-piros {
  color: #ed1b24;
}
.berlesLink{
  text-decoration: underline;
  cursor: pointer;
  color: #ed1b24;
}
/* ----- BÉRLÉS OLDAL – teljes szélességű kép, középre igazítva ----- */
#page-rent.active {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  padding: 1rem;           /* normal padding on all sides */
  width: 90%;
  max-width: 90%;         /* never exceed viewport width */
  overflow-x: hidden;      /* extra safety */
}

#page-rent .berles {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;        /* clips any overflow (shadows, etc.) */
}

#page-rent .berles img {
  width: 100%;
  max-width: 100%;         /* ensures the image never exceeds its container */
  height: auto;
  max-height: 90vh;        /* optional – limits height */
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(45, 58, 66, 0.12);
  display: block;
}

/* ---- Kisebb képernyőkön (≤680px) töröljük a bal/jobb paddingot ---- */
@media (max-width: 680px) {
  #page-rent.active {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ----- HEADER ----- */
.header {
  background: #2d3a42;
  box-shadow: 0 2px 12px rgba(45, 58, 66, 0.08);
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid #ed1b24;
}

.logo {
  height: 70px;
}

.logo:hover {
  cursor: pointer;
}

.logo span {
  color: #ed1b24;
}

.nav a {
  margin-left: 2rem;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav a:hover {
  color: #ed1b24;
}

/* ----- OLDALAK (JS váltja) ----- */
.page {
  display: none;
  padding: 2rem 1.5rem 4rem;
  margin: 0 auto;
  width: 90%;
  max-width: 100%;
}
.page.active {
  display: block;
  flex: 1;
}

/* ----- KEZDŐOLDAL (ELADNÉK / VENNÉK) ----- */
.home-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.home-title {
  font-size: 2.8rem;
  font-weight: 300;
  color: #2d3a42;
  margin-bottom: 0.5rem;
}
.home-title strong {
  font-weight: 700;
  color: #ed1b24;
}
.home-sub {
  font-size: 1.2rem;
  color: #5a6a7a;
  margin-bottom: 3rem;
}

/* ----- HEADER LOGO LARGER ON HOME PAGE ----- */
.header.home-page .logo {
  height: 100px; /* or 110px, whatever fits your design */
  transition: height 0.3s ease;
}

@media (max-width:680px) {
   .header.home-page .logo {
  height: 70px;
  transition: height 0.3s ease;
}
.header.home-page {
  height: 90px; /* slightly larger than the logo + padding */
}
}

/* Also increase the header container height to avoid clipping */
.header.home-page {
  height: 100px; /* slightly larger than the logo + padding */
}

.choice-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.choice-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(45, 58, 66, 0.06);
  padding: 3rem 4rem;
  width: 280px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.choice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(45, 58, 66, 0.1);
  border-color: #ed1b24;
}

.choice-card .icon {
  font-size: 3.8rem;
  display: block;
  margin-bottom: 0.5rem;
}
.choice-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3a42;
}
.choice-card p {
  color: #5a6a7a;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ----- AUTÓK LISTÁJA (VENNÉK) ----- */
.buy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.buy-header h1 {
  font-size: 2.2rem;
  font-weight: 300;
  color: #2d3a42;
}
.buy-header h1 strong {
  font-weight: 700;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.car-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(45, 58, 66, 0.04);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45, 58, 66, 0.08);
}

.car-image {
  height: 250px;
  background: #eaeef2; /* világos szürke */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #2d3a42;
  font-weight: 300;
}
.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3a42;
}
.car-details {
  margin: 0.5rem 0 0.25rem;
  color: #5a6a7a;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.car-details span {
  background: #f0f3f6;
  padding: 0.2rem 0.7rem;
  border-radius: 30px;
  font-size: 0.85rem;
}

.car-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d3a42;
  margin: 0.75rem 0 0.25rem;
  margin-top: auto;
}
.car-price small {
  font-weight: 400;
  font-size: 1rem;
  color: #5a6a7a;
}

.car-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ----- GOMBOK ----- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  text-align: center;
  background: #f0f3f6;
  color: #2d3a42;
}
.btn:hover {
  transform: scale(0.97);
}

.btn-primary {
  background: #2d3a42; /* sötét szürke */
  color: #ffffff;
}
.btn-primary:hover {
  background: #1f2a30;
}

.btn-accent {
  background: #ed1b24; /* piros */
  color: #ffffff;
}
.btn-accent:hover {
  background: #c4141c;
}

.btn-outline {
  background: transparent;
  border: 2px solid #2d3a42;
  color: #2d3a42;
}
.btn-outline:hover {
  background: #2d3a42;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 48px 60px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 40%,
      rgba(204, 34, 34, 0.07) 0%,
      transparent 65%
    ),
    linear-gradient(160deg, #e8eaee 0%, #f2f4f7 50%, #ede8e8 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 60px,
    rgba(204, 34, 34, 0.06) 60px,
    rgba(204, 34, 34, 0.06) 61px
  );
  opacity: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeUp 0.9s ease both;
}
.hero-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 52px;
}
.hero-stat {
  padding: 12px 16px;
  border-right: 1px solid rgba(30, 37, 48, 0.2);
  flex: 1 1 0;
  min-width: 0;
}
.hero-stat:last-child {
  border-right: none;
}
.hero-stat-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  color: #1e2530;
}
.hero-stat-num span {
  color: red;
}
.hero-stat-label {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a6a7e;
  margin-top: 6px;
}
.hero-choices {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero {
  padding: 96px 20px 48px;
}
.hero-choices {
  flex-direction: row;
  align-items: stretch;
}

/* ----- MODAL (BESZÁMÍTÁSI AJÁNLAT) ----- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 58, 66, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  max-width: 580px;
  width: 100%;
  border-radius: 32px;
  padding: 2.5rem 2.5rem 2.2rem;
  box-shadow: 0 30px 60px rgba(45, 58, 66, 0.2);
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-box h2 {
  font-size: 1.8rem;
  font-weight: 300;
  color: #2d3a42;
  margin-bottom: 0.25rem;
}
.modal-box h2 strong {
  font-weight: 700;
}
.modal-box .sub {
  color: #5a6a7a;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-box .car-ref {
  background: #f0f3f6;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #2d3a42;
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2d3a42;
  margin-bottom: 0.25rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #d0d8e0;
  border-radius: 16px;
  font-size: 1rem;
  background: #fafcfd;
  transition: border 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ed1b24;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.modal-actions .btn {
  flex: 1;
  min-width: 120px;
}

.btn-close-modal {
  background: transparent;
  border: 2px solid #d0d8e0;
  color: #2d3a42;
}
.btn-close-modal:hover {
  background: #f0f3f6;
}

/* ----- RESPONSZIVITÁS ----- */
@media (max-width: 680px) {
  .header {
    padding: 0 1rem;
    height: 70px;
    transition: height 0.3s ease;
  }
  .logo {
    height: 60px;
  }
  .nav a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }

  .home-title {
    font-size: 2rem;
  }
  .choice-card {
    width: 100%;
    max-width: 300px;
    padding: 2rem 1.5rem;
  }
  .choice-grid {
    gap: 1.5rem;
  }

  .buy-header h1 {
    font-size: 1.6rem;
  }
  .car-grid {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 1.8rem 1.2rem;
  }
  .modal-actions .btn {
    flex: 1 1 100%;
  }

  .hero-stat {
    padding: 8px 10px;
  }
  .hero-stat-num {
    font-size: 36px;
  }
  .hero-stat-label {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .home-title {
    font-size: 1.6rem;
  }
  .home-sub {
    font-size: 1rem;
  }
  .choice-card .icon {
    font-size: 2.8rem;
  }
  .choice-card h2 {
    font-size: 1.6rem;
  }
  .hero-stat {
    padding: 8px 10px;
  }
  .hero-stat-num {
    font-size: 26px;
  }
  .hero-stat-label {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

/* ====== AUTÓ RÉSZLETEK OLDAL – EGYOSZLOPOS (képek felül, leírás alul) ====== */
.car-detail-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Vissza gomb */
.back-button {
  align-self: flex-start;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: #2d3a42;
  cursor: pointer;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}
.back-button:hover {
  color: #ed1b24;
}

/* --- KÉPGALÉRIA (teljes szélesség) --- */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  margin: auto;
  max-height: 90vh;
}

.gallery-main {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(45, 58, 66, 0.06);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  width: 100%;
}

.gallery-main img {
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  color: #2d3a42;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
  z-index: 5;
  opacity: 0.7;
}
.gallery-nav:hover {
  background: #ffffff;
}
.gallery-nav.prev {
  left: 12px;
}
.gallery-nav.next {
  right: 12px;
}

.image-counter {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: rgba(45, 58, 66, 0.7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.8rem;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}
.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #c0c8d0;
  border-radius: 10px;
}
.gallery-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.2s;
  flex-shrink: 0;
}
.gallery-thumbnails img:hover,
.gallery-thumbnails img.active-thumb {
  border-color: #ed1b24;
  opacity: 1;
}

/* --- AUTÓ INFORMÁCIÓK (teljes szélesség alul) --- */
.car-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* Cím és ár nagyobb méretben */
.car-info .car-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3a42;
  line-height: 1.2;
  margin: 0;
}

.car-info .car-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2d3a42;
  margin: 0;
}

.car-description,
.car-felszereltseg {
  color: #3e4b55;
  font-size: 1rem;
  line-height: 1.6;
}

/* Gombok */
.car-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----- SPECIFIKÁCIÓS BLOKKOK (a car-specs-ben) ----- */
.car-specs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.spec-group {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(45, 58, 66, 0.04);
}

.spec-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ed1b24;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f3f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #e0e5ea;
  padding-bottom: 0.5rem;
  font-size: 0.95rem;
  word-break: normal; /* megakadályozza a betűnkénti törést */
  overflow-wrap: normal;
}

.spec-item dt {
  font-weight: 600;
  color: #2d3a42;
  flex-shrink: 0;
  margin-right: 1rem;
}
.spec-item dd {
  text-align: right;
  color: #4f5b68;
  word-break: normal;
  overflow-wrap: normal;
}

/* Leírás / felszereltség a spec-ek között */
.spec-group .car-description p,
.spec-group .equipment-list p {
  margin: 0;
  color: #3e4b55;
  line-height: 1.6;
  word-break: normal;
}

/* Elérhetőség kiemelt blokk */
.spec-contact {
  background: #f8f9fb;
  border: 1px solid #e0e5ea;
}
.spec-contact .spec-item dd a {
  color: #ed1b24;
  font-weight: 600;
  text-decoration: underline;
}
.spec-contact .spec-item dd a:hover {
  color: #b0141b;
}

/* ----- RESPONZIVITÁS ----- */
@media (max-width: 768px) {
  .spec-list {
    grid-template-columns: 1fr; /* mobilon egyoszloposak a spec-ek */
  }
  .car-info .car-title {
    font-size: 1.6rem;
  }
  .car-info .car-price {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-main {
    aspect-ratio: 4/3;
  }
  .car-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ----- LAPOZÓ GOMBOK (oldalGomb) ----- */

/* ── KÜLSŐ KONTÉNER ── */
#oldalak {
  margin: auto;
  display: flex;
  justify-content: space-between;
  /* BALRA ÉS JOBBRA TOLJA A NYILAKAT */
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: nowrap;
  /* SOHA NE TÖRJÖN MEG A KÜLSŐ KONTÉNER */
  max-width: 100%;
}

/* ── SZÁMGOMBOK KONTÉNERE (itt történik a törés) ── */
.oldalGombokContainer {
  display: flex;
  flex-wrap: wrap;
  /* IDE TÖRJENEK A SZÁMOK */
  align-items: center;
  justify-content: center;
  /* SZÁMOK KÖZÉPRE IGAZÍTÁSA */
  gap: 0.5rem;
  flex: 1 1 auto;
  /* KIFESZÜL A RENDELKEZÉSRE ÁLLÓ HELYRE */
  min-width: 0;
  /* TÚLCSORDULÁS MEGAKADÁLYOZÁSA */
  padding: 0.25rem 0;
}

/* ── NYILAK (◀ ▶) ── */
.oldalGombNyil {
  flex-shrink: 0;
  /* SOHA NE ZSUGORODJANAK */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 30px;
  border: 2px solid #d0d8e0;
  background: #f0f3f6;
  color: #2d3a42;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.oldalGombNyil:hover {
  background: #e0e5ea;
  border-color: #2d3a42;
  transform: scale(0.96);
}

.oldalGombNyil:active {
  transform: scale(0.92);
}

/* ── EGYES OLDALGOMBOK ── */
.oldalGomb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 30px;
  border: 2px solid #d0d8e0;
  background: #ffffff;
  color: #2d3a42;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  /* NE ZSUGORODJANAK A GOMBOK */
}

.oldalGomb:hover {
  background: #f0f3f6;
  border-color: #2d3a42;
  transform: scale(0.96);
}

.oldalGomb:active {
  transform: scale(0.92);
}

/* Aktív oldal kiemelése */
.oldalGomb.aktiv {
  background: #ed1b24;
  border-color: #ed1b24;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(237, 27, 36, 0.3);
}

.oldalGomb.aktiv:hover {
  background: #c4141c;
  border-color: #c4141c;
  transform: none;
}

/* ── RESZPONZÍV FINOMÍTÁS ── */
@media (max-width: 480px) {
  .oldalGomb {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
  #oldalak {
    gap: 0.3rem;
  }
  .oldalGombokContainer {
    gap: 0.3rem;
  }
  .oldalGombNyil {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

#erdekelBtn {
  width: 48%;
  margin: auto;
}
#beszamitBtn {
  width: 48%;
  margin: auto;
}

footer {
  background: #2d3a42;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 4px solid #ed1b24;
  margin-top: auto;
}
.footer-logo img {
  height: 80px;
}
.footer-copy {
  font-size: 12px;
  color: gray;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: gray;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-links a:hover {
  color: red;
}

/* ----- KAPCSOLAT OLDAL ----- */
.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: #2d3a42;
  margin-bottom: 2rem;
  text-align: center;
}
.contact-title strong {
  font-weight: 700;
  color: #ed1b24;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 18px rgba(45, 58, 66, 0.04);
}
.info-block h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3a42;
  margin-bottom: 0.8rem;
  border-bottom: 3px solid #ed1b24;
  padding-bottom: 0.4rem;
  display: inline-block;
}
.info-block p {
  margin: 0.5rem 0;
  color: #2d3a42;
  line-height: 1.6;
}
.info-block a {
  color: #ed1b24;
  text-decoration: none;
}
.info-block a:hover {
  text-decoration: underline;
}
.info-block em {
  color: #5a6a7a;
  font-style: italic;
}

.contact-map {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 18px rgba(45, 58, 66, 0.04);
}
.contact-map h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3a42;
  margin-bottom: 0.8rem;
  border-bottom: 3px solid #ed1b24;
  padding-bottom: 0.4rem;
  display: inline-block;
}
.contact-map iframe {
  width: 100%;
  height: 90%;
  border-radius: 16px;
  margin-top: 0.5rem;
}

/* ----- CSAPAT ----- */
.team-section {
  margin-top: 2.5rem;
}
.team-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3a42;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 3px solid #ed1b24;
  display: inline-block;
  padding-bottom: 0.4rem;
}
.team-section h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.team-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 6px 18px rgba(45, 58, 66, 0.04);
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid transparent;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45, 58, 66, 0.08);
  border-color: #ed1b24;
}

.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ed1b24;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  text-transform: uppercase;
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3a42;
  margin-bottom: 0.3rem;
}
.team-role {
  font-size: 0.9rem;
  color: #5a6a7a;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.team-phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3a42;
  margin-bottom: 0.3rem;
}
.team-email {
  font-size: 0.85rem;
}
.team-email a {
  color: #ed1b24;
  text-decoration: none;
  word-break: break-all;
}
.team-email a:hover {
  text-decoration: underline;
}

/* ----- RESPONSZIVITÁS ----- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-map iframe {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .contact-title {
    font-size: 1.8rem;
  }
  .info-block {
    padding: 1rem 1.2rem;
  }
  .contact-map {
    padding: 1rem 1.2rem;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .team-card {
    padding: 1rem 0.8rem;
  }
  .team-avatar {
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
  }
}

@media (max-width: 450px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- SZŰRŐPANEL ----- */
.filter-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 6px 18px rgba(45, 58, 66, 0.04);
  border: 1px solid #eef0f2;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #2d3a42;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid #d0d8e0;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fafcfd;
  color: #2d3a42;
  transition: border-color 0.2s;
  font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #ed1b24;
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-range input {
  flex: 1;
}

.filter-range span {
  color: #5a6a7a;
  font-weight: 600;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.filter-actions .btn {
  min-width: 120px;
}

.filter-result {
  font-weight: 600;
  color: #2d3a42;
  margin-left: auto;
  font-size: 0.95rem;
}

/* Reszponzív finomhangolás */
@media (max-width: 768px) {
  .filter-section {
    padding: 1rem 1.2rem;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-actions .btn {
    width: 100%;
  }
  .filter-result {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .filter-row {
    grid-template-columns: 1fr;
  }
  .filter-range {
    flex-wrap: nowrap;
  }
  .filter-range input {
    min-width: 0;
  }
}

/* ----- FELVÁSÁRLÁS (ELADÁS) OLDAL ----- */
.sell-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 0.75rem 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a6a7a;
  text-decoration: none;
}
.back-link:hover {
  color: #ed1b24;
}

.sell-header {
  margin-bottom: 40px;
}
.sell-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
  color: #2d3a42;
  margin-bottom: 16px;
}
.sell-title .highlight {
  color: #ed1b24;
  display: block;
}
.sell-sub {
  font-size: 16px;
  font-weight: 300;
  color: #5a6a7a;
  line-height: 1.65;
  max-width: 600px;
}

.sell-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.sell-info .section-label {
  margin-bottom: 8px;
}
.sell-info-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  color: #2d3a42;
  margin-bottom: 14px;
}
.sell-info p {
  font-size: 15px;
  font-weight: 300;
  color: #3a4a5e;
  line-height: 1.8;
  margin-bottom: 14px;
}
.sell-info p strong {
  color: #2d3a42;
  font-weight: 500;
}

.sell-benefits {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.sell-benefits li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #3a4a5e;
  padding: 8px 0;
  border-bottom: 1px solid #e0e4ea;
}
.sell-benefits li::before {
  content: "✓";
  color: #ed1b24;
  font-weight: 700;
}

.sell-highlight {
  background: #ffffff;
  border-left: 3px solid #ed1b24;
  padding: 18px 20px;
  margin-top: 28px;
  box-shadow: 0 4px 12px rgba(45, 58, 66, 0.06);
}
.highlight-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2d3a42;
  margin-bottom: 6px;
}
.highlight-desc {
  font-size: 13px;
  color: #5a6a7a;
  line-height: 1.6;
}

/* ----- LÉPCSŐS ŰRLAP (MS = Multi Step) ----- */
.ms-form {
  background: #ffffff;
  border: 1px solid #eef0f2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(45, 58, 66, 0.04);
}

.ms-header {
  padding: 28px 32px;
  border-bottom: 1px solid #eef0f2;
}
.ms-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: #2d3a42;
  letter-spacing: 1px;
}

.ms-progress {
  display: flex;
  margin-top: 20px;
  gap: 0;
}
.ms-step {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a6a7a;
  border-bottom: 2px solid #d0d8e0;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.ms-step.active {
  color: #ed1b24;
  border-color: #ed1b24;
}
.ms-step.done {
  color: #2d3a42;
  border-color: #2d3a42;
}
.ms-step-num {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2px;
}

.ms-body {
  padding: 32px;
}
.ms-panel {
  display: none;
  animation: fadeUp 0.4s ease;
}
.ms-panel.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ms-panel h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: #2d3a42;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* Űrlap elemek */
.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #3a4a5e;
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d0d8e0;
  color: #2d3a42;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 12px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ed1b24;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.uppercase-input {
  text-transform: uppercase;
}
.field-hint {
  font-size: 11px;
  color: #5a6a7a;
  margin-top: 5px;
}

.photo-info {
  font-size: 13px;
  color: #5a6a7a;
  margin-bottom: 20px;
  line-height: 1.6;
}
.photo-hints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.photo-hint {
  background: #f5f7fa;
  border: 1px solid #eef0f2;
  padding: 8px 10px;
  font-size: 11px;
  color: #5a6a7a;
  text-align: left;
  border-radius: 8px;
}
.photo-hint strong {
  display: block;
  color: #2d3a42;
  font-size: 12px;
  margin-bottom: 2px;
}

.photo-upload-area {
  border: 2px dashed #d0d8e0;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s;
  position: relative;
  border-radius: 16px;
  margin-top: 20px;
}
.photo-upload-area:hover {
  border-color: #ed1b24;
  background: rgba(237, 27, 36, 0.04);
}
.photo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.photo-upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.photo-upload-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: #2d3a42;
  margin-bottom: 6px;
}
.photo-upload-desc {
  font-size: 12px;
  color: #5a6a7a;
  line-height: 1.6;
}
.photo-ext {
  color: #ed1b24;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.photo-thumb {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #eef0f2;
  border-radius: 6px;
}

.ms-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eef0f2;
}
.ms-back {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #3a4a5e;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.ms-back:hover {
  color: #2d3a42;
}
.ms-next {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  background: #ed1b24;
  border: none;
  padding: 13px 30px;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s;
}
.ms-next:hover {
  background: #c4141c;
}
.ms-step-info {
  font-size: 12px;
  color: #5a6a7a;
}

.contact-divider {
  border-top: 1px solid #eef0f2;
  margin: 20px 0;
  padding-top: 20px;
}
.contact-divider-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2d3a42;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.email-warning {
  font-size: 14px;
  font-weight: 600;
  color: #ed1b24;
  margin-top: 7px;
  letter-spacing: 0.3px;
}

/* Sikeres üzenet */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success-icon {
  font-size: 52px;
  margin-bottom: 16px;
}
.form-success-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  color: #2d3a42;
  margin-bottom: 8px;
}
.form-success-desc {
  font-size: 14px;
  color: #5a6a7a;
  line-height: 1.6;
}
.form-success-action {
  margin-top: 28px;
}

/* Reszponzív */
@media (max-width: 900px) {
  .sell-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ms-header {
    padding: 20px 20px;
  }
  .ms-body {
    padding: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .photo-hints {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ms-step {
    font-size: 9px;
    padding: 8px 2px;
  }
  .ms-step-num {
    font-size: 14px;
  }
  .ms-nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .ms-next {
    width: 100%;
    text-align: center;
  }
  .sell-wrapper {
    width: 100%;
  }
  #page-sell {
    width: 100%;
  }
}

.disabled {
  background-color: lightslategray;
}

.disabled:hover {
  cursor: wait;
  background-color: lightslategray;
}

.porgo {
  cursor: wait;
}

/* ==========================================================
   ANIMÁCIÓK
   ========================================================== */

/* ----- BEÚSZÓ ANIMÁCIÓK ----- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(237, 27, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(237, 27, 36, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes countPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes borderGlow {
  0%,
  100% {
    border-color: #ed1b24;
    box-shadow: 0 0 8px rgba(237, 27, 36, 0.15);
  }
  50% {
    border-color: #ff4d55;
    box-shadow: 0 0 20px rgba(237, 27, 36, 0.3);
  }
}

/* ----- OLDALAK BEÚSZÁSA (már aktív oldalon) ----- */
.page.active {
  animation: fadeUp 0.5s ease both;
}

/* ----- KEZDŐOLDAL ELEMEK ----- */
.hero-stats-row {
  animation: fadeUp 0.7s ease both;
}

.choice-grid .choice-card:nth-child(1) {
  animation: slideInLeft 0.6s ease both 0.2s;
}
.choice-grid .choice-card:nth-child(2) {
  animation: slideInRight 0.6s ease both 0.3s;
}

.choice-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.choice-card:hover .icon {
  animation: float 1.2s ease infinite;
}

.hero-stat-num {
  transition: color 0.3s ease;
}
.hero-stat:hover .hero-stat-num {
  color: #ed1b24;
}
.hero-stat:hover .hero-stat-num span {
  color: #ed1b24;
}

/* ----- AUTÓKÁRTYÁK SOROS MEGJELENÉS ----- */
.car-grid .car-card {
  opacity: 0;
  animation: scaleIn 0.5s ease forwards;
}

.car-grid .car-card:nth-child(1) {
  animation-delay: 0.05s;
}
.car-grid .car-card:nth-child(2) {
  animation-delay: 0.1s;
}
.car-grid .car-card:nth-child(3) {
  animation-delay: 0.15s;
}
.car-grid .car-card:nth-child(4) {
  animation-delay: 0.2s;
}
.car-grid .car-card:nth-child(5) {
  animation-delay: 0.25s;
}
.car-grid .car-card:nth-child(6) {
  animation-delay: 0.3s;
}
.car-grid .car-card:nth-child(7) {
  animation-delay: 0.35s;
}
.car-grid .car-card:nth-child(8) {
  animation-delay: 0.4s;
}
.car-grid .car-card:nth-child(9) {
  animation-delay: 0.45s;
}
.car-grid .car-card:nth-child(10) {
  animation-delay: 0.5s;
}
.car-grid .car-card:nth-child(11) {
  animation-delay: 0.55s;
}
.car-grid .car-card:nth-child(12) {
  animation-delay: 0.6s;
}
.car-grid .car-card:nth-child(13) {
  animation-delay: 0.65s;
}
.car-grid .car-card:nth-child(14) {
  animation-delay: 0.7s;
}
.car-grid .car-card:nth-child(15) {
  animation-delay: 0.75s;
}
.car-grid .car-card:nth-child(16) {
  animation-delay: 0.8s;
}
.car-grid .car-card:nth-child(17) {
  animation-delay: 0.85s;
}
.car-grid .car-card:nth-child(18) {
  animation-delay: 0.9s;
}

.car-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

.car-card:hover .car-image img {
  transform: scale(1.04);
}

.car-image {
  overflow: hidden;
}
.car-image img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.car-price {
  transition: color 0.3s ease;
}
.car-card:hover .car-price {
  color: #ed1b24;
}

/* ----- GOMBOK ----- */
.btn {
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  box-shadow: 0 4px 12px rgba(45, 58, 66, 0.15);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(45, 58, 66, 0.25);
  transform: translateY(-2px) scale(1.02);
}

.btn-accent {
  box-shadow: 0 4px 12px rgba(237, 27, 36, 0.25);
}
.btn-accent:hover {
  box-shadow: 0 8px 28px rgba(237, 27, 36, 0.35);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ----- RÉSZLETEK OLDAL – GALÉRIA ----- */
.gallery-main img {
  transition:
    opacity 0.4s ease,
    transform 0.6s ease;
}

.gallery-nav {
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.gallery-nav:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.gallery-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-thumbnails img {
  transition:
    border-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}
.gallery-thumbnails img:hover {
  transform: scale(1.06);
}
.gallery-thumbnails img.active-thumb {
  border-color: #ed1b24;
  opacity: 1;
  transform: scale(1.04);
}

/* ----- SZŰRŐPANEL ----- */
.filter-section {
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.filter-section:hover {
  box-shadow: 0 12px 32px rgba(45, 58, 66, 0.08);
  border-color: #d0d8e0;
}

.filter-group select,
.filter-group input {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.filter-group select:focus,
.filter-group input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 27, 36, 0.08);
}

.filter-actions .btn {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.filter-actions .btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.filter-result {
  transition: color 0.3s ease;
}

/* ----- LAPOZÓ GOMBOK ----- */
.oldalGomb,
.oldalGombNyil {
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.oldalGomb:hover,
.oldalGombNyil:hover {
  transform: translateY(-2px) scale(1.04);
}
.oldalGomb:active,
.oldalGombNyil:active {
  transform: scale(0.94);
}

.oldalGomb.aktiv {
  animation: pulseGlow 2s ease infinite;
}

/* ----- KAPCSOLAT OLDAL ----- */
.contact-grid .contact-info {
  animation: slideInLeft 0.6s ease both 0.1s;
}
.contact-grid .contact-map {
  animation: slideInRight 0.6s ease both 0.2s;
}

.team-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.team-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(45, 58, 66, 0.1);
}

.team-avatar {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease;
}
.team-card:hover .team-avatar {
  transform: scale(1.08) rotate(-4deg);
  background: #c4141c;
}

/* ----- FELVÁSÁRLÁS ŰRLAP ----- */
.ms-panel.active {
  animation: fadeUp 0.45s ease both;
}

.ms-step {
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.ms-step.active {
  transform: translateY(-2px);
}
.ms-step.done {
  transform: translateY(0);
}

.ms-next {
  transition:
    background 0.25s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    clip-path 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ms-next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}
.ms-next:hover::after {
  transform: translateX(0);
}
.ms-next:hover {
  transform: translateY(-2px) scale(1.02);
  background: #c4141c;
}
.ms-next:active {
  transform: scale(0.96);
}

.ms-back {
  transition:
    color 0.25s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ms-back:hover {
  color: #ed1b24;
  transform: translateX(-4px);
}

.photo-upload-area {
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.3s ease;
}
.photo-upload-area:hover {
  transform: scale(1.005);
}

.photo-upload-area input[type="file"] {
  transition: opacity 0.3s ease;
}

.photo-thumb {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.photo-thumb:hover {
  transform: scale(1.06);
  border-color: #ed1b24;
  box-shadow: 0 4px 12px rgba(237, 27, 36, 0.15);
}

.form-success {
  animation: scaleIn 0.6s ease both;
}

.form-success-icon {
  animation: float 2s ease infinite;
}

/* ----- FOOTER ----- */
footer {
  transition: border-color 0.4s ease;
}
footer:hover {
  border-color: #ff4d55;
}

.footer-links a {
  transition:
    color 0.25s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}
.footer-links a:hover {
  color: #ed1b24;
  transform: translateY(-2px);
}
