/* Datové stránky z cenového indexu (kdy-koupit-dovolenou, zdrazily-dovolene) */
.pi-root { --surface: #ffffff; --ink: #111827; --ink-2: #4b5563; --ink-3: #6b7280; --grid: #e5e7eb;
           --series: #2a78d6; --cheaper: #2a78d6; --pricier: #e34948; --same: #d1d5db; }
.pi-card { background: var(--surface); border: 1px solid var(--grid); border-radius: 12px; padding: 16px; }
.pi-chart { width: 100%; height: auto; display: block; overflow: visible; }
.pi-grid { stroke: var(--grid); stroke-width: 1; }
.pi-base { stroke: #9ca3af; stroke-width: 1; stroke-dasharray: 3 3; }
.pi-axis { font-size: 10px; fill: var(--ink-3); }
.pi-line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pi-dot { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
.pi-hit { fill: transparent; cursor: default; }
.pi-pt:hover .pi-dot { r: 5.5; }
.pi-label { font-size: 11px; font-weight: 600; fill: var(--ink); }
.pi-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--surface); }
.pi-bar > span { display: block; height: 100%; }
.pi-stat { font-size: 2.5rem; line-height: 1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pi-table { width: 100%; font-size: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pi-table th, .pi-table td { padding: 6px 8px; border-bottom: 1px solid var(--grid); text-align: right; }
.pi-table th:first-child, .pi-table td:first-child { text-align: left; }
.pi-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.pi-sec { margin-bottom: 40px; }
.pi-wrap { max-width: 56rem; margin: 0 auto; padding: 32px 16px; }
.pi-h1 { font-size: 1.875rem; line-height: 1.2; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
@media (min-width: 768px) { .pi-h1 { font-size: 2.25rem; } }
.pi-nav { display: none; gap: 24px; font-size: 14px; }
@media (min-width: 768px) { .pi-nav { display: flex; } }
.pi-link { color: var(--ink-2); } .pi-link:hover, .pi-cap-name:hover, .pi-chip:hover { color: #1d4ed8; }
.pi-grid3 { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .pi-grid3 { grid-template-columns: repeat(3, 1fr); } }
.pi-grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .pi-grid2 { grid-template-columns: repeat(2, 1fr); } }
.pi-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 4px 12px; align-items: center; padding: 6px 0; }
@media (min-width: 640px) { .pi-row { grid-template-columns: 9rem 1fr 13rem; } }
.pi-row-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.pi-row-val { font-size: 12px; color: var(--ink-2); grid-column: 1 / -1; }
@media (min-width: 640px) { .pi-row-val { grid-column: auto; text-align: right; } }
.pi-cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.pi-cap-name { font-weight: 700; color: var(--ink); }
.pi-cta-btn { display: inline-block; background: #fff; color: #1e40af; font-weight: 700; padding: 12px 24px; border-radius: 8px; }
.pi-list { list-style: disc; padding-left: 20px; } .pi-list li { margin-bottom: 4px; }
.pi-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.pi-chip { background: var(--surface); border: 1px solid var(--grid); border-radius: 8px; padding: 8px 12px; color: var(--ink); }
/* Meziroční sloupce od středové osy (zdrazily-dovolene) */
.yoy-row { display: grid; grid-template-columns: 8rem 1fr 6.5rem; gap: 8px; align-items: center; padding: 5px 0; }
@media (max-width: 480px) { .yoy-row { grid-template-columns: 6.5rem 1fr 5.5rem; } }
.yoy-name { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yoy-track { position: relative; height: 16px; }
.yoy-axis { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #9ca3af; }
.yoy-bar { position: absolute; top: 1px; height: 14px; border-radius: 4px; }
.yoy-val { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.yoy-name a { font-weight: 500; }
/* Letoviska (nejlevnejsi-letoviska) */
.res-row { display: grid; grid-template-columns: 9.5rem 1fr 6rem; gap: 2px 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--grid); }
.res-row:last-child { border-bottom: 0; }
@media (max-width: 480px) { .res-row { grid-template-columns: 1fr 5.5rem; } .res-track { grid-column: 1 / -1; grid-row: 2; } }
.res-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.res-region { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.res-track { height: 10px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.res-bar { display: block; height: 100%; background: var(--series); border-radius: 4px; }
.res-val { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.res-meta { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
.res-more-sum { cursor: pointer; font-weight: 600; color: #1d4ed8; padding: 8px 0; }
