/*
 * Weekly (page-weekly-car-rental.php, .bcr-wk-*) and Long-Term (page-long-term-car-rental.php, .bcr-lt-*) pages.
 * Two different layouts after the big US rental brands: Weekly like a weekly-deal page (search bar, bold banner,
 * editorial rows), Long-Term like a long-term rental article (split hero, reserve card, sticky contents list).
 * Colours and type follow design-system.css.
 */

/* =========================== Shared ============================================================ */
.bcr-dr { background: #fff; }
.bcr-dr p { color: var(--ds-text); font-size: 16px; line-height: 1.7; }
body .bcr-dr-subhead { margin: 0 0 16px; color: var(--ds-ink); font-size: 20px; font-weight: 700; }
.bcr-dr-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--ds-accent-soft);
	color: var(--ds-accent-ink);
	font-size: 18px;
}
.bcr-dr .bcr-dr-note {
	display: flex;
	gap: 10px;
	margin: 24px 0 0;
	padding: 14px 16px;
	border: 1px solid #f3dca4;
	border-left: 4px solid var(--ds-accent);
	border-radius: var(--ds-radius-sm);
	background: #fffaf0;
	color: var(--ds-text);
	font-size: 15px;
	line-height: 1.6;
}
.bcr-dr-note .bi { flex: none; margin-top: 2px; color: var(--ds-accent-ink); }
.bcr-dr-note strong { color: var(--ds-ink); }

/* Buttons (same as the car search pages) */
.bcr-dr .bcr-cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid var(--ds-accent);
	border-radius: 10px;
	background: var(--ds-accent);
	color: #111827;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease;
}
.bcr-dr .bcr-cs-btn:hover { background: var(--ds-accent-hover); color: #111827; }
.bcr-dr .bcr-cs-btn--lg { padding: 14px 26px; font-size: 16px; }

/* Pickup location cards with the location page's photo */
.bcr-dr-places { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.bcr-dr-place {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius);
	background: #fff;
	color: var(--ds-ink);
	text-decoration: none;
	box-shadow: var(--ds-shadow);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.bcr-dr-place:hover { border-color: #f1cf86; box-shadow: var(--ds-shadow-hover); color: var(--ds-ink); }
.bcr-dr-place-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ds-soft); }
.bcr-dr-place-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bcr-dr-place:hover .bcr-dr-place-media img { transform: scale(1.04); }
.bcr-dr-place-body { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.bcr-dr-place-body strong { flex: 1; font-size: 18px; }
.bcr-dr-place-body > .bi { color: var(--ds-accent-ink); transition: transform .2s ease; }
.bcr-dr-place:hover .bcr-dr-place-body > .bi { transform: translateX(3px); }

/* Live deal cards (template-parts/cars/deal-card.php) */
.bcr-deals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bcr-deal {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-radius);
	background: #fff;
	box-shadow: var(--ds-shadow);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.bcr-deal:hover { border-color: #f1cf86; box-shadow: var(--ds-shadow-hover); }
.bcr-deal-media {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	height: 170px;
	padding: 34px 20px 14px;
	background: linear-gradient(135deg, var(--ds-soft) 0%, #fff 60%);
}
.bcr-deal-media img { width: auto; max-width: 100%; max-height: 120px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .12)); }
.bcr-deal-media > .bi { color: #c3cbd6; font-size: 56px; }
.bcr-deal-group { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--ds-accent-soft); color: var(--ds-accent-ink); font-size: 12px; font-weight: 700; }
.bcr-deal-body { flex: 1; padding: 16px 18px 10px; }
body .bcr-deal-name { margin: 0; font-size: 17px; line-height: 1.3; }
.bcr-deal-name a { color: var(--ds-ink); text-decoration: none; }
.bcr-deal-name a:hover { color: var(--ds-accent-ink); }
.bcr-deal-name small { color: var(--ds-muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.bcr-deal-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; }
body .bcr-deal-specs li { display: inline-flex; align-items: center; gap: 5px; color: var(--ds-text); font-size: 13.5px; }
.bcr-deal-specs .bi { color: #8a94a3; }
.bcr-deal-facts { display: grid; gap: 4px; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--ds-line); font-size: 13.5px; }
.bcr-deal-facts > div { display: flex; justify-content: space-between; gap: 10px; }
.bcr-deal-facts dt { color: var(--ds-muted); font-weight: 500; }
.bcr-deal-facts dd { margin: 0; color: var(--ds-ink); font-weight: 600; text-align: right; }
.bcr-deal-facts dd.is-ok { color: #17663a; }
.bcr-deal-supplier { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ds-ink); font-size: 13.5px; font-weight: 700; }
.bcr-deal-supplier img { width: auto; max-width: 80px; height: 20px; object-fit: contain; }
.bcr-deal-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--ds-line); background: #fbfcfd; }
.bcr-deal-price small { display: block; color: var(--ds-muted); font-size: 12px; font-weight: 600; }
.bcr-deal-price strong { display: block; color: var(--ds-ink); font-size: 22px; font-weight: 800; line-height: 1.15; }
.bcr-deal-price span { color: var(--ds-muted); font-size: 12.5px; }
.bcr-deal-price span b { color: var(--ds-accent-ink); }
.bcr-deal--skel { gap: 12px; padding: 16px; }
.bcr-skel { height: 14px; border-radius: 8px; background: #e7ebf1; animation: bcr-pulse 1.4s ease-in-out infinite; }
.bcr-skel--deal { height: 150px; }
@keyframes bcr-pulse { 50% { opacity: .5; } }
.bcr-deals > [role="alert"] { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: #fff; text-align: center; }

/* FAQs from the page content (Yoast FAQ block) */
.bcr-dr .schema-faq.wp-block-yoast-faq-block { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* =========================== Weekly: same design as the Luxury Car Rental page ================ */
/* Section, tile, card, step, FAQ and CTA styles come from pages/vehicle-luxury-car-rental.css. */
.bcr-search-hero-card > .bcr-search-hero-card-title { margin: 0 0 14px !important; color: var(--ds-ink) !important; font-size: 18px !important; font-weight: 700 !important; line-height: 1.3 !important; text-align: left; }
.bcr-wk .bcr-section-header p { max-width: 820px; margin-left: auto; margin-right: auto; }
.bcr-wk-subhead { margin-top: 8px; }
.bcr-wk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px; }
.bcr-wk-tile { height: 100%; text-align: center; }
.bcr-wk-tile .bcr-lux-icon { margin-left: auto; margin-right: auto; }
body .bcr-wk-tile h3 { margin-bottom: 0 !important; }
.bcr-wk-after { max-width: 820px; margin: 28px auto 0; }
.bcr-wk-after .lead { margin-bottom: 8px; color: var(--ds-ink) !important; font-weight: 700; }
.bcr-wk .bcr-wk-note { margin: 28px 0 0; }
.bcr-wk-places { margin-top: 32px; }
.bcr-wk .bcr-wk-step-text { color: var(--ds-ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.bcr-wk-faq-box .wp-block-heading { display: none; }
.bcr-wk .bcr-wk-cta-text { max-width: 760px; margin-left: auto; margin-right: auto; color: var(--ds-ink) !important; font-size: clamp(18px, 2vw, 22px); font-weight: 700; }

/* =========================== Long-Term: long-term rental article ============================== */
.bcr-lt-hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ds-navy); }
.bcr-lt-hero-panel { display: flex; flex-direction: column; justify-content: center; padding: 40px 20px 28px; }
.bcr-lt-hero h1 { margin: 0 0 14px; color: #fff !important; font-size: clamp(30px, 4vw, 48px) !important; line-height: 1.1 !important; }
.bcr-dr .bcr-lt-hero p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .9) !important; font-size: 17px; }
.bcr-lt-hero-media { min-height: 220px; background: var(--bcr-hero-img) center / cover no-repeat; }
.bcr-lt-reserve { padding: 0 0 8px; background: #fff; }
.bcr-lt-reserve-card { position: relative; z-index: 2; padding: 22px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: #fff; box-shadow: 0 24px 50px -28px rgba(11, 37, 69, .45); }
body .bcr-lt-reserve-title { margin: 0 0 14px; color: var(--ds-ink); font-size: 22px; font-weight: 800 !important; }

.bcr-lt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; padding-bottom: 48px; }
.bcr-lt-toc { display: none; }
.bcr-lt-section { padding: 36px 0; border-bottom: 1px solid var(--ds-line); scroll-margin-top: 100px; }
.bcr-lt-section > h2 { position: relative; margin: 0 0 14px; padding-top: 16px; font-size: clamp(24px, 2.6vw, 30px) !important; line-height: 1.2 !important; }
.bcr-lt-section > h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--ds-accent); }
body .bcr-lt-section > h3 { margin: 24px 0 14px; color: var(--ds-ink); font-size: 20px; }
.bcr-lt-section > p:last-child { margin-bottom: 0; }

.bcr-lt-classes { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
body .bcr-lt-classes li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ds-line); border-radius: 10px; background: #fff; color: var(--ds-ink); font-size: 15px; font-weight: 600; }
.bcr-lt-classes .bi { color: var(--ds-accent-ink); font-size: 18px; }
.bcr-lt-checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 24px; margin: 10px 0 0; padding: 18px 20px; border-radius: var(--ds-radius); background: var(--ds-soft); list-style: none; }
body .bcr-lt-checklist li { display: flex; align-items: center; gap: 10px; color: var(--ds-ink); font-size: 15.5px; font-weight: 600; }
.bcr-lt-checklist .bi { color: #17833f; font-size: 18px; }
.bcr-lt-checklist--single { padding: 0; background: none; }
.bcr-lt-box { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius); background: var(--ds-soft); }
.bcr-dr .bcr-lt-box-title { margin: 0 0 10px; color: var(--ds-ink); font-weight: 700; }
.bcr-lt-defs { display: grid; gap: 0; margin: 10px 0 0; border-top: 1px solid var(--ds-line); }
.bcr-lt-defs > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--ds-line); }
.bcr-lt-defs dt { display: flex; align-items: center; gap: 12px; color: var(--ds-ink); font-size: 16.5px; font-weight: 700; }
.bcr-lt-defs dt .bcr-dr-icon { width: 34px; height: 34px; font-size: 15px; }
.bcr-lt-defs dd { margin: 0; color: var(--ds-text); font-size: 15.5px; line-height: 1.65; }
.bcr-lt-timeline { position: relative; display: grid; gap: 18px; margin: 14px 0 0; padding: 0 0 0 44px; list-style: none; counter-reset: ltstep; }
.bcr-lt-timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 15px; width: 2px; background: var(--ds-line); }
body .bcr-lt-timeline li { position: relative; color: var(--ds-text); font-size: 16px; line-height: 1.6; counter-increment: ltstep; }
.bcr-lt-timeline li::before { content: counter(ltstep); position: absolute; top: -2px; left: -44px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ds-navy); color: #fff; font-size: 14px; font-weight: 800; }
.bcr-lt-timeline strong { color: var(--ds-ink); }
.bcr-lt-cta { margin: 36px 0 0; padding: 30px; border-radius: var(--ds-radius); background: var(--ds-navy); }
.bcr-lt-cta h2 { margin: 0 0 8px; color: #fff !important; font-size: clamp(24px, 2.6vw, 30px) !important; }
.bcr-dr .bcr-lt-cta p { margin: 0 0 18px; color: rgba(255, 255, 255, .88) !important; }
.bcr-lt-faq { border-bottom: 0; }
.bcr-lt-faq .wp-block-heading { position: relative; margin: 0 0 18px; padding-top: 16px; text-align: left !important; }
.bcr-lt-faq .wp-block-heading::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--ds-accent); }

/* Monthly deals as rows: photo | details | price */
.bcr-deals--rows { grid-template-columns: minmax(0, 1fr) !important; }

/* =========================== Wider screens ==================================================== */
@media (min-width: 576px) {
	.bcr-dr-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bcr-deals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bcr-lt-checklist:not(.bcr-lt-checklist--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bcr-wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.bcr-deals--rows .bcr-deal { flex-direction: row; }
	.bcr-deals--rows .bcr-deal-media { width: 220px; height: auto; }
	.bcr-deals--rows .bcr-deal-price { flex-direction: column; align-items: stretch; justify-content: center; width: 210px; border-top: 0; border-left: 1px solid var(--ds-line); text-align: right; }
	.bcr-deals--rows .bcr-deal-price .bcr-cs-btn { width: 100%; }
	.bcr-lt-defs > div { grid-template-columns: 260px minmax(0, 1fr); }
	.bcr-wk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
	.bcr-deals:not(.bcr-deals--rows) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bcr-wk-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

	.bcr-lt-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.bcr-lt-hero-panel { align-items: flex-start; padding: 64px 56px 120px max(20px, calc((100vw - 1320px) / 2 + 12px)); }
	.bcr-lt-hero-media { min-height: 100%; }
	.bcr-lt-reserve { grid-column: 1 / -1; margin-top: -84px; padding: 0; background: transparent; }
	.bcr-lt-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 32px; }
	.bcr-lt-toc { display: block; position: sticky; top: 100px; align-self: start; padding-top: 36px; }
	.bcr-lt-toc ol { margin: 0; padding: 0; border-left: 2px solid var(--ds-line); list-style: none; }
	.bcr-lt-toc a { display: block; margin-left: -2px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; color: var(--ds-muted); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
	.bcr-lt-toc a:hover { border-left-color: var(--ds-accent); color: var(--ds-ink); }
}
@media (max-width: 991px) {
	/* Phones and tablets: heading, then the search form, then the intro text (like every search hero). */
	.bcr-lt-hero-panel { display: contents; }
	.bcr-lt-hero h1 { order: 1; margin: 0; padding: 32px 20px 18px; }
	.bcr-lt-reserve { order: 2; padding: 0 0 4px; background: transparent; }
	.bcr-lt-hero p { order: 3; padding: 18px 20px 28px; }
	.bcr-lt-hero-media { order: 4; }
}
