/* ============================================================
   Cheap Auto Rentals — rebranded page bodies (Phase 2+)
   Components scoped under body.rb so non-rebranded pages keep
   their existing styling. .hero and .section collide with the
   old stylesheet, so those two are scoped; the rest are unique.
   ============================================================ */

.rb .section { padding-block: clamp(64px, 9vw, 130px); padding-inline: 0; }

/* gradient image placeholder (used until real photos are added) */
.ph {
  display: block; width: 100%; height: 100%;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent-tint) 80%, #fff), transparent 60%),
    linear-gradient(135deg, var(--brand-tint), color-mix(in srgb, var(--brand) 14%, #fff));
}

/* ---------- HERO ---------- */
/* Override the old full-bleed .hero (grid/green bg/white text/min-height/side padding). */
.rb .hero {
  display: block;
  position: relative;
  background: none;
  color: var(--ink);
  min-height: 0;
  padding: clamp(28px, 5vw, 60px) 0 clamp(40px, 6vw, 90px);
}
.rb .hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.rb .hero__copy { max-width: 620px; }
.rb .hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; margin-top: 18px; }
.rb .hero h1 .hl { color: var(--brand); }
.rb .hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.32rem); color: var(--ink-soft); margin-top: 22px; max-width: 30em; }
.rb .hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.rb .hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.rb .hero__micro { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 34em; }
@media (max-width: 860px) { .rb .hero__inner { grid-template-columns: 1fr; } }

/* ---- search card (frames the DiscoverCars widget, kept as-is) ---- */
.searchcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; position: relative; }
.searchcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.searchcard__title { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.searchcard__by { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.searchcard__by .dc { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: #00a896; }
.searchcard__by .dc i { width: 9px; height: 9px; border-radius: 50%; background: #00a896; font-style: normal; }
.searchcard__note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- TRUST STRIP ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust__inner { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); padding-block: 26px; }
.trust__item { display: flex; align-items: center; gap: 13px; }
.trust__num { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; color: var(--brand); }
.trust__lab { font-size: 14px; color: var(--ink-soft); font-weight: 600; line-height: 1.2; max-width: 14ch; }
.trust__rate { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.trust__stars { color: var(--accent-strong); font-size: 18px; letter-spacing: 2px; }
.trust__rate small { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .trust__rate { margin-left: 0; } }

/* ---------- SECTION HEADER ---------- */
.shead { max-width: 760px; margin-bottom: clamp(34px, 5vw, 58px); }
.shead.center { margin-inline: auto; text-align: center; }
.shead h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-top: 16px; }
.shead p { color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.2rem); margin-top: 18px; }
.shead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- DESTINATIONS ---------- */
.dest__groups { display: grid; gap: clamp(34px, 5vw, 56px); }
.dest__grouphead { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dest__grouphead h3 { font-size: 1.5rem; }
.dest__grouphead .flag { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 16px; background: var(--brand-tint); color: var(--brand-strong); }
.dest__grouphead .line { flex: 1; height: 1px; background: var(--line); }
.dest__grouphead a { font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .dgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dgrid { grid-template-columns: 1fr; } }
.dcard { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .2s; color: var(--ink); }
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); text-decoration: none; }
.dcard__img { position: relative; aspect-ratio: 16 / 11; }
.dcard__body { padding: 14px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dcard__name { font-family: var(--font-head); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.dcard__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dcard__go { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--brand); background: var(--brand-tint); transition: background .2s, color .2s, transform .2s; }
.dcard:hover .dcard__go { background: var(--brand); color: #fff; transform: rotate(-45deg); }

/* ---------- ADVICE / HIDDEN COSTS ---------- */
.advice { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.advice .eyebrow { color: var(--accent); }
.advice .eyebrow::before { background: var(--accent); }
.advice__top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); align-items: end; margin-bottom: clamp(34px, 5vw, 54px); }
.advice h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-top: 16px; }
.advice h2 .hl { color: var(--accent); }
.advice__lead { color: #c7cad3; font-size: 1.12rem; }
.advice__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 880px) { .advice__top { grid-template-columns: 1fr; } .advice__grid { grid-template-columns: 1fr; } }
.acell { background: var(--ink); padding: 26px 24px 28px; transition: background .2s; }
.acell:hover { background: #1d2027; }
.acell__ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--accent); border: 1px solid rgba(255, 255, 255, .09); }
.acell h4 { font-size: 1.18rem; font-weight: 700; }
.acell p { color: #b6bac4; font-size: 14.5px; margin-top: 9px; }

/* ---------- GUIDES ---------- */
.guides__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
@media (max-width: 900px) { .guides__grid { grid-template-columns: 1fr; } }
.gcard { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .25s; display: flex; flex-direction: column; color: var(--ink); }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.gfeature__img { position: relative; aspect-ratio: 16/10; }
.gfeature__body { padding: clamp(22px, 3vw, 34px); }
.gfeature__body h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin: 14px 0; }
.gfeature__body p { color: var(--ink-soft); }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); }
.tag.amber { color: var(--accent-strong); }
.meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 16px; }
.meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.glist { display: grid; gap: 16px; align-content: start; }
.grow { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s; color: var(--ink); }
.grow:hover { transform: translateX(4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); text-decoration: none; }
.grow__img { width: 92px; height: 78px; border-radius: 11px; overflow: hidden; flex: none; }
.grow h4 { font-size: 1.06rem; font-weight: 700; line-height: 1.18; }
.grow .meta { margin-top: 8px; }

/* ---------- HOW IT WORKS ---------- */
.steps { background: var(--brand-tint); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .steps__grid { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 32px; position: relative; box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 17px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 20px; }
.step:nth-child(2) .step__n { background: var(--accent); color: #2a1d00; }
.step:nth-child(3) .step__n { background: var(--success); }
.step h4 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); margin-top: 10px; font-size: 15.5px; }

/* ---------- CTA BAND ---------- */
.cta { padding-block: clamp(56px, 7vw, 96px); }
.cta__card { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand), var(--brand-strong)); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 76px); color: #fff; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta__card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 75%, transparent), transparent 62%); opacity: .7; pointer-events: none; }
@media (max-width: 760px) { .cta__card { grid-template-columns: 1fr; } }
.cta__card h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); position: relative; z-index: 1; }
.cta__card p { margin-top: 14px; color: #dce6ff; font-size: 1.1rem; position: relative; z-index: 1; max-width: 34ch; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta__actions small { color: #c4d3ff; font-size: 13px; }

/* ============================================================
   Phase 3 — interior pages (destination + country guides)
   ============================================================ */
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.crumb a { color: var(--muted); transition: color .15s; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--line-strong); }
.crumb [aria-current] { color: var(--ink); }

.dhero { position: relative; padding-top: clamp(24px, 4vw, 40px); }
.dhero__band { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md); background: linear-gradient(135deg, #16284a 0%, #0b1426 100%); }
.dhero__band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,16,30,.45) 0%, rgba(10,16,30,.4) 45%, rgba(8,12,24,.8) 100%); }
.dhero__content { position: relative; z-index: 2; padding: clamp(26px, 4vw, 48px); padding-bottom: clamp(60px, 7vw, 88px); color: #fff; max-width: 760px; }
.dhero__content .crumb, .dhero__content .crumb a, .dhero__content .crumb [aria-current] { color: rgba(255,255,255,.82); }
.dhero__content .crumb .sep { color: rgba(255,255,255,.4); }
.dhero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 16px 0 12px; }
.dhero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.dhero__sub { color: rgba(255,255,255,.86); font-size: clamp(1.02rem, 1.5vw, 1.22rem); margin-top: 16px; max-width: 46ch; }
.dhero__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip--dark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: none; backdrop-filter: blur(4px); }
.chip--dark .dot { background: var(--accent); }
.dhero__searchwrap { margin-top: -54px; position: relative; z-index: 5; }
@media (max-width: 600px) { .dhero__searchwrap { margin-top: 18px; } }

.rb .article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(34px, 5vw, 72px); align-items: start; max-width: none; margin: 0; padding: 0; }
@media (max-width: 940px) { .rb .article { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 52px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 32px; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a:not(.btn) { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 1.05rem; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 42px; color: var(--ink-soft); font-size: 1.05rem; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-strong); font-family: var(--font-head); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.prose .lead { font-size: 1.28rem; color: var(--ink); line-height: 1.5; }

.callout, .prose .note { border-radius: var(--r-md); padding: 22px 24px; background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.callout.warn { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent-strong) 28%, transparent); }
.callout.save { background: color-mix(in srgb, var(--success) 12%, #fff); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.callout__lab { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 8px; }
.callout.warn .callout__lab { color: var(--accent-strong); }
.callout.save .callout__lab { color: var(--success); }
.callout p, .prose .note p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.callout p + p { margin-top: 10px; }
.prose .note strong { color: var(--brand-strong); }

.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 940px) { .aside { position: static; } }
.sidecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.sidecard h4 { font-size: 1.05rem; margin-bottom: 14px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: background .15s, color .15s; }
.toc a:hover, .toc a.active { background: var(--brand-tint); color: var(--brand-strong); text-decoration: none; }
.sidecard--cta { background: var(--ink); color: #fff; }
.sidecard--cta h4 { color: #fff; }
.sidecard--cta p { color: #b6bac4; font-size: 14px; margin: 0 0 16px; }
.keyfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.keyfacts li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.keyfacts li:last-child { border-bottom: 0; padding-bottom: 0; }
.keyfacts span:first-child { color: var(--muted); font-weight: 600; }
.keyfacts span:last-child { color: var(--ink); font-weight: 700; text-align: right; }

.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .routes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .routes { grid-template-columns: 1fr; } }
.route { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .25s; color: var(--ink); }
.route:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.route__img { aspect-ratio: 3/2; }
.route__body { padding: 14px 16px 16px; }
.route__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.route__sub { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 6px; }

.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center; transition: transform .25s, background .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__a { padding: 0 0 20px; color: var(--ink-soft); font-size: 1.04rem; }
.faq__a p + p { margin-top: 12px; }

/* ============================================================
   Phase 4 — index / listing pages
   ============================================================ */
.idxhero { padding-top: clamp(30px, 4vw, 50px); }
.idxhero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-top: 16px; }
.idxhero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); margin-top: 18px; max-width: 60ch; }

.artgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .artgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .artgrid { grid-template-columns: 1fr; } }
.acard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .25s; color: var(--ink); }
.acard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); text-decoration: none; }
.acard__img { aspect-ratio: 16/10; position: relative; }
.acard__cat { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--surface); color: var(--brand-strong); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.acard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.acard__body h3 { font-size: 1.28rem; line-height: 1.14; }
.acard__body p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 10px; flex: 1; }

.idxfeature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--ink); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); color: #fff; }
@media (max-width: 820px) { .idxfeature { grid-template-columns: 1fr; } }
.idxfeature__img { position: relative; min-height: 320px; }
.idxfeature__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.idxfeature__body .tag { color: var(--accent); }
.idxfeature__body h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 14px 0 16px; }
.idxfeature__body p { color: #c7cad3; font-size: 1.08rem; }
.idxfeature__body .meta { color: #9aa0ad; }

/* simple text card grid (country listing) */
.dcard--text .dcard__body { padding: 18px 18px 18px; }
