/* =========================================================
   OTOMOTO SINGLE ONLY
   ========================================================= */

body.single-otomoto_vehicle,
body.single-otomoto_vehicle #page-container,
body.single-otomoto_vehicle #main-content{
  background:#0B0F16 !important;
  color:#F3F6FB;
}

body.single-otomoto_vehicle .otomoto-single{
  max-width:1240px;
  margin:0 auto;
  padding:34px 20px 70px;
  color:#F3F6FB;
}

body.single-otomoto_vehicle .otomoto-back{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:#F3F6FB !important;
  text-decoration:none !important;
  font-weight:700;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  margin-bottom:22px;
  transition:all .18s ease;
}

body.single-otomoto_vehicle .otomoto-back:hover{
  background:rgba(255,255,255,.07);
  transform:translateY(-1px);
}

body.single-otomoto_vehicle .otomoto-title{
  font-size:38px;
  line-height:1.1;
  letter-spacing:-.03em;
  margin:0 0 10px;
  font-weight:800;
  color:#F3F6FB !important;
}

body.single-otomoto_vehicle .otomoto-title-meta{
  color:#96A2B5;
  font-size:15px;
  margin:0 0 22px;
}

body.single-otomoto_vehicle .otomoto-top{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);
  gap:28px;
  align-items:start;
}

body.single-otomoto_vehicle .otomoto-gallery{
  background:linear-gradient(180deg, rgb(19 29 45), rgb(13 18 28)) !important;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  box-shadow:0 18px 48px rgba(0,0,0,.34);
  padding:20px;
}

body.single-otomoto_vehicle .otomoto-main-photo{
  position:relative;
  overflow:hidden;
  border-radius:16px;
}

body.single-otomoto_vehicle .otomoto-main-photo img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
  cursor:zoom-in;
}

body.single-otomoto_vehicle .otomoto-thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(90px, 1fr));
  gap:10px;
  margin-top:14px;
}

body.single-otomoto_vehicle .otomoto-thumbs img{
  width:96px;
  height:72px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  flex:0 0 auto;
  opacity:.82;
  transition:all .18s ease;
  background:#0d131d;
}

body.single-otomoto_vehicle .otomoto-thumbs img:hover{
  opacity:1;
  border-color:rgba(255,208,0,.45);
  transform:translateY(-1px);
}

body.single-otomoto_vehicle .otomoto-thumbs img[data-active="1"]{
  border-color:#FFD000;
  box-shadow:0 0 0 2px rgba(255,208,0,.18);
  opacity:1;
}

body.single-otomoto_vehicle .otomoto-sidebar{
  position:sticky;
  top:22px;
  background:linear-gradient(180deg, rgb(19 29 45), rgb(13 18 28)) !important;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  box-shadow:0 18px 48px rgba(0,0,0,.34);
  padding:22px;
}

body.single-otomoto_vehicle .otomoto-price{
  font-size:34px;
  font-weight:900;
  letter-spacing:-.03em;
  margin-bottom:18px;
  color:#FFD000 !important;
  line-height:1;
}

body.single-otomoto_vehicle .otomoto-table{
  width:100%;
  border-collapse:collapse;
  margin:6px 0 18px;
}

body.single-otomoto_vehicle .otomoto-table td{
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:14.5px;
  color:#F3F6FB;
}

body.single-otomoto_vehicle .otomoto-table td:first-child{
  color:#96A2B5;
  width:44%;
}

body.single-otomoto_vehicle .otomoto-table td:last-child{
  font-weight:700;
}

body.single-otomoto_vehicle .otomoto-contact{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}

body.single-otomoto_vehicle .otomoto-contact-title{
  font-weight:900;
  margin-bottom:12px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#96A2B5;
}

body.single-otomoto_vehicle .otomoto-call{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none !important;
  font-weight:850;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid transparent;
  background:#FFD000;
  color:#0B0F16 !important;
  margin-bottom:12px;
  transition:all .18s ease;
}

body.single-otomoto_vehicle .otomoto-call:hover{
  background:#FFE15B;
  color:#0B0F16 !important;
  transform:translateY(-1px);
}

body.single-otomoto_vehicle .otomoto-sms,
body.single-otomoto_vehicle .otomoto-wa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:120px;
  gap:8px;
  text-decoration:none !important;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  font-weight:800;
  font-size:13px;
  color:#F3F6FB !important;
  transition:all .18s ease;
}

body.single-otomoto_vehicle .otomoto-sms:hover,
body.single-otomoto_vehicle .otomoto-wa:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
}

body.single-otomoto_vehicle .otomoto-sms{
  margin-right:8px;
}

body.single-otomoto_vehicle .otomoto-btn{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none !important;
  font-weight:800;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid transparent;
  background:#0E7ACF;
  color:#fff !important;
  margin-top:12px;
  transition:all .18s ease;
}

body.single-otomoto_vehicle .otomoto-btn:hover{
  background:#1187e4;
  color:#fff !important;
  transform:translateY(-1px);
}

/* =========================================================
   OPIS OGŁOSZENIA
   ========================================================= */

body.single-otomoto_vehicle .otomoto-description{
  margin-top:30px;
  background:linear-gradient(180deg, rgb(19 29 45), rgb(13 18 28)) !important;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  box-shadow:0 18px 48px rgba(0,0,0,.34);
  padding:26px;
}

body.single-otomoto_vehicle .otomoto-description h2{
  margin:0 0 14px;
  font-size:24px;
  font-weight:900;
  color:#F3F6FB !important;
  letter-spacing:-.02em;
}

body.single-otomoto_vehicle .otomoto-description,
body.single-otomoto_vehicle .otomoto-description li{
  color:#F3F6FB !important;
  line-height:1.75;
}

/* Tekst z API – pojedyncze linie bez dodatkowych odstępów */
body.single-otomoto_vehicle .otomoto-description-text p{
  margin:0;
  padding:0;
  color:#F3F6FB !important;
  line-height:1.75;
}

/* Podwójny newline z OTOMOTO → mała wizualna przerwa między akapitami */
body.single-otomoto_vehicle .otomoto-description-text p.otomoto-para-break{
  margin-top:10px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

body.single-otomoto_vehicle .otomoto-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:zoom-out;
  padding:20px;
}

body.single-otomoto_vehicle .otomoto-lightbox img{
  max-width:95vw;
  max-height:95vh;
  border-radius:10px;
  object-fit:contain;
  display:block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:980px){
  body.single-otomoto_vehicle .otomoto-top{
    grid-template-columns:1fr;
  }

  body.single-otomoto_vehicle .otomoto-sidebar{
    position:static;
  }

  body.single-otomoto_vehicle .otomoto-title{
    font-size:30px;
  }

  body.single-otomoto_vehicle .otomoto-price{
    font-size:28px;
  }
}

@media (max-width:640px){
  body.single-otomoto_vehicle .otomoto-single{
    padding:24px 14px 48px;
  }

  body.single-otomoto_vehicle .otomoto-gallery,
  body.single-otomoto_vehicle .otomoto-sidebar,
  body.single-otomoto_vehicle .otomoto-description{
    padding:18px;
  }

  body.single-otomoto_vehicle .otomoto-title{
    font-size:26px;
  }

  body.single-otomoto_vehicle .otomoto-thumbs img{
    width:84px;
    height:64px;
  }

  body.single-otomoto_vehicle .otomoto-sms,
  body.single-otomoto_vehicle .otomoto-wa{
    min-width:unset;
    width:calc(50% - 6px);
  }
}
