/* polish-routes.css — December 2026 visual round, part 2 (11-28, look finished 11-29): the route pages under /transfers/
   (route pages, hotel pages and the /transfers/ index). Same rules as /polish.css on the homepage:
   small corners (4 / 6 / 10), 1px lines, no lift or glow on hover (the frame turns navy and the title is
   underlined), shadow only on floating layers. Brand coral #F26B4A is not changed.
   One file on purpose: the page HTML, the texts and the prices stay as they are (the SEO editor and the
   price regeneration find their parts by markers), and removing the <link> brings the old look back.
   Loaded just before </head>; selectors start with "body" so they also win over the <style> blocks that sit
   further down in the page and over the one /route-search.js adds. Most boxes on these pages carry their
   look in a style attribute, so those rules need !important. */

:root {
  --pl-r1: 4px; --pl-r2: 6px; --pl-r3: 10px;
  --pl-line: #E2DBD1; --pl-navy: #16324F; --pl-text: #51606D;
  --pl-ease: cubic-bezier(.2, 0, 0, 1);
}

/* ── 1. text boxes (prices, what the price covers, page text, return trip, departure tips, questions…):
        one thin line, small corners, no shadow ── */
body main div[style*="border-radius:12px"] { border-radius: var(--pl-r2) !important; }
body main div[style*="border:1.5px solid #D8CFC0"] { border: 1px solid var(--pl-line) !important; box-shadow: none !important; }
body main img[style*="border-radius:12px"] { border-radius: var(--pl-r2) !important; }

/* ── 2. buttons and link boxes that carry their corner in a style attribute ── */
body main a[style*="border-radius:8px"], body main a[style*="border-radius:10px"], body main a[style*="border-radius:12px"] { border-radius: var(--pl-r2) !important; }
body main a[style*="border:1.5px solid #F26B4A"] { border-width: 1px !important; }
body main a[style*="background:#F26B4A"] { transition: background .12s var(--pl-ease); }
body main a[style*="background:#F26B4A"]:hover { background: #DD5235 !important; }

/* ── 3. link cards (guides for this trip, more transfers, more options): the frame turns navy, the title is underlined ── */
body .route-guides a[style*="border:1px solid"], body .route-links a[style*="border:1px solid"] { transition: border-color .12s var(--pl-ease); }
body .route-guides a[style*="border:1px solid"]:hover, body .route-links a[style*="border:1px solid"]:hover { border-color: var(--pl-navy) !important; }
body .route-guides a[style*="border:1px solid"]:hover > span:first-child,
body .route-links a[style*="display:block"]:hover > span:first-child,
body .route-links a[style*="display:flex"]:hover > span > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── 4. hotel cards: no lift ── */
body .hotel-card { border-radius: var(--pl-r2); transition: border-color .12s var(--pl-ease); }
body .hotel-card:hover { transform: none; border-color: var(--pl-navy); }
body .hotel-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── 5. booking card (same treatment as the search card in polish.css): crisp boxes, a calm hover, a clear focus ── */
body .rs-card { border-radius: var(--pl-r3); border-width: 1px; }
body .trip-type-toggle { border-radius: var(--pl-r2); }
body .trip-type-btn { border-radius: var(--pl-r1); transition: background .12s var(--pl-ease), color .12s var(--pl-ease); }
body .field-group input, body .dt-trigger, body .counter-box {
  border-width: 1px; border-radius: var(--pl-r2); transition: border-color .12s var(--pl-ease);
}
body .field-group input:hover, body .dt-trigger:hover { border-color: var(--pl-navy); box-shadow: none; }
body .field-group input:focus { border-color: var(--pl-navy); box-shadow: 0 0 0 3px rgba(22, 50, 79, .14); }
body .counter-btn { border-radius: var(--pl-r1); }
body .search-btn { border-radius: var(--pl-r2); transition: background .12s var(--pl-ease), transform .1s var(--pl-ease); }
body .rs-bar-btn { border-radius: var(--pl-r2); }
/* the date picker and the message box are added by /route-search.js; on phones the picker is full-screen and keeps its square corners */
body .dt-picker { border-radius: var(--pl-r3); border-width: 1px; }
body .dt-confirm { border-radius: var(--pl-r2); }
/* the message box ("Please choose a date…"): brand navy instead of the old mid-blue, white text; a floating layer, so it keeps a shadow */
body #centerAlertOverlay > div { border-radius: var(--pl-r3) !important; background: var(--pl-navy) !important; border: 0 !important; box-shadow: 0 12px 32px rgba(22, 50, 79, .3) !important; }
body #centerAlertOverlay > div > div:nth-child(2) { color: #fff !important; }
body #centerAlertOverlay i.ati { color: #dde6f0; }
/* phones and tablets: + and − are easy to hit with a thumb */
@media (max-width: 900px) {
  body .counter-box { height: 50px; padding: 0 3px; }
  body .counter-btn { width: 44px; height: 44px; font-size: 20px; }
  body .search-btn { height: 46px; }
}

/* ── 6. the /transfers/ index: tables and the note ── */
body .tbl-wrap, body div.note { border-radius: var(--pl-r2); }
body a.chip { transition: border-color .12s var(--pl-ease); }
body a.chip:hover { border-color: var(--pl-navy); }

/* ── 7. visitors who switched animations off in their device settings get none ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body *, body *::before, body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ════ 2026-11-29: the rest of the look. Headings navy (coral is for prices and the booking buttons only), the price
   table as rows like the homepage route rows, calmer chips / guide box, a comfortable reading width, one photo. ════ */

/* ── 8. headings ── */
body main > h1 { font-size: 38px !important; font-weight: 600 !important; line-height: 1.15 !important; letter-spacing: -.01em; color: var(--pl-navy) !important; margin-bottom: 14px !important; }
body main h2 { font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--pl-navy); }
/* the link sections further down (hotel transfers nearby, guides for this trip, more transfers) are one step smaller */
body main h2[style] { font-size: 24px !important; font-weight: 600 !important; line-height: 1.25; color: var(--pl-navy) !important; }
body main h3 { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--pl-navy); }
body main h3[style*="font-weight:800"] { font-weight: 700 !important; color: var(--pl-navy) !important; }
body .hotel-card h3 { color: var(--pl-navy); }
@media (max-width: 700px) {
  body main > h1 { font-size: 28px !important; }
  body main h2 { font-size: 24px; }
  body main h2[style] { font-size: 21px !important; }
  body main h3 { font-size: 16.5px; }
}

/* ── 9. text boxes: reading width, room between sections, lists, links inside the text ── */
body main > p { max-width: 46rem; }
body main > div[style*="border:1.5px solid #D8CFC0"]:not(.transfer-prices-box) :is(p, ul, ol, h2, h3) { max-width: 46rem; }
body main > div[style*="border:1.5px solid #D8CFC0"] > h2 { margin-bottom: 14px; }
body main > div[style*="border:1.5px solid #D8CFC0"] > * + h2 { margin-top: 2rem; }
body main > div[style*="border:1.5px solid #D8CFC0"] ul:not([style]), body main > div[style*="border:1.5px solid #D8CFC0"] ol:not([style]) { margin: 0 0 1rem 1.2rem; line-height: 1.7; }
body main > div[style*="border:1.5px solid #D8CFC0"] li { margin-bottom: .35rem; }
body main > div p a:not([style]), body main > div li a:not([style]) { color: var(--pl-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 700px) {
  body main > div[style*="border:1.5px solid #D8CFC0"] { padding: 1.15rem 1rem !important; }
}
/* "What the Price Covers": one column on phones (two 115px columns wrapped every line) */
@media (max-width: 560px) {
  body main div[style*="grid-template-columns:1fr 1fr"][style*="gap:0.5rem"] { grid-template-columns: 1fr !important; gap: 0 !important; }
}

/* ── 10. fact chips under the H1 and on the /transfers/ index ── */
body .route-facts { gap: 6px !important; margin-bottom: 1.25rem !important; }
body .route-facts > span { border-radius: var(--pl-r1) !important; background: #FBF8F4 !important; border-color: var(--pl-line) !important; color: var(--pl-navy) !important; padding: 5px 10px !important; line-height: 1.35; }
body a.chip { border-radius: var(--pl-r2); background: #fff; border-color: var(--pl-line); color: var(--pl-navy); font-weight: 600; }

/* ── 11. "Prices for This Route": one row per vehicle, like .pr-row on the homepage. Cells are found by their position
        (vehicle, passengers, luggage, price, Book), not by their style attribute, so a price regeneration keeps the look. ── */
body .transfer-prices-box table { border-collapse: separate; border-spacing: 0 8px; }
body .transfer-prices-box .price-scroll-hint { display: none; }
body .transfer-prices-box thead tr { background: none !important; }
body .transfer-prices-box thead th { padding: 0 16px !important; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--pl-text) !important; }
body .transfer-prices-box thead th:nth-child(4) { text-align: right !important; }
body .transfer-prices-box tbody td { background: #FBF8F4; border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); padding: 11px 16px !important; vertical-align: middle; }
body .transfer-prices-box tbody td:first-child { border-left: 1px solid var(--pl-line); border-radius: var(--pl-r2) 0 0 var(--pl-r2); color: var(--pl-navy) !important; font-size: 15.5px; font-weight: 600; }
body .transfer-prices-box tbody td:nth-child(2), body .transfer-prices-box tbody td:nth-child(3) { color: var(--pl-text) !important; font-size: 14.5px; }
body .transfer-prices-box tbody td:nth-child(4) { text-align: right !important; font-size: 18px; font-weight: 700 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
body .transfer-prices-box tbody td:nth-child(5) { border-right: 1px solid var(--pl-line); border-radius: 0 var(--pl-r2) var(--pl-r2) 0; text-align: right !important; padding-left: 4px !important; padding-right: 10px !important; width: 1%; white-space: nowrap; }
body .transfer-prices-box tbody td a {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; padding: 6px 18px !important;
  border: 1px solid #F26B4A; border-radius: var(--pl-r2) !important; background: #fff !important; color: #DD5235 !important;
  font-size: 14px !important; font-weight: 700; white-space: nowrap; transition: background .12s var(--pl-ease), color .12s var(--pl-ease);
}
body .transfer-prices-box tbody td a:hover, body .transfer-prices-box tbody td a:focus-visible { background: #F26B4A !important; color: #fff !important; }
body .transfer-prices-box tbody td a:active { transform: scale(.97); }
/* phones: no sideways scrolling. Each vehicle is a small block: name and price on the first line, seats · bags and Book on the second */
@media (max-width: 650px) {
  body main > div.transfer-prices-box { padding: 1.15rem .9rem !important; }
  body .transfer-prices-box table, body .transfer-prices-box tbody { display: block; }
  body .transfer-prices-box thead { display: none; }
  body .transfer-prices-box tbody tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name price" "pax bags book";
    column-gap: 6px; row-gap: 2px; align-items: center; background: #FBF8F4; border: 1px solid var(--pl-line) !important;
    border-radius: var(--pl-r2); padding: 10px 8px 10px 12px; margin-bottom: 8px;
  }
  body .transfer-prices-box tbody tr:last-child { margin-bottom: 0; }
  body .transfer-prices-box tbody td { display: block; min-width: 0; width: auto; background: none; border: 0 !important; border-radius: 0 !important; padding: 0 !important; text-align: left !important; }
  body .transfer-prices-box tbody td:nth-child(1) { grid-area: name; font-size: 15px; line-height: 1.3; }
  body .transfer-prices-box tbody td:nth-child(2) { grid-area: pax; font-size: 13.5px; white-space: nowrap; }
  body .transfer-prices-box tbody td:nth-child(3) { grid-area: bags; font-size: 13.5px; }
  body .transfer-prices-box tbody td:nth-child(3)::before { content: "\00B7\00A0"; }
  body .transfer-prices-box tbody td:nth-child(4) { grid-area: price; text-align: right !important; }
  body .transfer-prices-box tbody td:nth-child(5) { grid-area: book; text-align: right !important; width: auto; padding: 0 !important; }
  body .transfer-prices-box tbody td a { min-height: 44px; min-width: 72px; padding: 6px 14px !important; }
}

/* ── 12. the guide box at the foot of the page: a plain 1px box, navy links (it had a 4px coral stripe) ── */
body main div[style*="border-left:4px solid #F26B4A"] { border: 1px solid var(--pl-line) !important; border-radius: var(--pl-r2) !important; background: #FBF8F4 !important; }
body main div[style*="border-left:4px solid #F26B4A"] a { color: var(--pl-navy) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── 13. the "Book This Transfer" button under the questions: the size of a button, not of a banner ── */
body main a[style*="padding:18px 48px"] { padding: 14px 32px !important; font-size: 17px !important; font-weight: 700 !important; color: #fff !important; }

/* ── 14. the one photo of a page (<!-- route-photo -->, written by backend scripts/route_pages/route_photos.py) ── */
body .route-photo { margin: 0 0 2rem; max-width: 46rem; }
body .route-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--pl-r2); background: #EFE9E0; }
body .route-photo figcaption { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--pl-text); }
body .route-photo figcaption a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ── headings: Source Serif 4 (owner 11-28 picked option "B"). Self-hosted in /fonts (one 600-weight file per alphabet,
   7–21 KB each, loaded only when the page has such letters); nothing is requested from Google. Body text is unchanged. ── */
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:500 800;font-display:swap;src:url("/fonts/source-serif-4-600-cyrillic-ext.woff2") format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:500 800;font-display:swap;src:url("/fonts/source-serif-4-600-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:500 800;font-display:swap;src:url("/fonts/source-serif-4-600-greek.woff2") format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:500 800;font-display:swap;src:url("/fonts/source-serif-4-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:500 800;font-display:swap;src:url("/fonts/source-serif-4-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body h1, body h2 { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; letter-spacing: -.005em; }
