/* Load Urbanist from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800&display=swap");


/* === Car Hire Reviews — Lean CSS === */
:root{
  --chr-max:1200px;
  --chr-gap:1.25rem;
  --chr-text:#0f172a;
  --chr-muted:#6b7280;
  --chr-border:#eef0f3;
  --chr-shadow:0 8px 24px rgba(0,0,0,.08);
  --chr-shadow-lg:0 18px 36px rgba(0,0,0,.12);
  --chr-top:rgba(46,204,113,.32);    /* green glow */
  --chr-low:rgba(230,126,34,.30);    /* orange glow */
  --chr-star:#f59e0b;
}

/* Headings (minimal) */
.chr-section-title{ text-align:center; font:800 2.2rem/1.15 system-ui; margin:2.25rem 0 .25rem; color:var(--chr-text); }
.chr-section-sub{ text-align:center; color:var(--chr-muted); margin-bottom:1.5rem; }
.chr-icon-title{ display:inline-flex; align-items:center; gap:.5rem; }

/* =========================================================
   HIGHLIGHTS (Top & Lowest) – FIX LAYOUT + BREAKPOINTS
   ========================================================= */

/* Base: centre the Gutenberg columns block inside its 75% wrapper */
.wp-block-columns.chr-highlights,
.chr-highlights {
  max-width: var(--chr-max);
  margin: 0 auto 2.4rem;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Desktop (>=1180px): force two columns in one row, no wrapping */
@media (min-width: 1180px) {
  .wp-block-columns.chr-highlights,
  .chr-highlights {
    display: flex !important;
    flex-wrap: nowrap !important;          /* never wrap to a second row */
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 48px !important;                  /* space between the two columns */
  }

  .wp-block-columns.chr-highlights > .wp-block-column,
  .chr-highlights > .wp-block-column,
  .chr-highlights > .chr-column {
    flex: 1 1 0 !important;                /* true 50/50 flex columns */
    min-width: 0 !important;               /* allow contents to shrink instead of forcing wrap */
    margin: 0 !important;
    box-sizing: border-box;
  }
}

/* Below 1180px: stack the two columns, full width, no chance of overlap */
@media (max-width: 1179px) {
  .wp-block-columns.chr-highlights,
  .chr-highlights {
    display: block !important;             /* kill Gutenberg flex row */
  }

  .wp-block-columns.chr-highlights > .wp-block-column,
  .chr-highlights > .wp-block-column,
  .chr-highlights > .chr-column {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto 32px !important;
    flex: none !important;
    box-sizing: border-box;
  }
}


/* ---------- Cards (generic) ---------- */
.chr-row-card{
  background:#fff; border-radius:16px; margin:.9rem 0; position:relative; overflow:hidden;
  transition:transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, filter .35s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
.chr-column.top .chr-row-card{ filter:drop-shadow(0 14px 26px var(--chr-top)) drop-shadow(0 2px 8px rgba(46,204,113,.15)); }
.chr-column.lowest .chr-row-card{ filter:drop-shadow(0 14px 26px var(--chr-low)) drop-shadow(0 2px 8px rgba(230,126,34,.14)); }
.chr-row-card:hover{ transform:translateY(-4px); }

/* Generic card layout (used for league / other places) */
.chr-row-card__link{ display:grid; grid-template-columns:1fr 72px; color:inherit; text-decoration:none; }
.chr-row-card__main{ display:grid; grid-template-columns:110px 1fr; gap:16px; padding:16px 18px; align-items:center; }
.chr-row-card.has-logo  .chr-row-card__main{ grid-template-columns:110px 1fr; }
.chr-row-card.no-logo   .chr-row-card__main{ grid-template-columns:1fr; }

.chr-row-card__logo{
  width:102px; height:64px; object-fit:contain; background:#fff; border-radius:12px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
}
.chr-row-card__title{ font:800 1.06rem/1.2 system-ui; margin:0 0 4px; }
.chr-row-card__rating{ display:inline-flex; align-items:center; gap:8px; font-size:.98rem; color:#111827; }
.chr-row-card__reviews{ color:var(--chr-muted); font-size:.92rem; white-space:nowrap; }

/* Right CTA band (for other contexts, not highlights) */
.chr-row-card__cta{
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.78));
  box-shadow:inset 12px 0 20px rgba(0,0,0,.06);
  border-left:1px solid rgba(0,0,0,.06);
}
.chr-row-card__arrow{ display:flex; align-items:center; justify-content:center; height:100%; color:#111827; transition:transform .25s ease; }
.chr-row-card:hover .chr-row-card__arrow{ transform:translateX(6px); }

/* =========================================================
   HIGHLIGHTS CARD CONTENT: LOGO LEFT, STARS CENTRE, REVIEWS RIGHT
   ========================================================= */

/* In the Top/Lowest block we don't use the grey CTA strip */
.chr-highlights .chr-row-card__cta {
  display: none !important;
}

/* Link wrapper: just a block, no second grid column for CTA */
.chr-highlights .chr-row-card__link {
  display: block !important;
  color: inherit;
  text-decoration: none;
}

/* Main content: 3 columns [ logo ] [ stars ] [ "4.5 / 123 reviews" ] */
.chr-highlights .chr-row-card__main {
  display: grid !important;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 16px 18px;
}

/* Logo left */
.chr-highlights .chr-row-card__logo {
  justify-self: flex-start;
}

/* Stars middle */
.chr-highlights .chr-row-card__rating {
  justify-self: center;
  text-align: center;
  margin: 0;
}

/* Reviews text right */
.chr-highlights .chr-row-card__reviews {
  justify-self: flex-end;
  text-align: right;
  white-space: nowrap;
}

/* On small screens, stack rating + reviews so it doesn't get cramped */
@media (max-width: 700px) {
  .chr-highlights .chr-row-card__main {
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-areas:
      "logo rating"
      "logo reviews";
    row-gap: 4px;
  }

  .chr-highlights .chr-row-card__logo {
    grid-area: logo;
  }

  .chr-highlights .chr-row-card__rating {
    grid-area: rating;
    justify-self: flex-start;
    text-align: left;
  }

  .chr-highlights .chr-row-card__reviews {
    grid-area: reviews;
    justify-self: flex-start;
    text-align: left;
  }
}


/* ---------- Shared stars ---------- */
.chr-stars{ display:inline-flex; gap:2px; vertical-align:middle; }
.chr-stars svg{ width:18px; height:18px; }
.chr-grid-stars .chr-stars svg{ width:20px; height:20px; }

/* ---------- League (All Companies Grid) ---------- */
.chr-sortbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.75rem;
  margin:1.5rem auto 1.5rem;
  max-width:var(--chr-max);
  text-align:center;
}
.chr-sortbar label{ font-weight:600; color:#374151; }
.chr-sort-select{ padding:.45rem .7rem; border:1px solid #e5e7eb; border-radius:10px; background:#fff; font-weight:600; }

.chr-league{ max-width:var(--chr-max); margin:0 auto 3rem; padding:0 12px; }
.chr-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:var(--chr-gap); }

.chr-grid-card{
  background:#fff; border-radius:20px; text-align:center; padding:1rem 1rem 0;
  box-shadow:var(--chr-shadow); transition:transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
  overflow:hidden;
}
.chr-grid-card:hover{ transform:translateY(-6px); box-shadow:var(--chr-shadow-lg); }
.chr-grid-card img{ display:block; margin:.1rem auto .4rem; }
.chr-brand-title{ font:800 1.1rem/1.2 system-ui; margin:.25rem 0 .5rem; color:var(--chr-text); }

.chr-grid-meta{
  margin:.35rem 0 .75rem; color:var(--chr-muted); font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.chr-grid-see{
  display:block; text-align:center; padding:.7rem 0 .9rem; margin:0 -1rem 0;
  border-top:1px solid var(--chr-border); background:linear-gradient(180deg,#fff,#fafbfc);
  font-weight:800; color:#1e293b !important; text-decoration:none !important;
}
.chr-grid-see svg{ margin-left:4px; transition:transform .3s ease; }
.chr-grid-card:hover .chr-grid-see svg{ transform:translateX(4px); }

/* ---------- Company detail (light) ---------- */
.chr-company-reviews .chr-agg{ margin-bottom:.75rem; }
.chr-hist{ margin:8px 0 16px; }
.chr-bar{ display:flex; align-items:center; gap:8px; margin:4px 0; }
.chr-bar span:first-child{ width:32px; }
.chr-bar-fill{ display:inline-block; height:8px; background:#f5a623; border-radius:8px; min-width:4px; }
.chr-review-list{ list-style:none; padding:0; margin:0; }
.chr-review-list li{ border-top:1px solid #eee; padding:10px 0; }
.chr-byline{ color:var(--chr-muted); }

/* ---------- Blocked brand message (Green Motion etc.) ---------- */
.single-car_rental_company .entry-content > .chr-review-blocked,
.single-car_rental_company .chr-review-blocked{
  max-width: 840px;
  margin: 7rem auto 2rem;
  text-align: center;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.chr-review-blocked p{
  margin: 0 0 1rem;
  font-weight: 500;
  color: #111827;
}

.chr-review-blocked .chr-back-btn--inline{
  margin-top: 0;
}

/* optional shine */
@keyframes chrShine{ 0%{background-position:-100% 0;} 100%{background-position:200% 0;} }
.chr-grid-card::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,0) 40%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 60%);
  opacity:0; transition:opacity .3s;
}
.chr-grid-card:hover::before{ opacity:1; animation:chrShine 2.5s linear infinite; }


/* ---------- CHR company page polish ---------- */
.single-car_rental_company .chr-company-shell{
  max-width: 1120px;
  margin: 0 auto 4rem;
  padding: 0 16px;
}

/* space under navbar */
.single-car_rental_company .chr-company-navbar{
  margin-bottom: 2em;
}

/* hide theme’s default site-title/branding */
.single-car_rental_company header .site-branding,
.single-car_rental_company .site-title{
  display: none !important;
}

/* center the whole reviews block and keep a readable width */
.single-car_rental_company .chr-company-main{
  max-width: 840px;
  margin: 0 auto;
}

/* extra: nuke old meta/header junk */
.single-car_rental_company .entry-header,
.single-car_rental_company .entry-meta,
.single-car_rental_company .byline,
.single-car_rental_company .posted-on,
.single-car_rental_company .cat-links,
.single-car_rental_company .tags-links,
.single-car_rental_company .comments-area,
.single-car_rental_company .comments-link,
.single-car_rental_company .entry-footer,
.single-car_rental_company .widget-area,
.single-car_rental_company .sidebar,
.single-car_rental_company .related-posts,
.single-car_rental_company .post-navigation{
  display: none !important;
}

/* ====== CHR company pages polish ====== */

.single-car_rental_company .chr-company-wrap,
.single-car_rental_company .chr-company-reviews {
  margin-top: 2em;
}

.single-car_rental_company .site-title,
.single-car_rental_company .wp-block-site-title,
.single-car_rental_company .site-branding,
.single-car_rental_company .header__brand-text {
  display: none !important;
}

/* Histogram label & track */
.chr-hist .chr-bar { display:flex; align-items:center; gap:12px; margin:6px 0; }
.chr-hist .chr-bar-label { width:36px; min-width:36px; text-align:right; font-weight:600; }
.chr-hist .chr-bar-track { flex:1; height:10px; background:#eee; border-radius:999px; overflow:hidden; }
.chr-hist .chr-bar-fill { display:block; height:10px; background:#f5a623; border-radius:999px; }

/* Numbered pager */
.chr-pager { margin:28px 0 36px; display:flex; gap:10px; justify-content:center; align-items:center; }
.chr-page-btn {
  border:1px solid #e5e7eb; background:#fff; color:#111;
  padding:.55rem .85rem; border-radius:10px; text-decoration:none; font-weight:600;
}
.chr-page-btn:hover { border-color:#d1d5db; }
.chr-page-btn[aria-current="page"] { background:#111; color:#fff; border-color:#111; }
.chr-page-btn.is-disabled { opacity:.45; pointer-events:none; }
.chr-page-gap { color:#9ca3af; padding:0 .25rem; }
.chr-page-btn .chev { font-weight:700; }

/* keep the whole block nicely centered */
.single-car_rental_company .chr-company-wrap,
.single-car_rental_company .chr-company-reviews {
  max-width: 980px; margin-left:auto; margin-right:auto; padding:0 12px;
}

.single-car_rental_company [id*="header"],
.single-car_rental_company [class*="header"] a[rel="home"],
.single-car_rental_company [class*="branding"] {
  display: none !important;
}

.single-car_rental_company .chr-brand-header {
  margin-top: 1em !important;
}

/* 1) Kill any header/border/shadow remnants */
.single-car_rental_company header,
.single-car_rental_company header::before,
.single-car_rental_company header::after,
.single-car_rental_company [class*="site-header"],
.single-car_rental_company [class*="site-header"]::before,
.single-car_rental_company [class*="site-header"]::after,
.single-car_rental_company [class*="branding"] {
  border: none !important;
  box-shadow: none !important;
}

/* 2) If the RME navbar adds a bottom border/shadow, remove it here */
.single-car_rental_company .rme-navbar,
.single-car_rental_company [class*="rme-nav"],
.single-car_rental_company [class*="navbar"] {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* 3) Hide any separators that might be injected at the top */
.single-car_rental_company hr,
.single-car_rental_company .wp-block-separator {
  display: none !important;
  border: 0 !important;
  height: 0 !important;
}

/* 4) First child after header */
.single-car_rental_company main > *:first-child,
.single-car_rental_company .site-main > *:first-child,
.single-car_rental_company .entry-content > *:first-child {
  border-top: 0 !important;
  box-shadow: none !important;
}

/* Force Urbanist everywhere here */
html, body, .site, .site * {
  font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
}

/* Responsive, centered footer image */
footer .wp-block-image,
.site-footer .wp-block-image,
footer .wp-block-image.aligncenter,
.site-footer .wp-block-image.aligncenter {
  max-width: min(92vw, 1100px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

footer .wp-block-image img,
.site-footer .wp-block-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Force Urbanist for competitor headings */
.chr-brand-header h2,
.chr-brand-header h2 *,
.chr-brand-title,
.chr-brand-title * {
  font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* Center the special footer image */
figure.footer-center,
img.footer-center {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  text-align: center !important;
}

.footer-center img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Neutralize alignwide/full pushing it left */
footer .footer-center.alignfull,
footer .footer-center.alignwide {
  margin-left: auto !important;
  margin-right: auto !important;
  width: auto !important;
}

/* If a parent group/columns is flexing left, force center */
footer .wp-block-group__inner-container,
footer .wp-block-columns {
  justify-content: center !important;
}

/* === Back to Reviews Buttons === */
.chr-back-wrapper {
  text-align: center;
}

.chr-back-btn {
  display: inline-block;
  background: #111827;
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.chr-back-btn:hover {
  background: #374151;
  transform: translateY(-2px);
}

.chr-back-btn:active {
  background: #000;
  transform: translateY(0);
}

.chr-back-wrapper.top {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.chr-back-wrapper.bottom {
  margin-top: 3rem;
  margin-bottom: 2rem;
}
