/* ── Vehicle List Block ───────────────────────────────────── */

.bisiesto-vehicle-list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 370px, 1fr ) );
	gap: 1.5rem;
}

/* ── Vehicle Card ─────────────────────────────────────────── */

.vehicle-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wp--preset--color--gray);
	border-radius: var(--wp--custom--radius--l, 16px);
	overflow: hidden;
	background: var(--wp--preset--color--white);
}

.vehicle-card__image {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wp--preset--color--black-10, #f0f0f0);
}

.vehicle-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vehicle-card__image--placeholder {
	background: var(--wp--preset--color--black-10, #f0f0f0);
}

.vehicle-card__body {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: var(--wp--preset--spacing--16);
	flex: 1;
}

.vehicle-card__class {
	align-self: flex-start;
	background: var(--wp--preset--color--sky-10);
	padding: 0.25rem;
	font-size: var(--wp--preset--font-size--xxxs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	border-radius: 0.25rem;
}

.vehicle-card__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--md);
	font-weight: 500;
	line-height: 1.2;
}
/* La descripción puede venir como HTML de bloque (<p>, <ul>): domamos márgenes. */
.vehicle-card__name :where(p, ul, ol) {
	margin: 0;
}
.vehicle-card__name ul {
	padding-left: 1.1em;
}

/* ── Specs grid ───────────────────────────────────────────── */

.vehicle-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 0.25rem;
}

.vehicle-card__spec {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.25rem;
}

.vehicle-card__spec-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--wp--preset--color--sun-10);
	border-radius: 50%;
	padding: 0.35rem;
}

.vehicle-card__spec-icon svg {
	display: block;
}

.vehicle-card__spec-value {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	line-height: 1;
}

.vehicle-card__cta {
	margin-top: auto;
	text-align: center;
}

.vehicle-card__cta .wp-block-button__link {
	display: block;
	width: 100%;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
}


@media (max-width: 768px) {

}
/* ── Detalles de tarifa ───────────────────────────────────────────
   Mismos estilos que en el paso 2 de la pasarela, replicados aquí
   porque la hoja de reservation-flow no se carga en el catálogo.
   El contenedor .vehicle-card__body es flex con gap: 1.5rem entre
   todos sus hijos. El título mantiene ese gap completo respecto a
   las specs; los detalles compensan el suyo con margen negativo
   para quedar pegados a su título y leerse como un solo bloque.
   OJO: si cambia el gap de .vehicle-card__body, hay que revisar el
   margen negativo de .vehicle-card__details. */
.vehicle-card__details-title {
	margin:      0;
	font-size:   var( --wp--preset--font-size--xxxs );
	font-weight: 500;
	line-height: 128%;
}

.vehicle-card__details {
	display:               grid;
	grid-template-columns: 1fr 1fr;
	gap:                   6px;
	margin-top:            -1.25rem;
}

.vehicle-card__detail {
	display:     flex;
	align-items: start;
	gap:         6px;
	font-size:   var( --wp--preset--font-size--xxxs );
	font-weight: 400;
	line-height: 125%;
}

.vehicle-card__detail svg {
	flex-shrink: 0;
	margin-top:  0.25rem;
}

@media (max-width: 768px) {

	.vehicle-card__details {
		grid-template-columns: 1fr;
	}
}

.vehicle-card__details-more {
	align-self:      flex-start;
	margin-top:      -0.75rem;
	padding:         0;
	background:      none;
	border:          none;
	border-bottom:   1px solid var( --wp--preset--color--sun );
	font-size:       var( --wp--preset--font-size--xxs );
	font-weight:     500;
	color:           var( --wp--preset--color--black );
	cursor:          pointer;
	line-height:     1.2;
	font-family:     var( --wp--preset--font-family--sans-serif );
}

/* ── Popup detalles de tarifa ─────────────────────────────────────
   Replicado de la hoja de reservation-flow, que no se carga en el
   catálogo. El JS crea un único #rhqr-modal en el body y lo reutiliza. */
.rhqr-modal {
	position:        fixed;
	inset:           0;
	z-index:         1000;
	display:         flex;
	align-items:     center;
	justify-content: center;
	padding:         1rem;
	background:      rgba( 2, 2, 2, 0.40 );
}

.rhqr-modal[hidden] {
	display: none;
}

.rhqr-modal__dialog {
	position:      relative;
	box-sizing:    border-box;
	width:         100%;
	max-width:     1072px;
	max-height:    calc( 100vh - 2rem );
	overflow-y:    auto;
	padding:       2rem;
	background:    var( --wp--preset--color--white );
	border-radius: 1rem;
}

.rhqr-modal__close {
	position:    absolute;
	top:         2rem;
	right:       2rem;
	padding:     0;
	background:  none;
	border:      none;
	cursor:      pointer;
	line-height: 0;
}

.rhqr-modal__title {
	margin:      0 0 2.5rem;
	font-size:   var( --wp--preset--font-size--md );
	font-weight: 500;
	line-height: 112%;
}

body.rhqr-modal-open {
	overflow: hidden;
}