/* Pacifica Booking – styles du parcours client. La couleur principale se règle dans Réservations > Réglages. */
.pb-app {
	--pb-accent: #0a7ea4;
	--pb-ink: #14212b;
	--pb-muted: #5b6b77;
	--pb-line: #dfe6eb;
	--pb-bg: #ffffff;
	--pb-soft: #f4f7f9;
	--pb-radius: 12px;
	color: var(--pb-ink);
	font-size: 16px;
	line-height: 1.45;
	max-width: 1120px;
	margin: 0 auto;
}
.pb-app *, .pb-app *::before, .pb-app *::after { box-sizing: border-box; }
.pb-app h2 { font-size: 1.5rem; margin: 0 0 .25rem; line-height: 1.2; }
.pb-app h3 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }

.pb-card { background: var(--pb-bg); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 20px; box-shadow: 0 1px 3px rgba(20, 33, 43, .06); }
.pb-grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.pb-grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.pb-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pb-field > span { font-size: .82rem; font-weight: 600; color: var(--pb-muted); }
.pb-app input:not([type=checkbox]), .pb-app select, .pb-app textarea {
	width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--pb-ink);
	background: #fff; border: 1px solid #c5d0d8; border-radius: 8px;
}
.pb-app input:focus, .pb-app select:focus, .pb-app textarea:focus { outline: 2px solid var(--pb-accent); outline-offset: 1px; border-color: var(--pb-accent); }

.pb-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px;
	font: inherit; font-weight: 700; color: #fff; background: var(--pb-accent); border: 0; border-radius: 999px; cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.pb-btn:hover { filter: brightness(1.08); }
.pb-btn:active { transform: translateY(1px); }
.pb-btn:disabled { opacity: .6; cursor: wait; }
.pb-btn-danger { background: #b42318; }

.pb-search-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pb-hours { font-size: .9rem; color: var(--pb-muted); }
.pb-hours summary { cursor: pointer; }
.pb-hours ul { list-style: none; margin: 8px 0; padding: 0; min-width: 240px; }
.pb-hours li { display: flex; justify-content: space-between; gap: 20px; padding: 2px 0; text-transform: capitalize; }
.pb-hours p { max-width: 380px; margin: 4px 0 0; }

.pb-results { margin-top: 24px; scroll-margin-top: 90px; }
.pb-results-head { margin-bottom: 16px; }
.pb-results-head p { margin: 0; color: var(--pb-muted); }
.pb-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.pb-vehicle { display: flex; flex-direction: column; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); overflow: hidden; background: #fff; }
.pb-vehicle-img { aspect-ratio: 16 / 10; background: transparent; display: flex; align-items: center; justify-content: center; }
.pb-vehicle-img img { max-width: 92%; max-height: 92%; object-fit: contain; }
.pb-vehicle-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.pb-vehicle-body h3 { margin: 0; font-size: 1.1rem; }
.pb-vehicle-body .pb-btn { margin-top: auto; }
.pb-vehicle.is-full { opacity: .55; }
.pb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-tag-hl { background: color-mix(in srgb, var(--pb-accent) 14%, #fff); color: var(--pb-accent); font-weight: 600; text-transform: none; }
.pb-cancel-policy { color: #067647; font-weight: 600; }
.pb-tag { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--pb-soft); color: var(--pb-muted); text-transform: capitalize; }
.pb-tag-warn { background: #fff4e5; color: #8a4b00; }
.pb-req { margin: 0; font-size: .85rem; color: var(--pb-muted); }
.pb-price strong { display: block; font-size: 1.45rem; }
.pb-price span { font-size: .85rem; color: var(--pb-muted); }
.pb-scarce { margin: 0; font-size: .85rem; font-weight: 600; color: #b54708; }
.pb-full { margin: auto 0 0; font-weight: 600; color: var(--pb-muted); }

.pb-back { background: none; border: 0; padding: 0; margin-bottom: 12px; font: inherit; color: var(--pb-accent); cursor: pointer; }
.pb-checkout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.pb-recap { position: sticky; top: 100px; }
.pb-recap h3 { margin-top: 0; }
.pb-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.pb-line span:last-child { white-space: nowrap; }
.pb-total { border-top: 1px solid var(--pb-line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }
.pb-now { font-weight: 600; color: var(--pb-accent); }
.pb-note { margin: 10px 0 0; padding: 8px 10px; font-size: .85rem; background: #eff8ff; border-radius: 6px; color: #175cd3; }
.pb-recap .pb-btn { width: 100%; margin-top: 14px; }

.pb-options { display: flex; flex-direction: column; gap: 8px; }
.pb-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--pb-line); border-radius: 8px; }
.pb-option-label small { display: block; color: var(--pb-muted); }
.pb-option select { width: 80px; }
.pb-option input[type=checkbox], .pb-terms input { width: 20px; height: 20px; accent-color: var(--pb-accent); }
.pb-terms { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.pb-details textarea { min-height: 70px; }
.pb-attest { padding: 10px 12px; background: #fffaeb; border: 1px solid #fedf89; border-radius: 8px; font-weight: 500; }
.pb-details > .pb-field { margin-top: 12px; }

.pb-muted { color: var(--pb-muted); }
.pb-small { font-size: .8rem; color: var(--pb-muted); margin: 10px 0 0; }
.pb-hp { position: absolute !important; left: -9999px !important; }
.pb-loading { padding: 24px; text-align: center; color: var(--pb-muted); }
.pb-errors { background: #fef3f2; border: 1px solid #fecdca; color: #912018; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.pb-errors ul { margin: 0; padding-left: 18px; }
.pb-error { color: #912018; }
.pb-notice { background: #eff8ff; border: 1px solid #b2ddff; color: #175cd3; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.pb-notice.pb-test { background: #fffaeb; border-color: #fedf89; color: #93370d; }

.pb-confirm { text-align: center; }
.pb-check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #ecfdf3; color: #067647; font-size: 28px; line-height: 56px; }
.pb-summary { text-align: left; max-width: 560px; margin: 20px auto 0; }

.pb-widget { background: #fff; border-radius: var(--pb-radius); padding: 16px; }
.pb-widget .pb-btn { margin-top: 14px; width: 100%; }

@media (max-width: 860px) {
	.pb-checkout { grid-template-columns: 1fr; }
	.pb-recap { position: static; }
}
@media (max-width: 480px) {
	.pb-card { padding: 16px; }
	.pb-search-foot .pb-btn { width: 100%; }
}

.pb-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: #067647; }
.pb-perks li::before { content: "✓ "; font-weight: 700; }

/* Liste des véhicules [pacifica_vehicules] et fiche du modèle (remplacent VikRentCar). */
.pb-catalog-title { text-align: center; margin-bottom: 18px; }
.pb-cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pb-cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); overflow: hidden; box-shadow: 0 1px 3px rgba(20, 33, 43, .06); transition: box-shadow .15s, transform .15s; }
.pb-cat-card:hover { box-shadow: 0 8px 22px rgba(20, 33, 43, .12); transform: translateY(-2px); }
.pb-cat-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: linear-gradient(180deg, #f4f9fc, #fff); }
.pb-cat-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pb-cat-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.pb-cat-body h3 { margin: 0; font-size: 1.1rem; }
.pb-cat-body h3 a { color: inherit; text-decoration: none; }
.pb-cat-body .pb-btn { margin-top: auto; text-align: center; text-decoration: none; }
.pb-cat-price { margin: 4px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.pb-cat-price span { color: var(--pb-muted); font-size: .85rem; }
.pb-cat-price strong { font-size: 1.3rem; color: var(--pb-accent); }
.pb-cat-price small { color: var(--pb-muted); }
.pb-cat-price em { width: 100%; font-style: normal; font-size: .8rem; color: var(--pb-muted); }
.pb-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .82rem; color: var(--pb-muted); }
.pb-feats li { display: inline-flex; align-items: center; gap: 4px; }
.pb-feats svg { width: 16px; height: 16px; fill: var(--pb-accent); flex: none; }
.pb-vehicle-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; margin-bottom: 16px; }
.pb-vd-img { display: flex; align-items: center; justify-content: center; }
.pb-vd-img img { max-width: 100%; max-height: 260px; object-fit: contain; }
.pb-vd-body { display: flex; flex-direction: column; gap: 8px; }
.pb-vd-desc { margin: 4px 0; color: var(--pb-ink); }
@media (max-width: 640px) { .pb-vehicle-detail { grid-template-columns: 1fr; } }
.pb-vehicle { position: relative; }
.pb-vehicle.is-chosen { border: 2px solid var(--pb-accent); }
.pb-chosen { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--pb-accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pb-desc summary { cursor: pointer; font-size: .85rem; color: var(--pb-accent); }
.pb-desc p { margin: 6px 0 0; font-size: .88rem; color: var(--pb-muted); }

/* Choix intelligent : modèle choisi complet → suggestions et dates proches. */
.pb-unavail { margin-bottom: 16px; border-left: 4px solid #b54708; }
.pb-unavail h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pb-unavail p { margin: 0 0 10px; color: var(--pb-muted); }
.pb-unavail .pb-shifts-title { margin-top: 14px; color: var(--pb-ink); font-weight: 600; }
.pb-shifts { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-shift { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; font: inherit; text-align: left; color: var(--pb-ink); background: var(--pb-soft); border: 1px solid var(--pb-line); border-radius: 10px; cursor: pointer; }
.pb-shift:hover, .pb-shift:focus-visible { border-color: var(--pb-accent); background: color-mix(in srgb, var(--pb-accent) 8%, #fff); }
.pb-shift strong { display: block; font-size: .92rem; }
.pb-shift strong::first-letter { text-transform: uppercase; }
.pb-shift small { font-size: .8rem; color: var(--pb-muted); }
.pb-vehicle.is-suggested { border-color: var(--pb-accent); box-shadow: 0 0 0 1px var(--pb-accent); }
.pb-suggested { background: #0f7b4f; }
.pb-hint { margin: 0; font-size: .85rem; font-weight: 600; color: #0f7b4f; }
@media (max-width: 560px) { .pb-shift { flex: 1 1 100%; } }
/* Protections : cartes à cocher avec le détail de la franchise. */
.pb-option-prot { display: block; }
.pb-option-prot > .pb-option-label { display: block; margin-bottom: 8px; }
.pb-prots { display: grid; gap: 8px; }
.pb-prot { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--pb-line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.pb-prot:hover { border-color: var(--pb-accent); }
.pb-prot:has(input:checked) { border-color: var(--pb-accent); background: color-mix(in srgb, var(--pb-accent) 7%, #fff); box-shadow: 0 0 0 1px var(--pb-accent); }
.pb-app .pb-prot input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--pb-accent); }
.pb-prot-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pb-prot-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pb-prot-head span { font-weight: 600; color: var(--pb-accent); white-space: nowrap; }
.pb-prot small { font-size: .85rem; color: var(--pb-muted); }