/*
 * The SEO structure of the site („ca la carte”: one H1, no skipped heading levels) without changing how the pages look.
 * Loaded after minified_*.css (src/app/[lang]/layout.tsx). The old CSS styles headings by tag name (bootstrap's
 * h1…h6, the site's h1, `.x h4`…); an element whose tag changed for the outline carries a class saying how it looked:
 *
 *   .seo-hN     it was an <hN> (now another heading level, or a <div> when it is not a heading of the document)
 *   .seo-plain  it was a <div> (now a heading)
 *
 * The rules use :is(...) / :where(...) so they weigh exactly as much as a tag selector (0,0,1): the element's own
 * class rules still win, as they did over the old tag. Contextual rules of the old CSS are repeated below them.
 */

/* ---- what bootstrap and the site's main.css give every hN ---- */
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h1, .seo-h2, .seo-h3, .seo-h4, .seo-h5, .seo-h6) {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
  margin-bottom: 10px;
  margin-left: 0;
  margin-right: 0;
  display: block;
}
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h1, .seo-h2, .seo-h3) { margin-top: 20px; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h4, .seo-h5, .seo-h6) { margin-top: 10px; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h1) { color: #006598; font-size: 24px; font-family: Raleway-Regular; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h2) { font-size: 30px; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h3) { font-size: 24px; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h4) { font-size: 18px; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h5) { font-size: 14px; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h6) { font-size: 12px; }

/* bootstrap's `hN small` */
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h1, .seo-h2, .seo-h3, .seo-h4, .seo-h5, .seo-h6) :is(small, .small) { font-weight: 400; line-height: 1; color: #999; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h1, .seo-h2, .seo-h3) :is(small, .small) { font-size: 65%; }
:is(h1, h2, h3, h4, h5, h6, div, p):where(.seo-h4, .seo-h5, .seo-h6) :is(small, .small) { font-size: 75%; }

/* ---- a former <div> that is now a heading: nothing of the heading styles ---- */
:is(h1, h2, h3, h4, h5, h6):where(.seo-plain) {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

/* ---- contextual rules of the old CSS, for the new tags ---- */
/* .faq-section .text-box h4 { margin: 0 }: the notices on the car page, the FAQ questions */
.faq-section .text-box :is(h1, h2, h3, h5, h6, div, p):where(.seo-h4) { margin: 0; }

/* the car page: the column with the H1 comes first in the source, the text column stays on the left (flex row) */
.seo-order-first { order: -1; }

/* .home-contact h1: the "book by phone" copy under the text of an ad landing page (templates/normal) */
.home-contact :is(h2, h3, h4, h5, h6, div, p):where(.seo-h1) {
  font-family: Raleway-Regular; font-size: 24px; font-weight: 700; color: #006598; margin-bottom: 10px; margin-top: 5px; letter-spacing: 1px;
}

/* .faq-section .text-box h1 , .gdpr-right-wrapper h2 { color: #1a1a1a; font-family: Syne-Bold; font-size: 20px } */
.faq-section .text-box :is(h2, h3, h4, h5, h6, div, p):where(.seo-h1),
.gdpr-right-wrapper :is(h1, h3, h4, h5, h6, div, p):where(.seo-h2) { color: #1a1a1a; font-family: Syne-Bold; font-size: 20px; }
/* …and a legal text's heading that became an H2 does not take the H2 look of .gdpr-right-wrapper */
.gdpr-right-wrapper h2:where(.seo-h1, .seo-h3, .seo-h4, .seo-h5, .seo-h6) { color: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.gdpr-right-wrapper h2:where(.seo-h1) { color: #006598; font-family: Raleway-Regular; font-size: 24px; }
.gdpr-right-wrapper h2:where(.seo-h3) { font-size: 24px; }
.gdpr-right-wrapper h2:where(.seo-h4) { font-size: 18px; }
.gdpr-right-wrapper h2:where(.seo-h5) { font-size: 14px; }
.gdpr-right-wrapper h2:where(.seo-h6) { font-size: 12px; }

/* .text-box h1…h5 { color: #000; padding: 0; margin: 10px 0 } (after .home-contact h1 in the old CSS) */
.text-box :is(h6, div, p):where(.seo-h1, .seo-h2, .seo-h3, .seo-h4, .seo-h5) { color: #000; padding: 0; margin: 10px 0; }
.faq-section .text-box :is(div, p):where(.seo-h4) { margin: 0; }
/* …which also reaches the former divs that are now headings inside a .text-box: their own class values come back */
.text-box h2.info-faq-section-title:where(.seo-plain) { color: #0070ff; margin: 0 0 15px; padding: 0; }

/* the partner panel (/accounts): its tiles' H3 are H2 now; scripts/accounts/accounts.css styles `.tile-stats h3` */
.tile-stats h2:where(.seo-h3) { position: relative !important; margin: 0 0 0 10px !important; z-index: 5 !important; padding: 0 !important; color: #BAB8B8 !important; font-size: 18px !important; }

/* Harta României cu locațiile (prima pagină; components/home/locations-map.tsx): the map of wlc-group.ro, copied from
   its CSS module (yskskW_* → wlc-map-*), on its own light panel (the block sits on a dark photo here; on the group site
   the map sits on a white page). Font weights → this site's font files (600 → Raleway-SemiBold, 700 → Raleway-Bold,
   headings → Syne-Bold). The card goes under the map when the map is narrow (the group site's phone layout). */
.wlc-map { --blue: #0070ff; --red: #f03; --yellow: gold; --ink: #1a1a1a; --white: #fff; --gray-50: #f5f5f5; --gray-100: #ececec; --muted: #5c5c5c; --line: #e1e1e1; --radius: 20px;
  container-type: inline-size; display: grid; gap: 20px; width: 100%; padding: clamp(16px, 4cqw, 28px); background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 60px -24px rgba(0,0,0,.45);
  color: var(--ink); font: 400 16px/1.5 Raleway-Regular, Raleway, system-ui, sans-serif; text-align: left; }
.wlc-map * { box-sizing: border-box; }
.wlc-map ul, .wlc-map p { margin: 0; padding: 0; }
.wlc-map-frame { position: relative; }
.wlc-map-stage { position: relative; width: 100%; aspect-ratio: 1000 / 714; }
.wlc-map-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wlc-map-land path { fill: #eef0f2; stroke: var(--white); stroke-width: 1.4px; stroke-linejoin: round; transition: fill .25s; }
.wlc-map-land path:hover { fill: #e4e7eb; }
.wlc-map-routes path { fill: none; stroke: var(--blue); stroke-width: 1.2px; stroke-dasharray: .012 .012; opacity: .16; transition: opacity .3s; }
.wlc-map-routes .wlc-map-routeOn { stroke-width: 2.2px; stroke-dasharray: 1; stroke-dashoffset: 1px; opacity: 1; animation: wlc-map-draw .7s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes wlc-map-draw { to { stroke-dashoffset: 0; } }
.wlc-map-pins { position: absolute; inset: 0; list-style: none; pointer-events: none; }
.wlc-map-pin { position: absolute; left: var(--x); top: var(--y); animation: wlc-map-drop .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i) * 45ms + .15s); }
.wlc-map-pinOn, .wlc-map-pinLit { z-index: 2; }
@keyframes wlc-map-drop { 0% { opacity: 0; transform: translateY(-14px); } }
.wlc-map-pin button { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 6px; padding: 0; background: 0 0; border: 0; color: var(--ink); font: inherit; white-space: nowrap; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; transform: translate(-12px, -30px); }
.wlc-map-pinLeft button { flex-direction: row-reverse; transform: translate(calc(12px - 100%), -30px); }
.wlc-map-pinBelow button { flex-direction: column; gap: 2px; transform: translate(-50%, -30px); }
.wlc-map-pinIcon { flex: none; width: 24px; height: 32px; overflow: visible; transform-origin: 50% 100%; filter: drop-shadow(0 3px 4px rgba(0,60,140,.22)); transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.wlc-map-pinIcon path { fill: var(--white); stroke: var(--blue); stroke-width: 2.2px; transition: fill .2s, stroke .2s; }
.wlc-map-pinIcon circle { fill: none; stroke: var(--blue); stroke-width: 2.2px; transition: fill .2s, stroke .2s; }
.wlc-map-pinLit .wlc-map-pinIcon { transform: scale(1.15); }
.wlc-map-pinLit .wlc-map-pinIcon path { fill: var(--blue); }
.wlc-map-pinLit .wlc-map-pinIcon circle { fill: var(--white); stroke: var(--white); }
.wlc-map-pinOn .wlc-map-pinIcon { transform: scale(1.25); }
.wlc-map-pinOn .wlc-map-pinIcon path { fill: var(--ink); stroke: var(--ink); }
.wlc-map-pinOn .wlc-map-pinIcon circle { fill: var(--yellow); stroke: var(--yellow); }
.wlc-map-pin button:focus-visible { outline: none; }
.wlc-map-pin button:focus-visible .wlc-map-label { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wlc-map-label { display: grid; margin-top: -14px; font: 400 14px/1.15 Raleway-SemiBold, Raleway, sans-serif; text-shadow: 0 0 3px #eef0f2, 0 0 6px #eef0f2, 0 0 10px #eef0f2; transition: color .2s; }
.wlc-map-pinLeft .wlc-map-label { text-align: right; }
.wlc-map-pinBelow .wlc-map-label { text-align: center; margin: 0; }
.wlc-map-label small { color: var(--muted); font: 400 11.5px/1.15 Raleway-Medium, Raleway, sans-serif; }
.wlc-map-pinLit .wlc-map-label, .wlc-map-pinOn .wlc-map-label { color: var(--blue); }
.wlc-map-pinOn .wlc-map-label { color: var(--ink); font-family: Raleway-Bold, Raleway, sans-serif; }
.wlc-map-pinHq .wlc-map-pinIcon path { fill: var(--yellow); stroke: var(--ink); }
.wlc-map-pinHq .wlc-map-pinIcon circle { stroke: var(--ink); }
.wlc-map-pulse { position: absolute; top: 30px; left: 12px; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--yellow); opacity: 0; pointer-events: none; animation: wlc-map-pulse 2.4s ease-out infinite; }
/* the halo follows the pin wherever the label is (the page's own city carries it on the city pages, „Ești aici”) */
.wlc-map-pinLeft .wlc-map-pulse { left: auto; right: 12px; margin: -22px -22px 0 0; }
.wlc-map-pinBelow .wlc-map-pulse { left: 50%; }
@keyframes wlc-map-pulse { 0% { opacity: .7; transform: scale(.2); } to { opacity: 0; transform: scale(1.3); } }
.wlc-map-card { --gap: 26px; position: absolute; z-index: 5; top: var(--y); width: 264px; overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 44px -12px rgba(0,0,0,.28); transform: translateY(-50%); animation: wlc-map-pop .28s cubic-bezier(.3,1.3,.5,1); }
.wlc-map-card[hidden] { display: none !important; }
.wlc-map-cardRight { left: calc(var(--x) + var(--gap)); }
.wlc-map-cardLeft { right: calc(100% - var(--x) + var(--gap)); }
.wlc-map-cardTop { transform: translateY(-48px); }
.wlc-map-cardBottom { top: auto; bottom: calc(100% - var(--y) - 24px); transform: none; }
@keyframes wlc-map-pop { 0% { opacity: 0; scale: .94; } }
.wlc-map-cardMedia { position: relative; aspect-ratio: 16 / 9; background: var(--gray-100); }
.wlc-map-cardMedia img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.wlc-map-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0 0 2px; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; color: var(--ink); font: 400 20px/1 Raleway-Regular, Raleway, sans-serif; cursor: pointer; }
.wlc-map-close:hover { background: var(--yellow); }
.wlc-map-close::before { content: ''; position: absolute; inset: -7px; } /* a 44 px target around the 30 px circle */
.wlc-map-close:focus-visible, .wlc-map-chips button:focus-visible, .wlc-map-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wlc-map-cardBody { display: grid; justify-items: start; gap: 10px; padding: 16px 18px 18px; }
.wlc-map-cardEyebrow { color: var(--blue); font: 400 11.5px/1.3 Raleway-Bold, Raleway, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.wlc-map .wlc-map-cardTitle { color: var(--ink); font: 400 23px/1.15 Syne-Bold, Syne, sans-serif; }
.wlc-map-places { display: grid; gap: 6px; width: 100%; list-style: none; font-size: 14.5px; line-height: 1.35; }
.wlc-map-places li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wlc-map-places abbr[title] { flex: none; padding: 2px 7px; background: var(--gray-50); border: 0; border-radius: 6px; font: 400 12px/1.5 Raleway-Bold, Raleway, sans-serif; letter-spacing: .06em; text-decoration: none; cursor: help; }
.wlc-map .wlc-map-places a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0,112,255,.35); text-underline-offset: 3px; }
.wlc-map .wlc-map-places a:hover { color: var(--blue); text-decoration-color: currentColor; }
.wlc-map .wlc-map-arrow { display: inline; margin-top: 4px; padding-bottom: 2px; border-bottom: 2px solid var(--red); color: var(--ink); font: 400 15px/1.6 Raleway-Bold, Raleway, sans-serif; text-decoration: none; }
.wlc-map-arrow span { white-space: nowrap; }
.wlc-map-arrow i { display: inline-block; margin-left: 8px; font-style: normal; transition: transform .2s; }
.wlc-map .wlc-map-arrow:hover { color: var(--ink); text-decoration: none; }
.wlc-map-arrow:hover i { transform: translate(4px); }
.wlc-map-bar { display: grid; gap: 12px; }
.wlc-map-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.wlc-map-summary strong { color: var(--ink); font-family: Raleway-Bold, Raleway, sans-serif; font-weight: 400; }
.wlc-map-legend { display: inline-flex; align-items: center; gap: 8px; }
.wlc-map-legendHq { width: 12px; height: 12px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }
.wlc-map-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.wlc-map-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font: 400 14px/1.5 Raleway-Medium, Raleway, sans-serif; cursor: pointer; transition: border-color .2s, background .2s; }
.wlc-map-chips button:hover { border-color: var(--blue); }
.wlc-map-chips small { display: grid; place-items: center; min-width: 18px; height: 18px; background: var(--gray-100); border-radius: 9px; font: 400 11px/1 Raleway-Bold, Raleway, sans-serif; }
.wlc-map-chips .wlc-map-chipOn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.wlc-map-chips .wlc-map-chipOn small { background: var(--yellow); color: var(--ink); }
@container (max-width: 480px) {
  .wlc-map-label { font-size: 11.5px; margin-top: -10px; }
  .wlc-map-label small { display: none; }
  .wlc-map-pinIcon { width: 18px; height: 24px; }
  .wlc-map-pin button { gap: 3px; transform: translate(-9px, -22px); }
  .wlc-map-pinLeft button { transform: translate(calc(9px - 100%), -22px); }
  .wlc-map-pinBelow button { transform: translate(-50%, -22px); }
  .wlc-map-pinBelow .wlc-map-label { margin: 0; }
  /* phones: Iași, Bacău and Sibiu sat on their neighbours; their labels move beside the pin there */
  .wlc-map-pinPhoneRight button { flex-direction: row; gap: 3px; transform: translate(-9px, -22px); }
  .wlc-map-pinPhoneRight .wlc-map-label { text-align: left; margin: -10px 0 0; }
  .wlc-map-pinPhoneLeft button { flex-direction: row-reverse; gap: 3px; transform: translate(calc(9px - 100%), -22px); }
  .wlc-map-pinPhoneLeft .wlc-map-label { text-align: right; margin: -10px 0 0; }
  .wlc-map-pulse { top: 22px; left: 9px; }
  .wlc-map-pinLeft .wlc-map-pulse { left: auto; right: 9px; margin: -22px -22px 0 0; }
  .wlc-map-pinBelow .wlc-map-pulse { left: 50%; }
  .wlc-map-pinPhoneRight .wlc-map-pulse { left: 9px; right: auto; margin: -22px 0 0 -22px; }
  /* a 44 px target centred on each pin (the 18 x 24 px pin alone was too small to tap); the pin sits at the label's
     start, at its end (label on the left) or above it (label below) */
  .wlc-map-pins { z-index: 0; } /* the targets below stay in front of the map drawing */
  .wlc-map-pin button::before { content: ""; position: absolute; z-index: -1; top: 12px; left: 9px; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; } /* behind every pin and label: a tap on a pin is always that pin */
  .wlc-map-pinLeft button::before, .wlc-map-pinPhoneLeft button::before { left: auto; right: 9px; transform: translate(50%, -50%); }
  .wlc-map-pinBelow:not(.wlc-map-pinPhoneLeft):not(.wlc-map-pinPhoneRight) button::before { left: 50%; }
  .wlc-map-pinPhoneRight button::before { left: 9px; right: auto; transform: translate(-50%, -50%); }
  .wlc-map-pinPhoneLeft .wlc-map-pulse { left: auto; right: 9px; margin: -22px -22px 0 0; }
  /* București, Constanța, Târgu Jiu: the label under the pin on phones (București on the right touched Constanța, on the
     left Craiova and Târgu Jiu); the halo and the target stay on the pin */
  .wlc-map-pinPhoneBelow button { flex-direction: column; gap: 2px; transform: translate(-50%, -22px); }
  .wlc-map-pinPhoneBelow .wlc-map-label { text-align: center; margin: 2px 0 0; }
  .wlc-map-pinPhoneBelow .wlc-map-pulse { left: 50%; right: auto; margin: -22px 0 0 -22px; }
  .wlc-map-pinPhoneBelow button::before { left: 50%; right: auto; transform: translate(-50%, -50%); }
  /* Târgu Mureș: its two words on two lines on phones (on one line, on the narrower map of /contact, it reached Bacău) */
  .wlc-map-pinPhoneStack .wlc-map-label { white-space: normal; width: min-content; }
  /* a little air between the pin's tip and its label (Târgu Jiu, Constanța were touched by it) */
  .wlc-map-pin button { gap: 5px; }
  .wlc-map-pinBelow:not(.wlc-map-pinPhoneLeft):not(.wlc-map-pinPhoneRight) .wlc-map-label { margin-top: 6px; }
  .wlc-map-card, .wlc-map-cardTop, .wlc-map-cardBottom { position: relative; inset: auto; display: grid; grid-template-columns: 112px minmax(0, 1fr); width: 100%; margin-top: 16px; transform: none; }
  .wlc-map-cardMedia { aspect-ratio: auto; min-height: 100%; }
  .wlc-map .wlc-map-cardTitle { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .wlc-map-pin, .wlc-map-card, .wlc-map-routes .wlc-map-routeOn { animation: none; }
  .wlc-map-routes .wlc-map-routeOn { stroke-dashoffset: 0; }
  .wlc-map-pulse { display: none; }
}

/* very narrow maps (under 300 px: a column on /contact, the smallest phones): the names no longer fit side by side; the pins stay, the name
   shows on the open city's card and on the pin that is open */
@container (max-width: 300px) {
  .wlc-map-pin:not(.wlc-map-pinOn) .wlc-map-label { display: none; }
}
