/* ============================================================
   Autobazar Liberec – design inspirovaný českým dopravním
   značením: modré místní směrovky, zelené dálkové cíle,
   písmo Overpass (vychází z Highway Gothic).
   ============================================================ */

:root {
    --blue:       #0b4ea2;   /* modrá směrových tabulí */
    --blue-dark:  #083a79;
    --green:      #00693e;   /* zelená dálničních cílů */
    --green-dark: #004d2d;
    --asphalt:    #23282e;   /* text */
    --road:       #f2f4f6;   /* pozadí */
    --line:       #d7dde3;   /* hairline */
    --white:      #ffffff;
    --gold:       #f5b301;   /* hvězdy hodnocení */

    --font: "Overpass", system-ui, sans-serif;
    --mono: "Overpass Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    font-family: var(--font);
    color: var(--asphalt);
    background: var(--road);
    line-height: 1.55;
    font-size: 16px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { font-stretch: 87%; line-height: 1.12; }

/* ---------- horní lišta ---------- */
.topbar {
    background: var(--white);
    border-bottom: 4px solid var(--blue);
    position: sticky; top: 0; z-index: 10;
}
.topbar-in {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand { text-decoration: none; }
.brand-plate {
    /* SPZ – registrační značka */
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-weight: 600; font-size: 17px;
    letter-spacing: .06em; color: var(--asphalt);
    background: var(--white);
    border: 2px solid var(--asphalt); border-radius: 5px;
    padding: 3px 10px 3px 0; overflow: hidden;
}
.brand-plate b { color: var(--blue); }
.brand-eu {
    background: var(--blue); color: var(--white);
    font-size: 10px; font-weight: 700; align-self: stretch;
    display: flex; align-items: flex-end; padding: 3px 5px;
}
.nav { display: flex; gap: 22px; }
.nav a {
    text-decoration: none; font-weight: 600; font-size: 15px;
    color: var(--asphalt); padding: 4px 0;
    border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--blue); }

/* ---------- hero ---------- */
.hero {
    background:
        linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 72px 0 84px;
    position: relative;
    overflow: hidden;
}
/* středová čára vozovky podél spodního okraje */
.hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 26px; height: 6px;
    background: repeating-linear-gradient(90deg,
        var(--gold) 0 56px, transparent 56px 96px);
    opacity: .85;
}
.hero-eyebrow {
    font-family: var(--mono); font-size: 13px; letter-spacing: .12em;
    text-transform: uppercase; opacity: .8; margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 18px;
}
.hero-sub { max-width: 560px; font-size: 18px; opacity: .92; }

/* směrové tabule v hero */
.signpost { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.sign {
    --arrow: 26px;
    display: inline-flex; align-items: baseline; gap: 12px;
    color: var(--white); text-decoration: none;
    font-weight: 700;
    padding: 14px 48px 14px 20px;
    border: 3px solid var(--white); border-radius: 6px;
    clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%,
                       calc(100% - var(--arrow)) 100%, 0 100%);
    transition: transform .15s ease;
}
.sign:hover { transform: translateX(6px); }
.sign-blue  { background: var(--blue-dark); }
.sign-green { background: var(--green); }
.sign-dist  { font-family: var(--mono); font-size: 30px; line-height: 1; }
.sign-label { font-size: 15px; font-weight: 600; }

/* ---------- sekce ---------- */
.section { padding: 64px 0; }
.section-green { background: var(--white); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 34px; max-width: 640px; }
.section-head h2 {
    font-size: clamp(26px, 4vw, 36px); font-weight: 800;
    margin-bottom: 10px;
    padding-left: 14px;
    border-left: 6px solid var(--blue);
}
#nabidky .section-head h2 { border-left-color: var(--green); }
.section-head p { color: #4c555e; }

/* ---------- karty bazarů ---------- */
.grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: 8px;
    padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
}
.card-top { display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; font-weight: 800; }

.rating {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--asphalt);
    font-family: var(--mono);
    width: fit-content;
    padding: 2px 8px; margin-left: -8px; border-radius: 6px;
}
.rating:hover { background: #fdf3d7; }
.rating-num { font-size: 20px; font-weight: 600; }
.stars { display: inline-flex; color: var(--gold); }
.star { width: 17px; height: 17px; }
.rating-count { font-size: 12.5px; color: #6a737c; }

.card-desc { font-size: 14.5px; color: #4c555e; }

.card-meta { display: grid; gap: 5px; font-size: 14px; margin-top: auto; }
.card-meta > div { display: flex; gap: 8px; }
.card-meta dt {
    font-family: var(--mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: .08em; color: #8a939c; min-width: 70px; padding-top: 3px;
}
.card-meta a { color: var(--asphalt); }

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.btn {
    font-size: 13.5px; font-weight: 700; text-decoration: none;
    padding: 8px 14px; border-radius: 5px; border: 2px solid var(--blue);
}
.btn-ghost { color: var(--blue); background: transparent; }
.btn-ghost:hover { background: #e8eef7; }
.btn-solid { color: var(--white); background: var(--blue); }
.btn-solid:hover { background: var(--blue-dark); }

.note { margin-top: 26px; font-size: 13.5px; color: #6a737c; }
.empty { padding: 30px; background: var(--white); border: 1px dashed var(--line); border-radius: 8px; }

/* ---------- portály s nabídkami ---------- */
.portals { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.portal {
    --arrow: 22px;
    position: relative;
    display: flex; flex-direction: column; gap: 6px;
    background: var(--green); color: var(--white);
    text-decoration: none;
    padding: 18px 44px 18px 18px;
    border-radius: 6px;
    clip-path: polygon(0 0, calc(100% - var(--arrow)) 0, 100% 50%,
                       calc(100% - var(--arrow)) 100%, 0 100%);
    transition: transform .15s ease, background .15s ease;
}
.portal:hover { background: var(--green-dark); transform: translateX(6px); }
.portal-tag {
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; opacity: .85;
}
.portal-name { font-size: 21px; font-weight: 800; }
.portal-desc { font-size: 13.5px; opacity: .92; }
.portal-arrow {
    position: absolute; right: 34px; top: 16px;
    font-size: 20px; font-weight: 800;
}

/* ---------- tipy ---------- */
.tips { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tip {
    background: var(--white); border: 1px solid var(--line);
    border-radius: 8px; padding: 20px;
}
.tip-no {
    display: inline-block;
    font-family: var(--mono); font-weight: 600; font-size: 14px;
    background: var(--asphalt); color: var(--white);
    padding: 3px 9px; border-radius: 4px; margin-bottom: 12px;
}
.tip h3 { font-size: 17px; margin-bottom: 6px; }
.tip p { font-size: 14.5px; color: #4c555e; }

/* ---------- patička ---------- */
.footer {
    background: var(--asphalt); color: #c8cfd6;
    padding: 34px 0; margin-top: 20px;
}
.footer b { color: var(--white); }
.footer-small { font-size: 13px; margin-top: 8px; color: #8a939c; }

/* ---------- mobil ---------- */
@media (max-width: 640px) {
    .nav { display: none; }
    .hero { padding: 52px 0 70px; }
    .sign { width: 100%; justify-content: flex-start; }
}
