html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: block;
}

footer {
    margin-top: auto !important;
    flex-shrink: 0;
}

.breed-search-page {
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px 28px;
    background: radial-gradient(circle at top, rgba(255,255,255,.08), transparent 40%), linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.breed-search-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.breed-search-hero {
    text-align: center;
    margin-bottom: 26px;
}

    .breed-search-hero h1 {
        margin: 0 0 12px;
        font-size: clamp(32px, 5vw, 56px);
        line-height: 1.05;
        font-weight: 800;
        color: #172033;
        letter-spacing: -0.02em;
    }

    .breed-search-hero p {
        margin: 0 auto;
        max-width: 760px;
        font-size: 16px;
        line-height: 1.7;
        color: #546077;
    }

.breed-search-box {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(20, 35, 60, .10);
    padding: 10px;
}

.breed-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breed-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    height: 58px;
    padding: 0 18px;
    font-size: 18px;
    color: #1f2a3d;
}

    .breed-search-input::placeholder {
        color: #90a0b6;
    }

.breed-search-btn {
    border: none;
    cursor: pointer;
    height: 58px;
    padding: 0 24px;
    border-radius: 999px;
    background: #1f6fff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 10px 24px rgba(31,111,255,.22);
}

    .breed-search-btn:hover {
        transform: translateY(-1px);
        opacity: .96;
    }

.breed-search-meta {
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: #6a768b;
}

.breed-results {
    max-width: 980px;
    margin: 24px auto 0;
}

.breed-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.breed-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dfe7f1;
    box-shadow: 0 16px 38px rgba(20, 35, 60, .08);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .breed-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 20px 44px rgba(20, 35, 60, .12);
    }

    .breed-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        background: #e9eef5;
    }

.breed-card-body {
    padding: 18px;
}

.breed-species-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1f6fff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breed-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    color: #172033;
}

.breed-card p {
    margin: 0;
    color: #58657a;
    line-height: 1.6;
    font-size: 15px;
}

.breed-empty {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: center;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: 0 14px 34px rgba(20,35,60,.07);
}

    .breed-empty h2 {
        margin: 0 0 10px;
        font-size: 26px;
        color: #172033;
    }

    .breed-empty p {
        margin: 0;
        font-size: 16px;
        line-height: 1.7;
        color: #58657a;
    }

.breed-suggestions {
    max-width: 760px;
    margin: 26px auto 0;
    text-align: center;
    color: #6a768b;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .breed-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .breed-search-page {
        padding: 28px 14px 20px;
        align-items: flex-start;
    }

    .breed-search-box {
        border-radius: 28px;
        padding: 12px;
    }

    .breed-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .breed-search-input {
        height: 56px;
        padding: 0 14px;
        text-align: center;
        font-size: 17px;
    }

    .breed-search-btn {
        width: 100%;
        height: 52px;
    }

    .breed-results-grid {
        grid-template-columns: 1fr;
    }

    .breed-card img {
        height: 210px;
    }
}

.breed-quick-search {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fafafa;
}

.breed-quick-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.breed-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .breed-quick-links .breed-chip {
        display: inline-block;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid #ddd;
        background: #fff;
        font-size: 14px;
        text-decoration: none;
        color: #222;
        transition: .2s;
        cursor: pointer;
    }

        .breed-quick-links .breed-chip:hover {
            background: #f3f3f3;
            border-color: #ccc;
        }

.breed-category-links {
    margin: 18px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

    .breed-category-links a {
        display: inline-block;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid #d8dee8;
        background: #fff;
        color: #1f2937;
        text-decoration: none;
        font-size: 14px;
        transition: .2s ease;
    }

        .breed-category-links a:hover {
            background: #f5f7fb;
            border-color: #cfd8e6;
        }

.results-title {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #172033;
}
