/* ============================================================
   Stezky Městy – Frontend CSS  v1.1.4
   ============================================================ */

.sm-detail, .sm-detail * { box-sizing: border-box; }
.sm-detail {
    --sm-navy:   #1a3c5e;
    --sm-navy2:  #142f4a;
    --sm-orange: #e8732a;
    --sm-light:  #f4f7fa;
    --sm-border: #dde3ea;
    --sm-text:   #2d3748;
    --sm-muted:  #6b7280;
    --sm-white:  #ffffff;
    --sm-radius: 8px;
    --sm-shadow: 0 2px 12px rgba(0,0,0,.10);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--sm-text);
    line-height: 1.6;
}

/* ══ HERO ══════════════════════════════════════════════════ */
.sm-hero {
    position: relative;
    height: 460px;
    overflow: visible;
    margin-bottom: 90px;
}

/* Foto – celá šířka hero */
.sm-hero__photo {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 460px;
    background: center/cover no-repeat var(--sm-navy);
    border-radius: var(--sm-radius) var(--sm-radius) 0 0;
    overflow: hidden;
    z-index: 0;
}
/* Tmavý překryv */
.sm-hero__photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 100%);
}

/* Název stezky – absolutně v hero, nad panelem */
.sm-hero__title {
    position: absolute;
    left: 24px;
    bottom: 200px; /* odhad: panel ~160px + bottom offset 70px = 230px, název 30px nad */
    color: #fff;
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,.80);
    z-index: 12;
    max-width: 400px;
}

/* Breadcrumb – vlevo nahoře */
.sm-hero__breadcrumb {
    position: absolute;
    top: 18px; left: 24px;
    color: rgba(255,255,255,.80);
    font-size: 13px;
    z-index: 5;
}

/* Modrý box s parametry – přesahuje přes spodní okraj hero dolů */
.sm-hero__panel {
    position: absolute;
    bottom: -70px;
    left: 24px;
    z-index: 10;
    background: var(--sm-navy);
    border-radius: var(--sm-radius);
    padding: 20px 28px 24px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
}

.sm-hero__params {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sm-hero__param {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
}
.sm-hero__param-icon { font-size: 16px; flex-shrink: 0; }

.sm-btn-start {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--sm-orange);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .2s;
    box-shadow: 0 3px 12px rgba(232,115,42,.4);
}
.sm-btn-start:hover { background: #cf601a; }

/* Ochrana před přebitím šablonou */
.sm-detail .sm-btn-start,
.sm-detail a.sm-btn-start {
    background-color: #e8732a !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
}
.sm-detail .sm-btn-start:hover,
.sm-detail a.sm-btn-start:hover {
    background-color: #cf601a !important;
    color: #ffffff !important;
}

/* Prázdná photo-area – není potřeba */
.sm-hero__photo-area { display: none; }

/* ══ MAIN GRID ══════════════════════════════════════════════ */
/* ══ MAIN GRID ══════════════════════════════════════════════ */
.sm-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 56px;
    align-items: start;
    position: relative;
    z-index: 1;
    background: #fff;
    max-width: 100%;
    overflow: hidden;
}

/* ══ SEKCE ══════════════════════════════════════════════════ */
.sm-section-block { margin-bottom: 34px; }

.sm-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sm-navy);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sm-border);
}

.sm-popis { font-size: 15px; line-height: 1.75; }
.sm-empty-note { color: var(--sm-muted); font-size: 13px; font-style: italic; }

/* ══ DVA SLOUPCE Zastávky + PI – přesně 50/50 ════════════ */
.sm-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 34px;
    align-items: start;
}

/* ══ ZASTÁVKY – grid 2 sloupce ══════════════════════════════ */
.sm-zastavky-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sm-zastavka-card { position: relative; }

.sm-zastavka-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--sm-radius);
    overflow: hidden;
    background: var(--sm-light);
}
.sm-zastavka-card__img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s;
}
.sm-zastavka-card:hover .sm-zastavka-card__img img { transform: scale(1.05); }

.sm-zastavka-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #ccc;
}

/* Číslo + název jako overlay uvnitř fotky – dole, přes modré pozadí */
.sm-zastavka-card__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(26, 60, 94, 0.82);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sm-zastavka-card__num {
    width: 22px; height: 22px;
    background: var(--sm-orange); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sm-zastavka-card__label {
    font-size: 11px; font-weight: 600;
    color: #fff;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ══ PRAKTICKÉ INFORMACE ════════════════════════════════════ */
.sm-pi-list { display: flex; flex-direction: column; gap: 8px; }

.sm-pi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #c8dff5;
    border-radius: var(--sm-radius);
    cursor: pointer;
    background: #eaf4fd;
    transition: all .18s;
}
.sm-pi-item:hover {
    border-color: #4a90d9;
    background: #d4eaf8;
}

.sm-pi-item__icon { font-size: 20px; flex-shrink: 0; }
.sm-pi-item__content { flex: 1; min-width: 0; }
.sm-pi-item__label { font-weight: 700; font-size: 13px; color: var(--sm-navy); margin-bottom: 2px; }
.sm-pi-item__desc { font-size: 12px; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-pi-item__arrow { color: #4a90d9; font-size: 18px; flex-shrink: 0; transition: transform .18s; }
.sm-pi-item:hover .sm-pi-item__arrow { transform: translateX(3px); }

/* ══ FOTOGALERIE ════════════════════════════════════════════ */
.sm-galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.sm-galerie-item {
    display: block; aspect-ratio: 4/3;
    border-radius: var(--sm-radius);
    overflow: hidden; position: relative; cursor: pointer;
}
.sm-galerie-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block; transition: transform .3s;
}
.sm-galerie-item:hover img { transform: scale(1.05); }
.sm-galerie-item::after {
    content: '🔍'; position: absolute; inset: 0;
    background: rgba(0,0,0,.30);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; opacity: 0; transition: opacity .2s;
}
.sm-galerie-item:hover::after { opacity: 1; }

/* ══ MAPA ════════════════════════════════════════════════════ */
.sm-map-wrap { position: relative; }
#sm-front-map {
    width: 100%; height: 360px;
    border-radius: var(--sm-radius);
    border: 1px solid var(--sm-border);
}
.sm-map-gpx-btn {
    display: inline-block; margin-top: 10px;
    padding: 9px 20px; background: var(--sm-navy);
    color: #fff !important; border-radius: 5px;
    font-size: 13px; font-weight: 600;
    text-decoration: none !important; transition: background .2s;
}
.sm-map-gpx-btn:hover { background: var(--sm-navy2); }

/* Leaflet popup obrázek */
.leaflet-popup-content img {
    max-width: 160px !important; width: 100% !important;
    height: 110px !important; object-fit: cover !important;
    margin-top: 6px; border-radius: 4px; display: block;
}

/* ══ PRAVÝ SLOUPEC ══════════════════════════════════════════ */
.sm-col-right {
    display: flex; flex-direction: column; gap: 20px;
    min-width: 0; /* zabrání přetékání */
    overflow: hidden;
}

.sm-sidebar-card {
    background: var(--sm-white);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    min-width: 0;
}
.sm-sidebar-card__header {
    background: var(--sm-navy); color: #fff;
    font-size: 14px; font-weight: 700; padding: 11px 16px;
}
.sm-sidebar-card__body { padding: 14px 16px; }

#sm-front-map-mini { width: 100%; height: 200px; display: block; }

/* ══ POČASÍ ══════════════════════════════════════════════════ */
.sm-weather-body { padding: 14px 16px; }
.sm-weather-loading { color: var(--sm-muted); font-size: 13px; text-align: center; padding: 10px; }
.sm-weather-err { color: #b91c1c; font-size: 13px; padding: 8px; }
.sm-weather-main { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sm-weather-icon { font-size: 42px; line-height: 1; }
.sm-weather-temp { font-size: 34px; font-weight: 800; color: var(--sm-navy); line-height: 1; }
.sm-weather-temp sup { font-size: 16px; }
.sm-weather-desc { font-size: 13px; color: var(--sm-muted); text-transform: capitalize; margin-bottom: 8px; }
.sm-weather-details {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px; border-top: 1px solid var(--sm-border); padding-top: 8px;
}
.sm-weather-detail { font-size: 12px; color: var(--sm-muted); }
.sm-weather-detail strong { display: block; color: var(--sm-text); font-size: 13px; }
.sm-weather-city { font-size: 11px; color: var(--sm-muted); margin-top: 6px; text-align: right; }

/* ══ PARAMETRY SIDEBAR ═══════════════════════════════════════ */
.sm-sidebar-param-row {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 0; border-bottom: 1px solid var(--sm-border);
}
.sm-sidebar-param-row:last-child { border-bottom: none; }
.sm-sidebar-param-label { font-size: 10px; color: var(--sm-muted); text-transform: uppercase; letter-spacing: .05em; }
.sm-sidebar-param-val { font-size: 13px; font-weight: 600; }
.sm-tag {
    display: inline-block;
    background: var(--sm-light); border: 1px solid var(--sm-border);
    border-radius: 4px; padding: 2px 8px; font-size: 12px;
    margin: 2px 2px 2px 0;
}

/* ══ MODÁLNÍ OKNO ════════════════════════════════════════════ */
.sm-modal-overlay {
    position: fixed; inset: 0; z-index: 99990;
    background: rgba(0,0,0,.60);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .22s;
    padding: 16px;
}
.sm-modal-overlay.sm-active { opacity: 1; pointer-events: all; }

.sm-modal {
    background: #ffffff;
    border-radius: var(--sm-radius);
    max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    transform: translateY(20px); transition: transform .22s;
    position: relative; z-index: 99991;
}
.sm-modal-overlay.sm-active .sm-modal { transform: translateY(0); }

.sm-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    color: #fff; padding: 14px 20px;
    font-size: 16px; font-weight: 700;
    position: sticky; top: 0; z-index: 2;
    border-radius: var(--sm-radius) var(--sm-radius) 0 0;
}
.sm-modal__close {
    background: none; border: none; color: rgba(255,255,255,.85);
    font-size: 22px; cursor: pointer; padding: 0; line-height: 1;
}
.sm-modal__close:hover { color: #fff; }
.sm-modal__body { padding: 20px; background: #ffffff; }

.sm-modal-pin {
    display: flex; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--sm-border);
    background: #fff;
}
.sm-modal-pin:last-child { border-bottom: none; }
.sm-modal-pin__img {
    width: 80px; height: 80px; flex-shrink: 0;
    border-radius: 6px; object-fit: cover; border: 1px solid var(--sm-border);
}
.sm-modal-pin__placeholder {
    width: 80px; height: 80px; flex-shrink: 0;
    border-radius: 6px; background: var(--sm-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #ccc;
}
.sm-modal-pin__nazev { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--sm-navy); }
.sm-modal-pin__popis { font-size: 13px; color: var(--sm-muted); line-height: 1.5; }

/* ══ LIGHTBOX ════════════════════════════════════════════════ */
.sm-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.93);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .22s;
}
.sm-lightbox.sm-active { opacity: 1; pointer-events: all; }
.sm-lightbox__img-wrap {
    max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
}
.sm-lightbox__img-wrap img {
    max-width: 88vw; max-height: 82vh;
    object-fit: contain; border-radius: 4px; display: block;
}
.sm-lightbox__caption { color: rgba(255,255,255,.65); font-size: 13px; margin-top: 10px; text-align: center; }
.sm-lightbox__close, .sm-lightbox__prev, .sm-lightbox__next {
    position: fixed; background: rgba(255,255,255,.14); border: none; color: #fff;
    cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 2;
}
.sm-lightbox__close:hover, .sm-lightbox__prev:hover, .sm-lightbox__next:hover { background: rgba(255,255,255,.28); }
.sm-lightbox__close { top: 16px; right: 16px; width: 42px; height: 42px; font-size: 20px; }
.sm-lightbox__prev  { left: 16px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }
.sm-lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }

/* ══ LEAFLET IKONY ══════════════════════════════════════════ */

/* Start */
.sm-fi-start {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #16a34a; color: #fff;
    font-size: 11px; font-weight: 900; font-family: Arial, sans-serif;
    border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
/* Cíl */
.sm-fi-cil {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #dc2626; color: #fff;
    font-size: 11px; font-weight: 900; font-family: Arial, sans-serif;
    border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
/* Zastávka */
.sm-fi-zas {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: #e8732a; color: #fff;
    font-size: 14px; font-weight: 900; font-family: Arial, sans-serif;
    border: 3px solid #fff; box-shadow: 0 2px 10px rgba(232,115,42,.55);
}
/* PI pin – kapkový tvar */
.sm-fi-pi {
    width: 34px; height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    position: relative;
}
/* Symbol uvnitř – P pro parkování, čárky pro ostatní */
.sm-fi-pi--parkovani::after {
    content: 'P';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg);
    color: #fff; font-size: 14px; font-weight: 900; font-family: Arial, sans-serif;
}
.sm-fi-pi--doprava::after {
    content: '\25BA'; /* trojúhelník = šipka doprava */
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg);
    color: #fff; font-size: 12px;
}
.sm-fi-pi--obcerstveni::after {
    content: '\2715'; /* × jako vidlička */
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg);
    color: #fff; font-size: 15px; font-weight: 900;
}
.sm-fi-pi--toalety::after {
    content: 'WC';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg);
    color: #fff; font-size: 9px; font-weight: 900; font-family: Arial, sans-serif;
}

/* ══ MÍSTO – výrazný smaragdový pin se hvězdou ══════════════ */
.sm-fi-misto {
    display: flex; flex-direction: column; align-items: center;
    filter: drop-shadow(0 3px 7px rgba(0,0,0,.5));
}
.sm-fi-misto__head {
    width: 40px; height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #059669 0%, #065f46 100%);
    border: 3px solid #fff;
    position: relative;
}
.sm-fi-misto__head::before {
    content: '\2605'; /* ★ */
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg);
    color: #fff; font-size: 20px; line-height: 1;
}
.sm-fi-misto__tail {
    width: 5px; height: 14px;
    background: linear-gradient(to bottom, #059669, #064e3b);
    border-radius: 0 0 3px 3px;
    margin-top: -1px;
}

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sm-main-grid { grid-template-columns: 1fr; }
    .sm-col-right { order: -1; }
    #sm-front-map-mini { height: 220px; }
}

@media (max-width: 768px) {
    .sm-hero { height: 300px; margin-bottom: 100px; }
    .sm-hero__photo { height: 300px; }
    .sm-hero__title { bottom: 120px; font-size: 22px; left: 16px; }
    .sm-hero__breadcrumb { left: 16px; }
    .sm-hero__panel { left: 16px; bottom: -80px; min-width: unset; max-width: calc(100% - 32px); }
    .sm-two-col { grid-template-columns: 1fr; }
    .sm-galerie-grid { grid-template-columns: repeat(2, 1fr); }
    .sm-main-grid { padding-top: 20px; gap: 20px; }
}

@media (max-width: 480px) {
    .sm-zastavky-grid { grid-template-columns: 1fr 1fr; }
    .sm-galerie-grid { grid-template-columns: 1fr 1fr; }
    .sm-lightbox__prev { left: 4px; }
    .sm-lightbox__next { right: 4px; }
}

/* ══ MODÁLNÍ OKNO – ZASTÁVKY ════════════════════════════════ */

/* ID selector přebíjí .sm-modal defaults */
#sm-zas-modal .sm-modal {
    max-width: 600px !important;
    max-height: 92vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.sm-zas-modal__header {
    background: linear-gradient(135deg, #1a3c5e 0%, #243f6a 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: var(--sm-radius) var(--sm-radius) 0 0;
    flex-shrink: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    gap: 12px;
}

.sm-zas-modal__header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sm-zas-modal__counter {
    color: rgba(255,255,255,.70);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(255,255,255,.15);
    padding: 3px 10px;
    border-radius: 20px;
}

.sm-zas-modal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--sm-orange);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Scrollovatelné tělo */
.sm-zas-modal__body {
    flex: 1 !important;
    overflow-y: auto !important;
    background: #fff;
    min-height: 0 !important;
}

.sm-zas-modal__img-wrap {
    width: 100%;
    height: 270px;
    overflow: hidden;
    background: #e8edf2;
    flex-shrink: 0;
}

.sm-zas-modal__img-wrap img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s;
}
.sm-zas-modal__img-wrap:hover img { transform: scale(1.03); }

.sm-zas-modal__img-placeholder {
    width: 100%; height: 270px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 52px; color: #b0bec5;
    background: linear-gradient(135deg, #f4f7fa 0%, #e8edf2 100%);
    gap: 8px;
}

.sm-zas-modal__content {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--sm-border);
}

.sm-zas-modal__nazev {
    font-size: 20px;
    font-weight: 700;
    color: var(--sm-navy);
    margin: 0 0 12px;
    line-height: 1.25;
}

.sm-zas-modal__popis {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sm-text);
    margin: 0;
}

.sm-zas-modal__meta {
    padding: 10px 24px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sm-muted);
    font-size: 12px;
    font-family: monospace;
    border-bottom: 1px solid var(--sm-border);
}

/* Navigace – flex-shrink: 0 = VŽDY viditelná */
.sm-zas-modal__nav {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #f0f4f8;
    border-top: 2px solid var(--sm-border);
    border-radius: 0 0 var(--sm-radius) var(--sm-radius);
    flex-shrink: 0 !important;
    gap: 12px;
}

.sm-zas-modal__arrow,
.sm-detail .sm-zas-modal__arrow,
#sm-zas-modal .sm-zas-modal__arrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: #1a3c5e !important;
    background-color: #1a3c5e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .18s, box-shadow .18s !important;
    box-shadow: 0 2px 6px rgba(26,60,94,.2) !important;
    text-decoration: none !important;
}
#sm-zas-modal .sm-zas-modal__arrow:hover {
    background: #0f2640 !important;
    background-color: #0f2640 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(26,60,94,.3) !important;
}
#sm-zas-modal .sm-zas-modal__arrow.sm-disabled {
    opacity: .3 !important; cursor: default !important;
    pointer-events: none !important; box-shadow: none !important;
}

/* Hover efekt na kartě */
.sm-zastavka-card { transition: transform .18s, box-shadow .18s; cursor: pointer; }
.sm-zastavka-card:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.sm-zastavka-card:hover .sm-zastavka-card__overlay { background: rgba(26,60,94,.92); }

/* ══ PŘÍBĚHOVÁ STEZKA ═══════════════════════════════════════ */
.sm-pribeh-uvod {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #c4b5fd;
    border-radius: var(--sm-radius);
    padding: 20px 24px !important;
    margin-bottom: 28px;
}
.sm-pribeh-uvod__title {
    color: #4c1d95 !important;
    border-bottom-color: #c4b5fd !important;
}
.sm-pribeh-uvod__text {
    font-size: 15px;
    line-height: 1.8;
    color: #3b0764;
    font-style: italic;
}

/* Kapitoly – odlišný styl karet */
.sm-kapitoly .sm-zastavky-grid { gap: 12px; }
.sm-kapitoly .sm-zastavka-card__overlay {
    background: linear-gradient(to right, rgba(76,29,149,.85), rgba(109,40,217,.75)) !important;
}
.sm-kapitoly .sm-zastavka-card__num {
    background: #7c3aed !important;
}

/* Příběhový modal – fialová hlavička */
.sm-zas-modal--pribeh .sm-zas-modal__header {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%) !important;
}
.sm-zas-modal--pribeh .sm-zas-modal-num {
    background: #7c3aed !important;
}
