/* Payara Page Components v1.5.1 — extends the pyra-* styles in Additional CSS */

/* ===== Extra icons (same CSS-mask technique as the homepage icons) ===== */
.pyra-ico-id { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6.2 15a3 3 0 0 1 5.6 0'/%3E%3Cpath d='M15 10h3M15 14h3'/%3E%3C/svg%3E"); }
.pyra-ico-user { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E"); }
.pyra-ico-home { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-7 9 7v10a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.pyra-ico-globe { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.pyra-ico-clock { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.pyra-ico-phone { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.9.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.pyra-ico-mail { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E"); }
.pyra-ico-car { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17H3v-5l2-5h14l2 5v5h-2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3Cpath d='M9 17h6M3 12h18'/%3E%3C/svg%3E"); }
.pyra-ico-alert { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.7 18-8-14a2 2 0 0 0-3.5 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.pyra-ico-users { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.pyra-ico-bag { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='14' rx='2'/%3E%3Cpath d='M9 6V3h6v3M10 10v6M14 10v6'/%3E%3C/svg%3E"); }
.pyra-ico-calendar { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.pyra-ico-mountain { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 3 4 8 5-5 5 15H2L8 3z'/%3E%3C/svg%3E"); }
.pyra-ico-briefcase { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
.pyra-ico-leaf { --pyra-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.5 19 2c1 2 2 4.2 2 8 0 5.5-4.8 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.9-5.4 5.1-6'/%3E%3C/svg%3E"); }

/* ===== Links inside feature cards (Contact channels) ===== */
.pyra-feature a { color: var(--pyra-primary); font-weight: 700; text-decoration: none; word-break: break-word; }
.pyra-feature a:hover { color: var(--pyra-accent); }
.pyra-feature--key a { color: #fff; text-decoration: underline; }
.pyra-feature .pyra-feature-cta { display: inline-block; margin-top: 12px; }
.pyra-feature--key .pyra-btn { margin-top: 14px; padding: 10px 20px; }

/* ===== Abbreviation badge (SLI / TPI / LDW) ===== */
.pyra-badge { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: var(--pyra-accent); padding: 4px 10px; border-radius: 999px; margin-top: 14px; }
.pyra-feature .pyra-badge + h3 { margin-top: 10px; }

/* ===== Callout note (important info) ===== */
.pyra-note { display: flex; gap: 16px; align-items: flex-start; background: #fffbeb; border: 1px solid rgba(245,158,11,0.35); border-left: 5px solid var(--pyra-accent); border-radius: 12px; padding: 20px 24px; max-width: 900px; margin: 28px auto 0; }
.pyra-note .pyra-ico { flex: 0 0 26px; color: var(--pyra-accent); margin-top: 2px; }
.pyra-note p { margin: 0; color: #334155; line-height: 1.6; }
.pyra-note strong { color: #92400e; }

/* ===== FAQ groups ===== */
.pyra-faq { max-width: 880px; margin-left: auto; margin-right: auto; }
.pyra-faq-group { margin-bottom: 40px; }
.pyra-faq-group > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin: 0 0 16px; }
.pyra-faq-group > h2 .pyra-feature-icon { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px; }
.pyra-faq-group > h2 .pyra-ico { width: 22px; height: 22px; }
.pyra-faq-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 40px; }
.pyra-faq-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: rgba(15,118,110,0.1); color: var(--pyra-primary-dark); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.pyra-faq-nav a:hover { background: var(--pyra-primary); color: #fff; }
.pyra-faq p a { color: var(--pyra-primary); font-weight: 600; }

/* ===== Map ===== */
.pyra-map { border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.08); line-height: 0; }
.pyra-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== Quote checklist chips (Contact) ===== */
.pyra-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; padding: 0; list-style: none; }
.pyra-chips li { background: rgba(15,118,110,0.08); color: var(--pyra-primary-dark); font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; margin: 0; }

/* ===== Two-column intro (category pages) ===== */
.pyra-intro { max-width: 820px; margin: 0 auto 10px; text-align: center; }
.pyra-intro p { color: #334155; font-size: 1.05rem; line-height: 1.75; }

/* Scroll offset for in-page anchors under the sticky header */
.pyra-faq-group, .pyra-section { scroll-margin-top: 110px; }

@media (max-width: 600px) {
  .pyra-map iframe { height: 300px; }
  .pyra-note { padding: 16px 18px; }
}

/* ===== Fleet category cards: one row of 4, equal heights (v1.3.0) ===== */
/* Safety net: if WordPress ever wraps grid items in <p>/<br>, ignore the wrappers */
.pyra-grid > p { display: contents; }
.pyra-grid > br, .pyra-grid > p > br { display: none; }
.pyra-grid:has(.pyra-card-link) { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.pyra-grid a.pyra-card-link { display: flex; height: 100%; }
.pyra-grid a.pyra-card-link .pyra-card { display: flex; flex-direction: column; width: 100%; height: 100%; }
.pyra-grid a.pyra-card-link .pyra-card img { aspect-ratio: 4 / 3; height: auto; }
.pyra-grid a.pyra-card-link .pyra-card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.pyra-grid a.pyra-card-link .pyra-card-more { margin-top: auto; padding-top: 12px; }
@media (max-width: 1024px) {
  .pyra-grid:has(.pyra-card-link) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pyra-grid:has(.pyra-card-link) { grid-template-columns: 1fr; }
}

/* ===== Car cards (category pages): action buttons on one aligned row (v1.3.2) =====
   The body becomes a 1-column grid; only the two buttons share a row, in 2 equal
   columns. Long labels (DE/FR) wrap between words inside the button — never
   mid-word (no hyphenation). The description row stretches, so price + buttons
   line up across cards. */
.pyra-card:has(.pyra-btn-sm) { display: flex; flex-direction: column; height: 100%; }
.pyra-card-body:has(> .pyra-btn-sm) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; grid-template-rows: auto 1fr; grid-auto-rows: auto; flex: 1 1 auto; }
.pyra-card-body:has(> .pyra-btn-sm) > * { grid-column: 1 / -1; }
.pyra-card .pyra-card-body > .pyra-check-avail,
.pyra-card .pyra-card-body > .pyra-btn-sm {
  grid-column: auto; margin: 4px 0 0; min-height: 44px; padding: 8px 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .82rem; line-height: 1.25; border-radius: 8px; box-sizing: border-box;
  white-space: normal; -webkit-hyphens: manual; hyphens: manual;
  word-break: normal; overflow-wrap: normal;
}
.pyra-card .pyra-card-body > .pyra-btn-sm { border: 1px solid var(--pyra-primary); }
.pyra-card .pyra-card-body > .pyra-avail-cal { grid-column: 1 / -1; }
@media (max-width: 360px) {
  .pyra-card-body:has(> .pyra-btn-sm) { grid-template-columns: 1fr; }
}

/* =====================================================================
   Mobile polish (v1.5.0)
   ===================================================================== */

/* Safety net: nothing may push the page sideways (clip keeps sticky header working) */
html, body { overflow-x: clip; }

/* Grids never demand more width than the screen has */
.pyra-grid { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.pyra-features { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.pyra-steps { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.pyra-reviews { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
/* (the 4-up fleet overview grid keeps its own rules above) */
.pyra-grid:has(.pyra-card-link) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .pyra-grid:has(.pyra-card-link) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .pyra-grid:has(.pyra-card-link) { grid-template-columns: 1fr; } }

/* Headings scale smoothly and long words (German!) never overflow */
.pyra-hero h1 { font-size: clamp(1.45rem, 5.2vw + 0.4rem, 2.6rem); line-height: 1.2; overflow-wrap: break-word; }
.pyra-section-head h2, .pyra-cta-banner h2 { font-size: clamp(1.3rem, 3.6vw + 0.5rem, 1.8rem); line-height: 1.25; overflow-wrap: break-word; }
.pyra-feature h3, .pyra-step h3, .pyra-card-body h3, .pyra-faq summary { overflow-wrap: break-word; }

/* Wide comparison tables (5 columns, Fleet page): scroll sideways instead of squishing,
   with the row labels pinned on the left */
table.pyra-compare:has(thead th:nth-child(5)) { min-width: 560px; }
.pyra-compare-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  table.pyra-compare:has(thead th:nth-child(5)) tbody th,
  table.pyra-compare:has(thead th:nth-child(5)) thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #e2e8f0;
  }
  table.pyra-compare:has(thead th:nth-child(5)) thead th:first-child { background: #f8fafc; }
}

@media (max-width: 600px) {
  /* Hero: tighter, buttons stacked full-width for easy tapping */
  .pyra-hero { padding: 48px 18px; margin-bottom: 28px; border-radius: 12px; }
  .pyra-hero p { font-size: 1rem; margin-bottom: 22px; }
  .pyra-hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .pyra-hero-ctas .pyra-btn, .pyra-hero-ctas .pyra-btn-outline { display: block; width: 100%; text-align: center; padding: 13px 18px; box-sizing: border-box; }

  /* Trust strip: neat 2x2 grid instead of a ragged stack */
  .pyra-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin: 20px 0 36px; padding: 0 4px; }
  .pyra-trust-item { font-size: 0.85rem; gap: 8px; line-height: 1.3; }
  .pyra-trust-item::before { flex: 0 0 22px; width: 22px; height: 22px; font-size: 0.75rem; }
  /* odd item out (e.g. 3 items on About) spans the full row, centred */
  .pyra-trust-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }

  /* Sections & boxes: less padding, more content */
  .pyra-section { margin: 44px 0; }
  .pyra-section-head { margin-bottom: 24px; }
  .pyra-section-head p { font-size: 0.98rem; }
  .pyra-feature { padding: 22px 18px; }
  .pyra-step { padding: 22px 18px 20px; }
  .pyra-review { padding: 22px 18px 18px; }
  .pyra-contact-form, .pyra-contact-info { padding: 20px 16px; }
  .pyra-contact-form { flex-basis: 100%; }
  .pyra-highlight-box { padding: 22px 18px !important; }
  .pyra-cta-banner { padding: 36px 18px; margin: 40px 0 16px; }
  .pyra-cta-banner .pyra-hero-ctas .pyra-btn-outline { border-color: #fff; }

  /* FAQ */
  .pyra-faq details { padding: 14px 16px; }
  .pyra-faq-nav { gap: 8px; margin-bottom: 28px; }
  .pyra-faq-nav a { font-size: 0.82rem; padding: 7px 12px; }
  .pyra-faq-group > h2 { font-size: 1.15rem; }

  /* Ghost buttons ("Compare other car types", "See all FAQs"...) wrap nicely */
  .pyra-btn-ghost { white-space: normal; text-align: center; max-width: 100%; box-sizing: border-box; }

  /* No hover-lift jumps on touch screens */
  .pyra-card:hover, .pyra-feature:hover { transform: none; }
}

@media (max-width: 380px) {
  .pyra-trust { grid-template-columns: 1fr; }
  .pyra-trust-item:last-child:nth-child(odd) { justify-content: flex-start; }
}

/* ===== About page: photo + story block (v1.5.1) =====
   The photo is a flex item; without min-width:0 it refuses to shrink below
   its own flex-basis/max-width and overflows narrow screens. */
.pyra-about img { min-width: 0; width: 100%; height: auto; box-sizing: border-box; }
.pyra-about-text { min-width: 0; }
.pyra-about-text h2 { overflow-wrap: break-word; }
@media (max-width: 760px) {
  .pyra-about { flex-direction: column; align-items: stretch; gap: 24px; }
  .pyra-about img { flex: 0 0 auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .pyra-about-text { flex: 0 0 auto; }
  .pyra-about-text h2 { font-size: clamp(1.35rem, 4.5vw + 0.4rem, 1.8rem); line-height: 1.25; }
}
