/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    padding: 0;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.site-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 0.8em;
    font-weight: 500;
    color: #333;
    margin: 0;
    flex: 1 1 100%;
    text-align: center;
    order: 2;
}

.logo-link {
    display: block;
}

.site-logo {
    height: 60px;
    width: auto;
}

h1 {
    width: 100%;
    border: 1px solid white;
    text-align: left!important;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-button {
    background: #daf7f6;
    color: #333;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s;
    white-space: nowrap;
}

.cta-button:hover {
    background: #c0e8e7;
}

.cta-text {
    color: #666;
    font-size: 0.9em;
    max-width: 200px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-text {
        max-width: 100%;
    }
}

/* Footer Styles */
.site-footer {
    background: #2a7b7b;
    color: white;
    padding: 30px 0 0 0;
    margin-top: auto;
}

/* Footer Navigation */
.footer-navigation {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 30px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
}

.footer-nav-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #daf7f6;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-links li {
    margin-bottom: 10px;
}

.footer-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
    display: block;
}

.footer-nav-links a:hover {
    color: #daf7f6;
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-text {
    text-align: left;
}

.footer-tagline {
    font-size: 1.5em;
    font-style: italic;
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.footer-rights {
    font-size: 0.9em;
}

.footer-rights a {
    color: white;
    text-decoration: underline;
}

.footer-rights a:hover {
    text-decoration: none;
}

.footer-button {
    background: white;
    color: #2a7b7b;
    padding: 12px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s;
}

.footer-button:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
}

/* Container Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
}

/* Back Link Styles */
.back-link {
    display: inline-block;
    margin: 20px 40px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    color: #666;
}

/* Typography */
h1 { 
    color: #333; 
    margin-bottom: 30px;
    text-align: left;
    font-size: 2.5em;
}

/* Filter Section - Outer wrapper */
.filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Container 1: Main filters */
.filter-container-main {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Container 2: Name search */
.filter-container-search {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Row 1: Main filters */
.filter-row-main {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Row 2: Name search */
.search-row-bottom {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    font-size: 0.95em;
    flex-shrink: 0;
}

.search-field-wrapper {
    position: relative;
    width: 250px;
    flex-shrink: 0;
}

.search-field-wrapper .select2-container {
    width: 100% !important;
}

/* Dog name option with icon */
.dog-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 10px;
}

.dog-name-text {
    flex: 1;
    text-align: left;
}

.newtab-icon {
    font-size: 16px;
    color: #00B7B6;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: auto;
}

/* Multi-select checkbox styling */
.select2-option-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select2-option-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.select2-option-checkbox .option-text {
    flex: 1;
}

/* Make multi-select results not close dropdown */
.select2-results__option[aria-selected] {
    cursor: pointer;
}

/* Icon positioning for filter dropdowns */
.filter-section.has-icon {
    position: relative;
}

.dropdown-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #00B7B6;
    pointer-events: none;
    z-index: 1;
}

.filter-section.has-icon select {
    padding-left: 42px !important;
}

/* Select2 multi-select specific styles */
.filter-section .select2-container {
    width: 200px !important;
}

.filter-section .select2-selection--multiple {
    min-height: 80px !important;
    max-height: 120px !important;
    overflow-y: auto !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    padding: 8px 12px 8px 42px !important;
}

.filter-section .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    align-items: center !important;
}

/* Style selection pills to match button color */
.filter-section .select2-selection--multiple .select2-selection__choice {
    display: flex !important;
    align-items: center !important;
    background: #daf7f6 !important;
    border: 1px solid #c0e8e7 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    font-size: 0.85em !important;
    color: #333 !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Hide the X remove button - comprehensive */
.filter-section .select2-selection--multiple .select2-selection__choice__remove,
.select2-selection__choice__remove,
span.select2-selection__choice__remove {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide the clear all X button */
.select2-selection__clear {
    display: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    display: none !important;
}

/* Show placeholder when no selections */
.filter-section .select2-selection--multiple .select2-selection__placeholder {
    color: #666 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Show search box in multi-select */
.filter-section .select2-selection--multiple .select2-search {
    display: none !important;
}

.filter-section .select2-selection--multiple .select2-selection__placeholder {
    color: #666;
    margin: 0 !important;
    padding: 0 !important;
}

/* Prevent text wrapping in dropdown */
.select2-results__option {
    white-space: nowrap !important;
}

/* Highlight selected options with same color */
.select2-results__option[aria-selected="true"] {
    background-color: #daf7f6 !important;
    color: #333 !important;
}

.select2-results__option--highlighted {
    background-color: #c0e8e7 !important;
    color: #333 !important;
}

/* Favorites toggle wrapper - right aligned */
.favorites-toggle-wrapper {
    margin-left: auto;
    flex-shrink: 0;
}

/* Favorites toggle container */
.favorites-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95em;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
}

.favorites-toggle-icon {
    font-size: 20px;
    color: #00B7B6;
}

.favorites-toggle-label {
    margin-right: 5px;
}

/* Toggle switch styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00b7b6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .filter-row-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section {
        width: 100%;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-buttons div {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .apply-filters-btn {
        width: 100%;
    }
    
    .start-over-link {
        text-align: center;
    }
    
    .search-row-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-field-wrapper {
        width: 100%;
    }
    
    .search-label {
        text-align: left;
    }
    
    .favorites-toggle-wrapper {
        width: 100%;
        margin-left: 0;
    }
    
    .favorites-toggle {
        justify-content: center;
    }
}

.filters h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group-single {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.filter-group-single .filter-section {
    width: 100%;
}

.filter-section-wide {
    grid-column: 1 / -1;
    width: 100%;
}

.filter-section {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-section select {
    padding: 12px 40px 12px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    color: #666;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    white-space: nowrap;
    width: 200px;
}

.filter-section select:focus {
    outline: none;
    border-color: #daf7f6;
}

.filter-section select:hover {
    border-color: #c0e8e7;
}

.filter-section select option:first-child {
    color: #666;
}

.filter-section select option:not(:first-child) {
    color: #333;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: 50px !important;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 40px 12px 12px !important;
    background: white;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px !important;
    padding-left: 0 !important;
    color: #666;
    font-size: 1em;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #666;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    right: 8px;
    top: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #666 transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-top: -2px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #666 transparent;
    border-width: 0 5px 6px 5px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #daf7f6;
    outline: none;
}

.select2-container--default:hover .select2-selection--single {
    border-color: #c0e8e7;
}

.select2-dropdown {
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    margin-top: 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #daf7f6;
    color: #333;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #c0e8e7;
    color: #333;
}

.select2-search--dropdown {
    padding: 8px;
    background: white;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 1em;
    background: white;
    color: #333;
    height: 48px;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #daf7f6;
    outline: none;
}

.select2-results__option {
    padding: 12px;
    font-size: 1em;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #666;
    font-size: 1.3em;
    line-height: 1;
    margin-right: 8px;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
}

.filter-buttons div {
    display: flex;
    gap: 15px;
    align-items: center;
}

.apply-filters-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: #daf7f6;
    color: #333;
}

.apply-filters-btn:hover {
    background: #c0e8e7;
}

.start-over-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
}

.start-over-link:hover {
    color: #333;
    text-decoration: underline;
}

/* Curated Page CTA Button */
.curated-cta-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 0 20px;
}

.curated-cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #daf7f6;
    color: #333;
    padding: 20px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 183, 182, 0.2);
}

.curated-cta-button:hover {
    background: #c0e8e7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 183, 182, 0.3);
}

.curated-cta-button .cta-icon {
    font-size: 28px;
    color: #00B7B6;
}

.curated-cta-button .cta-arrow {
    font-size: 24px;
    color: #00B7B6;
    transition: transform 0.3s;
}

.curated-cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .curated-cta-button {
        font-size: 1em;
        padding: 16px 30px;
        gap: 10px;
    }
    
    .curated-cta-button .cta-icon {
        font-size: 24px;
    }
    
    .curated-cta-button .cta-arrow {
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .curated-cta-button {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .curated-cta-button .cta-text {
        order: 1;
    }
    
    .curated-cta-button .cta-icon {
        order: 0;
    }
    
    .curated-cta-button .cta-arrow {
        display: none;
    }
}

/* Favorites warning message */
.favorites-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.favorites-warning p {
    margin: 0;
    color: #856404;
    font-weight: 600;
}

/* No favorites message */
.no-favorites-message {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.no-favorites-message p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* Share favorites link - centered below grid */
.share-link-container {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 20px;
    max-width: 1400px;
    padding: 0 20px;
}

.share-link-container.visible {
    display: flex;
}

.share-link-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    background: white;
    color: #333;
}

.copy-link-btn {
    background: #daf7f6;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-link-btn:hover {
    background: #c0e8e7;
}

.copy-link-btn .btn-icon {
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(0,0,0,0.1);
    font-size: 16px;
    color: #00B7B6;
}

.copy-link-btn .btn-text {
    padding: 0 12px;
}

/* share button up top on banner */
.share-floofs-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #daf7f6;
}

.share-floofs-btn:hover {
    background: #f0fffe;
}

.share-floofs-btn .material-symbols-outlined {
    font-size: 20px;
    color: #00B7B6;
}



/* Dogs Grid */
.dogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 40px;
    width: 100%;
    contain: layout;
    grid-auto-rows: minmax(0, auto);
}

/* Force iPad portrait to always be 2 columns */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .dogs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
}

/* Force iPad landscape to always be 3 columns */
@media (min-width: 1024px) and (orientation: landscape) {
    .dogs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* General desktop */
@media (min-width: 1024px) {
    .dogs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 1023px) {
    .dogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Small tablets and large phones */
@media (max-width: 767px) {
    .dogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px;
    }
}

/* Mobile phones only */
@media (max-width: 500px) {
    .dogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Dog Card */
.dog-card { 
    background: white; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

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

.dog-image-container {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}

.dog-card img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status tags */
.status-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* When there are multiple tags, stack them */
.status-tag:nth-child(4) {
    bottom: 60px;
}

.status-coming-soon {
    background: #F7D4FF;
    color: #333;
}

.status-pending-adoption {
    background: #3dd2e4;
    color: #333;
}

.status-adopted {
    background: #4CAF50;
    color: white;
}

.status-super-floof {
    background: #FFD000;
    color: #333;
}

/* Favorite button styles - no white background */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    padding: 0;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn .material-symbols-outlined {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.favorite-btn .heart-outline {
    color: white;
    font-variation-settings: 'FILL' 0, 'wght' 300;
}

.favorite-btn .heart-filled {
    color: #2a7b7b;
    font-variation-settings: 'FILL' 1, 'wght' 400;
    display: none;
}

.favorite-btn.is-favorite .heart-outline {
    display: none;
}

.favorite-btn.is-favorite .heart-filled {
    display: inline-block !important;
}

.dog-info {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dog-name {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.dog-gender {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.dog-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95em;
    flex: 1;
}

/* Error Message */
.error { 
    background: #ffcccc; 
    padding: 20px; 
    border-radius: 5px; 
    text-align: center;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.2em;
    color: #666;
    font-weight: 500;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 10px 0;
    padding: 20px 20px 0 20px;
}

.pagination a,
.pagination span {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    padding: 0 15px;
}

.pagination a:hover {
    background: #e8e8e8;
}

.pagination .current {
    background: #00b7b6;
    color: white;
    font-weight: 600;
    cursor: default;
}

.pagination .current:hover {
    background: #00b7b6;
}

.pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .ellipsis {
    background: transparent;
    cursor: default;
    min-width: auto;
    padding: 0 5px;
}

.pagination .ellipsis:hover {
    background: transparent;
}

.view-all-btn {
    margin-left: 15px;
    background: #daf7f6 !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.view-all-btn:hover {
    background: #c0e8e7 !important;
}

.page-info {
    text-align: center;
    padding: 0 20px 20px 20px;
    color: #666;
    font-size: 0.95em;
}

/* Responsive pagination and share link */
@media (max-width: 600px) {
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        font-size: 0.9em;
        border-radius: 10px;
        padding: 0 12px;
    }
    
    .share-link-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-link-input {
        width: 100%;
        max-width: 100%;
    }
    
    .copy-link-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Filter info when filtering */
.filter-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 0.95em;
}

/* Bio Page Specific Styles */
.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 400px;
}

/* Loading state */
.bio-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #daf7f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photo-section {
    padding: 20px;
    background: #f9f9f9;
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f0f0f0;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: #daf7f6;
}

.thumbnail.active {
    border-color: #333;
}

.bio-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 768px) {
    .bio-content {
        grid-template-columns: 1fr;
    }
    
    .info-sidebar {
        order: 2;
    }
}

.main-content {
    min-width: 0;
}

.bio-container h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.special-badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.info-sidebar {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
}

.info-item {
    margin-bottom: 20px;
    color: #555;
}

.info-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1.1em;
}

.info-item:last-child {
    margin-bottom: 0;
}

/* Bio header with name and share button */
.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.bio-header h1 {
    margin-bottom: 0;
    flex: 1;
}

/* Share button */
.share-button {
    background: #daf7f6;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-button:hover {
    background: #c0e8e7;
}

.share-icon {
    font-size: 18px;
    color: #00B7B6;
}

/* Bio action buttons - desktop layout */
.bio-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.primary-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.apply-button {
    display: inline-block;
    color: #333;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s;
    text-align: center;
    background: #daf7f6;
    flex-shrink: 0;
}

.apply-button:hover {
    background: #c0e8e7;
}

.save-later-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #333;
    border: 2px solid #2a7b7b;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.save-later-button:hover {
    background: #f0fffe;
}

.save-later-button .material-symbols-outlined {
    font-size: 20px;
}

.save-later-button .heart-outline {
    color: #2a7b7b;
    font-variation-settings: 'FILL' 0, 'wght' 400;
}

.save-later-button .heart-filled {
    color: #2a7b7b;
    font-variation-settings: 'FILL' 1, 'wght' 400;
    display: none;
}

.save-later-button.is-favorite .heart-outline {
    display: none;
}

.save-later-button.is-favorite .heart-filled {
    display: inline-block;
}

.save-later-button.is-favorite {
    background: #daf7f6;
}

/* Bio links container */
.bio-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Text links for donate and wishlist */
.bio-text-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bio-text-link:hover {
    color: #00B7B6;
}

.bio-text-link .link-icon {
    font-size: 20px;
    color: #00B7B6;
}

/* Link separator */
.link-separator {
    color: #999;
    font-weight: normal;
}

/* Bottom back link */
.back-link-bottom {
    display: inline-block;
    margin-top: 30px;
}

.back-link-bottom-outside {
    display: inline-block;
    margin: 20px 40px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.back-link-bottom-outside:hover {
    color: #666;
}

/* Mobile layout for bio page */
@media (max-width: 768px) {
    .bio-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-button {
        align-self: flex-end;
        font-size: 0.9em;
        padding: 10px 16px;
    }
    
    .bio-action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .primary-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .apply-button {
        width: 100%;
        text-align: center;
    }
    
    .save-later-button {
        width: 100%;
        justify-content: center;
    }
    
    .bio-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    
    .link-separator {
        display: none;
    }
    
    .bio-text-link {
        text-align: left;
    }
}

.video-container {
    margin: 30px 0;
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

.siblings {
    margin: 30px 0;
}

.siblings h3 {
    color: #333;
    margin-bottom: 15px;
}

.sibling-list {
    list-style: none;
    padding: 0;
}

.sibling-list li {
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 5px;
}

/* Related Dogs Section - Bio Page */
.related-dogs-section {
    background: #f5f5f5;
    padding: 10px 0 60px;
    margin-top: 20px;
}

.related-dogs-title {
    text-align: center;
    font-size: 2em;
    color: #333;
    margin-bottom: 40px;
    margin-top: 0;
    font-weight: 600;
}

.related-dogs-footer {
    text-align: center;
    margin-top: 40px;
}

.related-dogs-footer .back-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s;
}

.related-dogs-footer .back-link:hover {
    color: #00b7b6;
}

/* Ensure related dogs grid matches main adoptable dogs page */
.related-dogs-section .dogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}

/* Responsive grid for related dogs */
@media (min-width: 1024px) {
    .related-dogs-section .dogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .related-dogs-section .dogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .related-dogs-section .dogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-dogs-title {
        font-size: 1.5em;
    }
}

@media (max-width: 500px) {
    .related-dogs-section .dogs-grid {
        grid-template-columns: 1fr;
    }
}

/* Curated Page Card - Intentional Top Section */
.curated-page-card {
    background: white;
    border: 2px solid #daf7f6;
    border-radius: 10px;
    padding: 40px;
    margin: 0 0 40px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.curated-page-card h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.curated-intro {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
    text-align: left;
}

.curated-info-box {
    background: #f9f9f9;
    border-left: 4px solid #00b7b6;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    margin-top: 30px;
}

.curated-info-box h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.curated-info-box h3:first-child {
    margin-top: 0;
}

.curated-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curated-info-box li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.curated-info-box li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00b7b6;
    font-weight: bold;
    font-size: 1.2em;
}

.curated-info-box strong {
    color: #333;
}

@media (max-width: 768px) {
    .curated-page-card {
        padding: 25px 20px;
        margin: 0 0 30px 0;
    }
    
    .curated-page-card h1 {
        font-size: 1.8em;
    }
    
    .curated-intro {
        font-size: 1em;
    }
    
    .curated-info-box {
        padding: 20px;
    }
}

/* Mobile Footer Navigation */
@media (max-width: 768px) {
    .footer-navigation {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .footer-text {
        text-align: center;
    }
}

/* Curated Page Styles */
.curated-page-header {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.curated-page-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.curated-intro {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    text-align: left;
}

.curated-info-box {
    background: #f9f9f9;
    border-left: 4px solid #00b7b6;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    margin: 30px 0;
}

.curated-info-box h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.curated-info-box h3:first-child {
    margin-top: 0;
}

.curated-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curated-info-box li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.curated-info-box li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00b7b6;
    font-weight: bold;
    font-size: 1.2em;
}

.curated-info-box strong {
    color: #333;
}

.curated-footer-cta {
    background: #daf7f6;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 50px auto 40px auto;
    max-width: 800px;
}

.curated-footer-cta h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
}

.curated-footer-cta p {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .curated-page-header h1 {
        font-size: 1.8em;
    }
    
    .curated-intro {
        font-size: 1em;
    }
    
    .curated-info-box {
        padding: 20px;
    }
    
    .curated-footer-cta {
        padding: 30px 20px;
    }
    
    .curated-footer-cta h2 {
        font-size: 1.5em;
    }
}

/* Debug Info Styles */
.debug-info {
    background: #f0f0f0;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #ccc;
}

.debug-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.debug-info p {
    margin: 5px 0;
}

.debug-info strong {
    font-weight: 600;
}
