/**
 * Strona Wynajem — style sekcji
 *
 * @package Bonito_Cars
 */

body.bonito-page-wynajem ::selection {
  background: #aeea2e;
  color: black;
}

/* Opcje wynajmu — sekcja pod hero */
.bonito-wynajem-plans {
  padding: 6rem 1rem 3rem;
}

.bonito-wynajem-plans-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bonito-wynajem-plans-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 3rem;
}

.bonito-wynajem-plans-header .bonito-type-section-title {
  margin: 0 0 1rem 0;
}

.bonito-wynajem-plans-header .bonito-type-subtitle {
  margin: 0;
}

/* Tabela porównawcza */
.bonito-wynajem-plan-table-wrap {
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.bonito-wynajem-plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bonito-wynajem-plan-table th,
.bonito-wynajem-plan-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.9rem 0.95rem;
  vertical-align: top;
  text-align: left;
  font-size: 0.875rem;
  color: var(--bc-slate-700);
}

.bonito-wynajem-plan-table th:last-child,
.bonito-wynajem-plan-table td:last-child {
  border-right: 0;
}

.bonito-wynajem-plan-table tr:last-child td {
  border-bottom: 0;
}

.bonito-wynajem-plan-table thead th {
  background: #f8fafc;
  font-weight: var(--bc-title-weight);
  color: var(--bc-slate-900);
}

.bonito-wynajem-plan-table thead th small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  color: #78350f;
}

.bonito-wynajem-plan-table tbody td:first-child {
  background: #f8fafc;
  font-weight: var(--bc-title-weight);
  color: var(--bc-slate-900);
  width: 140px;
}

.bonito-wynajem-plan-table ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Opcjonalny nagłówek nad kartami szczegółów (pod tabelą) */
.bonito-wynajem-plans-detail-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.bonito-wynajem-plans-detail-intro .bonito-type-subsection-title {
  margin: 0 0 0.75rem 0;
}

.bonito-wynajem-plans-detail-intro .bonito-type-body-lg {
  margin: 0;
  color: var(--bc-slate-500);
  font-weight: var(--bc-subtitle-weight);
  line-height: 1.55;
}

/* Rzędy planów — układ jak Oferta (zdjęcie | content na zmianę) */
.bonito-wynajem-plan-rows {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.bonito-wynajem-plan-row {
  transition: transform 0.3s;
}

.bonito-wynajem-plan-row:hover {
  transform: translateY(-4px);
}

.bonito-wynajem-plan-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  background-color: #ffffff;
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

@media (max-width: 767px) {
  .bonito-wynajem-plan-row-inner {
    grid-template-columns: 1fr;
  }
}

.bonito-wynajem-plan-media {
  width: 100%;
  padding: 4px;
  border-radius: 2.25rem;
  background: #ffffff;
  height: 100%;
  display: flex;
}

.bonito-wynajem-plan-media-ratio {
  position: relative;
  width: 100%;
  padding-top: 66.6667%;
  border-radius: 28px;
  overflow: hidden;
}

.bonito-wynajem-plan-media-ratio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop: obraz wypełnia cały rząd wysokością kontenera */
@media (min-width: 768px) {
  .bonito-wynajem-plan-media-ratio {
    height: 100%;
    padding-top: 0;
  }
}

.bonito-wynajem-plan-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  max-width: 100%;
}

.bonito-wynajem-plan-row--image-right .bonito-wynajem-plan-content {
  padding-left: 40px;
}

@media (max-width: 767px) {
  .bonito-wynajem-plan-row--image-right .bonito-wynajem-plan-content {
    padding-left: 2rem;
  }
}

/* Listy Warunki i Korzyści obok siebie */
.bonito-wynajem-plan-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
  align-items: start;
}

@media (max-width: 639px) {
  .bonito-wynajem-plan-lists {
    grid-template-columns: 1fr;
  }
}

.bonito-wynajem-plan-group + .bonito-wynajem-plan-group,
.bonito-wynajem-plan-group--benefits {
  margin-top: 0;
}

.bonito-wynajem-plan-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bonito-wynajem-plan-heading .bonito-type-card-title {
  margin: 0;
}

.bonito-wynajem-plan-premium-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: var(--bc-title-weight);
  color: #78350f;
  letter-spacing: 0.02em;
}

.bonito-wynajem-plan-heading .bonito-type-body-lg {
  color: var(--bc-slate-500);
  margin: 0.25rem 0 0 0;
}

.bonito-wynajem-plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bonito-wynajem-plan-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.bonito-wynajem-plan-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-slate-400);
  margin: 0;
}

.bonito-wynajem-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--bc-slate-600);
}

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

.bonito-wynajem-plan-actions .bonito-btn-ghost {
  color: var(--bc-slate-900);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--bc-slate-200);
}

.bonito-wynajem-plan-actions .bonito-btn-ghost:hover {
  background: var(--bc-slate-100);
  border-color: var(--bc-slate-300);
  color: var(--bc-slate-900);
}

.bonito-wynajem-plan-bullet {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: var(--bc-lime);
  margin-top: 0.25rem;
}

/* Kalkulator */
.bonito-wynajem-calculator {
  padding: 6rem 1rem;
}

.bonito-wynajem-calculator-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bonito-wynajem-calculator-box {
  background: white;
  border-radius: 3rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .bonito-wynajem-calculator-box {
    flex-direction: row;
    padding: 4rem;
    gap: 4rem;
    align-items: center;
  }
}

.bonito-wynajem-calculator-left {
  flex: 1;
}

.bonito-wynajem-calculator-right {
  flex: 1;
  width: 100%;
}

.bonito-wynajem-calculator-left .bonito-type-section-title {
  margin: 0 0 1.5rem 0;
}

.bonito-wynajem-calculator-left .bonito-type-intro {
  margin: 0 0 2rem 0;
}

.bonito-wynajem-calculator-slider-wrap {
  background: #f8fafc;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #e2e8f0;
}

.bonito-wynajem-calculator-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-weight: var(--bc-title-weight);
  color: var(--bc-slate-900);
  font-size: 1.125rem;
}

.bonito-wynajem-calculator-km-display {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}

.bonito-wynajem-calculator-track-wrap {
  position: relative;
  width: 100%;
  height: 2rem;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.bonito-wynajem-calculator-range {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 20;
  cursor: pointer;
}

.bonito-wynajem-calculator-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #aeea2e;
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.bonito-wynajem-calculator-range::-moz-range-thumb {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #aeea2e;
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.bonito-wynajem-calculator-progress {
  position: absolute;
  left: 0;
  height: 6px;
  background: #aeea2e;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 10;
}

.bonito-wynajem-calculator-track-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  z-index: 1;
}

.bonito-wynajem-calculator-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bc-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bonito-wynajem-calculator-result {
  background: var(--bc-slate-900);
  color: white;
  border-radius: 2.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.bonito-wynajem-calculator-result::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(174, 234, 46, 0.2);
  filter: blur(80px);
  border-radius: 50%;
  margin: -4rem -4rem 0 0;
  pointer-events: none;
}

.bonito-wynajem-calculator-result-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bc-lime);
  margin-bottom: 1.5rem;
}

.bonito-wynajem-calculator-result-label {
  display: block;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.bonito-wynajem-calculator-result-value {
  margin-bottom: 2rem;
}

.bonito-wynajem-calculator-savings {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--bc-lime);
}

@media (min-width: 768px) {
  .bonito-wynajem-calculator-savings { font-size: 5rem; }
}

.bonito-wynajem-calculator-currency {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bc-slate-400);
  margin-left: 0.5rem;
}

.bonito-wynajem-calculator-result-details {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.bonito-wynajem-calculator-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.bonito-wynajem-calculator-detail span {
  color: var(--bc-slate-400);
}

.bonito-wynajem-calculator-detail strong {
  font-family: ui-monospace, monospace;
  color: white;
}

.bonito-wynajem-calculator-detail .bonito-wynajem-lime {
  color: var(--bc-lime) !important;
}

.bonito-wynajem-calculator-disclaimer {
  font-size: 0.75rem;
  color: var(--bc-slate-500);
  margin: 2rem 0 0 0;
  line-height: 1.5;
}

/* Flota */
.bonito-wynajem-fleet {
  padding: 3rem 1rem;
}

.bonito-wynajem-fleet-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bonito-wynajem-fleet-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.bonito-wynajem-fleet-header .bonito-type-section-title {
  margin: 0 0 1.5rem 0;
}

.bonito-wynajem-fleet-header .bonito-type-subtitle {
  margin: 0;
}

.bonito-wynajem-fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .bonito-wynajem-fleet-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bonito-wynajem-fleet-card {
  background: white;
  border-radius: 2.5rem;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: box-shadow 0.3s;
}

.bonito-wynajem-fleet-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08);
}

.bonito-wynajem-fleet-card--dark {
  background: var(--bc-slate-900);
  border-color: #1e293b;
}

.bonito-wynajem-fleet-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--bc-lime);
  color: var(--bc-slate-900);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 20;
}

.bonito-wynajem-fleet-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.bonito-wynajem-fleet-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bonito-wynajem-fleet-card--dark .bonito-wynajem-fleet-card-img {
  filter: brightness(0.9);
}

.bonito-wynajem-fleet-card--dark:hover .bonito-wynajem-fleet-card-img {
  filter: brightness(1);
}

.bonito-wynajem-fleet-card .bonito-type-card-title {
  font-size: 1.5rem;
  margin: 0 0 0.15rem 0;
  line-height: 1.25;
}

.bonito-wynajem-fleet-card--dark .bonito-type-card-title {
  color: white;
}

.bonito-wynajem-fleet-card-desc {
  color: var(--bc-slate-500);
  margin: 0 0 0.75rem 0;
  line-height: 1.35;
}

.bonito-wynajem-fleet-card--dark .bonito-wynajem-fleet-card-desc {
  color: var(--bc-slate-400);
}

.bonito-wynajem-fleet-card-rows {
  margin-bottom: 1.25rem;
}

.bonito-wynajem-fleet-card-row {
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.2rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--bc-slate-900);
  border-bottom: 1px solid #f1f5f9;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .bonito-wynajem-fleet-card-row {
    border-bottom: none;
  }
}

.bonito-wynajem-fleet-card--dark .bonito-wynajem-fleet-card-row {
  color: white;
  border-bottom-color: rgba(255,255,255,0.1);
}

.bonito-wynajem-fleet-card-row span:first-child,
.bonito-wynajem-fleet-card-row strong {
  flex: 1;
}

.bonito-wynajem-fleet-card-row .bonito-wynajem-fleet-unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--bc-slate-400);
}

.bonito-wynajem-fleet-mobile-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bc-slate-400);
  margin-bottom: 0.1rem;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .bonito-wynajem-fleet-mobile-label {
    display: none;
  }
}

.bonito-wynajem-fleet-card-row svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.bonito-wynajem-lime {
  color: var(--bc-lime) !important;
}

.bonito-wynajem-fleet-card > .bonito-btn-cta {
  width: 100%;
  margin-top: 0;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Galeria */
.bonito-wynajem-gallery {
  padding: 3rem 1rem;
  background: white;
  border-radius: 3rem;
  margin: 0 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
}

.bonito-wynajem-gallery-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bonito-wynajem-gallery-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .bonito-wynajem-gallery-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.bonito-wynajem-gallery-header-left .bonito-type-section-title {
  margin: 0;
}

.bonito-wynajem-gallery-header .bonito-type-body {
  margin: 0;
  text-align: right;
  color: var(--bc-slate-500);
}

.bonito-wynajem-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-auto-rows: 200px;
}

@media (min-width: 768px) {
  .bonito-wynajem-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bonito-wynajem-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 600px;
  }
}

.bonito-wynajem-gallery-item {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
}

.bonito-wynajem-gallery-item--large {
  grid-column: span 1;
  grid-row: span 1;
}

@media (min-width: 1024px) {
  .bonito-wynajem-gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.bonito-wynajem-gallery-item--wide {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .bonito-wynajem-gallery-item--wide {
    grid-column: span 2;
  }
}

.bonito-wynajem-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.bonito-wynajem-gallery-item:hover img {
  transform: scale(1.05);
}

.bonito-wynajem-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-weight: 500;
}

.bonito-wynajem-gallery-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--bc-lime);
  color: var(--bc-slate-900);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
}

/* FAQ */
.bonito-wynajem-faq {
  padding: 6rem 1rem;
}

.bonito-wynajem-faq-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bonito-wynajem-faq-header {
  text-align: center;
  margin-bottom: 4rem;
}

.bonito-wynajem-faq-title.bonito-type-section-title {
  margin: 0 auto;
  text-align: center;
}

/* CTA Wynajem — używa bonito-cta-lead */
.bonito-cta-wynajem .bonito-type-section-title {
  font-size: 2rem;
}

@media (min-width: 768px) {
  .bonito-cta-wynajem .bonito-type-section-title {
    font-size: 4rem;
  }
}

/* Mobile — inner padding 0 */
@media (max-width: 767px) {
  .bonito-wynajem-calculator-inner,
  .bonito-wynajem-fleet-inner,
  .bonito-wynajem-gallery-inner,
  .bonito-wynajem-faq-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .bonito-wynajem-calculator,
  .bonito-wynajem-fleet,
  .bonito-wynajem-gallery,
  .bonito-wynajem-faq {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .bonito-wynajem-gallery {
    margin: 0;
  }
}
