/* ========================================
   STRÁNKA PLÁNOVANÉ VRHY - BEM METODIKA
   MOBILE FIRST
   ======================================== */

/* ========================================
   HLAVNÍ KONTEJNER
   ======================================== */

.litters-page {
    padding-top: 60px;
}

/* ========================================
   FILTRY SEKCE
   ======================================== */

.litters-page__filters {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 20px 24px;
    z-index: 100;
}

.litters-page__filters-header {
    text-align: center;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.litters-page__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.litters-page__subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.litters-page__filters-container {
    max-width: 1200px;
    margin: 0 auto;
}

.litters-page__filters-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Druhý řádek filtrů - Rezervace + Tlačítka */
.litters-page__filters-row--secondary {
    margin-top: 16px;
}

/* ========================================
   FILTER GROUP
   ======================================== */

.litters-page__filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.litters-page__filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.litters-page__filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    flex-shrink: 0;
}

.litters-page__filter-icon svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

/* ========================================
   INPUT POLE
   ======================================== */

.litters-page__filter-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #2c3e50;
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.litters-page__filter-input::placeholder {
    color: #95a5a6;
}

.litters-page__filter-input:focus {
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.litters-page__filter-input-wrapper {
    position: relative;
}

/* ========================================
   TAGY A NAŠEPTÁVAČE
   ======================================== */

.litters-page__breed-tags,
.litters-page__location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.litters-page__breed-tags:empty,
.litters-page__location-tags:empty {
    display: none;
    margin-bottom: 0;
}

/* Jednotlivý tag plemene */
.litters-page__breed-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #667eea;
    background-color: #f0f3ff;
    border: 1px solid #d5dcff;
    border-radius: 16px;
    animation: breedTagAppear 0.2s ease;
}

@keyframes breedTagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tlačítko pro odstranění tagu */
.litters-page__breed-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background-color: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.litters-page__breed-tag-remove:hover {
    background-color: #d32f2f;
}

.litters-page__breed-tag-remove svg {
    width: 10px;
    height: 10px;
    color: #667eea;
    transition: color 0.15s ease;
}

.litters-page__breed-tag-remove:hover svg {
    color: #fff;
}

/* Jednotlivý tag lokality */
.litters-page__location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #667eea;
    background-color: #f0f3ff;
    border: 1px solid #d5dcff;
    border-radius: 16px;
    animation: breedTagAppear 0.2s ease;
}

.litters-page__location-tag-flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Tlačítko pro odstranění location tagu */
.litters-page__location-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background-color: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
}

.litters-page__location-tag-remove:hover {
    background-color: #d32f2f;
}

.litters-page__location-tag-remove svg {
    width: 10px;
    height: 10px;
    color: #667eea;
    transition: color 0.15s ease;
}

.litters-page__location-tag-remove:hover svg {
    color: #fff;
}

.litters-page__breed-suggestions,
.litters-page__location-suggestions,
.litters-page__station-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
    z-index: 100;
    display: none;
}

/* ========================================
   TLAČÍTKO VYMAZAT STANICI
   ======================================== */

.litters-page__station-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__station-clear:hover {
    background-color: #d32f2f;
}

.litters-page__station-clear svg {
    width: 12px;
    height: 12px;
    color: #666;
    transition: color 0.2s ease;
}

.litters-page__station-clear:hover svg {
    color: #fff;
}

/* ========================================
   NAŠEPTÁVAČ PLEMENE
   ======================================== */

.litters-page__breed-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
}

.litters-page__breed-suggestions--visible {
    display: block;
}

.litters-page__breed-suggestion {
    padding: 10px 14px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.litters-page__breed-suggestion:hover,
.litters-page__breed-suggestion--active {
    background-color: #f0f3ff;
}

.litters-page__breed-suggestion:first-child {
    border-radius: 10px 10px 0 0;
}

.litters-page__breed-suggestion:last-child {
    border-radius: 0 0 10px 10px;
}

.litters-page__breed-suggestion:only-child {
    border-radius: 10px;
}

.litters-page__breed-suggestion strong {
    color: #667eea;
}

/* ========================================
   NAŠEPTÁVAČ LOKALITY (s vlajkami a accordion)
   ======================================== */

.litters-page__location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
}

.litters-page__location-suggestions--visible {
    display: block;
}

.litters-page__location-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.litters-page__location-suggestion:hover,
.litters-page__location-suggestion--active {
    background-color: #f0f3ff;
}

.litters-page__location-suggestion:first-child {
    border-radius: 10px 10px 0 0;
}

.litters-page__location-suggestion:last-child {
    border-radius: 0 0 10px 10px;
}

.litters-page__location-suggestion:only-child {
    border-radius: 10px;
}

.litters-page__location-suggestion strong {
    color: #667eea;
}

.litters-page__location-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Země - accordion styl */
.litters-page__location-suggestion--country {
    font-weight: 600;
    background-color: #fafbfc;
}

.litters-page__location-suggestion--country:hover {
    background-color: #f0f3ff;
}

/* Rozbalená země */
.litters-page__location-suggestion--expanded {
    background-color: #f0f3ff;
    color: #667eea;
    border-bottom: 1px solid #e8ecff;
}

/* Klikatelná část (vlajka + název) */
.litters-page__location-selectable {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.litters-page__location-selectable:hover {
    color: #667eea;
}

/* Šipka u země */
.litters-page__location-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #667eea;
    font-size: 10px;
    margin-left: auto;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.litters-page__location-arrow:hover {
    background-color: rgba(102, 126, 234, 0.15);
}

.litters-page__location-suggestion--expanded .litters-page__location-arrow {
    background-color: rgba(102, 126, 234, 0.1);
}

/* Kontejner pro města */
.litters-page__location-cities {
    background-color: #fafbfc;
}

/* Města/regiony pod zemí - odsazení */
.litters-page__location-suggestion--child {
    padding-left: 44px;
    background-color: #ffffff;
    font-weight: 400;
    border-left: 3px solid #667eea;
}

.litters-page__location-suggestion--child:hover {
    background-color: #f8f9ff;
}

.litters-page__location-suggestion--child:first-child {
    border-radius: 0;
}

.litters-page__location-suggestion--child:last-child {
    border-radius: 0;
}

/* Název země */
.litters-page__location-name {
    flex: 1;
}

/* Vybraná položka */
.litters-page__location-suggestion--selected {
    background-color: #f0f3ff;
    color: #667eea;
}

.litters-page__location-check {
    color: #667eea;
    font-weight: 700;
    margin-left: auto;
    font-size: 14px;
}

/* ========================================
   NAŠEPTÁVAČ STANIC (s náhledy a info)
   ======================================== */

.litters-page__station-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
}

.litters-page__station-suggestions--visible {
    display: block;
}

/* Jednotlivá stanice v našeptávači */
.litters-page__station-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.litters-page__station-suggestion:hover {
    background-color: #f0f3ff;
}

.litters-page__station-suggestion:first-child {
    border-radius: 10px 10px 0 0;
}

.litters-page__station-suggestion:last-child {
    border-radius: 0 0 10px 10px;
}

.litters-page__station-suggestion:only-child {
    border-radius: 10px;
}

/* Obrázek stanice */
.litters-page__station-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

/* Placeholder ikona když není obrázek */
.litters-page__station-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.litters-page__station-image--placeholder svg {
    width: 24px;
    height: 24px;
}

/* Info o stanici */
.litters-page__station-info {
    flex: 1;
    min-width: 0;
}

.litters-page__station-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.litters-page__station-name strong {
    color: #667eea;
}

.litters-page__station-meta {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Plemeno stanice */
.litters-page__station-breed {
    color: #667eea;
    font-weight: 500;
}

/* Lokace stanice s vlajkou */
.litters-page__station-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.litters-page__station-flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Prázdný stav */
.litters-page__suggestion-empty {
    padding: 16px 14px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

/* ========================================
   INLINE FILTR (Stav, Rezervace) - na druhém řádku
   ======================================== */

.litters-page__filter-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.litters-page__filter-inline-label {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

/* ========================================
   FILTR STAVU VRHU - Chip tlačítka
   ======================================== */

.litters-page__status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.litters-page__status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__status-chip:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Checkbox uvnitř chipu */
.litters-page__status-chip::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.litters-page__status-chip--active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.litters-page__status-chip--active::before {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/12px no-repeat;
    border-color: #ffffff;
}

/* ========================================
   FILTR REZERVACÍ - Chip tlačítka
   ======================================== */

.litters-page__reservation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.litters-page__reservation-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__reservation-chip:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Checkbox uvnitř chipu */
.litters-page__reservation-chip::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.litters-page__reservation-chip--active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.litters-page__reservation-chip--active::before {
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/12px no-repeat;
    border-color: #ffffff;
}

/* ========================================
   AKČNÍ TLAČÍTKA (Vymazat vše, Vyhledat)
   ======================================== */

.litters-page__filter-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.litters-page__filter-clear {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__filter-clear:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.litters-page__filter-submit {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #4c1d95;
    background: #ffdc62;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__filter-submit:hover {
    transform: translateY(-2px);
    background: #f5d24a;
    box-shadow: 0 4px 12px rgba(255, 220, 98, 0.5);
}

.litters-page__filter-submit svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   MOBILNÍ TLAČÍTKO VYHLEDAT
   ======================================== */

.litters-page__filter-submit--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: #4c1d95;
    background: #ffdc62;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__filter-submit--mobile:hover {
    transform: translateY(-2px);
    background: #f5d24a;
    box-shadow: 0 4px 12px rgba(255, 220, 98, 0.5);
}

.litters-page__filter-submit--mobile svg {
    width: 18px;
    height: 18px;
}

/* Skrýt mobilní tlačítko když jsou rozšířené filtry otevřené */
.litters-page__filters-container--extended-open .litters-page__filter-submit--mobile {
    display: none;
}

/* ========================================
   TLAČÍTKO DALŠÍ FILTRY (mobilní)
   ======================================== */

.litters-page__filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__filter-toggle:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.litters-page__filter-toggle svg {
    width: 18px;
    height: 18px;
}

.litters-page__filter-toggle--active {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #667eea;
}

.litters-page__filter-toggle--active svg {
    color: #667eea;
}

/* ========================================
   ROZŠÍŘENÉ FILTRY (skryté na mobilu)
   ======================================== */

.litters-page__filters-extended {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.litters-page__filters-extended--open {
    display: flex;
}

/* ========================================
   VÝSLEDKY SEKCE
   ======================================== */

.litters-page__results {
    padding: 20px 12px 40px;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.litters-page__results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.litters-page__results-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.litters-page__results-count {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    text-align: center;
}

.litters-page__results-count strong {
    color: #2c3e50;
}

/* ========================================
   ŘAZENÍ
   ======================================== */

.litters-page__sort {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.litters-page__sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: #7f8c8d;
    background-color: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.litters-page__sort-chip svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.litters-page__sort-chip:hover {
    border-color: #667eea;
    color: #667eea;
    background-color: #f8f9ff;
}

.litters-page__sort-chip--active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.litters-page__sort-chip--active svg {
    color: #ffffff;
}

.litters-page__sort-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    margin-left: 1px;
    transition: transform 0.2s ease;
}

.litters-page__sort-arrow svg {
    width: 10px;
    height: 10px;
}

/* ========================================
   GRID
   ======================================== */

.litters-page__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ========================================
   KARTA PLÁNOVANÉHO VRHU
   ======================================== */

.litter-card {
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.litter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   FOTKY RODIČŮ - DVĚ VEDLE SEBE
   ======================================== */

.litter-card__images {
    display: flex;
    height: 100px;
    position: relative;
}

.litter-card__parent {
    flex: 1;
    position: relative;
}

.litter-card__parent-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Ikona pohlaví na fotce */
.litter-card__parent-gender {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.litter-card__parent-gender svg {
    width: 14px;
    height: 14px;
}

.litter-card__parent--father .litter-card__parent-gender svg {
    color: #60a5fa;
}

.litter-card__parent--mother .litter-card__parent-gender svg {
    color: #f472b6;
}

/* ========================================
   ŠTÍTKY NA FOTCE (stav + rezervace)
   ======================================== */

.litter-card__badges-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 16px);
}

.litter-card__badge {
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    border-radius: 10px;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

/* Stav: Nakrytá - zelená */
.litter-card__badge--confirmed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Stav: Plánované - oranžová */
.litter-card__badge--planned {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Rezervace: Přijímáme - modrá */
.litter-card__badge--open {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Rezervace: Uzavřeny - červená/růžová */
.litter-card__badge--closed {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* ========================================
   OBSAH KARTY
   ======================================== */

.litter-card__content {
    display: flex;
    padding: 12px;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

/* ========================================
   SPLIT LAYOUT - Rozdělené info otec/matka
   ======================================== */

.litter-card__split-info {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
    position: relative;
}

/* Svislá čára uprostřed */
.litter-card__split-info::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e5e7eb;
    transform: translateX(-50%);
}

.litter-card__split-col {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 12px);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.litter-card__split-col--left {
    align-items: flex-start;
}

.litter-card__split-col--right {
    align-items: flex-end;
}

/* Jména rodičů */
.litter-card__father-name,
.litter-card__mother-name {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
}

/* Text jména - ořezává se */
.litter-card__father-name-text,
.litter-card__mother-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Ikona pohlaví - nikdy se neořezává */
.litter-card__gender-icon {
    flex-shrink: 0;
}

.litter-card__split-col--right .litter-card__mother-name {
    justify-content: flex-end;
}

.litter-card__split-col--left .litter-card__father-name {
    text-align: left;
    color: #3b82f6;
}

.litter-card__split-col--right .litter-card__mother-name {
    text-align: right;
    color: #ec4899;
}

/* Ikona pohlaví u jmen */
.litter-card__gender-icon {
    width: 14px;
    height: 14px;
}

.litter-card__father-name .litter-card__gender-icon {
    color: #60a5fa;
}

.litter-card__mother-name .litter-card__gender-icon {
    color: #f472b6;
}

/* Plemeno v split layoutu */
.litter-card__breed-variant {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    font-size: 11px;
    color: #667eea;
    margin-bottom: 4px;
    overflow: hidden;
}

.litter-card__breed-variant span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Ikona psa u plemene */
.litter-card__breed-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: #667eea;
}

.litter-card__split-col--left .litter-card__breed-variant {
    justify-content: flex-start;
}

.litter-card__split-col--right .litter-card__breed-variant {
    flex-direction: row-reverse;
}

/* Stanice */
.litter-card__station {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
    max-width: 100%;
    overflow: hidden;
}

.litter-card__split-col--left .litter-card__station {
    justify-content: flex-start;
}

.litter-card__split-col--right .litter-card__station {
    justify-content: flex-end;
}

.litter-card__station-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: #667eea;
}

.litter-card__station-link {
    font-size: 10px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.litter-card__station-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* Lokace */
.litter-card__location {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #7f8c8d;
    margin-bottom: 0;
    max-width: 100%;
    overflow: hidden;
}

.litter-card__country,
.litter-card__place {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.litter-card__split-col--left .litter-card__location {
    justify-content: flex-start;
}

.litter-card__split-col--right .litter-card__location {
    justify-content: flex-end;
}

.litter-card__flag {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.litter-card__country {
    font-weight: 500;
    color: #2c3e50;
}

.litter-card__place {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #95a5a6;
}

/* ========================================
   SPOLEČNÉ INFO - datum uprostřed
   ======================================== */

.litter-card__common-info {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.litter-card__details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0;
}

.litter-card__calendar-icon {
    width: 14px;
    height: 14px;
    color: #667eea;
    flex-shrink: 0;
}

.litter-card__date {
    font-size: 12px;
    color: #7f8c8d;
}

.litter-card__date strong {
    color: #2c3e50;
}

/* ========================================
   STAV VRHU - Badge (plánované krytí / nakrytá)
   ======================================== */

.litter-card__status {
    display: inline-block;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Plánované krytí - oranžová/žlutá */
.litter-card__status--planned {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* Nakrytá fena - zelená */
.litter-card__status--confirmed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

/* Datum - varianta kvartál (plánované krytí) */
.litter-card__date--quarter {
    font-style: italic;
}

.litter-card__date--quarter strong {
    font-style: normal;
}

/* Datum - varianta přesné (nakrytá fena) */
.litter-card__date-prefix {
    font-size: 11px;
    color: #95a5a6;
    margin-right: 2px;
}

/* ========================================
   BADGES KONTEJNER - stav + rezervace
   ======================================== */

.litter-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.litter-card__badges .litter-card__status {
    margin-bottom: 0;
}

/* ========================================
   REZERVACE - Badge (přijímáme / uzavřeny)
   ======================================== */

.litter-card__reservation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 12px;
}

.litter-card__reservation-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Přijímáme rezervace - modrá */
.litter-card__reservation--open {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.litter-card__reservation--open .litter-card__reservation-icon {
    color: #3b82f6;
}

/* Rezervace uzavřeny - šedá/červená */
.litter-card__reservation--closed {
    background-color: #fee2e2;
    color: #b91c1c;
}

.litter-card__reservation--closed .litter-card__reservation-icon {
    color: #ef4444;
}

/* ========================================
   TLAČÍTKO
   ======================================== */

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

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

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

@media (min-width: 768px) {
    .litters-page {
        padding-top: 70px;
    }

    .litters-page__filters {
        padding: 24px 40px 20px;
    }

    .litters-page__title {
        font-size: 26px;
    }

    .litters-page__subtitle {
        font-size: 15px;
    }

    .litters-page__filters-row {
        flex-direction: row;
        align-items: flex-end;
        gap: 16px;
    }

    .litters-page__filter-group {
        flex: 1;
        min-width: 0;
    }

    /* Skrýt tlačítko Další filtry na tabletu/desktopu */
    .litters-page__filter-toggle {
        display: none;
    }

    /* Skrýt mobilní tlačítko Vyhledat na tabletu/desktopu */
    .litters-page__filter-submit--mobile {
        display: none;
    }

    /* Rozšířené filtry vždy viditelné na tabletu/desktopu */
    .litters-page__filters-extended {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 24px;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Inline filtry - horizontální layout */
    .litters-page__filter-inline {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
    }

    .litters-page__filter-inline-label {
        white-space: nowrap;
    }

    /* Tlačítka akcí na desktopu */
    .litters-page__filter-actions {
        flex: 0 0 auto;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
    }

    .litters-page__filter-clear {
        flex: none;
        padding: 12px 24px;
    }

    .litters-page__filter-submit {
        flex: none;
        padding: 12px 28px;
    }

    .litters-page__results {
        padding: 32px 40px 60px;
    }

    .litters-page__results-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .litters-page__results-count {
        font-size: 15px;
        text-align: left;
    }

    .litters-page__sort {
        justify-content: flex-end;
        gap: 8px;
    }

    .litters-page__sort-chip {
        padding: 8px 14px;
        font-size: 13px;
    }

    .litters-page__grid {
        gap: 20px;
    }

    /* KARTA - Tablet layout */
    .litter-card {
        width: calc(33.333% - 14px);
    }

    .litter-card__images {
        height: 130px;
    }

    .litter-card__content {
        padding: 14px;
    }

    /* Větší písmo na tabletu */
    .litter-card__father-name,
    .litter-card__mother-name {
        font-size: 13px;
    }

    .litter-card__breed-variant {
        font-size: 11px;
    }

    .litter-card__station-link {
        font-size: 11px;
    }

    .litter-card__location {
        font-size: 11px;
    }

    .litter-card__date {
        font-size: 12px;
    }

    .litter-card__button {
        padding: 12px 16px;
        font-size: 12px;
    }
}

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

@media (min-width: 1024px) {
    .litters-page {
        padding-top: 0;
    }

    .litters-page__filters {
        padding: 28px 60px 24px;
    }

    .litters-page__title {
        font-size: 30px;
    }

    .litters-page__subtitle {
        font-size: 16px;
    }

    .litters-page__results {
        padding: 40px 60px 80px;
    }

    .litters-page__grid {
        gap: 24px;
    }

    .litter-card {
        width: calc(25% - 18px);
    }

    .litter-card__images {
        height: 140px;
    }

    .litter-card__parent-gender {
        width: 26px;
        height: 26px;
    }

    .litter-card__parent-gender svg {
        width: 16px;
        height: 16px;
    }

    /* Větší písmo na desktopu */
    .litter-card__father-name,
    .litter-card__mother-name {
        font-size: 14px;
    }

    .litter-card__breed-variant {
        font-size: 12px;
    }

    .litter-card__station-link {
        font-size: 11px;
    }

    .litter-card__location {
        font-size: 11px;
    }

    .litter-card__flag {
        width: 16px;
        height: 12px;
    }
}

/* ========================================
   STRÁNKOVÁNÍ
   ======================================== */

.litters-page__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.litters-page__pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__pagination-btn:hover:not(:disabled) {
    background-color: #f0f3ff;
    border-color: #667eea;
}

.litters-page__pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.litters-page__pagination-btn svg {
    width: 18px;
    height: 18px;
    color: #2c3e50;
}

.litters-page__pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.litters-page__pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #2c3e50;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.litters-page__pagination-number:hover {
    background-color: #f0f3ff;
    border-color: #667eea;
}

.litters-page__pagination-number--active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
}

.litters-page__pagination-number--active:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4292 100%);
}

.litters-page__pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 40px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Skrytá karta (stránkování) */
.litter-card--hidden {
    display: none !important;
}

/* Filtrovaná karta (textové filtry) */
.litter-card[data-filtered="true"] {
    display: none !important;
}

/* ========================================
   VELKÝ DESKTOP (1400px+)
   ======================================== */

@media (min-width: 1400px) {

    .litters-page__filters-container,
    .litters-page__results-container {
        max-width: 1400px;
    }
}

/* ========================================
   SRDÍČKA - OBLÍBENÉ
   ======================================== */

.litter-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.litter-card__favorite:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.litter-card__favorite svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.litter-card__favorite:hover svg {
    color: #ef4444;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* Aktivní stav - přidáno do oblíbených */
.litter-card__favorite--active {
    background-color: rgba(255, 255, 255, 0.35);
}

.litter-card__favorite--active svg {
    color: #ef4444;
    fill: #ef4444;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.litter-card__favorite--active:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
