/* ========================================
   STRÁNKA VYHLEDAT STANICI - BEM METODIKA
   MOBILE FIRST
   ======================================== */

/* ========================================
   HLAVNÍ KONTEJNER - Odsazení od fixované hlavičky
   ======================================== */

.search-page {
    padding-top: 60px; /* Výška hlavičky na mobilu */
}

/* ========================================
   FILTRY SEKCE - S gradientovým pozadím
   ======================================== */

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

/* Nadpis v sekci filtrů */
.search-page__filters-header {
    text-align: center;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

/* ========================================
   FILTER GROUP - Jednotlivé filtry
   ======================================== */

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

.search-page__filter-group--search {
    flex: 1;
}

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

.search-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;
}

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

/* ========================================
   INPUT A SELECT POLE
   ======================================== */

.search-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);
}

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

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

.search-page__filter-select-wrapper {
    position: relative;
}

.search-page__filter-select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #2c3e50;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.search-page__filter-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-page__filter-select-arrow svg {
    width: 18px;
    height: 18px;
    color: #7f8c8d;
}

/* ========================================
   FILTR PLEMENE - Input s tagy a našeptávačem
   ======================================== */

.search-page__filter-group--breed {
    flex: 1.5;
    min-width: 0;
}

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

/* Kontejner pro input s clear tlačítkem */
.search-page__filter-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input s tlačítkem clear */
.search-page__filter-input--with-clear {
    padding-right: 40px;
}

.search-page__input-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 5;
}

.search-page__input-clear--visible {
    display: flex;
}

.search-page__input-clear:hover {
    background-color: #d0d0d0;
}

.search-page__input-clear svg {
    width: 12px;
    height: 12px;
    color: #666;
}

/* ========================================
   DISABLED STAV FILTRŮ - Vzájemné vyloučení
   ======================================== */

.search-page__filter-group--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.search-page__filter-group--disabled .search-page__filter-input {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.search-page__filter-group--disabled .search-page__filter-label {
    opacity: 0.7;
}

/* Tagy vybraných plemen */
.search-page__breed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.search-page__breed-tags:empty {
    display: none;
    margin-bottom: 0;
}

.search-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 {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.search-page__breed-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #667eea;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.search-page__breed-tag-remove:hover {
    background-color: #5568d3;
    transform: scale(1.1);
}

.search-page__breed-tag-remove svg {
    width: 8px;
    height: 8px;
    color: #ffffff;
}

/* Našeptávač */
.search-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);
    margin-top: 4px;
    z-index: 100;
    display: none;
}

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

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

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

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

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

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

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

/* ========================================
   FILTR LOKALITY - Input s tagy a našeptávačem
   ======================================== */

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

/* Tagy vybraných lokalit */
.search-page__location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.search-page__location-tags:empty {
    display: none;
    margin-bottom: 0;
}

.search-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: locationTagAppear 0.2s ease;
}

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

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

.search-page__location-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #667eea;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.search-page__location-tag-remove:hover {
    background-color: #5568d3;
    transform: scale(1.1);
}

.search-page__location-tag-remove svg {
    width: 8px;
    height: 8px;
    color: #ffffff;
}

/* Našeptávač lokality */
.search-page__location-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;
}

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

.search-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;
}

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

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

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

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

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

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

/* Země - accordion styl */
.search-page__location-suggestion--country {
    font-weight: 600;
    background-color: #fafbfc;
    position: relative;
    padding-right: 48px; /* Prostor pro šipku */
}

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

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

/* Šipka u země - klikatelná oblast pro rozbalení, zarovnaná vpravo */
.search-page__location-arrow {
    color: #667eea;
    font-size: 10px;
    transition: transform 0.2s ease;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

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

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

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

/* Hint pro vyhledávání (název země u města) */
.search-page__location-hint {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 400;
    margin-left: auto;
}

/* Vybraná položka v našeptávači */
.search-page__location-suggestion--selected {
    background-color: #f0f3ff;
    color: #667eea;
    cursor: default;
}

.search-page__location-suggestion--selected:hover {
    background-color: #f0f3ff;
}

.search-page__location-suggestion--child.search-page__location-suggestion--selected {
    background-color: #f0f3ff;
}

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

/* ========================================
   TOGGLE BUTTON - Další filtry
   ======================================== */

.search-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;
}

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

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

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

.search-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;
}

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

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

/* ========================================
   ROZŠÍŘENÉ FILTRY
   ======================================== */

.search-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);
}

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

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

/* Alternativní způsob - skrýt mobilní tlačítko když je toggle aktivní */
.search-page__filter-toggle--active ~ .search-page__filter-submit--mobile {
    display: none;
}

.search-page__filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ========================================
   CHECKBOX STYLY
   ======================================== */

.search-page__filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-page__filter-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-page__filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.search-page__filter-checkbox-mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-page__filter-checkbox-mark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #667eea;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
    margin-top: -2px;
}

.search-page__filter-checkbox input[type="checkbox"]:checked + .search-page__filter-checkbox-mark {
    background: #ffffff;
    border-color: #ffffff;
}

.search-page__filter-checkbox input[type="checkbox"]:checked + .search-page__filter-checkbox-mark::after {
    transform: rotate(45deg) scale(1);
}

.search-page__filter-checkbox:has(input[type="checkbox"]:checked) {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-page__filter-checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* ========================================
   AKČNÍ TLAČÍTKA
   ======================================== */

.search-page__filter-actions {
    display: flex;
    gap: 12px;
}

.search-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;
}

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

.search-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;
}

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

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

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

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

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

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

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

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

/* ========================================
   MODERNÍ ŘAZENÍ - Chip tlačítka
   ======================================== */

.search-page__sort {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-page__sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    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;
}

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

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

.search-page__sort-chip:hover svg {
    color: #667eea;
}

.search-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);
}

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

.search-page__sort-chip--active:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4292 100%);
    color: #ffffff;
    border-color: transparent;
}

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

/* ========================================
   GRID - Maticový výpis karet
   ======================================== */

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

.search-page__grid .card--grid {
    width: calc(50% - 5px);
    transition: order 0.3s ease;
}

/* Úpravy karty pro grid layout */
.card--grid {
    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);
}

/* JavaScript přidá třídu pro skrytí filtrovaných karet */
.card--hidden {
    display: none !important;
}

.card--grid .card__image {
    height: 120px;
    border-radius: 12px 12px 0 0;
}

.card--grid .card__content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

.card--grid .card__breed {
    flex: 1;
}

.card--grid .card__title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card--grid .card__rating {
    font-size: 11px;
    margin-bottom: 8px;
}

.card--grid .card__breed {
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Klikatelná plemena */
.card--grid .card__breed .breed-item {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card--grid .card__breed .breed-item::before {
    content: '•';
    margin-right: 6px;
    color: #667eea;
}


.card--grid .card__breed .breed-item:hover {
    color: #5568d3;
    text-decoration: underline;
}

.card--grid .card__location {
    font-size: 11px;
    gap: 6px;
}

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

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

.card--grid .card__place::before {
    content: "•";
    margin-right: 4px;
    color: #d1d5db;
}

.card--grid .card__button {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 10px 12px;
    font-size: 11px;
    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;
}

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

/* Vlajky v grid kartách */
.card--grid .card__flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Štítky (badge) v grid kartách */
.card--grid .card__badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.card--grid .card__badge--new {
    background-color: #ff6b6b;
    color: #ffffff;
}

.card--grid .card__badge--updated {
    background-color: #3498db;
    color: #ffffff;
}

.card--grid .card__badge--puppies {
    background-color: #10b981;
    color: #ffffff;
}

.card--grid .card__badge--expected {
    background-color: #f59e0b;
    color: #ffffff;
}

/* Obrázek karty - správné umístění štítků */
.card--grid .card__image {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: flex-start;
    padding: 6px;
    gap: 4px;
    border-radius: 12px 12px 0 0;
}

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

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

.search-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;
}

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

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

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

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

.search-page__pagination-page,
.search-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;
}

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

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

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

.search-page__pagination-dots {
    padding: 0 8px;
    font-size: 14px;
    color: #7f8c8d;
}

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

@media (min-width: 768px) {
    .search-page {
        padding-top: 70px; /* Výška hlavičky na tabletu */
    }

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

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

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

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

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

    .search-page__filter-group--search {
        flex: 1.5;
    }

    .search-page__filter-toggle {
        flex: none;
        width: auto;
    }

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

    .search-page__filters-extended {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .search-page__filter-checkboxes {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-page__filter-checkbox {
        flex: none;
        padding: 10px 16px;
    }

    .search-page__filter-actions {
        flex: none;
        width: auto;
    }

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

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

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

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

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

    .search-page__sort {
        justify-content: flex-end;
    }

    .search-page__sort-chip {
        padding: 8px 16px;
        font-size: 13px;
    }

    .search-page__grid {
        gap: 20px;
    }

    .search-page__grid .card--grid {
        width: calc(33.333% - 14px);
    }

    .card--grid .card__image {
        height: 160px;
    }

    .card--grid .card__content {
        padding: 14px;
    }

    .card--grid .card__title {
        font-size: 16px;
    }

    .card--grid .card__rating {
        font-size: 12px;
    }

    .card--grid .card__breed {
        font-size: 13px;
    }

    .card--grid .card__location {
        font-size: 12px;
    }

    .card--grid .card__button {
        padding: 10px 14px;
        font-size: 13px;
    }

    .card--grid .card__flag {
        width: 18px;
        height: 13px;
    }

    .card--grid .card__badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .card--grid .card__image {
        height: 160px;
        padding: 10px;
        gap: 5px;
    }
}

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

@media (min-width: 1024px) {
    .search-page {
        padding-top: 0; /* Na desktopu je hlavička sticky, ne fixed */
    }

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

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

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

    .search-page__filter-toggle-text {
        display: inline;
    }

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

    /* Na desktopu jsou rozšířené filtry vždy viditelné */
    .search-page__filters-extended {
        display: flex;
    }

    .search-page__filter-toggle {
        display: none;
    }

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

    .search-page__grid {
        gap: 24px;
    }

    .search-page__grid .card--grid {
        width: calc(25% - 18px);
    }

    .card--grid .card__image {
        height: 180px;
    }

    .card--grid .card__content {
        padding: 16px;
    }

    .card--grid .card__title {
        font-size: 17px;
    }

    .card--grid .card__rating {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .card--grid .card__breed {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .card--grid .card__location {
        font-size: 13px;
    }

    .card--grid .card__button {
        margin-top: 14px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .card--grid .card__flag {
        width: 18px;
        height: 13px;
    }

    .card--grid .card__badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .card--grid .card__image {
        height: 180px;
        padding: 12px;
        gap: 6px;
    }
}

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

@media (min-width: 1400px) {
    .search-page__filters-container,
    .search-page__results-container {
        max-width: 1400px;
    }
}

/* ========================================
   JAVASCRIPT INTERAKCE
   ======================================== */

/* Třída pro otevřené rozšířené filtry */
.search-page__filters-extended--open {
    display: flex;
}

/* Aktivní toggle tlačítko */
.search-page__filter-toggle--active {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #667eea;
}

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

/* ========================================
   NAŠEPTÁVAČ STANIC - S filtrováním podle plemen/lokalit
   ======================================== */

.search-page__station-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);
    margin-top: 4px;
    z-index: 100;
    display: none;
}

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

/* Informační řádek o filtrech */
.search-page__station-filter-info {
    padding: 10px 14px;
    font-size: 12px;
    color: #667eea;
    background-color: #f0f3ff;
    border-bottom: 1px solid #e8ecff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-page__station-filter-info svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Jednotlivá stanice v našeptávači */
.search-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;
    border-bottom: 1px solid #f0f0f0;
}

.search-page__station-suggestion:last-child {
    border-bottom: none;
}

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

.search-page__station-suggestion:first-of-type {
    border-radius: 10px 10px 0 0;
}

.search-page__station-suggestion:last-of-type {
    border-radius: 0 0 10px 10px;
}

.search-page__station-suggestion:only-of-type {
    border-radius: 10px;
}

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

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

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

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

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

.search-page__station-breed {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-page__station-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-page__station-flag {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 2px;
}

/* Žádné výsledky */
.search-page__station-no-results {
    padding: 20px 14px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

.search-page__station-no-results strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
}

.search-page__station-close {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #667eea;
    background-color: #f0f3ff;
    border: 1px solid #d5dcff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-page__station-close:hover {
    background-color: #e0e7ff;
}

/* ========================================
   PRÁZDNÉ VÝSLEDKY - Když nic nenajdeme
   Mobile First
   ======================================== */

.search-page__empty {
    text-align: center;
    padding: 32px 16px 40px;
}

/* Ilustrace smutného pejska */
.search-page__empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.search-page__empty-icon svg {
    width: 100%;
    height: 100%;
}

/* Hlavní nadpis */
.search-page__empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Text pod nadpisem */
.search-page__empty-text {
    font-size: 14px;
    line-height: 1.6;
    color: #7f8c8d;
    margin: 0 0 24px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-page__empty-text strong {
    color: #2c3e50;
}

/* Tipy box */
.search-page__empty-tips {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    background-color: #f0f3ff;
    border: 1px solid #d5dcff;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.search-page__empty-tips-label {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.search-page__empty-tips-list {
    margin: 0;
    padding: 0 0 0 18px;
    font-size: 13px;
    color: #5a6f8f;
    line-height: 1.8;
}

.search-page__empty-tips-list li::marker {
    color: #667eea;
}

/* Reset tlačítko */
.search-page__empty-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #667eea;
    background-color: #ffffff;
    border: 2px solid #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 40px;
}

.search-page__empty-reset:hover {
    background-color: #667eea;
    color: #ffffff;
}

.search-page__empty-reset svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   ALTERNATIVNÍ VÝPIS - Stanice podle plemene
   ======================================== */

.search-page__alternative {
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
    /* Vytáhnout sekci z paddingu .search-page__empty */
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.search-page__alternative-header {
    text-align: center;
    margin-bottom: 24px;
}

.search-page__alternative-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.search-page__alternative-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.search-page__alternative-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.search-page__alternative-title span:last-child {
    color: #667eea;
    font-weight: 700;
}

.search-page__alternative-subtitle {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.search-page__alternative-count {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin: 12px 0 0 0;
}

/* Grid pro alternativní karty - stejné šířky jako hlavní grid */
.search-page__grid--alternative {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left; /* Reset text-align z .search-page__empty */
}

.search-page__grid--alternative .card--grid {
    flex: none;
    width: calc(50% - 5px); /* Dvě karty na řádek jako v hlavním gridu */
    text-align: left; /* Zajistíme správné zarovnání textu v kartě */
}

/* Menší velikosti písma pro alternativní karty na mobilu - aby se vše vešlo */
.search-page__grid--alternative .card__title {
    font-size: 12px;
}

.search-page__grid--alternative .card__rating {
    font-size: 10px;
    gap: 2px;
    flex-wrap: wrap;
}

.search-page__grid--alternative .card__rating svg {
    width: 10px;
    height: 10px;
}

.search-page__grid--alternative .card__breed {
    font-size: 11px;
}

.search-page__grid--alternative .card__location {
    font-size: 10px;
}

.search-page__grid--alternative .card__button {
    padding: 8px 10px;
    font-size: 10px;
}

/* Zajistíme, že karty v alternativním gridu vypadají stejně jako v hlavním */
.search-page__grid--alternative .card__content {
    text-align: left;
}

.search-page__grid--alternative .card__title,
.search-page__grid--alternative .card__rating,
.search-page__grid--alternative .card__breed,
.search-page__grid--alternative .card__location {
    text-align: left;
}

.search-page__grid--alternative .card__button {
    text-align: center;
}

/* Stránkování pro alternativní výpis - použijeme stejné styly jako hlavní */
.search-page__pagination--alternative {
    margin-top: 24px;
}

/* ========================================
   PRÁZDNÉ VÝSLEDKY - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .search-page__empty {
        padding: 48px 40px 60px;
    }

    .search-page__empty-icon {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }

    .search-page__empty-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .search-page__empty-text {
        font-size: 15px;
        max-width: 500px;
        margin-bottom: 28px;
    }

    .search-page__empty-tips {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 14px 24px;
    }

    .search-page__empty-tips-label {
        margin-bottom: 0;
    }

    .search-page__empty-tips-list {
        display: flex;
        gap: 20px;
        padding: 0;
        list-style: none;
    }

    .search-page__empty-tips-list li::before {
        content: '•';
        color: #667eea;
        margin-right: 6px;
    }

    .search-page__empty-reset {
        padding: 14px 32px;
        font-size: 15px;
    }

    .search-page__alternative {
        padding-top: 48px;
        /* Tablet: kompenzovat padding 40px z .search-page__empty */
        margin-left: -40px;
        margin-right: -40px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .search-page__alternative-title {
        flex-direction: row;
        justify-content: center;
        font-size: 18px;
        gap: 12px;
    }

    .search-page__alternative-subtitle {
        font-size: 14px;
    }

    .search-page__alternative-count {
        font-size: 15px;
    }

    .search-page__grid--alternative {
        gap: 20px;
    }

    .search-page__grid--alternative .card--grid {
        width: calc(33.333% - 14px);
    }
}

/* ========================================
   PRÁZDNÉ VÝSLEDKY - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .search-page__empty {
        padding: 60px 60px 80px;
    }

    .search-page__empty-title {
        font-size: 30px;
    }

    .search-page__empty-text {
        font-size: 16px;
        max-width: 550px;
    }

    .search-page__alternative {
        /* Desktop: kompenzovat padding 60px z .search-page__empty */
        margin-left: -60px;
        margin-right: -60px;
        padding-left: 60px;
        padding-right: 60px;
    }

    .search-page__alternative-title {
        font-size: 20px;
    }

    .search-page__alternative-icon {
        width: 40px;
        height: 40px;
    }

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

    .search-page__grid--alternative {
        gap: 24px;
    }

    .search-page__grid--alternative .card--grid {
        width: calc(25% - 18px);
    }
}

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

.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;
}

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

.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));
}

.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 */
.card__favorite--active {
    background-color: rgba(255, 255, 255, 0.35);
}

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

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