/* =================== Desktop Navbar =================== */
.navbar-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* užtikrina, kad neliktų tarpo */
  width: 100%;
  padding: 15px 80px; /* mažesnis padding – išvengiam nukirpimo */
  box-sizing: border-box; /* kad padding neplėstų pločio */
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Kairė pusė */
.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0; /* padeda išvengti pertempimo */
}

/* Nuorodos */
.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

/* Dešinė pusė */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-shrink: 0; /* neleidžia susispausti */
}

.nav-right .language,
.nav-right .phone,
.nav-right a.duka {
  text-decoration: none;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.nav-right .language:hover,
.nav-right .phone:hover {
  background-color: black;
  color: #fff;
}

.nav-right .phone {
  border: 2px solid #000;
  border-radius: 8px;
  padding: 5px 15px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-right a.duka:hover {
  background-color: transparent;
  color: #000;
}

.nav-right .arrow {
  font-size: 0.7em;
  margin-left: 5px;
}

/* Logo */
.logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Užtikrina, kad hero sektorius nesusispaustų po navbar */
body {
  margin: 0;
  font-family: Verdana, sans-serif;
  background-color: #f5f5f5;
  padding-top: 90px; /* šiek tiek didesnis dėl navbar aukščio */
  box-sizing: border-box;
}


/* =================== Desktop Language Selector =================== */
#langSelectorDesktop {
  position: relative;
  cursor: pointer;
  z-index: 10005;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s;
  color: #000; /* raidžių spalva visada juoda */
}

/* Hover fono nebėra */
#langSelectorDesktop:hover {
  background: transparent;
}

/* Current lang raidžių spalva visada juoda */
#langSelectorDesktop .currentLang {
  color: #000;
}

/* Nauja moderni rodyklė (">" pasukta žemyn) */
#langSelectorDesktop .arrow {
  display: inline-block;
  margin-left: 6px;
  border: solid #000; /* rodyklė juoda */
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg); /* žemyn */
  transition: transform 0.2s ease;
}

/* Kai dropdown atidarytas – rodyklė pasisuka aukštyn */
#langSelectorDesktop.active .arrow {
  transform: rotate(-135deg);
}

/* Dropdown */
#langDropdownDesktop {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10006;
  min-width: 60px;
}

/* Dropdown nuorodos */
#langDropdownDesktop a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #000; /* visada juoda */
  font-weight: 500;
}

/* Hover efektas dropdown nuorodoms */
#langDropdownDesktop a:hover {
  background: #f0f0f0;
}
/* =================== Mobile Navbar =================== */
.navbar-mobile {
  display: none;
  flex-direction: column;
  padding: 10px 20px;
  background: #fff;
  border-radius: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Viršutinė juosta: logo + kalba + burger */
.navbar-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
  z-index: 10010;
}

/* Kairė: logo */
.navbar-mobile-top a img.logo-img {
  height: 50px;
  width: auto;
}

/* Dešinė: kalba + burger */
.mobile-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: -20px; /* tarpas nuo dešinės pusės */
}

/* Burger */
.burger {
  font-size: 30px;
  color: #000;
  cursor: pointer;
}

/* =================== Mobile menu =================== */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 25px;
  gap: 30px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

/* =================== Mobile Language Selector =================== */
#langSelectorMobile {
  position: relative;
  cursor: pointer;
  z-index: 10005;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 500;
  color: #000; /* tekstas visada juodas */
  background: transparent; /* fonas visada permatomas */
  -webkit-tap-highlight-color: transparent; /* išjungia mobilų “tap” efektą */
  transition: none; /* nebebus foninio animacijos mirksėjimo */
}

/* Hover, active ir focus fono nenurodome – fonas visada permatomas */
#langSelectorMobile:hover,
#langSelectorMobile:active,
#langSelectorMobile:focus {
  background: transparent;
}

/* Rodyklė: ">" pasukta žemyn */
#langSelectorMobile .arrow {
  display: inline-block;
  margin-left: 6px;
  border: solid #000; /* rodyklė juoda */
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg); /* žemyn */
  transition: transform 0.2s ease;
}

/* Kai dropdown atidarytas – rodyklė pasisuka aukštyn */
#langSelectorMobile.active .arrow {
  transform: rotate(-135deg);
}

/* Dropdown */
#langDropdownMobile {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10006;
  min-width: 60px;
}

/* Dropdown nuorodos */
#langDropdownMobile a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #000; /* visada juoda */
  font-weight: 500;
}

/* Hover efektas dropdown nuorodoms */
#langDropdownMobile a:hover {
  background: #f0f0f0;
}



/* =================== Responsive =================== */
@media (max-width: 768px) {
  .navbar-mobile {
    display: flex;
  }
}
/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: column; /* stulpelis, kad nuorodos neatsidėtų į eilutę */
  justify-content: flex-start;
  padding: 40px 25px;
  gap: 30px; /* tarpai tarp blokų */
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

/* Menu Left / Right */
.menu-main {
  display: flex;
  gap: 50px; /* tarpai tarp left ir right blokų */
}

.menu-left, .menu-right {
  display: flex;
  flex-direction: column; /* stulpelis */
}

.menu-left a {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  margin-bottom: 15px;
  padding-bottom: 8px;
}

.menu-left a:last-child {
  border-bottom: none;
}

.menu-right {
  min-width: 120px;
}

.menu-right a {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  margin-bottom: 10px;
  border-bottom: none;
}

.menu-right p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #777;
}

/* Kontaktai */
.menu-contact p {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}
.menu-contact a {
  font-size: 16px;
  color: #000;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

/* Social ikonėlės */
.menu-social {
  display: flex;
  gap: 15px;
}
.menu-social a {
  font-size: 22px;
  color: #000;
  text-decoration: none;
}


#burger {
  position: relative;
  z-index: 10002; /* didesnis nei .mobile-menu */
}

/* Media queries */
@media (max-width:768px){
  .navbar-desktop { display: none; }
  .navbar-mobile { display: flex; }
}


/* ================= Footer ================= */
.footer {
  background-color: #111; 
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.footer-logo img {
  max-width: 160px;
  margin-bottom: 20px;
}

.footer-contacts,
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contacts li,
.footer-column ul li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #bbb;
  display: flex;
  align-items: center;
}

.footer-contacts li .icon {
  margin-right: 10px;
  font-size: 18px;
}

.footer-contacts a,
.footer-column ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contacts a:hover,
.footer-column ul li a:hover {
  color: #fff;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  margin-top: 30px;
  font-size: 14px;
  color: #aaa;
}

/* ================= Payment ================= */
.payment-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.pay-card {
  background: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pay-card img {
  height: 10px;
  width: auto;
}

/* ================= Cars Grid ================= */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.car-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.car-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.car-card h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.car-card .badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.badge.new { background: orange; color: white; }
.badge.coming { background: gray; color: white; }

.car-card p {
  margin: 5px 0;
  font-size: 14px;
}

.car-card hr {
  margin: 15px 0;
}
/* ---- Nuorodos kortelėms ---- */
.cars-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.cars-grid a:hover .car-card,
.car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ================= Cars Filter ================= */
.cars-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px auto 40px auto;
  max-width: 1200px;
}

.filter-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: black;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.filter-btn:hover {
  background: #C92828;
  color: white;
}

.filter-btn.active {
  background: #C92828;
  color: white;
  border-color: #C92828;
}

/* ================= Back Button ================= */
.back-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  margin: 20px;
}

.back-btn:hover {
  color: #5636c9;
}

/* ================= Media Queries ================= */
@media (max-width: 768px) {
  .cars-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .car-card {
    width: 90%;
    max-width: 400px;
  }
}
/*---------------------------------*/
.hero {
  position: relative;
  width: 100%;
  height: 600px;        /* desktop aukštis */
  overflow: hidden;
}

/* Hero nuotrauka */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Užsklanda (overlay) */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* juoda su 30% permatomumu */
  z-index: 1;
}

/* Tekstas virš overlay */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;              /* virš overlay */
  color: #fff;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero {
    height: 300px;      /* mažesnis aukštis mobiliems ekranams */
  }

  .hero-text h1 {
    font-size: 28px;    /* sumažiname headline */
  }

  .hero-text p {
    font-size: 16px;    /* sumažiname tekstą */
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* pašalina horizontalų scroll ir baltą dryžį */
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  padding: 0 15px;
  font-family: Arial, sans-serif;
  color: #333;
}

.content {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

/* KAIRĖ PUSĖ */
.left {
  flex: 2;
  min-width: 300px;
  width: 100%;
}

.main-photo {
  width: 100%;
  height: 530px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.photo-carousel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.photo-carousel img {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.9;
  border: 2px solid transparent;
  transition: transform 0.3s, opacity 0.3s, border 0.3s;
  object-fit: cover;
}

.photo-carousel img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.photo-carousel img.active {
  border: 2px solid #d32f2f;
  opacity: 1;
}

/* DEŠINĖ PUSĖ */
.right {
  flex: 1;
  background: #2f2f2f;
  color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-width: 260px;
  width: 100%;
}

.price-box h3 {
  text-align: center;
  margin-bottom: 20px;
}

.price-item {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  padding: 8px 0;
}

.price-item p {
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 8px 0;
}

/* APATINIS TEKSTAS */
.text-section {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  width: 100%;
}

#text {
  overflow: hidden;
  max-height: 80px;
  transition: max-height 0.4s ease;
}

#text.expanded {
  max-height: 500px;
}

#readMoreBtn {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
}

#readMoreBtn:hover {
  background: #b71c1c;
}

/* ——————————————————————— */
/* 📱 TELEFONAMS IR PLANŠETĖMS */
/* ——————————————————————— */
@media (max-width: 900px) {
  .content {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .left, .right {
    width: 100%;
    max-width: 100%;
  }

  .main-photo {
    height: 320px;
  }

  .photo-carousel img {
    width: 90px;
    height: 60px;
  }

  .right {
    background: #2f2f2f;
    color: #fff;
    width: 100%;
  }

  .price-box h3 {
    font-size: 20px;
  }

  .text-section {
    margin-top: 10px;
  }

  #readMoreBtn {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .main-photo {
    height: 250px;
  }

  .photo-carousel img {
    width: 75px;
    height: 50px;
  }

  .price-item {
    font-size: 15px;
  }

  .text-section {
    padding: 15px;
  }
}

.filter-btn.is-hidden{
  display: none !important;
}
/* --- Sticky footer: footer visada puslapio apačioje --- */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Pagrindinis turinys turi užimti likusią vietą, kad footer nusistumtų žemyn */
main {
  flex: 1 0 auto;
}

/* Footer visada po main ir prispaustas apačioje */
footer {
  margin-top: auto;
}

/* Main wrapper for pages (sticky footer support) */
.page-main{
  flex: 1 0 auto;
  padding-top: 10px;
}


/* --- Sticky footer (final override) --- */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main, .page-main { flex: 1 0 auto; }
footer, .footer { margin-top: auto !important; }