.pet-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pet-image {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 400px;
    object-fit: cover;
    background: #f0f0f0;
    aspect-ratio: 4 / 3;
    display: block;
}

@media (max-width: 768px) {
    .pet-image {
        min-height: 200px;
        max-height: 300px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .pet-image {
        min-height: 180px;
        max-height: 250px;
    }
}

.pet-info {
    padding: 1.5rem;
}

.pet-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.pet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #636e72;
}

.pet-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pet-description {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pet-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pet-actions button {
    flex: 1;
    min-width: 120px;
}

/* Button styles are now in app.css */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    color: #2d3436;
    font-size: 1.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #636e72;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: #2d3436;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.contact-item-content {
    flex: 1;
}

.contact-item-label {
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 0.25rem;
}

.contact-item-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
}

.contact-item-value a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item-value a:hover {
    text-decoration: underline;
}

.pet-details-content {
    line-height: 1.8;
}

.pet-details-content h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.pet-details-content h3:first-child {
    margin-top: 0;
}

.pet-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    color: #2d3436;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pet-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.pet-grid.list-view .pet-card {
    display: flex;
    flex-direction: row;
    max-width: 100%;
}

.pet-grid.list-view .pet-card>a,
.pet-grid.list-view .pet-card>div:first-child {
    flex: 0 0 300px;
    max-width: 300px;
}

.pet-grid.list-view .pet-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: none;
    border-radius: 12px 0 0 12px;
}

.pet-grid.list-view .pet-info {
    flex: 1;
    padding: 1.5rem;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    color: #636e72;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.view-toggle-btn:hover {
    background: #f0f0f0;
    color: #2d3436;
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, #b8a6bf 0%, #f3f3f3 100%);
    color: white;
}

@media (max-width: 768px) {
    .pet-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .pet-grid.list-view .pet-card {
        flex-direction: column;
    }

    .pet-grid.list-view .pet-card>a,
    .pet-grid.list-view .pet-card>div:first-child {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .pet-grid.list-view .pet-image {
        border-radius: 12px 12px 0 0;
    }
}

@media (max-width: 480px) {
    .pet-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.filters {

    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.filter-item input,
.filter-item select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.btn-like {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ccc;
    z-index: 10;
}

.btn-like:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #fffafa;
}

.btn-like.active {
    color: #ff4757;
    background: white;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-like.active i {
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Birthday Pet Highlight */
.pet-card.birthday-pet {
    border: 3px solid #feca57;
    position: relative;
    animation: borderGlow 2s infinite alternate;
}

.birthday-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #e67e22;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #feca57;
    pointer-events: none;
    animation: badgeFloat 3s ease-in-out infinite;
}

.birthday-badge i {
    color: #f39c12;
    font-size: 1rem;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes borderGlow {
    from {
        box-shadow: 0 2px 8px rgba(254, 202, 87, 0.2);
        border-color: #feca57;
    }

    to {
        box-shadow: 0 4px 20px rgba(254, 202, 87, 0.5);
        border-color: #ff9f43;
    }
}