/* Earthy Neutral Color Palette */
:root {
    --clay: #B8A99A;
    --sandstone: #D4BFA8;
    --taupe: #A38F7D;
    --ivory: #F5F0E6;
    --umber: #5C4A3A;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial;
    background-color: #F5F0E6;
    color: var(--umber);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid var(--sandstone);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.grid-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 3px solid var(--clay);
}

.grid-content {
    padding: 1.5rem;
}

.grid-content h3 {
    margin-bottom: 0.8rem;
    color: var(--umber);
    font-family: Arial;
}

.grid-content p {
    color: var(--taupe);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    background-color: var(--clay);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--umber);
}

/* Mobile-First Image Fix */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .grid-img {
        height: auto;
        max-height: 200px;
        width: 100%;
        object-fit: contain;
        object-position: center;
        padding: 10px;
        border-bottom: 3px solid var(--clay);
        background-color: var(--sandstone);
    }

    .grid-item {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .grid-content {
        padding: 1rem;
        flex-grow: 1;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .grid-img {
        object-fit: cover;
    }
}

/* Breed Content Section */
.breed-section {
    padding: 60px 0;
    text-align: center;
}

.breed-header {
    margin-bottom: 40px;
}

.breed-header h1 {
    font-size: 2.5rem;
    color: #5C4A3A;
    margin-bottom: 15px;
}

.breed-header h2 {
    font-size: 1.5rem;
    color: #5C4A3A;
    margin-bottom: 15px;
}

/* Slider Styles (optimized) */
.slider-container { 
    max-width: 800px; 
    margin: 20px auto; 
    position: relative; 
    overflow: hidden; 
}

.slider { 
    position: relative; 
}

.slide { 
    display: none; 
}

.slide.active { 
    display: block; 
}

.slide img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.photo-credit { 
    text-align: left; 
    font-size: 12px; 
    color: #666; 
    margin-top: 5px; 
    padding-left: 0px; 
}

.slider-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    width: 24px; 
    height: 24px; 
    cursor: pointer; 
    z-index: 10; 
    opacity: 0.7; 
    transition: opacity 0.3s; 
    display: none; 
}

.slider-btn:hover { 
    opacity: 1; 
}

.slider-btn::before { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 0; 
    border-style: solid; 
}

.prev-btn { 
    left: 15px; 
}

.prev-btn::before { 
    border-width: 10px 15px 10px 0; 
    border-color: transparent white transparent transparent; 
    left: 0; 
}

.next-btn { 
    right: 15px; 
}

.next-btn::before { 
    border-width: 10px 0 10px 15px; 
    border-color: transparent transparent transparent white; 
    right: 0; 
}

.slider-btn.visible { 
    display: block; 
}

.breed-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.info-card h3 {
    color: #5C4A3A;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid #ccccff;
    padding-bottom: 8px;
}

.info-card p {
    color: #5C4A3A;
    line-height: 1.6;
    margin-bottom: 15px;
}

.specs-list {
    list-style-type: none;
}

.specs-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.specs-list li::before {
    content: "•";
    color: #5C4A3A;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem auto;
    padding: 0 1rem;
}

.alternating-columns {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: left;
}

.alternating-columns th:nth-child(odd),
.alternating-columns td:nth-child(odd) {
    background-color: #F5F0E6;
}

.alternating-columns th:nth-child(even),
.alternating-columns td:nth-child(even) {
    background-color: #ffffff;
}

.alternating-columns th {
    background-color: #5C4A3A !important;
    color: white;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
}

.alternating-columns td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.alternating-columns td:first-child {
    text-align: left;
    padding-left: 20px;
}

.alternating-columns tbody tr:hover td {
    background-color:#ffffff; 
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .alternating-columns {
        font-size: 14px;
    }
    .alternating-columns th,
    .alternating-columns td {
        padding: 10px 8px;
    }
}

.check-bold {
    font-weight: bold;
    color: #2c5aa0;
    font-size: 2em;
}

/* Health Concerns */
.health-concerns {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.health-concerns h2 {
    color: #5C4A3A;
    border-bottom: 2px solid #5C4A3A;
    padding-bottom: 10px;
}

.health-concerns ul {
    padding-left: 20px;
}

.health-concerns li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #5C4A3A;
}

.health-concerns .highlight {
    font-weight: bold;
    color: #5C4A3A;
}

.icon-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 5px;
}

.fb-button { 
    background: #3B5998; 
    color: white; 
}

.website-button { 
    background: #555; 
    color: white; 
}

/* Footer */
footer {
    background-color: #5C4A3A;
    color: var(--ivory);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.footer-section h3 {
    color: var(--sandstone);
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.footer-section p, .footer-section a {
    color: var(--ivory);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--sandstone);
}

.copyright {
    border-top: 1px solid var(--taupe);
    padding-top: 1.5rem;
    opacity: 0.7;
}

/* Canva Credit Section */
.canva-credit {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 3rem;
    border-top: 5px solid #00C4CC;
    position: relative;
    overflow: hidden;
}

.canva-credit:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00C4CC, #00B2A9, #00C4CC);
}

.canva-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.canva-logo {
    width: 80px;
    height: 80px;
    background-color: #00C4CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.canva-logo i {
    font-size: 40px;
    color: white;
}

.canva-title h2 {
    color: #00C4CC;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.canva-title p {
    color: var(--taupe);
    font-size: 1rem;
}

.credit-content {
    margin-bottom: 25px;
    line-height: 1.8;
}

.credit-content p {
    margin-bottom: 15px;
}

.canva-link {
    display: inline-block;
    background: linear-gradient(135deg, #00C4CC, #00B2A9);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 196, 204, 0.3);
}

.canva-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 196, 204, 0.4);
}

.canva-link i {
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .breed-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin: 20px 0;
}

.nav-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #5C4A3A;
    color: #F5F0E6;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #5C4A3A;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 130px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.nav-btn:hover {
    background: #A38F7D;
    color: #5C4A3A;
    border-color: #5C4A3A;
    transform: translateY(-1px);
}

.nav-btn.active {
    background: #A38F7D;
    color: #5C4A3A;
    border-color: #5C4A3A;
    box-shadow: 0 1px 3px rgba(92, 74, 58, 0.3);
}

/* H3 Pagination */
.h3-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.h3-pagination a {
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
    background-color: #f5f0e6;
    border: 1px solid #D4BFA8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.h3-pagination a:hover {
    background-color: #D4BFA8;
    color: #5C4A3A;
}

.h3-pagination a::after,
.h3-pagination .current::after {
    content: attr(data-range);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5C4A3A;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.h3-pagination a::before,
.h3-pagination .current::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #5C4A3A;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: -5px;
}

.h3-pagination a:hover::after,
.h3-pagination a:hover::before,
.h3-pagination .current:hover::after,
.h3-pagination .current:hover::before {
    opacity: 1;
    visibility: visible;
}

.h3-pagination .current {
    display: inline-block;
    padding: 6px 10px;
    background: #A38F7D;
    color: #5C4A3A;
    border: 2px solid #5C4A3A;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    box-shadow: 0 1px 3px rgba(92, 74, 58, 0.3);
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.header-container h3 {
    margin: 0;
    color: #5C4A3A;
    font-size: 1.3rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-container h3 {
        white-space: normal;
        margin-bottom: 10px;
    }

    .h3-pagination {
        gap: 4px;
    }

    .h3-pagination a,
    .h3-pagination .current {
        padding: 5px 8px;
        font-size: 13px;
    }

    .h3-pagination a::after,
    .h3-pagination .current::after {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* =========================================================
   BOTTOM PAGINATION + BREED LIST TOOLTIP (FIXED)
   - Prevents clipping (no overflow-x auto)
   - Desktop hover works
   - Supports mobile tap via .page-number.open (JS adds it)
   ========================================================= */

/* Centering wrapper: MUST allow tooltip to escape */
.pagination-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 30px 0;
    padding: 20px 0;
    position: relative;
    overflow: visible; /* IMPORTANT */
}

/* Pagination pill: MUST allow tooltip to escape */
.pagination {
    display: flex;
    gap: 8px;
    position: relative;
    padding: 15px 20px;
    background-color: rgba(245, 240, 230, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(92, 74, 58, 0.1);
    overflow: visible; /* IMPORTANT */
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

/* Each page number anchor container */
.page-number {
    position: relative;
    display: inline-block;
}

/* Clickable number */
.page-number a,
.page-number span.current {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background-color: #f5f0e6;
    border: 1px solid #D4BFA8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
    min-width: 40px;
    text-align: center;
    cursor: pointer;
}

.page-number span.current {
    background-color: #5C4A3A;
    color: white;
    border-color: #5C4A3A;
    cursor: default;
}

.page-number a:hover {
    background-color: #D4BFA8;
    color: #5C4A3A;
}

/* Tooltip panel */
.breed-list {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #D4BFA8;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 9999;
    min-width: 280px;
    max-width: 340px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Tooltip arrow */
.breed-list::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* DESKTOP: show on hover */
@media (hover: hover) and (pointer: fine) {
    .page-number:hover .breed-list {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(-2px);
    }
}

/* MOBILE: show when JS adds .open */
.page-number.open .breed-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-2px);
}

/* Breed list contents */
.breed-items {
    max-height: 280px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.45;
}

.breed-items div {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.breed-items div:last-child {
    border-bottom: none;
}

.breed-items a {
    color: #5C4A3A;
    text-decoration: none;
    display: block;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breed-items a:hover {
    background: #f5f0e6;
    color: #8a6d46;
}

/* Scrollbar styling (optional, keep) */
.breed-items::-webkit-scrollbar {
    width: 6px;
}

.breed-items::-webkit-scrollbar-track {
    background: #f9f7f3;
    border-radius: 3px;
}

.breed-items::-webkit-scrollbar-thumb {
    background: #D4BFA8;
    border-radius: 3px;
}

.breed-items::-webkit-scrollbar-thumb:hover {
    background: #5C4A3A;
}

/* Responsive sizing */
@media (max-width: 768px) {
    .breed-list {
        min-width: 240px;
        max-width: 280px;
    }

    .breed-items {
        max-height: 250px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 6px;
        padding: 12px 14px;
    }

    .page-number a,
    .page-number span.current {
        padding: 8px 10px;
        min-width: 38px;
        font-size: 14px;
    }

    .breed-list {
        min-width: 220px;
        max-width: 250px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .page-number a,
    .page-number span.current {
        padding: 7px 9px;
        min-width: 34px;
        font-size: 13px;
    }
}
/* =========================================================
   MOVED FROM sporting-group-alpha-1.htm <style> BLOCK
   (Paste at the very bottom of breeds-layout.css)
   ========================================================= */

/* Hero */
.hero {
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;

    /* Default Desktop */
    height: 720px;
    background-image: url('images/sporting-group-desktop.webp');
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(92, 74, 58, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #F5F0E6;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        height: 600px;
        background-image: url('images/sporting-group-tablet.webp');
    }
    .hero-content {
        max-width: 900px;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        height: 500px;
        background-image: url('images/sporting-group-mobile.webp');
    }
    .hero-content {
        max-width: 600px;
    }
    .hero h1 {
        font-size: 2rem;
        padding: 0 10px;
        margin-bottom: 0.8rem;
    }
}

/* View options (browse links block) */
.view-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #e0d6c8;
    border-bottom: 1px solid #e0d6c8;
}

.view-options b {
    color: #5c4a3a;
    margin-right: 10px;
    font-size: 1.1rem;
}

.view-options a {
    color: #5c4a3a;
    text-decoration: underline;
    font-size: 1rem;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.view-options a:hover {
    color: #8a6d46;
    text-decoration: none;
}

@media (max-width: 768px) {
    .view-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .view-options b {
        margin-bottom: 5px;
        margin-right: 0;
    }
    .view-options a {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .view-options {
        padding: 15px;
        background-color: #f9f5f0;
        border-radius: 8px;
    }
    .view-options a {
        width: 100%;
        padding: 8px 0;
    }
}

/* Content list styling */
.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.content-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.content-section ul li::before {
    content: "→";
    color: #5c4a3a;
    position: absolute;
    left: 0;
    font-size: 0.9em;
}

.content-section ul li a {
    color: #5c4a3a;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
}

.content-section ul li a:hover {
    color: #8a6d46;
    text-decoration: none;
}

/* Lazy loading styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

img.lazy.error {
    opacity: 1;
    border: 1px solid #ff0000;
}

/* ---------------------------------------------------------
   IMPORTANT: Bottom pagination hover list
   Desktop hover + Mobile tap support via .page-number.open
   --------------------------------------------------------- */

.pagination-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 30px 0;
    padding: 20px 0;
    position: relative;

    /* MUST be visible so tooltips are not clipped */
    overflow: visible;
}

.pagination {
    display: flex;
    gap: 8px;
    position: relative;
    padding: 15px 20px;
    background-color: rgba(245, 240, 230, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(92, 74, 58, 0.1);

    overflow: visible;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    position: relative;
    display: inline-block;
}

.page-number a,
.page-number span.current {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    background-color: #f5f0e6;
    border: 1px solid #D4BFA8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    min-width: 40px;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.page-number span.current {
    background-color: #5C4A3A;
    color: white;
    border-color: #5C4A3A;
    cursor: default;
}

.page-number a:hover {
    background-color: #D4BFA8;
    color: #5C4A3A;
}

/* Tooltip panel */
.breed-list {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #D4BFA8;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 9999;
    min-width: 280px;
    max-width: 340px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.breed-list::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
    .page-number:hover .breed-list {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Mobile tap-open (JS adds .open) */
.page-number.open .breed-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-2px);
}

.breed-items {
    max-height: 280px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.45;
}

.breed-items div {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.breed-items div:last-child {
    border-bottom: none;
}

.breed-items a {
    color: #5C4A3A;
    text-decoration: none;
    display: block;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breed-items a:hover {
    background: #f5f0e6;
    color: #8a6d46;
}

/* Scrollbar styling */
.breed-items::-webkit-scrollbar {
    width: 6px;
}

.breed-items::-webkit-scrollbar-track {
    background: #f9f7f3;
    border-radius: 3px;
}

.breed-items::-webkit-scrollbar-thumb {
    background: #D4BFA8;
    border-radius: 3px;
}

.breed-items::-webkit-scrollbar-thumb:hover {
    background: #5C4A3A;
}

/* Tooltip sizing on mobile */
@media (max-width: 768px) {
    .breed-list {
        min-width: 240px;
        max-width: 280px;
    }
    .breed-items {
        max-height: 250px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 6px;
        padding: 12px 14px;
    }
    .breed-list {
        min-width: 220px;
        max-width: 250px;
        padding: 10px;
    }
}
