
/* ════════════════════════════════════════════
   NAJEM — style własne (nie nadpisują style.css)
   ════════════════════════════════════════════ */

/* ── HERO ── */
.rent-hero {
  background: var(--dark);
  padding: 110px 60px 56px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rent-hero-inner { max-width: 1100px; margin: 0 auto; }
.rent-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-weight: 600; font-size: .85rem;
  letter-spacing: .5px; margin-bottom: 18px; text-transform: uppercase;
}
.rent-eyebrow span { display: block; width: 28px; height: 2px; background: var(--red); }
.rent-hero h1 {
  font-family: var(--font-display); font-size: 3.6rem; font-weight: 900;
  color: var(--white); line-height: 1; text-transform: uppercase;
  margin-bottom: 16px; letter-spacing: .5px;
}
.rent-hero h1 em { color: var(--red); font-style: normal; }
.rent-hero p {
  color: rgba(255,255,255,.55); font-size: 1rem;
  max-width: 540px; line-height: 1.7; margin-bottom: 32px;
}
.season-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.season-pill {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px; padding: 8px 16px; font-size: .8rem;
  color: rgba(255,255,255,.7);
}
.season-pill strong { color: var(--white); }

/* ── PAGE WRAP ── */
.rent-wrap { max-width: 1100px; margin: 0 auto; padding: 52px 60px 90px; }

/* ── SECTION TITLE ── */
.rent-section-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 28px; color: var(--dark);
}

/* ── FLEET GRID ── */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 28px; }
.fleet-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform .3s, box-shadow .3s; display: block; text-decoration: none; color: inherit;
}
.fleet-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fleet-card-img {
  position: relative; aspect-ratio: 16/9; background: var(--dark);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.fleet-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.fleet-card:hover .fleet-card-img img { transform: scale(1.04); }
.fleet-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--dark); color: var(--white);
  font-size: .7rem; font-weight: 700; padding: 4px 10px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.fleet-card-body { padding: 20px 22px; }
.fleet-card-name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 900;
  text-transform: uppercase; margin-bottom: 6px; letter-spacing: .3px;
}
.fleet-card-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--mid); margin-bottom: 16px; }
.fleet-card-meta span { display: flex; align-items: center; gap: 5px; }
.fleet-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.price-chip {
  background: var(--light); border-radius: 4px; padding: 9px 12px; text-align: center;
}
.price-chip.red { background: var(--red-light); }
.price-chip-label { font-size: .65rem; color: var(--mid); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.price-chip.red .price-chip-label { color: var(--red); }
.price-chip-val {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; color: var(--dark); line-height: 1.1;
}
.price-chip.red .price-chip-val { color: var(--red); }
.price-chip-val span { font-size: .68rem; font-weight: 400; font-family: var(--font-body); color: var(--mid); }
.fleet-card-cta {
  width: 100%; padding: 12px; background: var(--dark); color: var(--white);
  border: none; border-radius: 4px; font-family: var(--font-body); font-size: .9rem;
  font-weight: 700; cursor: pointer; letter-spacing: .3px; transition: background .2s;
}
.fleet-card-cta:hover { background: var(--red); }

/* ── VEHICLE DETAIL ── */
#vehicleDetail { display: none; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  font-size: .85rem; font-weight: 600; color: var(--mid); cursor: pointer;
  transition: color .2s; text-decoration: none; background: none; border: none; padding: 0;
}
.back-link:hover { color: var(--red); }
.detail-layout { display: grid; grid-template-columns: 1fr 390px; gap: 36px; align-items: start; }

/* galeria */
.detail-gallery { background: var(--dark); border-radius: 10px; overflow: hidden; }
.detail-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in; display: block; }
.thumbs-bar {
  display: flex; align-items: center;
  background: #0c0f12; border-top: 1px solid rgba(255,255,255,.06); padding: 8px; gap: 0;
}
.thumb-nav {
  flex-shrink: 0; width: 30px; height: 48px; background: rgba(255,255,255,.06);
  border: none; border-radius: 4px; cursor: pointer; color: rgba(255,255,255,.5);
  transition: .15s; display: flex; align-items: center; justify-content: center;
}
.thumb-nav:hover { background: var(--red); color: var(--white); }
.thumb-nav:disabled { opacity: .2; pointer-events: none; }
.thumbs-rail { flex: 1; display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; padding: 0 6px; }
.thumb-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px;
  cursor: pointer; opacity: .45; border: 2px solid transparent; transition: .18s; display: block;
}
.thumb-img.active { opacity: 1; border-color: var(--red); }
.thumb-img:hover:not(.active) { opacity: .8; }

/* info blok */
.detail-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  text-transform: uppercase; margin-bottom: 8px; letter-spacing: .5px;
}
.detail-type-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--light); border-radius: 4px; padding: 5px 14px;
  font-size: .78rem; font-weight: 600; color: var(--mid); margin-bottom: 20px;
}
.detail-desc { font-size: .88rem; line-height: 1.75; color: var(--mid); margin-bottom: 24px; }

/* cennik */
.pricing-card { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 24px; }
.pricing-header {
  background: var(--dark); color: rgba(255,255,255,.5);
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  display: grid; grid-template-columns: 14px 1fr auto auto; gap: 0; padding: 10px 16px;
}
.pricing-row {
  display: grid; grid-template-columns: 14px 1fr auto auto;
  align-items: center; gap: 0; padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row.s-high   { background: var(--red-light); }
.pricing-row.s-medium { background: #fffbeb; }
.p-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.p-body { padding-left: 12px; }
.p-season { font-size: .85rem; font-weight: 700; color: var(--dark); }
.p-period { font-size: .74rem; color: var(--mid); margin-top: 1px; }
.p-price {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 900;
  white-space: nowrap; padding-left: 14px;
}
.p-min { font-size: .72rem; color: var(--mid); white-space: nowrap; padding-left: 10px; }

.info-strip {
  background: var(--light); border-left: 3px solid var(--red);
  padding: 14px 18px; margin-bottom: 24px; font-size: .85rem; line-height: 1.7; color: var(--mid);
}
.info-strip strong {
  display: block; font-family: var(--font-display); font-size: .9rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px; color: var(--dark); margin-bottom: 5px;
}

/* ── BOOKING PANEL ── */
.booking-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  position: sticky; top: 84px; display: flex; flex-direction: column;
  max-height: calc(100vh - 104px); overflow: hidden;
}
.bp-head {
  background: var(--dark); padding: 16px 20px; flex-shrink: 0;
  font-family: var(--font-display); font-size: 1rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px; color: var(--white);
}
.bp-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.bp-body::-webkit-scrollbar { width: 3px; }
.bp-body::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }
.bp-foot {
  padding: 14px 20px; background: var(--light);
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.step { display: none; }
.step.active { display: block; }
.step-lbl {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--mid); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--red);
  color: var(--white); font-size: .68rem; font-weight: 900; flex-shrink: 0;
}

/* kalENdarz */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav-btn {
  width: 32px; height: 32px; border: 1px solid var(--border); background: var(--white);
  border-radius: 4px; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.cal-nav-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.cal-month {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-transform: uppercase;
}
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: .6rem; font-weight: 700; color: var(--mid); padding: 4px 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; border-radius: 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 600; border: 1.5px solid transparent;
  transition: background .12s, border-color .12s; color: var(--dark);
}
.cal-day:hover:not(.cd-empty):not(.cd-off) { background: var(--red-light); border-color: var(--red); }
.cal-day.cd-empty  { cursor: default; }
.cal-day.cd-off    { opacity: .3; cursor: not-allowed; }
.cal-day.cd-booked { background: #fee2e2; color: #991b1b; cursor: not-allowed; opacity: 1; }
.cal-day.cd-booked.cd-return-avail { background: #fef9c3; color: #92400e; cursor: pointer; border-color: #fde68a; opacity: 1; }
.cal-day.cd-from, .cal-day.cd-to { background: var(--red); color: var(--white); border-color: var(--red); }
.cal-day.cd-range  { background: var(--red-light); border-color: rgba(224,32,32,.25); }
.cal-day.cd-min-range { background: #fef9c3; border-color: #facc15; }
.cal-day.cd-today  { border-color: var(--dark2); }
.cd-num   { font-size: .78rem; line-height: 1; }
.cd-price { font-size: .52rem; font-weight: 400; opacity: .6; line-height: 1; margin-top: 1px; }
.cal-day.cd-from .cd-price,
.cal-day.cd-to   .cd-price { opacity: .8; color: rgba(255,255,255,.9); }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cal-leg { display: flex; align-items: center; gap: 5px; font-size: .68rem; color: var(--mid); }
.cal-leg-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cal-info { margin-top: 12px; min-height: 30px; font-size: .82rem; }

/* podsumowanie */
.sum-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .83rem; padding: 5px 0; border-bottom: 1px solid var(--border);
}
.sum-line:last-child { border-bottom: none; }
.sum-line.total {
  font-weight: 800; padding-top: 10px;
  border-top: 2px solid var(--dark); border-bottom: none; font-size: .95rem;
}
.sum-line.total .val {
  font-family: var(--font-display); font-size: 1.2rem; color: var(--red);
}
.sum-box { background: var(--light); border-radius: 4px; padding: 13px 14px; margin-bottom: 14px; }
.dep-note {
  text-align: center; background: #fffbeb; border-radius: 4px;
  padding: 8px; margin-top: 8px; font-size: .75rem; color: #92400e;
}

/* formularz */
.f-group { margin-bottom: 14px; }
.f-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--mid); margin-bottom: 5px; }
.f-input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 4px;
  font-size: .9rem; font-family: var(--font-body); outline: none;
  transition: border-color .2s; color: var(--dark); background: var(--white);
}
.f-input:focus { border-color: var(--red); }
.f-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea.f-input { resize: vertical; min-height: 68px; }
.alert {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 4px;
  padding: 12px 14px; font-size: .8rem; line-height: 1.6; color: #92400e; margin-bottom: 12px;
}
.alert.green { background: #f0fdf4; border-color: #86efac; color: #14532d; }

/* płatność P24 */
.p24-note { font-size: .72rem; color: var(--mid); text-align: center; margin-top: 8px; }
.p24-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--light); border: 1px solid var(--border); border-radius: 4px;
  padding: 8px 14px; margin-top: 10px; font-size: .72rem; color: var(--mid);
}

/* przyciski */
.btn-book {
  display: block; width: 100%; padding: 13px; background: var(--red); color: var(--white);
  border: none; border-radius: 4px; font-family: var(--font-body); font-size: .95rem;
  font-weight: 700; cursor: pointer; letter-spacing: .3px; transition: background .2s, box-shadow .2s;
}
.btn-book:hover { background: var(--red-dark); box-shadow: 0 4px 16px rgba(224,32,32,.35); }
.btn-book:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-back {
  display: block; width: 100%; padding: 11px; background: transparent; color: var(--dark);
  border: 1.5px solid var(--border); border-radius: 4px; font-family: var(--font-body);
  font-size: .88rem; font-weight: 600; cursor: pointer; transition: .2s; margin-top: 8px;
}
.btn-back:hover { border-color: var(--dark); background: var(--light); }

/* sukces */
.success-wrap { text-align: center; padding: 8px 0; }
.success-icon {
  width: 60px; height: 60px; background: #f0fdf4; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.success-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.success-num {
  display: inline-block; background: var(--light); border: 1px solid var(--border);
  border-radius: 4px; padding: 7px 16px; font-size: .85rem; font-weight: 700;
  margin: 10px 0; letter-spacing: .5px;
}
.success-sub { font-size: .85rem; color: var(--mid); line-height: 1.6; }

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 999;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lb-close {
  position: absolute; top: 20px; right: 24px; color: var(--white);
  font-size: 2rem; cursor: pointer; opacity: .6; transition: opacity .15s;
  background: none; border: none; line-height: 1;
}
.lb-close:hover { opacity: 1; }
.lb-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: var(--white);
  font-size: 2.2rem; width: 48px; height: 64px; cursor: pointer; border-radius: 4px;
  transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.lb-arr:hover { background: rgba(255,255,255,.2); }
.lb-arr.prev { left: 16px; }
.lb-arr.next { right: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .detail-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; max-height: none; }
}
@media (max-width: 768px) {
  .rent-hero { padding: 100px 24px 40px; }
  .rent-hero h1 { font-size: 2.4rem; }
  .rent-wrap { padding: 32px 20px 60px; }
  .fleet-grid { grid-template-columns: 1fr; }
  .f-2col { grid-template-columns: 1fr; }
  footer { padding: 48px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
