/* ========================================
   DETAIL STANICE - Hlavní stránka detailu chovatelské stanice
   MOBILE FIRST - základní styly pro mobil
   ======================================== */

/* ========================================
   HLAVNÍ KONTEJNER - MOBIL
   ======================================== */

.page-layout {
    background-color: #ffffff;
    min-height: 100vh;
    padding: 12px 0;
    width: 100%;
}

.page-layout__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   SIDEBAR MENU - MOBIL (Dropdown)
   ======================================== */

.page-layout__sidebar {
    width: 100%;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #ffffff;
    padding: 12px 8px 20px 8px;
}

.sidebar-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 4px;
}

/* Tlačítko dropdown - MOBIL */
.sidebar-menu__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: white;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-menu__toggle:hover,
.sidebar-menu__toggle:active {
    background-color: #f8f9fa;
}

.sidebar-menu__toggle-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu__toggle-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.sidebar-menu__toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: #666;
}

/* Ikona otočená při otevření */
.sidebar-menu__toggle--open .sidebar-menu__toggle-icon {
    transform: rotate(180deg);
}

.sidebar-menu__toggle--open .sidebar-menu__toggle-icon svg {
    fill: #8b5cf6;
}

/* Skrytý title na mobilu */
.sidebar-menu__title {
    display: none;
}

/* Dropdown seznam - MOBIL */
.sidebar-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

/* Zobrazit seznam při otevření */
.sidebar-menu__list--open {
    display: flex;
}

.sidebar-menu__item {
    /* Položka seznamu */
}

.sidebar-menu__link {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu__link:last-child {
    border-bottom: none;
}

.sidebar-menu__link:hover,
.sidebar-menu__link:active {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.sidebar-menu__link--active {
    background-color: #8b5cf6;
    color: white;
    font-weight: 600;
}

.sidebar-menu__link--active:hover {
    background-color: #7c3aed;
}

/* ========================================
   SUBMENU - ROZBALOVACÍ (MOBIL)
   ======================================== */

/* Položka s rozbalovacím submenu */
.sidebar-menu__item--expandable {
    /* Wrapper pro expandable položku */
}

/* Link s šipkou pro rozbalení */
.sidebar-menu__link--expandable {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Wrapper pro odkaz + tlačítko šipky */
.sidebar-menu__link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu__link-wrapper .sidebar-menu__link {
    flex: 1;
    border-bottom: none;
}

/* Tlačítko šipky */
.sidebar-menu__arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar-menu__arrow-btn:hover {
    background-color: #f5f5f5;
}

.sidebar-menu__arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.sidebar-menu__link--expandable.sidebar-menu__link--expanded .sidebar-menu__arrow {
    transform: rotate(180deg);
}

/* Submenu - první úroveň */
.sidebar-menu__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
}

.sidebar-menu__submenu--open {
    display: flex;
}

.sidebar-menu__submenu-item {
    /* Položka submenu */
}

.sidebar-menu__submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 10px 24px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-menu__submenu-link:hover,
.sidebar-menu__submenu-link:active {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

.sidebar-menu__submenu-link--active {
    background-color: #8b5cf6;
    color: white;
    font-weight: 600;
}

.sidebar-menu__submenu-link--expandable {
    font-weight: 600;
    color: #444;
}

/* Submenu - druhá úroveň */
.sidebar-menu__submenu-level2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #f3f3f3;
}

.sidebar-menu__submenu-level2--open {
    display: flex;
}

.sidebar-menu__submenu-level2-item {
    /* Položka druhé úrovně */
}

.sidebar-menu__submenu-level2-link {
    display: flex;
    align-items: center;
    padding: 9px 16px 9px 36px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-menu__submenu-level2-link:hover,
.sidebar-menu__submenu-level2-link:active {
    background-color: #e8e8e8;
    color: #1a1a1a;
}

.sidebar-menu__submenu-level2-link--active {
    background-color: #ffffff;
    color: #1a1a1a;
    font-weight: 700;
}

/* Označení pohlaví u psů - barevná odrážka před jménem */
.sidebar-menu__pohlavi {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Pes - modrá odrážka (i u aktivní položky) */
.sidebar-menu__pohlavi--pes {
    background-color: #64b5f6;
}

/* Fena - růžová odrážka (i u aktivní položky) */
.sidebar-menu__pohlavi--fena {
    background-color: #f48fb1;
}

/* Jméno psa/feny - oříznutí s třemi tečkami */
.sidebar-menu__name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ========================================
   HLAVNÍ OBSAH - MOBIL
   ======================================== */

.page-layout__content {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 0;
    scroll-margin-top: 120px;
    position: relative;
    z-index: 1;
}

/* Specificky pro detail psa - kvuli fixed sidebaru */
.page-detail-pes .page-layout__content {
    margin-top: 120px;
}

/* ========================================
   SEKCE S INFORMACEMI O STANICI - MOBIL
   ======================================== */

.stanice-info {
    margin-bottom: 0;
    padding-bottom: 0;
}

.stanice-info__layout {
    display: flex;
    flex-direction: column;
}

/* Odstranit wrappery pomocí display: contents, aby order fungoval */
.stanice-info__details {
    display: contents;
}

.stanice-info__meta {
    display: contents;
}

/* Pořadí prvků na mobilu - VÝCHOZÍ PRO VŠECHNY STRÁNKY */
.stanice-info__name {
    order: 1;
    margin-bottom: 6px;
}

.stanice-info__rating {
    order: 2;
    margin-bottom: 12px;
    margin-top: 8px;
}

.stanice-info__location {
    order: 3;
    margin-top: 0;
}

.stanice-info__photo-wrapper {
    order: 4;
    margin-bottom: 12px;
}

.stanice-info__details-table {
    order: 5;
    margin-top: 20px;
    margin-bottom: 12px;
}

.stanice-info__contact-button {
    order: 6;
}

.stanice-info__badges {
    order: 7;
}

/* Specifické pořadí POUZE pro detail psa */
.page-detail-pes .stanice-info__name {
    order: 1;
    margin-bottom: 4px;
}

.page-detail-pes .stanice-info__station {
    order: 2;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin: 0 0 6px 0;
}

.page-detail-pes .stanice-info__rating {
    order: 3;
    margin-bottom: 12px;
    margin-top: 0;
}

.page-detail-pes .stanice-info__subtitle {
    order: 4;
    margin-top: 6px;
    margin-bottom: 12px;
}

.page-detail-pes .stanice-info__location {
    order: 5;
}

.page-detail-pes .stanice-info__photo-wrapper {
    order: 6;
}

.page-detail-pes .stanice-info__details-table {
    order: 7;
}

.page-detail-pes .stanice-info__cta {
    order: 8;
}

.page-detail-pes .stanice-info__contact-button {
    order: 9;
}

.page-detail-pes .stanice-info__badges {
    order: 10;
}

/* Fotka stanice - MOBIL */
.stanice-info__photo-wrapper {
    width: calc(100% + 24px);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    /* Rozšířit fotku až k okrajům karty na mobilu */
    margin: 0 -12px 12px -12px;
    position: relative;
    left: 0;
}

.stanice-info__photo {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}

/* Štítky na fotce */
.stanice-info__photo-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.stanice-info__photo-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.stanice-info__photo-badge--new {
    background-color: #ff6b6b;
    color: #ffffff;
}

.stanice-info__photo-badge--updated {
    background-color: #3498db;
    color: #ffffff;
}

.stanice-info__photo-badge--puppies {
    background-color: #8b5cf6;
    color: #ffffff;
}

.stanice-info__photo-badge--expected {
    background-color: #f59e0b;
    color: #ffffff;
}

/* ========================================
   FOTOGALERIE - MOBIL FIRST
   ======================================== */

.photo-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.photo-gallery__container {
    position: relative;
    width: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.photo-gallery__slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: none;
}

.photo-gallery__slide--active {
    opacity: 1;
    display: block;
}

.photo-gallery__image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}

/* Šipky pro přepínání fotek - MOBIL */
.photo-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.photo-gallery__arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-gallery__arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.photo-gallery__arrow svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.photo-gallery__arrow--prev {
    left: 8px;
}

.photo-gallery__arrow--next {
    right: 8px;
}

/* Odznaky na fotce */
.photo-gallery__badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 5;
}

/* Puntíky (indikátory) - MOBIL - pod fotkou */
.photo-gallery__dots {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 5;
    justify-content: center;
    padding: 12px 0 0 0;
}

.photo-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.photo-gallery__dot:hover {
    background-color: #667eea;
}

.photo-gallery__dot--active {
    background-color: #667eea;
    width: 24px;
    border-radius: 4px;
}

/* Detaily stanice - MOBIL */
.stanice-info__details {
    /* display: contents je nastaveno výše */
    padding: 0;
}

.stanice-info__name {
    font-size: 21px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specificky pro detail psa - kvuli fixed sidebaru */
.page-detail-pes .stanice-info__name {
    margin-top: 24px;
}

/* Ikona pohlaví - MOBIL */
.stanice-info__gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transform: translateY(3px);
}

.stanice-info__gender svg {
    width: 22px;
    height: 22px;
}

.stanice-info__gender--male {
    color: #64b5f6;
}

.stanice-info__gender--female {
    color: #f48fb1;
}

/* Ikona ověřeného majitele v tabulce - MOBIL */
.details-table__verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #4a90e2;
    margin-left: 6px;
    vertical-align: middle;
}

.details-table__verified svg {
    width: 16px;
    height: 16px;
}

/* Vlajka v detailní tabulce - MOBIL */
.details-table__flag {
    width: 16px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
}

.stanice-info__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
}

/* Meta informace - MOBIL */
.stanice-info__meta {
    /* display: contents je nastaveno výše */
}

.stanice-info__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.stanice-info__rating:hover {
    opacity: 0.7;
}

.stanice-info__rating:active {
    opacity: 0.5;
}

.stanice-info__stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.stanice-info__star {
    width: 16px;
    height: 16px;
    fill: #8b5cf6;
}

.stanice-info__reviews {
    color: #666;
    font-size: 12px;
}

.stanice-info__location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #333;
    flex-wrap: wrap;
}

.stanice-info__location-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.stanice-info__location-icon svg {
    width: 100%;
    height: 100%;
    fill: #8b5cf6;
}

.stanice-info__location-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 0;
}

.stanice-info__flag {
    width: 18px;
    height: auto;
    border-radius: 2px;
    flex-shrink: 0;
}

.stanice-info__country {
    font-weight: 600;
}

.stanice-info__separator {
    color: #ccc;
}

.stanice-info__city {
    color: #666;
}

/* CTA banner - kontaktovat chovatele - MOBIL */
.stanice-info__cta {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
}

.stanice-info__cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.stanice-info__cta-text {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.stanice-info__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    transition: all 0.2s ease;
}

.stanice-info__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.stanice-info__cta-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Staré tlačítko - zachovat pro zpětnou kompatibilitu */
.stanice-info__contact-button {
    display: none;
}

/* Odznaky - MOBIL */
.stanice-info__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.stanice-info__badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stanice-info__badge--verified {
    background-color: #4a90e2;
    color: white;
}

.stanice-info__badge--fci {
    background-color: #f0f0f0;
    color: #333;
}

/* ========================================
   SEKCE O NÁS - MOBIL
   ======================================== */

.o-nas {
    margin-top: 80px;
    padding: 0 4px;
}

.o-nas__title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.o-nas__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.o-nas__text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   SEKCE ZDRAVOTNÍ TESTY - MOBIL
   ======================================== */

/* Info text pod nadpisem - Základní styl */
.zdravotni-testy .zdravotni-testy__info {
    font-size: 12px;
    color: #666;
    margin: -15px 0 12px 0; /* MOBILE FIRST - základní hodnota pro mobil */
    background: transparent;
    font-style: italic;
    line-height: 1.4;
}

.zdravotni-testy__info em {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    font-style: italic;
    color: #8b5cf6;
}

.zdravotni-testy__subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Tooltip - kolečko s otazníkem */
.zdravotni-testy__tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    vertical-align: middle;
}

.zdravotni-testy__tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.zdravotni-testy__tooltip:hover .zdravotni-testy__tooltip-icon {
    color: #7c3aed;
    transform: scale(1.15);
}

/* Nápověda - skrytá */
.zdravotni-testy__tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #1a1a1a;
    color: white;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    white-space: normal;
    width: 200px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Šipka tooltipa */
.zdravotni-testy__tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

/* Zobrazení při hoveru nebo kliku (mobil) */
.zdravotni-testy__tooltip:hover .zdravotni-testy__tooltip-text,
.zdravotni-testy__tooltip:active .zdravotni-testy__tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   RESPONZIVITA - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .page-layout {
        padding-top: 90px; /* Prostor pro fixní header (70px) + mezera */
        padding-bottom: 60px;
    }

    .page-layout__container {
        padding: 0 40px;
        gap: 20px;
    }

    /* Sidebar na tabletu - zvětšit top offset aby nezalézal za header */
    .page-layout__sidebar {
        top: 90px;
        padding: 12px 0;
    }

    /* Na tabletu ponechat dropdown funkční - NEZAVÍRAT */
    /* .sidebar-menu__toggle zůstává viditelný */

    /* Title zůstává skrytý na tabletu */
    .sidebar-menu__title {
        display: none;
    }

    /* Menu zůstává jako dropdown na tabletu - od kraje ke kraji */
    /* .sidebar-menu__list bude řízen JavaScriptem */

    .sidebar-menu__link {
        padding: 12px 40px;
        font-size: 14px;
        border-radius: 0;
    }

    .sidebar-menu__toggle {
        padding: 14px 40px;
    }

    /* Submenu na tabletu */
    .sidebar-menu__submenu-link {
        padding: 10px 40px 10px 52px;
        font-size: 13px;
    }

    .sidebar-menu__submenu-level2-link {
        padding: 9px 40px 9px 64px;
        font-size: 12px;
    }

    .page-layout__content {
        padding: 24px;
        margin-top: 68px;
    }

    .stanice-info {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* CTA banner - tablet */
    .stanice-info__cta {
        margin-top: 24px;
        padding: 24px;
    }

    .stanice-info__cta-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .stanice-info__cta-text {
        font-size: 17px;
        font-weight: 600;
        margin: 0;
    }

    .stanice-info__cta-btn {
        padding: 14px 28px;
        font-size: 15px;
        width: auto;
        white-space: nowrap;
    }

    .stanice-info__layout {
        gap: 24px;
    }

    /* Fotka na tabletu vrátit do normálu */
    .stanice-info__photo-wrapper {
        width: 100%;
        margin: 0;
        border-radius: 8px;
        left: 0;
    }

    .stanice-info__photo {
        border-radius: 8px;
    }

    /* Fotogalerie - TABLET */
    .photo-gallery {
        border-radius: 8px;
        width: 100%;
        margin: 0 auto;
    }

    .photo-gallery__container {
        width: 100%;
        margin: 0 auto;
    }

    .photo-gallery__image {
        border-radius: 8px;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
    }

    .photo-gallery__arrow {
        width: 42px;
        height: 42px;
    }

    .photo-gallery__arrow svg {
        width: 24px;
        height: 24px;
    }

    .photo-gallery__arrow--prev {
        left: 12px;
    }

    .photo-gallery__arrow--next {
        right: 12px;
    }

    /* Puntíky na fotce od tabletu */
    .photo-gallery__dots {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        gap: 10px;
        padding: 0;
    }

    .photo-gallery__dot {
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.8);
        border: none;
    }

    .photo-gallery__dot:hover {
        background-color: #667eea;
    }

    .photo-gallery__dot--active {
        width: 28px;
        border-radius: 5px;
        background-color: #667eea;
    }

    .stanice-info__details {
        padding: 0;
    }

    .stanice-info__name {
        font-size: 26px;
        gap: 10px;
    }

    .stanice-info__gender {
        width: 26px;
        height: 26px;
    }

    .stanice-info__gender svg {
        width: 26px;
        height: 26px;
    }

    .details-table__verified {
        width: 18px;
        height: 18px;
    }

    .details-table__verified svg {
        width: 18px;
        height: 18px;
    }

    /* Vlajka v detailní tabulce - TABLET */
    .details-table__flag {
        width: 18px;
        height: 13px;
        margin-right: 7px;
    }

    .stanice-info__subtitle {
        font-size: 15px;
        margin-top: 6px;
    }

    .stanice-info__meta {
        margin-top: 12px;
    }

    .stanice-info__location {
        font-size: 14px;
    }

    .stanice-info__location-icon {
        width: 18px;
        height: 18px;
    }

    .stanice-info__flag {
        width: 20px;
    }

    .stanice-info__badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    .o-nas {
        margin-top: 100px;
        padding: 0;
    }

    .o-nas__title {
        font-size: 42px;
        margin-bottom: 40px;
    }

    .o-nas__text {
        font-size: 15px;
    }

    /* Zdravotní testy - TABLET */
    .zdravotni-testy__subtitle {
        font-size: 17px;
        margin-top: 28px;
    }

    .zdravotni-testy .zdravotni-testy__info {
        font-size: 13px;
        margin: -23px 0 14px 0 !important;
    }

    .zdravotni-testy__tooltip-icon {
        font-size: 14px;
    }

    .zdravotni-testy__tooltip-text {
        width: 240px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ========================================
   RESPONZIVITA - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .page-layout {
        padding-top: 100px; /* Prostor pro fixní header (76px) + mezera */
        padding-bottom: 60px;
    }

    .page-layout__container {
        max-width: 1400px;
        padding: 0 40px;
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 40px;
        align-items: start;
    }

    /* Sidebar - DESKTOP: Vertikální menu - MODERNÍ DESIGN */
    .page-layout__sidebar {
        position: sticky;
        top: 96px; /* Pod fixní hlavičkou */
        padding: 0;
        margin: 0;
        background-color: transparent;
        align-self: start;
    }

    /* Skrýt dropdown tlačítko na desktopu */
    .sidebar-menu__toggle {
        display: none;
    }

    .sidebar-menu {
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    /* Skrýt title na desktopu */
    .sidebar-menu__title {
        display: none;
    }

    /* Seznam vždy viditelný na desktopu */
    .sidebar-menu__list {
        display: flex !important;
        flex-direction: column;
        margin-top: 0;
        box-shadow: none;
        gap: 2px;
        max-height: none;
        overflow: visible;
    }

    .sidebar-menu__item {
        flex-shrink: 1;
    }

    /* Hlavní odkazy - čistý minimalistický styl */
    .sidebar-menu__link {
        padding: 14px 16px;
        font-size: 18px;
        font-weight: 500;
        border-radius: 8px;
        border-bottom: none;
        color: #4a5568;
        position: relative;
        transition: all 0.15s ease;
    }

    .sidebar-menu__link:hover {
        background-color: #f7f7f8;
        color: #1a1a1a;
    }

    /* Aktivní položka - gradient */
    .sidebar-menu__link--active {
        background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
        color: white;
        font-weight: 600;
    }

    .sidebar-menu__link--active:hover {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        color: white;
    }

    /* Wrapper pro odkaz + tlačítko - desktop */
    .sidebar-menu__link-wrapper {
        border-bottom: none;
        border-radius: 8px;
        transition: background-color 0.15s ease;
    }

    /* Hover na celý wrapper */
    .sidebar-menu__link-wrapper:hover {
        background-color: #f7f7f8;
    }

    .sidebar-menu__link-wrapper .sidebar-menu__link {
        border-radius: 8px 0 0 8px;
        background-color: transparent;
    }

    .sidebar-menu__link-wrapper .sidebar-menu__link:hover {
        background-color: transparent;
    }

    .sidebar-menu__arrow-btn {
        padding: 14px 16px;
        border-radius: 0 8px 8px 0;
    }

    .sidebar-menu__link-wrapper:hover .sidebar-menu__arrow-btn {
        background-color: transparent;
    }

    /* Aktivní wrapper - celý řádek včetně šipky má gradient */
    .sidebar-menu__link-wrapper:has(.sidebar-menu__link--active) {
        background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
        border-radius: 8px;
    }

    .sidebar-menu__link-wrapper:has(.sidebar-menu__link--active):hover {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    }

    .sidebar-menu__link-wrapper:has(.sidebar-menu__link--active) .sidebar-menu__link {
        background-color: transparent;
        color: white;
    }

    .sidebar-menu__link-wrapper:has(.sidebar-menu__link--active) .sidebar-menu__arrow-btn {
        color: white;
    }

    .sidebar-menu__link-wrapper:has(.sidebar-menu__link--active) .sidebar-menu__arrow svg {
        stroke: white;
    }

    /* Expandable link s šipkou */
    .sidebar-menu__link--expandable {
        font-weight: 600;
        color: #1a1a1a;
    }

    .sidebar-menu__arrow {
        opacity: 0.4;
        transition: all 0.2s ease;
    }

    .sidebar-menu__link-wrapper:hover .sidebar-menu__arrow {
        opacity: 0.7;
    }

    .sidebar-menu__link--expanded .sidebar-menu__arrow {
        opacity: 1;
        color: #666;
    }

    /* Separátor před sekcí "Naši chovní psi" */
    .sidebar-menu__item--expandable {
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    /* Separátor za sekcí psů */
    .sidebar-menu__item--expandable + .sidebar-menu__item {
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    /* Submenu - první úroveň - desktop */
    .sidebar-menu__submenu {
        margin-top: 8px;
        padding-left: 0;
    }

    .sidebar-menu__submenu-item {
        margin: 2px 0;
    }

    .sidebar-menu__submenu-link {
        padding: 12px 14px;
        font-size: 16px;
        font-weight: 500;
        color: #4a5568;
        border-radius: 6px;
        border-bottom: none;
        transition: all 0.15s ease;
    }

    .sidebar-menu__submenu-link:hover {
        background-color: #f7f7f8;
        color: #1a1a1a;
    }

    .sidebar-menu__submenu-link--expandable {
        font-weight: 600;
        color: #374151;
    }

    /* Šipka u plemena - vždy viditelná */
    .sidebar-menu__submenu-link .sidebar-menu__arrow {
        opacity: 1;
        color: #666;
        transition: all 0.2s ease;
    }

    .sidebar-menu__submenu-link .sidebar-menu__arrow svg {
        width: 14px;
        height: 14px;
    }

    .sidebar-menu__submenu-link:hover .sidebar-menu__arrow {
        opacity: 1;
        color: #333;
    }

    .sidebar-menu__submenu-link--expandable.sidebar-menu__link--expanded .sidebar-menu__arrow {
        opacity: 1;
        color: #333;
        transform: rotate(180deg);
    }

    /* Submenu - druhá úroveň - desktop */
    .sidebar-menu__submenu-level2 {
        background-color: transparent;
        margin: 8px 0 8px 0;
        padding-left: 8px;
        border-left: none;
    }

    .sidebar-menu__submenu-level2-item {
        margin: 4px 0;
    }

    /* Styl - levý okraj v barvě pohlaví, bez podbarvení */
    .sidebar-menu__submenu-level2-link {
        padding: 12px 12px 12px 16px;
        font-size: 15px;
        font-weight: 400;
        color: #4a5568;
        border-radius: 0;
        border-bottom: none;
        background-color: transparent;
        border-left: none;
        position: relative;
        transition: all 0.15s ease;
    }

    /* Svislá čára pomocí pseudo-elementu */
    .sidebar-menu__submenu-level2-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 75%;
        border-radius: 0;
        background-color: transparent;
        transition: all 0.15s ease;
    }

    /* Skrýt puntík pohlaví - použijeme pseudo-element */
    .sidebar-menu__submenu-level2-link .sidebar-menu__pohlavi {
        display: none;
    }

    /* Pes - modrá čára (stejná jako na homepage) */
    .sidebar-menu__submenu-level2-item:has(.sidebar-menu__pohlavi--pes) .sidebar-menu__submenu-level2-link::before {
        background-color: #64b5f6;
    }

    /* Fena - růžová čára (jemnější odstín) */
    .sidebar-menu__submenu-level2-item:has(.sidebar-menu__pohlavi--fena) .sidebar-menu__submenu-level2-link::before {
        background-color: #f8a5c2;
    }

    /* Podbarvení pomocí ::after - stejná výška jako čára */
    .sidebar-menu__submenu-level2-link::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        height: 75%;
        border-radius: 0;
        background-color: transparent;
        transition: all 0.15s ease;
        z-index: -1;
    }

    /* Hover - jemné šedé podbarvení */
    .sidebar-menu__submenu-level2-link:hover::after {
        background-color: #f5f5f5;
    }

    .sidebar-menu__submenu-level2-link:hover {
        color: #1a1a1a;
    }

    /* Jméno - normální barva */
    .sidebar-menu__submenu-level2-link .sidebar-menu__name {
        padding: 0;
        border-radius: 0;
        font-weight: 400;
        color: #4a5568;
        background-color: transparent;
    }

    /* Hover - tmavší text */
    .sidebar-menu__submenu-level2-link:hover .sidebar-menu__name {
        font-weight: 500;
        color: #1a1a1a;
    }

    /* Obsah - DESKTOP */
    .page-layout__content {
        padding: 24px;
        margin-top: 0;
        overflow-x: hidden;
        background: #fff;
        border-radius: 12px;
        box-shadow: none;
    }

    /* Reset margin-top pro detail psa na desktopu */
    .page-detail-pes .page-layout__content {
        margin-top: 0;
    }

    .stanice-info {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* CTA banner - desktop */
    .stanice-info__cta {
        margin-top: 28px;
        padding: 28px 32px;
    }

    .stanice-info__cta-text {
        font-size: 18px;
        font-weight: 600;
    }

    .stanice-info__cta-btn {
        padding: 16px 36px;
        font-size: 16px;
    }

    .stanice-info__cta-btn svg {
        width: 20px;
        height: 20px;
    }

    .stanice-info__layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* Detaily a meta rozdělit pomocí display: contents */
    .stanice-info__details,
    .stanice-info__meta {
        display: contents;
    }

    /* 1. Nadpis */
    .stanice-info__name {
        font-size: 33px;
        order: 1;
        margin-top: 0;
        margin-bottom: 6px;
        gap: 12px;
    }

    .stanice-info__gender {
        width: 32px;
        height: 32px;
    }

    .stanice-info__gender svg {
        width: 32px;
        height: 32px;
    }

    .details-table__verified {
        width: 20px;
        height: 20px;
    }

    .details-table__verified svg {
        width: 20px;
        height: 20px;
    }

    /* Vlajka v detailní tabulce - DESKTOP */
    .details-table__flag {
        width: 20px;
        height: 15px;
        margin-right: 8px;
    }

    /* Reset margin-top pro nadpis na desktopu */
    .page-detail-pes .stanice-info__name {
        margin-top: 0;
    }

    /* 2. Název stanice */
    .stanice-info__station {
        font-size: 20px;
        font-weight: 400;
        color: #666;
        margin: 0 0 8px 0;
        order: 2;
    }

    /* 3. Hvězdičky */
    .stanice-info__rating {
        margin-top: 0;
        margin-bottom: 16px;
        order: 3;
    }

    /* 4. Podtitul */
    .stanice-info__subtitle {
        font-size: 17px;
        margin-top: 2px;
        order: 4;
    }

    /* 5. Lokalita */
    .stanice-info__location {
        order: 5;
    }

    /* 6. Tabulka s detaily */
    .stanice-info__details-table {
        order: 6;
    }

    /* 7. Fotka přes celou šířku */
    .stanice-info__photo-wrapper {
        order: 7;
        width: 100%;
        max-width: none;
    }

    .stanice-info__photo {
        aspect-ratio: 16 / 9;
    }

    /* Fotogalerie - DESKTOP */
    .photo-gallery__image {
        aspect-ratio: 16 / 9;
    }

    .photo-gallery__arrow {
        width: 48px;
        height: 48px;
    }

    .photo-gallery__arrow svg {
        width: 26px;
        height: 26px;
    }

    .photo-gallery__arrow--prev {
        left: 16px;
    }

    .photo-gallery__arrow--next {
        right: 16px;
    }

    /* Puntíky na fotce - desktop */
    .photo-gallery__dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        gap: 12px;
        padding: 0;
    }

    .photo-gallery__dot {
        width: 12px;
        height: 12px;
    }

    .photo-gallery__dot--active {
        width: 32px;
        height: 12px;
    }

    /* 8. CTA banner - kontaktovat chovatele */
    .stanice-info__cta {
        order: 8;
    }

    /* 9. Odznaky */
    .stanice-info__badges {
        order: 9;
    }

    .stanice-info__location {
        font-size: 16px;
    }

    .stanice-info__location-icon {
        width: 20px;
        height: 20px;
    }

    .stanice-info__flag {
        width: 22px;
    }

    .stanice-info__badge {
        padding: 7px 14px;
        font-size: 13px;
        letter-spacing: 0.4px;
    }

    .o-nas {
        margin-top: 120px;
        padding: 0;
    }

    .o-nas__title {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .o-nas__content {
        gap: 14px;
    }

    .o-nas__text {
        font-size: 17px;
        line-height: 1.8;
    }

    /* Zdravotní testy - DESKTOP */
    .zdravotni-testy__subtitle {
        font-size: 20px;
        margin-top: 32px;
    }

    .zdravotni-testy .zdravotni-testy__info {
        font-size: 14px;
        margin: -26px 0 24px 0 !important;
    }

    .zdravotni-testy__tooltip-icon {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    .zdravotni-testy__tooltip-text {
        width: 280px;
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ========================================
   TABULKA S DETAILY STANICE
   ======================================== */

/* MOBIL - základní styly */
.stanice-info__details-table {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.details-table__row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.details-table__row:last-child {
    border-bottom: none;
}

/* Různé pořadí pro mobil - logičtější uspořádání */
.details-table__row:nth-child(1) { order: 1; }  /* Plemeno */
.details-table__row:nth-child(2) { order: 4; }  /* Datum narození */
.details-table__row:nth-child(3) { order: 8; }  /* Čip */
.details-table__row:nth-child(4) { order: 9; }  /* Číslo zápisu */
.details-table__row:nth-child(5) { order: 10; } /* Chovatel */
.details-table__row:nth-child(6) { order: 11; } /* Majitel */
.details-table__row:nth-child(7) { order: 2; }  /* Pohlaví */
.details-table__row:nth-child(8) { order: 5; }  /* Výška/váha */
.details-table__row:nth-child(9) { order: 7; }  /* Chrup/skus */
.details-table__row:nth-child(10) { order: 3; } /* Barva */
.details-table__row:nth-child(11) { order: 6; } /* Srst */

/* Střídání barev podle vizuálního pořadí (order) v mobilu */
/* Liché vizuální pozice (1, 3, 5, 7, 9, 11) = šedá */
.details-table__row:nth-child(1) { background-color: #ffffff; }   /* order: 1 - Plemeno */
.details-table__row:nth-child(7) { background-color: #ffffff; }   /* order: 2 - Pohlaví */
.details-table__row:nth-child(10) { background-color: #ffffff; }  /* order: 3 - Barva */
.details-table__row:nth-child(2) { background-color: #ffffff; }   /* order: 4 - Datum narození */
.details-table__row:nth-child(8) { background-color: #ffffff; }   /* order: 5 - Výška/váha */
.details-table__row:nth-child(11) { background-color: #ffffff; }  /* order: 6 - Srst */
.details-table__row:nth-child(9) { background-color: #ffffff; }   /* order: 7 - Chrup/skus */
.details-table__row:nth-child(3) { background-color: #ffffff; }   /* order: 8 - Čip */
.details-table__row:nth-child(4) { background-color: #ffffff; }   /* order: 9 - Číslo zápisu */
.details-table__row:nth-child(5) { background-color: #ffffff; }   /* order: 10 - Chovatel */
.details-table__row:nth-child(6) { background-color: #ffffff; }   /* order: 11 - Majitel */

/* Border mezi Srst (order: 6) a Chrup/skus (order: 7) - v mobilu mezi logickými sekcemi */
.details-table__row:nth-child(11) { border-bottom: 1px solid #e0e0e0; }  /* Srst má border */

.details-table__icon {
    display: none;
}

.details-table__content {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.details-table__label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    width: 110px;
    flex-shrink: 0;
}

.details-table__value {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    font-weight: 400;
    flex: 1;
}

/* Pro ostatní tabulky zůstávají skryté */
.details-table__date,
.details-table__vet,
.details-table__file {
    display: none;
}

/* ========================================
   ZDRAVOTNÍ TESTY - MOBIL/TABLET SCROLLOVATELNÁ TABULKA
   ======================================== */

/* Wrapper pro horizontální scroll - MOBIL */
.zdravotni-testy .stanice-info__details-table {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0;
    margin-top: 12px;
    display: block;
    width: 100%;
    position: relative;
}

/* Gradient indikátor pro scroll vpravo - VYPNUTO (způsobovalo problémy se sticky sloupcem) */
.zdravotni-testy .stanice-info__details-table::after {
    display: none;
}

/* Řádky jako grid pro zarovnané sloupce */
.zdravotni-testy .details-table__row {
    display: grid;
    grid-template-columns: max-content 150px 110px 150px 80px;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    background: white;
    padding: 0;
    min-width: 100%;
    width: max-content;
}

.zdravotni-testy .details-table__row:hover {
    background: #f9f9f9;
}

.zdravotni-testy .details-table__row:last-child {
    border-bottom: none;
}

/* Content wrapper */
.zdravotni-testy .details-table__content {
    display: contents;
}

/* STICKY PRVNÍ SLOUPEC - Název testu - MOBIL */
/* Šířka se nastaví podle obsahu, všechny labels v tabulce budou stejně široké */
.zdravotni-testy .details-table__label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    position: sticky;
    left: 0;
    z-index: 10;
    background: white;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 6px 8px;
    white-space: nowrap;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

/* Skrýt otazníky u názvů testů v tabulce - MOBIL */
.zdravotni-testy .details-table__label .zdravotni-testy__tooltip {
    display: none;
}

.zdravotni-testy .details-table__row:hover .details-table__label {
    background: #f9f9f9;
}

/* Ostatní sloupce - scrollují */
.zdravotni-testy .details-table__value {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

.zdravotni-testy .details-table__date {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.zdravotni-testy .details-table__vet {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    white-space: nowrap;
}

.zdravotni-testy .details-table__file {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    white-space: nowrap;
}

.details-table__file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8b5cf6;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.details-table__file-link:hover {
    color: #7c3aed;
}

.details-table__file-icon {
    width: 14px;
    height: 14px;
}

/* TABLET (768px+) - stejné jako mobil */
@media (min-width: 768px) {
    .stanice-info__details-table {
        display: flex;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        margin-top: 0;
    }

    .details-table__row {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 10px 16px;
    }

    /* Zachovat mobilní pořadí i v tabletu */
    .details-table__row:nth-child(1) { order: 1; }
    .details-table__row:nth-child(2) { order: 4; }
    .details-table__row:nth-child(3) { order: 8; }
    .details-table__row:nth-child(4) { order: 9; }
    .details-table__row:nth-child(5) { order: 10; }
    .details-table__row:nth-child(6) { order: 11; }
    .details-table__row:nth-child(7) { order: 2; }
    .details-table__row:nth-child(8) { order: 5; }
    .details-table__row:nth-child(9) { order: 7; }
    .details-table__row:nth-child(10) { order: 3; }
    .details-table__row:nth-child(11) { order: 6; }

    /* Zachovat mobilní barvy i v tabletu */
    .details-table__row:nth-child(1) { background-color: #ffffff; }
    .details-table__row:nth-child(7) { background-color: #ffffff; }
    .details-table__row:nth-child(10) { background-color: #ffffff; }
    .details-table__row:nth-child(2) { background-color: #ffffff; }
    .details-table__row:nth-child(8) { background-color: #ffffff; }
    .details-table__row:nth-child(11) { background-color: #ffffff; }
    .details-table__row:nth-child(9) { background-color: #ffffff; }
    .details-table__row:nth-child(3) { background-color: #ffffff; }
    .details-table__row:nth-child(4) { background-color: #ffffff; }
    .details-table__row:nth-child(5) { background-color: #ffffff; }
    .details-table__row:nth-child(6) { background-color: #ffffff; }

    .details-table__row:last-child {
        border-bottom: none;
    }

    .details-table__icon {
        display: none;
    }

    .details-table__content {
        flex-direction: row;
        align-items: center;
        gap: 0;
        flex: 1;
    }

    .details-table__label {
        font-size: 14px;
        width: 180px;
        flex-shrink: 0;
        margin-bottom: 0;
        padding-right: 20px;
        color: #1a1a1a;
        font-weight: 600;
    }

    .details-table__value {
        font-size: 14px;
        flex: 1;
        line-height: 1.5;
    }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .stanice-info__details-table {
        border-top: none;
        border-bottom: none;
        order: 5;
        /* Dvousloupcový layout */
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(6, auto);
        grid-auto-flow: column;
        column-gap: 40px;
        row-gap: 0;
    }

    /* Reset order pro desktop - použít HTML pořadí */
    .details-table__row:nth-child(1) { order: 0; }
    .details-table__row:nth-child(2) { order: 0; }
    .details-table__row:nth-child(3) { order: 0; }
    .details-table__row:nth-child(4) { order: 0; }
    .details-table__row:nth-child(5) { order: 0; }
    .details-table__row:nth-child(6) { order: 0; }
    .details-table__row:nth-child(7) { order: 0; }
    .details-table__row:nth-child(8) { order: 0; }
    .details-table__row:nth-child(9) { order: 0; }
    .details-table__row:nth-child(10) { order: 0; }
    .details-table__row:nth-child(11) { order: 0; }

    .details-table__row {
        padding: 6px 20px;
    }

    /* Reset barev pro desktop - střídání podle HTML pořadí */
    .details-table__row:nth-child(odd) {
        background-color: #ffffff;
    }

    .details-table__row:nth-child(even) {
        background-color: #ffffff;
    }

    /* Odstranit border pod posledním řádkem prvního sloupce (6. řádek = Majitel) */
    .details-table__row:nth-child(6) {
        border-bottom: none;
    }

    /* Zachovat border pod posledním řádkem druhého sloupce (11. řádek = Srst) */
    .details-table__row:nth-child(11) {
        border-bottom: 1px solid #e0e0e0;
    }

    .details-table__label {
        font-size: 15px;
        width: 200px;
        font-weight: 600;
    }

    .details-table__value {
        font-size: 15px;
    }

    .details-table__link {
        color: #8b5cf6;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .details-table__link:hover {
        color: #7c3aed;
        text-decoration: underline;
    }

    /* Zdravotní testy - DESKTOP rozšířená tabulka */
    .zdravotni-testy .stanice-info__details-table {
        display: flex;
        flex-direction: column;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        /* Reset mobile/tablet scroll */
        overflow-x: visible;
        border-radius: 0;
    }

    /* Skrýt gradient na desktopu */
    .zdravotni-testy .stanice-info__details-table::after {
        display: none;
    }

    .zdravotni-testy .details-table__row {
        display: grid;
        grid-template-columns: 200px 150px 120px 200px 80px;
        gap: 16px;
        align-items: center;
        padding: 12px 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    .zdravotni-testy .details-table__row:last-child {
        border-bottom: none;
    }

    .zdravotni-testy .details-table__content {
        display: contents;
    }

    .zdravotni-testy .details-table__label {
        width: auto;
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        /* Reset mobile/tablet sticky */
        position: static;
        box-shadow: none;
        background: transparent;
        min-width: auto;
        max-width: none;
        padding: 0;
        /* Reset mobile alignment - na desktopu doleva */
        justify-content: flex-start;
    }

    /* Reset hover efektu na label - desktop nemá pozadí */
    .zdravotni-testy .details-table__row:hover .details-table__label {
        background: transparent;
    }

    .zdravotni-testy .details-table__value {
        font-size: 14px;
        font-weight: 500;
        color: #059669;
        /* Reset mobile/tablet scroll widths */
        min-width: auto;
        padding: 0;
    }

    .zdravotni-testy .details-table__date,
    .zdravotni-testy .details-table__vet,
    .zdravotni-testy .details-table__file {
        display: block;
        font-size: 13px;
        color: #666;
        /* Reset mobile/tablet scroll widths */
        min-width: auto;
        padding: 0;
    }

    .zdravotni-testy .details-table__date {
        font-weight: 500;
    }

    .zdravotni-testy .details-table__vet {
        font-weight: 400;
    }

    .zdravotni-testy .details-table__file-link {
        font-size: 13px;
        gap: 6px;
    }

    .zdravotni-testy .details-table__file-icon {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   CHOVNÍ PSI - Stránka s přehledem chovných psů a fen
   MOBILE FIRST - základní styly pro mobil
   ======================================== */

/* ========================================
   HLAVNÍ SEKCE CHOVNÍ PSI - MOBIL
   ======================================== */

.chovni-psi {
    margin-top: 8px;
    padding: 0 4px;
}

.chovni-psi__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

/* ========================================
   SEKCE PRO KAŽDÉ PLEMENO - MOBIL
   ======================================== */

.chovni-psi__breed {
    margin-bottom: 40px;
}

.chovni-psi__breed:last-child {
    margin-bottom: 0;
}

.chovni-psi__breed-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding: 14px 16px;
    background-color: #f0ebf8;
    border-left: 5px solid #8b5cf6;
}

/* ========================================
   SEKCE PSI / FENY - MOBIL
   ======================================== */

.chovni-psi__section {
    margin-bottom: 32px;
}

.chovni-psi__section:last-child {
    margin-bottom: 0;
}

.chovni-psi__section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

/* ========================================
   GRID S KARTAMI - MOBIL (horizontální scroll)
   ======================================== */

.chovni-psi__grid {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
    padding-bottom: 8px;
    /* Skrýt scrollbar na Webkit prohlížečích */
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.chovni-psi__grid::-webkit-scrollbar {
    height: 6px;
}

.chovni-psi__grid::-webkit-scrollbar-track {
    background: transparent;
}

.chovni-psi__grid::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 3px;
}

.chovni-psi__grid::-webkit-scrollbar-thumb:hover {
    background-color: #b0b0b0;
}

/* ========================================
   KARTA PSA/FENY - MOBIL
   ======================================== */

.dog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Širší karty na mobilu pro datum narození + úmrtí */
    width: calc(70% - 6px);
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.dog-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.dog-card__image-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.dog-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.dog-card:hover .dog-card__image {
    transform: scale(1.05);
}

.dog-card__content {
    padding: 10px 10px 10px 8px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dog-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.dog-card__gender-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transform: translateY(2px);
}

.dog-card__gender-icon svg {
    width: 18px;
    height: 18px;
}

.dog-card__gender-icon--male {
    color: #64b5f6;
}

.dog-card__gender-icon--female {
    color: #f48fb1;
}

.dog-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    /* Zkrátit dlouhá jména s třemi tečkami */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.dog-card__info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    flex-grow: 1;
}

/* ========================================
   DATUM NAROZENÍ - MOBIL
   ======================================== */

.dog-card__birth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    width: fit-content;
}

.dog-card__birth-icon {
    width: 16px;
    height: 16px;
    fill: #999;
    transform: translateY(-2px);
}

/* ========================================
   DATUM ÚMRTÍ - MOBIL
   ======================================== */

.dog-card__death {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    width: fit-content;
}

.dog-card__death-icon {
    font-size: 16px;
    color: #999;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-2px);
}

/* ========================================
   TLAČÍTKO NA KARTĚ - MOBIL
   ======================================== */

.dog-card__button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dog-card__button:hover,
.dog-card__button:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========================================
   ZESNULÝ PES - MOBIL
   ======================================== */

.dog-card--deceased .dog-card__image {
    filter: grayscale(100%) sepia(20%) brightness(0.92) contrast(1.1);
    position: relative;
}

/* Jemný tmavý overlay pro důstojný vzhled */
.dog-card--deceased .dog-card__image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Štítky na zesnulých kartách - zachovat plné barvy a bílé písmo */
.dog-card--deceased .dog-card__badge {
    opacity: 1 !important;
    filter: none !important;
    color: #ffffff !important;
}

.dog-card--deceased .dog-card__button {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.dog-card--deceased .dog-card__button:hover,
.dog-card--deceased .dog-card__button:active {
    background: linear-gradient(135deg, #525e73 0%, #3b4557 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONZIVITA - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .chovni-psi {
        margin-top: 12px;
        padding: 0;
    }

    .chovni-psi__title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .chovni-psi__breed {
        margin-bottom: 48px;
    }

    .chovni-psi__breed-title {
        font-size: 23px;
        margin-bottom: 24px;
        padding: 16px 20px;
    }

    .chovni-psi__section {
        margin-bottom: 36px;
    }

    .chovni-psi__section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* Grid na tabletu: horizontální scroll s většími kartami */
    .chovni-psi__grid {
        gap: 16px;
    }

    .dog-card {
        min-width: 320px;
    }

    .dog-card__image-wrapper {
        height: 220px;
    }

    .dog-card__content {
        padding: 20px;
    }

    .dog-card__gender-icon,
    .dog-card__gender-icon svg {
        width: 20px;
        height: 20px;
    }

    .dog-card__name {
        font-size: 17px;
    }

    .dog-card__info {
        gap: 10px;
        margin-bottom: 18px;
    }

    .dog-card__birth {
        font-size: 14px;
    }

    .dog-card__birth-icon {
        width: 17px;
        height: 17px;
    }

    .dog-card__button {
        padding: 13px 22px;
        font-size: 15px;
    }
}

/* ========================================
   RESPONZIVITA - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .chovni-psi {
        margin-top: 16px;
    }

    .chovni-psi__title {
        font-size: 27px;
        margin-bottom: 32px;
    }

    .chovni-psi__breed {
        margin-bottom: 56px;
    }

    .chovni-psi__breed-title {
        font-size: 27px;
        margin-bottom: 28px;
        padding: 18px 24px;
    }

    .chovni-psi__section {
        margin-bottom: 40px;
    }

    .chovni-psi__section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    /* Grid na desktopu: 3 karty vedle sebe (bez horizontálního scrollu) */
    .chovni-psi__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
        align-items: start;
    }

    .dog-card {
        min-width: auto;
        max-width: none;
        width: 100%;
        flex-shrink: 1;
        scroll-snap-align: none;
        height: auto;
    }

    .dog-card__image-wrapper {
        height: 260px;
    }

    .dog-card__content {
        padding: 24px;
    }

    .dog-card__gender-icon,
    .dog-card__gender-icon svg {
        width: 22px;
        height: 22px;
    }

    .dog-card__name {
        font-size: 18px;
    }

    .dog-card__info {
        gap: 12px;
        margin-bottom: 20px;
    }

    .dog-card__birth {
        font-size: 14px;
    }

    .dog-card__birth-icon {
        width: 18px;
        height: 18px;
    }

    .dog-card__death-icon {
        font-size: 20px;
        transform: translateY(-1px);
    }

    .dog-card__button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ========================================
   RESPONZIVITA - VELKÉ DISPLEJE (1400px+)
   ======================================== */

@media (min-width: 1400px) {
    /* Grid na velkých displejích: stále 3 karty, ale s větším gap */
    .chovni-psi__grid {
        gap: 28px;
    }
}

/* ========================================
   ŠTÍTKY NA KARTÁCH PSŮ - MOBIL
   ======================================== */

.dog-card__badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-wrap: wrap;
    max-width: calc(100% - 16px);
    z-index: 10;
}

.dog-card__badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff !important;
    white-space: nowrap;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: none !important;
}

/* ========================================
   KVALITA ŠTÍTKY
   ======================================== */

.dog-card__badge--chovny,
.dog-card__badge--chovna {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

.dog-card__badge--nadeje {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
}

.dog-card__badge--mazlik,
.dog-card__badge--mazlicek {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
}

/* ========================================
   DOSTUPNOST PRO KRYTÍ (PSI)
   ======================================== */

.dog-card__badge--verejne-dostupny {
    background-color: #2196F3;  /* jasná modrá */
    color: #ffffff;
}

.dog-card__badge--kryje-omezeně {
    background-color: #9C27B0;  /* jasná fialová */
    color: #ffffff;
}

.dog-card__badge--docasne-nedostupny {
    background-color: #757575;  /* tmavší šedá */
    color: #ffffff;
}

/* ========================================
   BIOLOGICKÝ STATUS (FENY)
   ======================================== */

.dog-card__badge--v-planu {
    background-color: #00BCD4;  /* jasná tyrkysová */
    color: #ffffff;
}

.dog-card__badge--nakryta {
    background-color: #FF5722;  /* jasná červeno-oranžová */
    color: #ffffff;
}

.dog-card__badge--ma-stenata {
    background-color: #E91E63;  /* jasná růžová */
    color: #ffffff;
}

.dog-card__badge--v-odpocinku {
    background-color: #009688;  /* jasná teal */
    color: #ffffff;
}

/* ========================================
   KARIÉRA
   ======================================== */

.dog-card__badge--v-penzi {
    background-color: #FF6F00;  /* jasná tmavší oranžová */
    color: #ffffff;
}

.dog-card__badge--na-prodej {
    background-color: #F44336;  /* jasná červená */
    color: #ffffff;
}

.dog-card__badge--spoluvlastnictvi {
    background-color: #00ACC1;  /* jasná cyan */
    color: #ffffff;
}

/* ========================================
   MEMORIAL
   ======================================== */

.dog-card__badge--in-memoriam {
    background-color: #9E9E9E !important;
    color: #fff !important;
    text-shadow: none !important;
}

.dog-card__badge.dog-card__badge--in-memoriam {
    color: #fff !important;
}

.dog-card__badge--zakladatel {
    background-color: #FFC107 !important;
    color: #fff !important;
    font-weight: 700;
    text-shadow: none !important;
}

.dog-card__badge.dog-card__badge--zakladatel {
    color: #fff !important;
}

/* ========================================
   RESPONZIVITA ŠTÍTKŮ - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .dog-card__badges {
        bottom: 12px;
        left: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        max-width: calc(100% - 24px);
    }

    /* Zachovat stejné velikosti jako na mobilu a homepage */
    .dog-card__badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ========================================
   RESPONZIVITA ŠTÍTKŮ - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .dog-card__badges {
        bottom: 16px;
        left: 16px;
        gap: 6px;
        max-width: calc(100% - 32px);
    }

    /* Zachovat stejné velikosti jako na mobilu a homepage */
    .dog-card__badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ========================================
   ZDRAVOTNÍ TERMÍNY S VYSVĚTLENÍM
   - Fialově s malým "i" v horním rohu
   - Tooltip se zobrazí při najetí myší
   ======================================== */

/* Termín, který má vysvětlení - fialově */
.health-term {
    /* MOBILE FIRST - základní hodnoty pro mobil */
    position: relative;
    display: inline;
    font-weight: inherit;
    color: #667eea;
    cursor: pointer; /* Mobil používá klikání, ne hover */
    text-decoration: none;
    transition: color 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: rgba(139, 92, 246, 0.1);
}

.health-term:hover {
    color: #5568d3;
}

/* Tučně pouze v labelu (prvním sloupci) */
.details-table__label .health-term {
    font-weight: 700;
}

/* V nadpisech také tučně */
.zdravotni-testy__subtitle .health-term {
    font-weight: 700;
}

/* Tučně také ve výstavách */
.vystavy__titles .health-term {
    font-weight: 700;
}

/* Malé "i" v horním indexu (kurzívou v Times New Roman, tučně) */
.health-term::after {
    content: 'i';
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.7em;
    font-weight: 600;
    font-style: italic;
    vertical-align: super;
    margin-left: 2px;
    color: #667eea;
}

.health-term:hover::after {
    color: #5568d3;
}

/* "i" ve výstavních štítcích */
.vystavy__badge .health-term::after,
.vystavy__image-badge .health-term::after {
    content: 'i';
}

/* Tooltip - bublina s vysvětlením */
.health-term__tooltip {
    /* MOBILE FIRST - základní hodnoty pro mobil */
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    transform: none;
    padding: 8px 12px;
    background-color: #1a1a1a;
    color: white;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 6px;
    white-space: normal;
    width: 200px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

/* Šipka tooltipa */
.health-term__tooltip::after {
    /* MOBILE FIRST - základní hodnoty pro mobil */
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    transform: none;
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

/* Zobrazení při hoveru */
.health-term:hover .health-term__tooltip {
    opacity: 1;
    visibility: visible;
}

/* MOBILE FIRST - Tooltips ovládané JavaScriptem (hover nefunguje na touch) */
/* Vypnout NEaktivní hover tooltips v tabulce */
.zdravotni-testy .health-term:not(.health-term--active) .health-term__tooltip,
.dog-detail-panel .health-term:not(.health-term--active) .health-term__tooltip {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Vypnout hover overlay efekty */
.zdravotni-testy .health-term:hover::before,
.dog-detail-panel .health-term:hover::before {
    display: none;
}

/* AKTIVNÍ tooltip - zobrazí se JavaScriptem při kliknutí */
.zdravotni-testy .health-term--active .health-term__tooltip,
.dog-detail-panel .health-term--active .health-term__tooltip {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: fixed !important;
    top: var(--tooltip-top, 50%) !important;
    left: 50% !important;
    transform: translate(-50%, -100%) translateY(-12px) !important;
    bottom: auto !important;
    right: auto !important;
    width: 85% !important;
    max-width: 350px !important;
    height: auto !important;
    min-height: auto !important;
    padding: 14px 16px !important;
    background-color: #1a1a1a !important;
    color: white !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    border-radius: 8px !important;
    z-index: 99999 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    pointer-events: auto !important;
}

/* Skrýt šipku u fixed tooltipů */
.zdravotni-testy .health-term--active .health-term__tooltip::after,
.dog-detail-panel .health-term--active .health-term__tooltip::after {
    display: none !important;
}

/* TOUCH ZAŘÍZENÍ - VYPNOUT tooltips v tabulce (způsobují problémy s touchem) */
/* Detekce touch zařízení pomocí media query - MOBILE FIRST */
@media (hover: none) {
    /* Vypnout všechny NEaktivní tooltips v tabulce zdravotních testů POUZE na touch zařízeních */
    .zdravotni-testy .health-term:not(.health-term--active) .health-term__tooltip {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Vypnout hover efekty v tabulce na touch zařízeních */
    .zdravotni-testy .health-term:hover::before {
        display: none;
    }
}


/* TABLET (768px+) - větší tooltips */
@media (min-width: 768px) {
    .zdravotni-testy .health-term--active .health-term__tooltip,
    .dog-detail-panel .health-term--active .health-term__tooltip {
        width: 70% !important;
        max-width: 450px !important;
        font-size: 14px !important;
        padding: 16px 18px !important;
    }

    .health-term__tooltip {
        width: 280px;
        font-size: 13px;
        padding: 11px 15px;
    }
}

/* Overlay odstraněn - není potřeba */

/* DESKTOP (1024px+) - Tooltips normálně */
@media (min-width: 1024px) {
    /* Desktop používá hover místo klikání */
    .health-term {
        cursor: help;
        user-select: auto;
        -webkit-tap-highlight-color: transparent;
    }

    /* Obecné tooltips - desktop styly */
    .health-term__tooltip {
        width: 320px;
        font-size: 14px;
        padding: 12px 16px;
        left: 50%;
        transform: translateX(-50%);
    }

    .health-term__tooltip::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Povolit zobrazení tooltipů v tabulce na hover */
    .zdravotni-testy .health-term:not(.health-term--active) .health-term__tooltip,
    .dog-detail-panel .health-term:not(.health-term--active) .health-term__tooltip {
        display: block;
        opacity: 0;
        visibility: hidden;
    }

    .zdravotni-testy .health-term:hover::before,
    .dog-detail-panel .health-term:hover::before {
        display: block;
    }

    /* Resetovat aktivní tooltip styly pro desktop (používá normální hover) */
    .zdravotni-testy .health-term--active .health-term__tooltip,
    .dog-detail-panel .health-term--active .health-term__tooltip {
        position: absolute !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: calc(100% + 8px) !important;
        right: auto !important;
        width: 320px !important;
        max-width: none !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .zdravotni-testy .health-term--active .health-term__tooltip::after,
    .dog-detail-panel .health-term--active .health-term__tooltip::after {
        display: block !important;
    }

    /* Tooltips v panelu detailů - menší, jednoduše zarovnaný */
    .dog-detail-panel .health-term__tooltip {
        width: 180px;
        font-size: 11px;
        padding: 8px 11px;
        /* Tooltip vlevo zarovnaný od elementu */
        left: 0;
        right: auto;
        transform: translateX(-10px);
    }

    /* Tooltip šipka - u levého okraje */
    .dog-detail-panel .health-term__tooltip::after {
        left: 25px;
        transform: none;
    }

    /* Pro hodnoty vpravo - tooltip napravo */
    .dog-detail-panel .dog-detail-row__value .health-term__tooltip {
        left: auto;
        right: 0;
        transform: translateX(10px);
    }

    .dog-detail-panel .dog-detail-row__value .health-term__tooltip::after {
        left: auto;
        right: 25px;
    }

    /* Pro badge - tooltip zarovnaný vlevo, aby nikdy nepřetékal */
    .dog-detail-panel .dog-detail-badge .health-term__tooltip {
        left: 0;
        right: auto;
        transform: translateX(0);
    }

    .dog-detail-panel .dog-detail-badge .health-term__tooltip::after {
        left: 25px;
        right: auto;
        transform: none;
    }
}

/* ========================================
   VÝSTAVY A TITULY - MOBILE FIRST
   ======================================== */

/* Sekce výstavy */
.vystavy {
    margin-bottom: 40px;
}

/* Štítky nejvyšších titulů */
.vystavy__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vystavy__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vystavy__badge--gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #5a3e00;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.vystavy__badge--silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #999999 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.vystavy__badge--bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

/* Container pro slider/grid */
.vystavy__container {
    position: relative;
    margin-top: 20px;
}

/* Scroll hint - nápověda pro mobil */
.vystavy__scroll-hint {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

/* Slider - horizontální scroll na mobilu */
.vystavy__slider {
    position: relative;
    padding-bottom: 16px;
    padding-top: 60px;
    margin-top: -60px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* Skrýt scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vystavy__slider::-webkit-scrollbar {
    display: none;
}

/* Karta výstavy */
.vystavy__card {
    flex: 0 0 85%;
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Aktivní karta - už není potřeba pro scroll verzi */
.vystavy__card--active {
    /* Ponechá se pro zpětnou kompatibilitu, ale nemá efekt */
}

.vystavy__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Obrázek karty */
.vystavy__card-image {
    width: 100%;
    height: 180px;
    overflow: visible;
    background: #f0f0f0;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.vystavy__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

/* Štítky s tituly na fotce */
.vystavy__image-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap-reverse;
    flex-direction: row;
    align-content: flex-end;
    gap: 4px;
    z-index: 2;
}

.vystavy__image-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    background-color: rgba(255, 255, 255, 0.95);
    color: #667eea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: help;
    transition: all 0.2s ease;
}

.vystavy__image-badge:hover {
    background-color: #667eea;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
    z-index: 10001;
}

.vystavy__image-badge:hover::after {
    color: #ffffff;
}

/* Ikonka "i" za textem */
.vystavy__image-badge::after {
    content: 'i';
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.7em;
    font-weight: 600;
    font-style: italic;
    vertical-align: super;
    margin-left: 2px;
    text-transform: none;
}

/* Tooltip pro štítek na fotce - výchozí (mobile first - blízko štítku) */
.vystavy__image-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    max-width: 300px;
    min-width: 200px;
    padding: 8px 12px;
    background-color: #1a1a1a;
    color: white;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10000;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
}

/* Šipka tooltip - výchozí */
.vystavy__image-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}

/* Zobrazení při hoveru */
.vystavy__image-badge:hover .vystavy__image-badge-tooltip {
    opacity: 1;
    visibility: visible;
}

/* VARIANTA: Štítek VLEVO - bublina se vylije DOPRAVA */
.vystavy__image-badge--left .vystavy__image-badge-tooltip {
    left: 0;
    right: auto;
    transform: translateX(0);
}

.vystavy__image-badge--left .vystavy__image-badge-tooltip::after {
    left: 10px;
    right: auto;
}

/* VARIANTA: Štítek UPROSTŘED - bublina se vylije NA OBĚ STRANY */
.vystavy__image-badge--center .vystavy__image-badge-tooltip {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.vystavy__image-badge--center .vystavy__image-badge-tooltip::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* VARIANTA: Štítek VPRAVO - bublina se vylije DOLEVA */
.vystavy__image-badge--right .vystavy__image-badge-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.vystavy__image-badge--right .vystavy__image-badge-tooltip::after {
    left: auto;
    right: 12px;
}

/* Obsah karty */
.vystavy__card-content {
    padding: 16px;
}

/* Tituly s tooltip */
.vystavy__titles {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
    min-height: 40px;
}

/* Název výstavy */
.vystavy__card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

/* Typ výstavy */
.vystavy__card-type {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

/* Datum */
.vystavy__card-date {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

/* Detaily (třída, rozhodčí) */
.vystavy__card-details {
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.vystavy__card-class,
.vystavy__card-judge,
.vystavy__card-posudek {
    font-size: 12px;
    color: #555;
    margin: 4px 0;
    line-height: 1.4;
}

/* Mini fotogalerie z výstavy - MOBIL */
.vystavy__photos {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.vystavy__photos-list {
    display: flex;
    gap: 6px;
    align-items: center;
}

.vystavy__photo-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.vystavy__photo-thumb:hover,
.vystavy__photo-thumb:active {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.vystavy__photo-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #667eea;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vystavy__photo-more:hover,
.vystavy__photo-more:active {
    background-color: #667eea;
    color: #ffffff;
    transform: scale(1.05);
}

/* Řádek s posudkovým listem - MOBIL */
.vystavy__card-posudek {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vystavy__posudek-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0;
}

.vystavy__posudek-icon:hover,
.vystavy__posudek-icon:active {
    background-color: #667eea;
    border-color: #667eea;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.vystavy__posudek-icon svg {
    width: 16px;
    height: 16px;
}

/* Šipky pro navigaci - pouze na mobilu */
.vystavy__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vystavy__arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vystavy__arrow--prev {
    left: -12px;
}

.vystavy__arrow--next {
    right: -12px;
}

.vystavy__arrow svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* Indikátory (tečky) - pouze na mobilu */
.vystavy__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.vystavy__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.vystavy__dot--active {
    background: #667eea;
    width: 24px;
    border-radius: 4px;
}

.vystavy__dot:hover {
    background: #667eea;
}

/* ========================================
   TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .vystavy__badges {
        gap: 12px;
        margin-bottom: 24px;
    }

    .vystavy__badge {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Větší mezera pro tooltip na tabletu/PC (kvůli více řádkům štítků) */
    .vystavy__image-badge-tooltip {
        bottom: calc(100% + 40px);
    }

    /* Na tabletu stále slider, ale větší karty */
    .vystavy__card {
        flex: 0 0 320px;
    }

    .vystavy__card-image {
        height: 180px;
    }

    .vystavy__card-content {
        padding: 20px;
    }

    .vystavy__titles {
        font-size: 14px;
    }

    .vystavy__card-title {
        font-size: 18px;
    }

    .vystavy__card-type {
        font-size: 13px;
    }

    .vystavy__card-date {
        font-size: 14px;
    }

    .vystavy__card-class,
    .vystavy__card-judge,
    .vystavy__card-posudek {
        font-size: 13px;
    }

    /* Mini fotogalerie - TABLET */
    .vystavy__photo-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }

    .vystavy__photo-more {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        font-size: 14px;
    }

    /* Ikona posudku - TABLET */
    .vystavy__posudek-icon {
        width: 32px;
        height: 32px;
    }

    .vystavy__posudek-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    /* Skrýt scroll hint, šipky a tečky na desktopu */
    .vystavy__scroll-hint,
    .vystavy__arrow,
    .vystavy__dots {
        display: none;
    }

    /* Grid layout místo slideru */
    .vystavy__slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        overflow: visible;
        padding-bottom: 0;
        padding-top: 60px;
        margin-top: -60px;
    }

    .vystavy__card {
        flex: none;
    }

    .vystavy__card-image {
        height: 180px;
    }

    .vystavy__card-content {
        padding: 12px;
    }

    .vystavy__badge {
        padding: 12px 24px;
        font-size: 14px;
    }

    .vystavy__image-badges {
        bottom: 10px;
        left: 10px;
        right: 10px;
        gap: 6px;
    }

    .vystavy__image-badge {
        padding: 5px 10px;
        font-size: 12px;
    }

    .vystavy__image-badge-tooltip {
        font-size: 12px;
        padding: 10px 14px;
        bottom: calc(100% + 8px);
        max-width: 400px;
        min-width: 250px;
    }

    /* Mini fotogalerie - DESKTOP */
    .vystavy__photos {
        margin-top: 18px;
        padding-top: 14px;
    }

    .vystavy__photo-thumb {
        width: 70px;
        height: 70px;
    }

    .vystavy__photo-more {
        width: 70px;
        height: 70px;
        font-size: 15px;
    }

    /* Ikona posudku - DESKTOP */
    .vystavy__posudek-icon {
        width: 36px;
        height: 36px;
    }

    .vystavy__posudek-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   LARGE DESKTOP (1400px+)
   ======================================== */

@media (min-width: 1400px) {
    .vystavy__slider {
        gap: 16px;
    }

    .vystavy__card-image {
        height: 180px;
    }
}

/* ========================================
   LIGHTBOX PRO FOTKY Z VÝSTAV - MOBILE FIRST
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox--open {
    display: flex;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox__content {
    position: relative;
    z-index: 10001;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10002;
}

.lightbox__close:hover,
.lightbox__close:active {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.lightbox__close svg {
    width: 24px;
    height: 24px;
}

.lightbox__gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10002;
}

.lightbox__arrow:hover,
.lightbox__arrow:active {
    background-color: rgba(255, 255, 255, 0.25);
}

.lightbox__arrow--prev {
    left: 12px;
}

.lightbox__arrow--next {
    right: 12px;
}

.lightbox__arrow svg {
    width: 24px;
    height: 24px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
}

/* TABLET - větší lightbox prvky */
@media (min-width: 768px) {
    .lightbox__content {
        padding: 80px 40px 100px;
    }

    .lightbox__close {
        top: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
    }

    .lightbox__close svg {
        width: 28px;
        height: 28px;
    }

    .lightbox__image {
        max-height: calc(100vh - 180px);
    }

    .lightbox__arrow {
        width: 50px;
        height: 50px;
    }

    .lightbox__arrow--prev {
        left: 20px;
    }

    .lightbox__arrow--next {
        right: 20px;
    }

    .lightbox__arrow svg {
        width: 28px;
        height: 28px;
    }

    .lightbox__counter {
        bottom: 30px;
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* DESKTOP - ještě větší lightbox */
@media (min-width: 1024px) {
    .lightbox__content {
        padding: 100px 60px 120px;
    }

    .lightbox__close {
        top: 32px;
        right: 32px;
        width: 56px;
        height: 56px;
    }

    .lightbox__close svg {
        width: 32px;
        height: 32px;
    }

    .lightbox__image {
        max-height: calc(100vh - 220px);
        border-radius: 12px;
    }

    .lightbox__arrow {
        width: 56px;
        height: 56px;
    }

    .lightbox__arrow--prev {
        left: 40px;
    }

    .lightbox__arrow--next {
        right: 40px;
    }

    .lightbox__arrow svg {
        width: 32px;
        height: 32px;
    }

    .lightbox__counter {
        bottom: 40px;
        font-size: 18px;
        padding: 12px 24px;
    }
}

/* ========================================
   MODAL PRO POSUDKOVÝ LIST - MOBILE FIRST
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal--open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal__content {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    background-color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal__close {
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal__close:hover,
.modal__close:active {
    background-color: #e0e0e0;
    color: #333;
}

.modal__close svg {
    width: 20px;
    height: 20px;
}

.modal__body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__pdf {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

/* TABLET - větší modal */
@media (min-width: 768px) {
    .modal {
        padding: 40px;
    }

    .modal__content {
        max-height: calc(100vh - 80px);
    }

    .modal__header {
        padding: 20px 24px;
    }

    .modal__title {
        font-size: 20px;
    }

    .modal__close {
        width: 40px;
        height: 40px;
    }

    .modal__close svg {
        width: 22px;
        height: 22px;
    }
}

/* DESKTOP - ještě větší modal */
@media (min-width: 1024px) {
    .modal {
        padding: 60px;
    }

    .modal__content {
        max-height: calc(100vh - 120px);
    }

    .modal__header {
        padding: 24px 32px;
    }

    .modal__title {
        font-size: 22px;
    }

    .modal__close {
        width: 44px;
        height: 44px;
    }

    .modal__close svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   SEKCE ZKOUŠKY A VÝKONY - MOBILE FIRST
   Stejné styly jako výstavy, jen s jinými třídami
   ======================================== */

.zkousky {
    margin-bottom: 40px;
}

/* Štítky nejvyšších výsledků */
.zkousky__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.zkousky__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zkousky__badge--gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #5a3e00;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.zkousky__badge--silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #999999 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.zkousky__badge--bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

/* Container pro slider/grid */
.zkousky__container {
    position: relative;
    margin-top: 20px;
}

/* Scroll hint - nápověda pro mobil */
.zkousky__scroll-hint {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

/* Slider - horizontální scroll na mobilu */
.zkousky__slider {
    position: relative;
    padding-bottom: 16px;
    padding-top: 60px;
    margin-top: -60px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* Skrýt scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zkousky__slider::-webkit-scrollbar {
    display: none;
}

/* Karta zkoušky */
.zkousky__card {
    flex: 0 0 85%;
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Aktivní karta - už není potřeba pro scroll verzi */
.zkousky__card--active {
    /* Ponechá se pro zpětnou kompatibilitu, ale nemá efekt */
}

.zkousky__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Obrázek karty */
.zkousky__card-image {
    width: 100%;
    height: 180px;
    overflow: visible;
    background: #f0f0f0;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.zkousky__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

/* Štítky s výsledky na fotce */
.zkousky__image-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap-reverse;
    flex-direction: row;
    align-content: flex-end;
    gap: 4px;
    z-index: 2;
}

.zkousky__image-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    background-color: rgba(255, 255, 255, 0.95);
    color: #8b5cf6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: help;
    transition: all 0.2s ease;
}

.zkousky__image-badge:hover {
    background-color: #8b5cf6;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
    z-index: 10001;
}

.zkousky__image-badge:hover::after {
    color: #ffffff;
}

/* Ikonka "i" za textem */
.zkousky__image-badge::after {
    content: 'i';
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.7em;
    font-weight: 600;
    font-style: italic;
    vertical-align: super;
    margin-left: 2px;
    color: #8b5cf6;
    text-transform: none;
}

/* Tooltip pro štítek na fotce - výchozí (mobile first - blízko štítku) */
.zkousky__image-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    max-width: 300px;
    min-width: 200px;
    padding: 8px 12px;
    background-color: #1a1a1a;
    color: white;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10000;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
}

/* Šipka tooltip - výchozí */
.zkousky__image-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}

/* Zobrazení při hoveru */
.zkousky__image-badge:hover .zkousky__image-badge-tooltip {
    opacity: 1;
    visibility: visible;
}

/* VARIANTA: Štítek VLEVO - bublina se vylije DOPRAVA */
.zkousky__image-badge--left .zkousky__image-badge-tooltip {
    left: 0;
    right: auto;
    transform: translateX(0);
}

.zkousky__image-badge--left .zkousky__image-badge-tooltip::after {
    left: 10px;
    right: auto;
}

/* VARIANTA: Štítek UPROSTŘED - bublina se vylije NA OBĚ STRANY */
.zkousky__image-badge--center .zkousky__image-badge-tooltip {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.zkousky__image-badge--center .zkousky__image-badge-tooltip::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* VARIANTA: Štítek VPRAVO - bublina se vylije DOLEVA */
.zkousky__image-badge--right .zkousky__image-badge-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.zkousky__image-badge--right .zkousky__image-badge-tooltip::after {
    left: auto;
    right: 12px;
}

/* Obsah karty */
.zkousky__card-content {
    padding: 16px;
}

/* Tituly s tooltip */
.zkousky__titles {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
    min-height: 40px;
}

/* Název zkoušky */
.zkousky__card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

/* Typ zkoušky */
.zkousky__card-type {
    font-size: 12px;
    font-weight: 600;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

/* Datum */
.zkousky__card-date {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

/* Detaily (výsledek, pořadatel, dokument) */
.zkousky__card-details {
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.zkousky__card-result,
.zkousky__card-organizer,
.zkousky__card-dokument {
    font-size: 12px;
    color: #555;
    margin: 4px 0;
    line-height: 1.4;
}

/* Mini fotogalerie ze zkoušky - MOBIL */
.zkousky__photos {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.zkousky__photos-list {
    display: flex;
    gap: 6px;
    align-items: center;
}

.zkousky__photo-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.zkousky__photo-thumb:hover,
.zkousky__photo-thumb:active {
    border-color: #8b5cf6;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.zkousky__photo-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zkousky__photo-more:hover,
.zkousky__photo-more:active {
    background-color: #8b5cf6;
    color: #ffffff;
    transform: scale(1.05);
}

/* Řádek s dokumentem (diplom, certifikát) - MOBIL */
.zkousky__card-dokument {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zkousky__dokument-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #8b5cf6;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0;
}

.zkousky__dokument-icon:hover,
.zkousky__dokument-icon:active {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.zkousky__dokument-icon svg {
    width: 16px;
    height: 16px;
}

/* Šipky pro navigaci - pouze na mobilu */
.zkousky__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zkousky__arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.zkousky__arrow--prev {
    left: -12px;
}

.zkousky__arrow--next {
    right: -12px;
}

.zkousky__arrow svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* Indikátory (tečky) - pouze na mobilu */
.zkousky__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.zkousky__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.zkousky__dot--active {
    background: #8b5cf6;
    width: 24px;
    border-radius: 4px;
}

.zkousky__dot:hover {
    background: #8b5cf6;
}

/* ========================================
   TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .zkousky__badges {
        gap: 12px;
        margin-bottom: 24px;
    }

    .zkousky__badge {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Větší mezera pro tooltip na tabletu/PC (kvůli více řádkům štítků) */
    .zkousky__image-badge-tooltip {
        bottom: calc(100% + 40px);
    }

    /* Na tabletu stále slider, ale větší karty */
    .zkousky__card {
        flex: 0 0 320px;
    }

    .zkousky__card-image {
        height: 180px;
    }

    .zkousky__card-content {
        padding: 20px;
    }

    .zkousky__titles {
        font-size: 14px;
    }

    .zkousky__card-title {
        font-size: 18px;
    }

    .zkousky__card-type {
        font-size: 13px;
    }

    .zkousky__card-date {
        font-size: 14px;
    }

    .zkousky__card-result,
    .zkousky__card-organizer,
    .zkousky__card-dokument {
        font-size: 13px;
    }

    /* Mini fotogalerie - TABLET */
    .zkousky__photo-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }

    .zkousky__photo-more {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        font-size: 14px;
    }

    /* Ikona dokumentu - TABLET */
    .zkousky__dokument-icon {
        width: 32px;
        height: 32px;
    }

    .zkousky__dokument-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    /* Skrýt scroll hint, šipky a tečky na desktopu */
    .zkousky__scroll-hint,
    .zkousky__arrow,
    .zkousky__dots {
        display: none;
    }

    /* Grid layout místo slideru */
    .zkousky__slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        overflow: visible;
        padding-bottom: 0;
        padding-top: 60px;
        margin-top: -60px;
    }

    .zkousky__card {
        flex: none;
    }

    .zkousky__card-image {
        height: 180px;
    }

    .zkousky__card-content {
        padding: 12px;
    }

    .zkousky__badge {
        padding: 12px 24px;
        font-size: 14px;
    }

    .zkousky__image-badges {
        bottom: 10px;
        left: 10px;
        right: 10px;
        gap: 6px;
    }

    .zkousky__image-badge {
        padding: 5px 10px;
        font-size: 12px;
    }

    .zkousky__image-badge-tooltip {
        font-size: 12px;
        padding: 10px 14px;
        bottom: calc(100% + 8px);
        max-width: 400px;
        min-width: 250px;
    }

    .zkousky__titles {
        font-size: 14px;
        min-height: 50px;
    }

    .zkousky__card-title {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .zkousky__card-type {
        font-size: 12px;
    }

    .zkousky__card-date {
        font-size: 13px;
    }

    .zkousky__card-result,
    .zkousky__card-organizer,
    .zkousky__card-dokument {
        font-size: 12px;
    }

    /* Mini fotogalerie - DESKTOP */
    .zkousky__photos-list {
        gap: 8px;
    }

    .zkousky__photo-thumb {
        width: 55px;
        height: 55px;
    }

    .zkousky__photo-more {
        width: 55px;
        height: 55px;
    }

    /* Ikona dokumentu - DESKTOP */
    .zkousky__dokument-icon {
        width: 30px;
        height: 30px;
    }

    .zkousky__dokument-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* ========================================
   RODOKMEN - MOBILE FIRST
   ======================================== */

/* Nadpis generace */
.rodokmen__generation-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 12px 0;
}

.rodokmen__generation-title:first-of-type {
    margin-top: 0;
}

/* RODIČE - Karty (MOBIL: horizontální scroll) */
.rodokmen__parents {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 0 0 8px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Skrytí scrollbaru */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rodokmen__parents::-webkit-scrollbar {
    display: none;
}

/* Tečky (indikátory) pod rodiči */
.rodokmen__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.rodokmen__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.rodokmen__dot--active {
    background: #667eea;
    width: 24px;
    border-radius: 4px;
}

.rodokmen__dot:hover {
    background: #667eea;
}

/* Karta rodiče */
.rodokmen__card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.rodokmen__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Fotka rodiče */
.rodokmen__card-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e5e5e5;
}

.rodokmen__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Obsah karty */
.rodokmen__card-content {
    padding: 16px;
}

/* Jméno rodiče s ikonou pohlaví */
.rodokmen__card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

/* Ikona pohlaví v kartě */
.rodokmen__gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.rodokmen__gender svg {
    width: 100%;
    height: 100%;
}

.rodokmen__gender--male {
    color: #3b82f6;
}

.rodokmen__gender--female {
    color: #ec4899;
}

/* Informace v kartě */
.rodokmen__card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rodokmen__info-item {
    font-size: 12px;
    color: #555;
    margin: 4px 0;
    line-height: 1.4;
}

.rodokmen__info-label {
    font-weight: 700;
    color: #1a1a1a;
}

.rodokmen__info-value {
    font-weight: 400;
    color: #555;
}

/* PŘEDCI - Stromová struktura */
.rodokmen__ancestors {
    margin-top: 8px;
}

/* Generace předků */
.rodokmen__generation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 0 0 8px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Skrytí scrollbaru */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rodokmen__generation::-webkit-scrollbar {
    display: none;
}

/* Položka předka */
.rodokmen__ancestor {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.rodokmen__ancestor:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Fotka předka */
.rodokmen__ancestor-photo {
    width: 100%;
    height: 140px;
    position: relative;
    overflow: hidden;
    background: #e5e5e5;
}

.rodokmen__ancestor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Jméno předka */
.rodokmen__ancestor-name {
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    word-break: break-word;
    hyphens: auto;
}

/* Malá ikona pohlaví u předků */
.rodokmen__gender-small {
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.rodokmen__gender-small--male {
    color: #3b82f6;
}

.rodokmen__gender-small--female {
    color: #ec4899;
}

/* ========================================
   RODOKMEN - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .rodokmen__generation-title {
        font-size: 18px;
        margin-top: 28px;
        margin-bottom: 16px;
    }

    .rodokmen__generation-title:first-of-type {
        margin-top: 0;
    }

    /* Skrýt tečky na tabletu */
    .rodokmen__dots {
        display: none;
    }

    /* RODIČE - vedle sebe, bez scrollu */
    .rodokmen__parents {
        gap: 20px;
        overflow-x: visible;
        padding: 0;
    }

    .rodokmen__card {
        flex: 1;
        min-width: auto;
    }

    .rodokmen__card-photo {
        height: 240px;
    }

    .rodokmen__card-content {
        padding: 20px;
    }

    .rodokmen__card-name {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* PŘEDCI - grid rozložení */
    .rodokmen__generation {
        display: grid;
        overflow-x: visible;
        padding: 0;
        gap: 16px;
    }

    .rodokmen__generation--2 {
        grid-template-columns: repeat(4, 1fr);
    }

    .rodokmen__generation--3 {
        grid-template-columns: repeat(4, 1fr);
    }

    .rodokmen__ancestor {
        width: auto;
        min-width: auto;
        max-width: none;
    }

    .rodokmen__ancestor-photo {
        height: 0;
        padding-top: 100%;
    }

    .rodokmen__ancestor-name {
        padding: 12px 10px;
        font-size: 13px;
        min-height: auto;
    }
}

/* ========================================
   RODOKMEN - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .rodokmen__generation-title {
        font-size: 20px;
        margin-top: 32px;
        margin-bottom: 20px;
    }

    .rodokmen__generation-title:first-of-type {
        margin-top: 0;
    }

    /* RODIČE - větší karty */
    .rodokmen__parents {
        gap: 24px;
    }

    .rodokmen__card-photo {
        height: 280px;
    }

    .rodokmen__card-content {
        padding: 24px;
    }

    .rodokmen__card-name {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .rodokmen__gender {
        width: 28px;
        height: 28px;
    }

    /* PŘEDCI - plná šířka (8 sloupců pro praprarodiče) */
    .rodokmen__generation--2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .rodokmen__generation--3 {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }

    .rodokmen__ancestor {
        width: auto;
        min-width: auto;
        max-width: none;
    }

    .rodokmen__ancestor-photo {
        height: 0;
        padding-top: 100%;
    }

    .rodokmen__ancestor-name {
        padding: 14px 12px;
        font-size: 14px;
        min-height: auto;
    }

    .rodokmen__gender-small {
        font-size: 16px;
    }
}

/* ========================================
   RODOKMEN - STROMOVÝ S LINIEMI
   MOBILE FIRST - Horizontální scroll
   ======================================== */

/* Wrapper sekce rodokmenu */
.rodokmen {
    /* Původní styly ponecháme, nový stromový rodokmen má vlastní kontejner */
}

/* Nový stromový rodokmen - kontejner full-width s jemnou tmavší šedou */
.rodokmen .pedigree-tree {
    margin-top: 20px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 24px 12px;
    background: #e8e9eb;
    border-radius: 0;
}

/* Wrapper pro horizontální scroll - MOBIL */
.pedigree-tree {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 100%;
    /* Umožnit scrollování na celou šířku stromu */
    -webkit-overflow-scrolling: touch;
}

/* Generace (řádky stromu) */
.pedigree-tree__generation {
    display: grid;
    gap: 16px;
    position: relative;
    min-width: 750px; /* Zmenšeno z 900px pro menší karty */
}

/* MOBIL - Grid layouty pro jednotlivé generace */
.pedigree-tree__generation--1 {
    grid-template-columns: 1fr;
    justify-items: center;
}

.pedigree-tree__generation--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px; /* Zmenšeno z 40px pro užší karty */
}

.pedigree-tree__generation--3 {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pedigree-tree__generation--4 {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

/* Jednotlivé karty psů */
.pedigree-tree__dog {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Karta psa - moderní design bez rámečků */
.pedigree-tree__card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 100%;
    transition: all 0.3s ease;
}

.pedigree-tree__card:active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Hlavní pes - jemné zvýraznění moderním stínem */
.pedigree-tree__dog--main .pedigree-tree__card {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: none;
}

/* Fotka psa - MOBIL
   Univerzální poměr 4:5 (výška = šířka × 1.25)
   = Instagram portrét, dobře vypadá a není moc vysoký */
.pedigree-tree__photo {
    width: 100%;
    height: 250px; /* Hlavní fotka (Rex) - větší než rodiče */
    overflow: hidden;
}

/* Rodiče - poměr 4:5 (šířka ~363px → výška 454px) */
.pedigree-tree__generation--2 .pedigree-tree__photo {
    height: 227px; /* Kompromis: poloviční výška pro menší karty */
}

/* Prarodiče - poměr 4:5 (šířka ~172px → výška 215px) */
.pedigree-tree__generation--3 .pedigree-tree__photo {
    height: 108px; /* Poloviční výška */
}

.pedigree-tree__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info pod fotkou */
.pedigree-tree__info {
    padding: 10px 8px;
}

.pedigree-tree__name {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    /* Oříznutí textu na 1 řádek s třemi tečkami - GENERACE 1-3 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pedigree-tree__details {
    font-size: 10px;
    color: #666;
    /* Oříznutí textu na 1 řádek s třemi tečkami - GENERACE 1-3 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ikony pohlaví - SVG ikony stejné jako u štěňat */
.pedigree-tree__gender {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.pedigree-tree__gender svg {
    width: 22px;
    height: 22px;
}

.pedigree-tree__gender--male {
    color: #64b5f6;
}

.pedigree-tree__gender--female {
    color: #f48fb1;
}

/* Linie spojující rodiče s potomky - VIDITELNÉ i na mobilu */
.pedigree-tree__line {
    display: block;
    position: absolute;
    z-index: 1;
    /* Tečkovaná linie místo plné - větší tečky pro lepší plasticitu */
    border-left: 3px dotted transparent;
    width: 0;
    background: transparent;
    /* Plasticita - silnější stín pro 3D efekt */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 6px rgba(0, 0, 0, 0.15));
}

/* Linie od rodičů nahoru k Rexovi */
.pedigree-tree__generation--2 .pedigree-tree__line {
    /* Protáhnout až k dolnímu okraji Rexovy karty */
    height: 40px;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Modrá linie pro otce - posunout doprava ke středu */
.pedigree-tree__dog--father .pedigree-tree__line {
    border-left-color: #64b5f6;
    border-left-width: 3px;
    left: 75%;
    /* Silnější modrý glow pro větší plasticitu */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 8px rgba(100, 181, 246, 0.6))
            drop-shadow(0 0 12px rgba(100, 181, 246, 0.3));
}

/* Růžová linie pro matku - posunout doleva ke středu */
.pedigree-tree__dog--mother .pedigree-tree__line {
    border-left-color: #f48fb1;
    border-left-width: 3px;
    left: 25%;
    /* Silnější růžový glow pro větší plasticitu */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 8px rgba(244, 143, 177, 0.6))
            drop-shadow(0 0 12px rgba(244, 143, 177, 0.3));
}

/* Linie od prarodičů k rodičům */
.pedigree-tree__generation--3 .pedigree-tree__line {
    /* Protáhnout až k dolnímu okraji karty rodiče */
    height: 40px;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Otcova strana - modrá */
.pedigree-tree__dog--father-line .pedigree-tree__line {
    border-left-color: #64b5f6;
    border-left-width: 3px;
    /* Silnější modrý glow pro větší plasticitu */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 8px rgba(100, 181, 246, 0.6))
            drop-shadow(0 0 12px rgba(100, 181, 246, 0.3));
}

/* Matčina strana - růžová */
.pedigree-tree__dog--mother-line .pedigree-tree__line {
    border-left-color: #f48fb1;
    border-left-width: 3px;
    /* Silnější růžový glow pro větší plasticitu */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 8px rgba(244, 143, 177, 0.6))
            drop-shadow(0 0 12px rgba(244, 143, 177, 0.3));
}

/* Linie od praprarodičů k prarodičům */
.pedigree-tree__generation--4 .pedigree-tree__line {
    /* Protáhnout až k dolnímu okraji karty prarodiče */
    height: 40px;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Praprarodiče - poměr 4:5 (šířka ~83px → výška 104px) */
.pedigree-tree__generation--4 .pedigree-tree__photo {
    height: 52px; /* Poloviční výška */
}

.pedigree-tree__generation--4 .pedigree-tree__info {
    padding: 8px 6px;
}

.pedigree-tree__generation--4 .pedigree-tree__name {
    font-size: 11px;
    /* Povolit víceřádkový text u generace 4 */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.pedigree-tree__generation--4 .pedigree-tree__gender {
    width: 18px;
    height: 18px;
}

.pedigree-tree__generation--4 .pedigree-tree__gender svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   TABLET - 768px+
   ======================================== */

@media (min-width: 768px) {
    .rodokmen .pedigree-tree {
        margin-left: -24px;
        margin-right: -24px;
        padding: 32px 24px;
        gap: 48px;
        overflow-x: visible; /* Vypnout scroll na tabletu */
    }

    .pedigree-tree__generation {
        min-width: auto; /* Reset minimální šířky */
    }

    /* Generace do gridu - 2 sloupce pro rodiče */
    .pedigree-tree__generation--2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* 4 sloupce pro prarodiče */
    .pedigree-tree__generation--3 {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* 8 sloupců pro praprarodiče, ale v 4 řádcích po 2 */
    .pedigree-tree__generation--4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    /* Zvětšit hlavní fotku (Rex) na tabletu */
    .pedigree-tree__photo {
        height: 200px;
    }

    /* Fotky rodičů na tabletu */
    .pedigree-tree__generation--2 .pedigree-tree__photo {
        height: 160px;
    }

    .pedigree-tree__info {
        padding: 12px 10px;
    }

    .pedigree-tree__name {
        font-size: 13px;
    }

    .pedigree-tree__details {
        font-size: 11px;
    }

    .pedigree-tree__gender {
        width: 24px;
        height: 24px;
    }

    .pedigree-tree__gender svg {
        width: 24px;
        height: 24px;
    }

    /* Linie od rodičů nahoru k Rexovi - TABLET */
    .pedigree-tree__generation--2 .pedigree-tree__line {
        border-left-width: 3px;
        height: 48px;
        top: -48px;
    }

    /* Otec - posunout doprava ke středu - TABLET */
    .pedigree-tree__dog--father .pedigree-tree__line {
        left: 75%;
    }

    /* Matka - posunout doleva ke středu - TABLET */
    .pedigree-tree__dog--mother .pedigree-tree__line {
        left: 25%;
    }

    /* Linie od prarodičů k rodičům - TABLET */
    .pedigree-tree__generation--3 .pedigree-tree__line {
        border-left-width: 3px;
        height: 48px;
        top: -48px;
    }

    /* Linie od praprarodičů k prarodičům - TABLET */
    .pedigree-tree__generation--4 .pedigree-tree__line {
        border-left-width: 2px;
        height: 48px;
        top: -48px;
    }

    .pedigree-tree__generation--4 .pedigree-tree__photo {
        height: 120px;
    }

    .pedigree-tree__generation--4 .pedigree-tree__info {
        padding: 10px 8px;
    }

    .pedigree-tree__generation--4 .pedigree-tree__name {
        font-size: 12px;
        /* Povolit víceřádkový text u generace 4 - TABLET */
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .pedigree-tree__generation--4 .pedigree-tree__gender {
        width: 20px;
        height: 20px;
    }

    .pedigree-tree__generation--4 .pedigree-tree__gender svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   DESKTOP - 1024px+
   ======================================== */

@media (min-width: 1024px) {
    .rodokmen .pedigree-tree {
        margin-left: -36px;
        margin-right: -36px;
        padding: 40px 36px;
        gap: 60px;
    }

    /* 2 sloupce pro rodiče */
    .pedigree-tree__generation--2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    /* 4 sloupce pro prarodiče */
    .pedigree-tree__generation--3 {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }

    /* 8 sloupců pro praprarodiče */
    .pedigree-tree__generation--4 {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }

    .pedigree-tree__dog--main .pedigree-tree__card {
        max-width: 400px;
    }

    .pedigree-tree__photo {
        height: 280px;
    }

    /* Fotky rodičů na desktopu */
    .pedigree-tree__generation--2 .pedigree-tree__photo {
        height: 220px;
    }

    .pedigree-tree__info {
        padding: 16px 18px;
    }

    .pedigree-tree__name {
        font-size: 17px;
        gap: 6px;
    }

    .pedigree-tree__details {
        font-size: 13px;
    }

    .pedigree-tree__gender {
        width: 26px;
        height: 26px;
    }

    .pedigree-tree__gender svg {
        width: 26px;
        height: 26px;
    }

    /* Linie od rodičů - DESKTOP */
    .pedigree-tree__generation--2 .pedigree-tree__line {
        border-left-width: 3px;
        height: 60px;
        top: -60px;
    }

    /* Otec - posunout doprava ke středu - DESKTOP */
    .pedigree-tree__dog--father .pedigree-tree__line {
        left: 75%;
    }

    /* Matka - posunout doleva ke středu - DESKTOP */
    .pedigree-tree__dog--mother .pedigree-tree__line {
        left: 25%;
    }

    /* Linie od prarodičů - DESKTOP */
    .pedigree-tree__generation--3 .pedigree-tree__line {
        border-left-width: 3px;
        height: 60px;
        top: -60px;
    }

    /* Linie od praprarodičů - DESKTOP */
    .pedigree-tree__generation--4 .pedigree-tree__line {
        border-left-width: 3px;
        height: 60px;
        top: -60px;
    }

    .pedigree-tree__generation--4 .pedigree-tree__photo {
        height: 160px;
    }

    .pedigree-tree__generation--4 .pedigree-tree__name {
        font-size: 14px;
        /* Povolit víceřádkový text u generace 4 - DESKTOP */
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .pedigree-tree__generation--4 .pedigree-tree__gender {
        width: 22px;
        height: 22px;
    }

    .pedigree-tree__generation--4 .pedigree-tree__gender svg {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   INFORMAČNÍ PANEL PSA - MOBILE FIRST
   ======================================== */

/* Panel - skrytý defaultně */
.dog-detail-panel {
    display: none;
    position: fixed;
    top: 60px; /* Mobil - pod headerem */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    overflow: hidden;
}

/* Panel otevřený */
.dog-detail-panel--open {
    display: block;
}

/* Tmavé pozadí (overlay) */
.dog-detail-panel__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
    z-index: 1;
}

/* Obsah panelu - MOBIL (fullscreen) */
.dog-detail-panel__content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: white;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Animace */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Tlačítko ZPĚT - skryté (používáme jen křížek) */
.dog-detail-panel__back {
    display: none;
}

/* Zavírací křížek - skrytý defaultně */
.dog-detail-panel__close {
    display: none;
}

/* Křížek viditelný když je panel otevřený - MOBILE FIRST */
.dog-detail-panel--open .dog-detail-panel__close {
    display: flex;
    position: fixed;
    top: 160px; /* Mobilní hodnota - POD roletkou menu */
    right: 16px;
    width: 48px; /* Mobilní hodnota - menší */
    height: 48px; /* Mobilní hodnota - menší */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002; /* Vyšší než panel content */
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    padding: 8px;
    transition: all 0.3s ease;
}

.dog-detail-panel__close:hover {
    background: linear-gradient(135deg, #5568d3 0%, #643a87 100%);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.dog-detail-panel__close:active {
    background: linear-gradient(135deg, #4a5cc4 0%, #552f72 100%);
    transform: scale(0.98);
}

.dog-detail-panel__close svg {
    /* MOBILE FIRST - mobilní hodnoty */
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2.5;
    pointer-events: none;
}

/* TABLET A DESKTOP (768px+) - křížek výše, větší */
@media (min-width: 768px) {
    .dog-detail-panel--open .dog-detail-panel__close {
        top: 72px;
        width: 56px;
        height: 56px;
        z-index: 99999;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .dog-detail-panel__close svg {
        width: 28px;
        height: 28px;
        stroke-width: 3;
    }
}

/* Hlavička s fotkou - MOBIL */
.dog-detail-panel__header {
    padding: 90px 16px 20px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dog-detail-panel__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dog-detail-panel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fotogalerie pod hlavičkou - MOBIL */
.dog-detail-panel__gallery {
    width: 100%;
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

/* Šipky po krajích - SKRYTÉ NA MOBILU */
.dog-detail-panel__gallery-arrow {
    display: none; /* Skryté na mobilu */
}

/* Kontejner s overflow - MOBIL: scroll, PC: hidden */
.dog-detail-panel__gallery-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.dog-detail-panel__gallery-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Track s fotkami */
.dog-detail-panel__gallery-track {
    display: flex;
    gap: 12px;
    padding: 4px 16px;
    transition: transform 0.3s ease; /* Plynulé posouvání na PC */
}

/* Jednotlivé fotky */
.dog-detail-panel__gallery-item {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dog-detail-panel__gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #8b5cf6;
}

.dog-detail-panel__gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dog-detail-panel__title {
    text-align: center;
}

.dog-detail-panel__name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* White gender icon in panel header (matches pedigree design) */
.dog-detail-panel__name .potomci-card__gender svg {
    stroke: white;
}

.dog-detail-panel__gender {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.dog-detail-panel__gender svg {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.dog-detail-panel__station {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Tělo panelu */
.dog-detail-panel__body {
    padding: 20px 16px 40px 16px;
}

/* Sekce */
.dog-detail-section {
    margin-bottom: 24px;
}

.dog-detail-section:last-child {
    margin-bottom: 0;
}

/* Přidání většího prostoru nad podnadpisy kromě prvního - MOBIL */
.dog-detail-section + .dog-detail-section {
    margin-top: 32px;
}

.dog-detail-section__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.2 !important;
    padding: 12px 16px !important;
    background-color: #f5f5f5 !important;
    border-left: 4px solid #3b82f6 !important;
}

.dog-detail-section__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Řádek s daty */
.dog-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dog-detail-row:last-child {
    border-bottom: none;
}

.dog-detail-row__label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex: 0 0 auto;
    margin-right: 16px;
}

.dog-detail-row__value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

/* Klikatelný odkaz v řádku (otec, matka v rodokmenu) */
.dog-detail-row__link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dog-detail-row__link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Barevné hodnoty (zdraví) */
.dog-detail-row__value--success {
    color: #10b981;
}

.dog-detail-row__value--warning {
    color: #f59e0b;
}

.dog-detail-row__value--error {
    color: #ef4444;
}

/* Odznaky (tituly) */
.dog-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: flex-end;
}

.dog-detail-badge {
    display: inline-block;
    padding: 3px 10px 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Health term v badge - bílý text */
.dog-detail-badge .health-term {
    color: white;
}

.dog-detail-badge .health-term:hover {
    color: rgba(255, 255, 255, 0.9);
}

.dog-detail-badge .health-term::after {
    color: white;
}

/* Seznam */
.dog-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dog-detail-list li {
    font-size: 14px;
    color: #333;
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.dog-detail-list li:last-child {
    border-bottom: none;
}

.dog-detail-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
}

/* Odkaz */
.dog-detail-link {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dog-detail-link:hover {
    background: #667eea;
    color: white;
}

/* Kurzor na kartě - naznačit klikatelnost */
.pedigree-tree__card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pedigree-tree__card:hover {
    transform: translateY(-2px);
}

/* ========================================
   TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    /* Panel nahoře u okraje prohlížeče */
    .dog-detail-panel {
        top: 0;
    }

    /* Panel jako sidebar z pravé strany */
    .dog-detail-panel__content {
        width: 450px;
        left: auto;
    }

    .dog-detail-panel__header {
        padding: 32px 24px 24px 24px;
    }

    .dog-detail-panel__photo {
        width: 140px;
        height: 140px;
        border-width: 5px;
    }

    .dog-detail-panel__name {
        font-size: 24px;
    }

    .dog-detail-panel__station {
        font-size: 16px;
    }

    .dog-detail-panel__body {
        padding: 28px 24px 50px 24px;
    }

    /* Větší mezera mezi sekcemi - TABLET */
    .dog-detail-section + .dog-detail-section {
        margin-top: 36px;
    }

    .dog-detail-section__title {
        font-size: 42px;
        margin: 0 0 40px 0;
        padding: 0;
        line-height: 1.2;
    }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .dog-detail-panel__content {
        width: 500px;
    }

    .dog-detail-panel__header {
        padding: 40px 32px 28px 32px;
    }

    .dog-detail-panel__photo {
        width: 160px;
        height: 160px;
    }

    .dog-detail-panel__name {
        font-size: 26px;
    }

    .dog-detail-panel__body {
        padding: 32px 32px 60px 32px;
    }

    /* Větší mezera mezi sekcemi - DESKTOP */
    .dog-detail-section + .dog-detail-section {
        margin-top: 40px;
    }

    .dog-detail-section__title {
        font-size: 48px;
        margin: 0 0 40px 0;
        padding: 0;
        line-height: 1.2;
    }
}
/* ========================================
   SEKCE POTOMCI - CAROUSEL (MOBILE FIRST)
   ======================================== */

.potomci {
    width: 100%;
    padding: 24px 0;
    margin-top: 80px;
    background-color: #ffffff;
}

.potomci__title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.potomci__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
}

/* Tlačítko kontakt pod potomky */
.potomci__contact {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   VRH
   ======================================== */

.potomci-vrh {
    margin-bottom: 40px;
}

.potomci-vrh:last-child {
    margin-bottom: 0;
}

.potomci-vrh__nadpis {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;

}

.potomci-vrh__link {
    color: #8b5cf6;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.potomci-vrh__link:hover {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

.potomci-vrh__info {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.potomci-vrh__info-item {
    display: inline-block;
    white-space: nowrap;
}

.potomci-vrh__info-item:not(:last-child)::after {
    content: "•";
    margin-left: 12px;
    color: #ccc;
}

/* ========================================
   CAROUSEL PRO POTOMKY
   ======================================== */

/* Wrapper pro carousel a šipky */
.carousel-wrapper {
    position: relative;
    
}

.carousel {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 0;
}

.carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.carousel__track {
    display: flex;
    gap: 16px;
    padding-bottom: 10px;
    padding-left: 0; /* Zarovnané s nadpisem */
    padding-right: 16px; /* Prostor pro scroll vpravo */
}

/* Navigační šipky pro posun karouselu - pouze desktop */
.carousel__nav {
    display: none; /* Skryté na mobilu */
}

@media (min-width: 768px) {
    .carousel__nav {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e0e0e0;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        padding: 0;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }

    .carousel__nav:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .carousel__nav--prev {
        left: -32px; /* Více mimo carousel */
    }

    .carousel__nav--next {
        right: -32px; /* Více mimo carousel */
    }

    .carousel__button {
        background: none;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .carousel__nav:hover svg {
        transform: scale(1.15);
        color: #8b5cf6;
    }

    .carousel__button svg {
        width: 22px;
        height: 22px;
        color: #333;
        stroke-width: 2.5;
        transition: all 0.2s ease;
    }

    .carousel__nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        pointer-events: none;
    }
}

/* Puntíky (indikátory) pro carousel potomků - MOBIL */
.carousel__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0 0 0;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel__dot:hover {
    background-color: #8b5cf6;
}

.carousel__dot--active {
    background-color: #8b5cf6;
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   KARTA POTOMKA
   ======================================== */

.potomci-card {
    flex: 0 0 260px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.potomci-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Foto potomka */
.potomci-card__photo {
    height: 180px;
    background-color: #e5e5e5;
    position: relative;
    overflow: hidden;
}

.potomci-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wrapper pro štítky - DOLE VLEVO */
.potomci-card__badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Jednotlivé štítky */
.potomci-card__badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* KVALITA štítky */
.potomci-card__badge--chovny {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.potomci-card__badge--nadeje {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.potomci-card__badge--mazlik {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* DOSTUPNOST štítky */
.potomci-card__badge--volny {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.potomci-card__badge--zadany {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.potomci-card__badge--prodano {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

/* Barvy podle pohlaví (pro chovný/naděje) */
.potomci-card__badge--male {
    /* Už má barvu z gradientu výše */
}

.potomci-card__badge--female {
    /* Už má barvu z gradientu výše */
}

/* Tělo karty */
.potomci-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Jméno potomka */
.potomci-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
}

/* Ikona pohlaví */
.potomci-card__gender {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.potomci-card__gender svg {
    width: 100%;
    height: 100%;
}

.potomci-card__gender--male svg {
    stroke: #3b82f6;
}

.potomci-card__gender--female svg {
    stroke: #ec4899;
}

/* Informace o stanici */
.potomci-card__station {
    font-size: 13px;
    color: #8b5cf6;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.potomci-card__station svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #8b5cf6;
}

/* Soukromý majitel */
.potomci-card__owner {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Šedá stanice (použije se class="potomci-card__station potomci-card__station--inactive") */
.potomci-card__station--inactive {
    color: #999;
}

.potomci-card__station--inactive svg {
    stroke: #999;
}

/* Link na majitele (pro chovné psy) */
.potomci-card__owner-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.potomci-card__owner-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Kombinace majitel + stanice (pro komplexní případy) */
.potomci-card__owner-full {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    margin: 0;
}

.potomci-card__separator {
    color: #ccc;
}

.potomci-card__station-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.potomci-card__station-inline:hover {
    color: #764ba2;
}

.potomci-card__station-inline svg {
    flex-shrink: 0;
}

/* Tlačítko "Více" */
.potomci-card__button {
    border: none;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: auto;
}

.potomci-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.potomci-card__button:active {
    transform: translateY(0);
}

/* Tlačítko "Mám zájem" - zelené pro volné potomky */
.potomci-card__button--zajemce {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.potomci-card__button--zajemce:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.potomci-card__button--zajemce:active {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(0);
}

/* Disabled tlačítko (pro mazlíčky bez detailu) */
.potomci-card__button--disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

.potomci-card__button--disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   TABLET - od 600px
   ======================================== */

@media (min-width: 600px) {
    .potomci {
        padding: 32px 0;
        margin-top: 100px;
    }

    .potomci__title {
        font-size: 42px;
    }


    .potomci__subtitle {
        font-size: 15px;
        margin-bottom: 40px;
        
    }

    .potomci-vrh {
        margin-bottom: 50px;
    }

    .potomci-vrh__nadpis {
        font-size: 19px;

    }

    .potomci-vrh__info {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .carousel-wrapper {
        
    }

    .carousel__track {
        gap: 20px;
    }

    .potomci-card {
        flex: 0 0 280px;
    }

    .potomci-card__photo {
        height: 200px;
    }

    .potomci-card__body {
        padding: 18px;
    }

    .potomci-card__name {
        font-size: 17px;
    }
}

/* ========================================
   DESKTOP - od 900px
   ======================================== */

@media (min-width: 900px) {

    .potomci__title {
        font-size: 48px;
    }

    .potomci__subtitle {
        font-size: 16px;
        
    }

    .potomci-vrh__nadpis {
        font-size: 24px;
        
    }

    .potomci-vrh__info {
        font-size: 16px;
        
    }

    /* Větší šipky na desktopu */
    .carousel__nav {
        width: 50px;
        height: 50px;
    }

    .carousel__nav--prev {
        left: -35px;
    }

    .carousel__nav--next {
        right: -35px;
    }

    .carousel__button svg {
        width: 26px;
        height: 26px;
    }

    /* Puntíky se schovají na desktopu (máme šipky) */
    .carousel__dots {
        display: none;
    }

    .potomci-card {
        flex: 0 0 320px;
    }

    .potomci-card__photo {
        height: 220px;
    }
}

.potomci-vrh__label {
    font-weight: 400;
}

/* ========================================
   ROZŠÍŘENÍ PRO DETAIL PANEL POTOMKŮ
   ======================================== */

/* Ikonka u jména (Korunka/Hvězdička) */
/* Rychlá fakta - STEJNÝ DESIGN JAKO RODOKMEN */
.dog-detail-facts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dog-detail-fact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dog-detail-fact:last-child {
    border-bottom: none;
}

/* Skrýt ikony */
.dog-detail-fact__icon,
.dog-detail-fact__flag {
    display: none;
}

/* SVG ikony v dog-detail-fact */
.dog-detail-fact__svg {
    display: none;
}

.dog-detail-fact__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
}

.dog-detail-fact__label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex: 0 0 auto;
}

.dog-detail-fact__value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Klikatelný odkaz v hodnotě (plemeno, majitel s účtem) */
.dog-detail-fact__link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dog-detail-fact__link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Inline vlajka ve value - správně zarovnaná */
.dog-detail-fact__flag-inline {
    width: 16px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
    order: -1; /* Vlajka jako první ve flex containeru */
}

/* Flag icon for location */
.dog-detail-fact__flag {
    display: none; /* Skrytá hlavní ikona */
}

/* Compact section variant - NYNÍ S NADPISEM */
.dog-detail-section--compact {
    margin-bottom: 24px;
}

/* Nadpis přidán přes ::before pseudoelement */
.dog-detail-section--compact::before {
    content: 'Základní informace';
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px 0;
    line-height: 1.2;
    padding: 12px 16px;
    background-color: #f5f5f5;
    border-left: 4px solid #3b82f6;
}

/* Status badges - zarovnané jako řádek */
.dog-detail-fact__content--badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    padding: 8px 0;
}

.dog-detail-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* KVALITA štítky */
.dog-detail-status-badge--chovny {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.dog-detail-status-badge--nadeje {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.dog-detail-status-badge--mazlik {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* DOSTUPNOST štítky */
.dog-detail-status-badge--volny {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dog-detail-status-badge--zadany,
.dog-detail-status-badge--reserved {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.dog-detail-status-badge--prodano {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}
}

/* Zdraví a úspěchy */
.dog-detail-health,
.dog-detail-success {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 12px;
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
}

/* Popis od chovatele */
.dog-detail-description {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Tlačítka v sekci akcí */
.dog-detail-section--actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.dog-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.dog-detail-button--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dog-detail-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.dog-detail-button--secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.dog-detail-button--secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   LIGHTBOX PRO FOTKY - MOBIL FIRST
   ======================================== */

.dog-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dog-lightbox--open {
    display: flex;
    opacity: 1;
}

.dog-lightbox__close {
    position: fixed !important; /* Fixed místo absolute pro mobil */
    top: 80px !important; /* Níže aby nebyl zakrytý */
    right: 20px !important;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3); /* Více viditelné */
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important; /* Super vysoký z-index */
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Stín pro lepší viditelnost */
}

.dog-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dog-lightbox__close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Skrýt křížek modalu když je lightbox otevřený */
.dog-detail-panel--open.has-lightbox-open .dog-detail-panel__close {
    display: none !important;
}

/* MOBIL: Skrýt sidebar když je lightbox otevřený */
body:has(.dog-lightbox--open) .page-layout__sidebar,
body.lightbox-is-open .page-layout__sidebar {
    display: none !important;
}

.dog-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
}

.dog-lightbox__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.dog-lightbox__arrow--prev {
    left: 16px;
}

.dog-lightbox__arrow--next {
    right: 16px;
}

.dog-lightbox__arrow svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.dog-lightbox__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 16px 60px 16px;
}

.dog-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dog-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.dog-lightbox__current {
    color: #8b5cf6;
}

/* Tablet+ */
@media (min-width: 768px) {

    .dog-detail-fact__icon {
        font-size: 15px;
        width: 18px;
        height: 18px;
    }

    .dog-detail-fact__value,
    .dog-detail-fact__label {
        font-size: 15px;
    }
    .dog-detail-fact__value {
        font-size: 15px;
    }

    .dog-detail-fact__link {
        font-size: 15px;
    }

    .dog-detail-row__link {
        font-size: 15px;
    }

    .dog-detail-health,
    .dog-detail-success {
        font-size: 15px;
        padding: 16px;
    }

    .dog-detail-button {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* Větší fotka na tabletu */
    .dog-detail-panel__photo {
        width: 120px;
        height: 120px;
    }

    /* Galerie - větší obrázky a šipky */
    .dog-detail-panel__gallery {
        padding: 20px 0;
    }

    .dog-detail-panel__gallery-arrow {
        width: 50px;
        height: 50px;
    }

    .dog-detail-panel__gallery-arrow--prev {
        left: 16px;
    }

    .dog-detail-panel__gallery-arrow--next {
        right: 16px;
    }

    .dog-detail-panel__gallery-arrow svg {
        width: 24px;
        height: 24px;
    }

    .dog-detail-panel__gallery-container {
        padding: 0 80px;
    }

    .dog-detail-panel__gallery-track {
        gap: 16px;
    }

    .dog-detail-panel__gallery-item {
        width: 180px;
        height: 130px;
    }

    /* Lightbox - větší šipky a tlačítka */
    .dog-lightbox__close,
    .dog-lightbox__arrow {
        width: 50px;
        height: 50px;
    }

    .dog-lightbox__close {
        top: 24px;
        right: 24px;
    }

    .dog-lightbox__arrow--prev {
        left: 24px;
    }

    .dog-lightbox__arrow--next {
        right: 24px;
    }

    .dog-lightbox__content {
        padding: 100px 80px;
    }

    /* Galerie potomků - PC verze se šipkami */
    .dog-detail-panel__gallery-arrow {
        display: flex; /* Zobrazit na PC */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }

    .dog-detail-panel__gallery-arrow:hover {
        background: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-50%) scale(1.05);
    }

    .dog-detail-panel__gallery-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

    .dog-detail-panel__gallery-arrow--prev {
        left: 8px;
    }

    .dog-detail-panel__gallery-arrow--next {
        right: 8px;
    }

    .dog-detail-panel__gallery-arrow svg {
        width: 20px;
        height: 20px;
        stroke: #1a1a1a;
        pointer-events: none; /* SVG nesmí blokovat kliknutí */
    }

    .dog-detail-panel__gallery-arrow svg * {
        pointer-events: none; /* Ani elementy uvnitř SVG */
    }

    .dog-detail-panel__gallery-container {
        overflow: hidden; /* Na PC bez scrollu */
        padding: 0 56px; /* Místo pro šipky */
    }
}

/* ========================================
   KONTAKTNÍ MODAL - MOBIL FIRST
   ======================================== */

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.contact-modal--open {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.contact-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.contact-modal__container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.contact-modal--open .contact-modal__container {
    transform: translateY(0);
}

.contact-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

.contact-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.contact-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-modal__close:hover {
    background: #e5e5e5;
}

.contact-modal__close svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

.contact-modal__context {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
    font-size: 14px;
    color: #166534;
}

.contact-modal__context svg {
    width: 20px;
    height: 20px;
    fill: #22c55e;
    flex-shrink: 0;
}

.contact-modal__context strong {
    color: #15803d;
}

.contact-modal__form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-modal__label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.contact-modal__input,
.contact-modal__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-modal__input:focus,
.contact-modal__textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.contact-modal__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.contact-modal__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.contact-modal__submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Info o přihlášeném uživateli */
.contact-modal__user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
}

.contact-modal__user-info svg {
    width: 20px;
    height: 20px;
    fill: #6b7280;
    flex-shrink: 0;
}

/* Checkbox - dotaz se týká psa */
.contact-modal__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal__checkbox:hover {
    background: #dcfce7;
}

.contact-modal__checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.contact-modal__checkbox-mark {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 2px solid #22c55e;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contact-modal__checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-modal__checkbox input:checked + .contact-modal__checkbox-mark {
    background: #22c55e;
}

.contact-modal__checkbox input:checked + .contact-modal__checkbox-mark::after {
    opacity: 1;
}

.contact-modal__checkbox-text {
    font-size: 14px;
    color: #166534;
    line-height: 1.5;
    padding-top: 1px;
}

.contact-modal__checkbox-text strong {
    color: #15803d;
}

/* Checkbox odškrtnutý - šedý styl */
.contact-modal__checkbox:has(input:not(:checked)) {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.contact-modal__checkbox:has(input:not(:checked)) .contact-modal__checkbox-mark {
    border-color: #d1d5db;
}

.contact-modal__checkbox:has(input:not(:checked)) .contact-modal__checkbox-text {
    color: #6b7280;
}

.contact-modal__checkbox:has(input:not(:checked)) .contact-modal__checkbox-text strong {
    color: #374151;
}

.contact-modal__user-info strong {
    color: #1f2937;
}

/* Nepřihlášený uživatel - výzva k přihlášení */
.contact-modal__login-required {
    padding: 32px 20px;
    text-align: center;
}

.contact-modal__login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 50%;
}

.contact-modal__login-icon svg {
    width: 32px;
    height: 32px;
    fill: #8b5cf6;
}

.contact-modal__login-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.contact-modal__login-text {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.contact-modal__login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-modal__login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.contact-modal__login-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-modal__login-btn--primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.contact-modal__login-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.contact-modal__login-btn--secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.contact-modal__login-btn--secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

/* KONTAKTNÍ MODAL - TABLET */
@media (min-width: 600px) {
    .contact-modal {
        align-items: center;
        padding: 20px;
    }

    .contact-modal__container {
        max-width: 500px;
        max-height: 85vh;
        border-radius: 20px;
        transform: translateY(30px) scale(0.95);
    }

    .contact-modal--open .contact-modal__container {
        transform: translateY(0) scale(1);
    }

    .contact-modal__header {
        padding: 24px 24px 20px;
    }

    .contact-modal__title {
        font-size: 22px;
    }

    .contact-modal__context {
        padding: 16px 24px;
    }

    .contact-modal__form {
        padding: 24px;
        gap: 18px;
    }

    .contact-modal__input,
    .contact-modal__textarea {
        padding: 14px 16px;
    }

    .contact-modal__login-required {
        padding: 40px 24px;
    }

    .contact-modal__login-title {
        font-size: 20px;
    }

    .contact-modal__login-text {
        font-size: 15px;
    }
}

/* KONTAKTNÍ MODAL - DESKTOP */
@media (min-width: 900px) {
    .contact-modal__container {
        max-width: 520px;
    }

    .contact-modal__header {
        padding: 28px 28px 20px;
    }

    .contact-modal__title {
        font-size: 24px;
    }

    .contact-modal__context {
        padding: 16px 28px;
        font-size: 15px;
    }

    .contact-modal__form {
        padding: 28px;
    }

    .contact-modal__label {
        font-size: 15px;
    }

    .contact-modal__submit {
        padding: 18px 28px;
        font-size: 17px;
    }

    .contact-modal__login-required {
        padding: 48px 28px;
    }

    .contact-modal__login-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 24px;
    }

    .contact-modal__login-icon svg {
        width: 36px;
        height: 36px;
    }

    .contact-modal__login-title {
        font-size: 22px;
    }

    .contact-modal__login-text {
        font-size: 15px;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-modal__login-btn {
        padding: 16px 28px;
        font-size: 16px;
    }
}

/* ========================================
   KONTAKTNÍ MODAL - NOVÉ PRVKY
   Mobile First
   ======================================== */

/* Hlavička - rozšířená verze s názvem stanice */
.contact-modal__header-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-modal__station {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

/* Sekce s fotkou psa a info */
.contact-modal__dog-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f3f1ff 100%);
    border: 1px solid #e9e5ff;
    border-radius: 12px;
}

.contact-modal__dog-photo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.contact-modal__dog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-modal__dog-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-modal__dog-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.contact-modal__dog-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    word-wrap: break-word;
}

.contact-modal__dog-breed {
    font-size: 13px;
    color: #6b7280;
}

.contact-modal__dog-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.contact-modal__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-modal__status-dot--available {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.contact-modal__status-dot--reserved {
    background-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.contact-modal__status-dot--unavailable {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.contact-modal__status-text {
    font-size: 12px;
    font-weight: 600;
    color: #166534;
}

/* Textarea wrapper s nápovědou */
.contact-modal__textarea-wrapper {
    position: relative;
}

.contact-modal__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #92400e;
}

.contact-modal__hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 1px;
}

/* Tlačítko pro přílohy */
.contact-modal__attachments {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-modal__attachment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-modal__attachment-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.contact-modal__attachment-btn:active {
    background: #e5e7eb;
}

.contact-modal__attachment-btn svg {
    width: 20px;
    height: 20px;
}

.contact-modal__attachment-hint {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
}

/* Náhled přidaných souborů */
.contact-modal__files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-modal__file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.contact-modal__file-preview {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #e5e7eb;
}

.contact-modal__file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-modal__file-preview--document {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.contact-modal__file-preview--document svg {
    width: 24px;
    height: 24px;
    color: #8b5cf6;
}

.contact-modal__file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-modal__file-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-modal__file-size {
    font-size: 11px;
    color: #9ca3af;
}

.contact-modal__file-remove {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.contact-modal__file-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.contact-modal__file-remove svg {
    width: 16px;
    height: 16px;
}

/* Upravené tlačítko odeslat - ikona vpravo */
.contact-modal__submit {
    flex-direction: row;
}

.contact-modal__submit svg {
    order: 2;
}

/* ========================================
   KONTAKTNÍ MODAL - NOVÉ PRVKY - TABLET
   ======================================== */
@media (min-width: 600px) {
    .contact-modal__station {
        font-size: 14px;
    }

    .contact-modal__dog-info {
        padding: 16px;
        gap: 16px;
    }

    .contact-modal__dog-photo {
        width: 72px;
        height: 72px;
    }

    .contact-modal__dog-name {
        font-size: 16px;
    }

    .contact-modal__dog-breed {
        font-size: 14px;
    }

    .contact-modal__hint {
        padding: 12px 14px;
        font-size: 13px;
    }

    .contact-modal__attachment-btn {
        padding: 14px 18px;
    }
}

/* ========================================
   KONTAKTNÍ MODAL - NOVÉ PRVKY - DESKTOP
   ======================================== */
@media (min-width: 900px) {
    .contact-modal__dog-info {
        padding: 18px;
        gap: 18px;
    }

    .contact-modal__dog-photo {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }

    .contact-modal__dog-label {
        font-size: 13px;
    }

    .contact-modal__dog-name {
        font-size: 17px;
    }

    .contact-modal__dog-breed {
        font-size: 14px;
    }

    .contact-modal__dog-status {
        margin-top: 6px;
    }

    .contact-modal__status-text {
        font-size: 13px;
    }

    .contact-modal__hint {
        font-size: 13px;
    }

    .contact-modal__attachments {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .contact-modal__attachment-btn {
        flex: 0 0 auto;
    }

    .contact-modal__attachment-hint {
        text-align: left;
        font-size: 12px;
    }
}
