/* Spot-rate cards on the home page ([kyranis_rate_cards], task #115). They sit in a
   Castle Builder title, which is a shrink-to-fit table and zeroes inner margins:
   undone here, and every rule is scoped under .kz-rates to win over that reset. */
.kz-title-content:has(.kz-rates), .kz-title-content:has(.kz-rates) > * { display: block; width: 100%; }
.kz-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 0 auto; text-align: left; }
.kz-rates:has(> .kz-rate:only-child) { max-width: 420px; } /* one route's card (a route page) */
.kz-rates .kz-rate { display: flex; flex-direction: column; padding: 24px; color: #14212b; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(20,33,43,.08), 0 12px 32px rgba(20,33,43,.18); transition: transform .2s ease, box-shadow .2s ease; }
.kz-rates .kz-rate:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,33,43,.1), 0 18px 40px rgba(20,33,43,.24); }
.kz-rates .kz-rate-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-height: 26px; }
.kz-rates .kz-rate-badge { padding: 4px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--kz-accent, #00aeef); background: #e6f6fd; border-radius: 999px; }
.kz-rates .kz-rate-valid-chip { font-size: 12px; line-height: 1.4; color: #5d6b76; }
.kz-rates .kz-rate-route { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 18px 0 0; font-size: 21px; font-weight: 700; line-height: 1.25; color: #14212b; text-transform: none; }
.kz-rates .kz-rate-arrow { color: var(--kz-accent, #00aeef); }
.kz-rates .kz-rate-facts { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; color: #5d6b76; }
.kz-rates .kz-rate-facts li { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; }
.kz-rates .kz-rate-icon { flex: 0 0 auto; width: 16px; height: 16px; fill: currentColor; }
.kz-rates .kz-rate-price { display: flex; flex-direction: column; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid #e3e9ee; border-bottom: 1px solid #e3e9ee; }
.kz-rates .kz-rate-label { font-size: 13px; line-height: 1.2; color: #5d6b76; }
.kz-rates .kz-rate-amount { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--kz-accent, #00aeef); letter-spacing: -.5px; }
.kz-rates .kz-rate-amount--ask { font-size: 24px; }
.kz-rates .kz-rate-cur { margin-right: 2px; font-size: .6em; vertical-align: .55em; }
.kz-rates .kz-rate-unit { font-size: 14px; line-height: 1.4; color: #14212b; }
.kz-rates .kz-rate-scope { margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.4; color: #1e7b34; }
.kz-rates .kz-rate-includes { flex: 1 1 auto; margin: 16px 0 20px; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: #14212b; }
.kz-rates .kz-rate-includes li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; padding: 0; border: 0; }
.kz-rates .kz-rate-includes .kz-rate-icon { margin-top: 2px; color: var(--kz-accent, #00aeef); }
.kz-rates .kz-rate .kz-rate-cta { display: block; padding: 13px 16px; font-size: 15px; font-weight: 700; line-height: 1.2; color: #fff; text-align: center; text-decoration: none; background: var(--kz-accent, #00aeef); border-radius: 6px; transition: background-color .2s ease; }
.kz-rates .kz-rate .kz-rate-cta:hover, .kz-rates .kz-rate .kz-rate-cta:focus-visible { color: #fff; background: #0a2240; }
.kz-title-content .kz-rates-note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.85); text-align: center; }
@media (prefers-reduced-motion: reduce) { .kz-rate, .kz-rate:hover { transition: none; transform: none; } }
/* The route's arrow points the way the text reads (left in Arabic). */
.kz-rates .kz-rate-arrow { display: inline-block; }
html[dir="rtl"] .kz-rates .kz-rate-arrow { transform: scaleX(-1); }
