.rescue-dogs-search {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-inline: 32px;
}
.search-selects{
	display: flex;
    gap: 8px;
    align-items: center;
}
.rescue-dogs-pagination {
    display: flex;
    justify-content: space-between;
    padding-inline: 32px;
}

.filter-select {
    background: #fff;
    color: var(--e-global-color-primary) !important;
    border-color: var(--e-global-color-primary) !important;
}

.search-box-button {
    color: var(--e-global-color-primary) !important;
    border-color: var(--e-global-color-primary) !important;
}

.pagination-button.disabled {
    opacity: 0.5;
}

.search-box-button:hover {
    background-color: var(--e-global-color-primary) !important;
    color: white !important;
}

.dog-link {
    text-decoration: none !important;
}

.dog-photo {
    width: 250px;
    height: 250px !important;
    object-fit: cover;
    border-radius: 10% !important;
    display: block;
}

.dog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: fit-content;
    margin: auto;
    text-align: center;
    padding-block: 16px 32px;
}

.dog-list.adopted {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.dog-list.adopted .dog-row {
    flex-direction: column;
}

.dog-list.adopted .dog-info {
    width: 250px;
}

.dog-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dog-info {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.total-dogs {
    width: fit-content;
    margin: 16px auto;
}

.dog-images-row {
    display: flex;
    overflow-x: auto;
    height: 250px;
    gap: 16px;
}

.dog-image {
    width: 250px;
    height: 250px !important;
    object-fit: cover;
    border-radius: 10% !important;
}

.dog-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
	padding-top:8px;
}

.dog-name {
    font-size: 32px;
    font-weight: bold;
}

.dog-description span {
    background: #fff !important;
    font-size: 16px !important;
}

.dog-description p {
    background: #fff !important;
    font-size: 16px !important;
}

.dog-description img {
    height: 0;
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.modal-image {
    max-width: 100%;
    max-height: 80%;
	height: 80vh;
	width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

.modal-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-counter {
    color: white;
    font-size: 16px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Make dog images clickable */
.dog-image {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dog-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .dog-photo {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: fit-content !important;
    }

    .dog-row {
        flex-direction: column
    }

    .dog-list.adopted {
        flex-direction: column;
        flex-wrap: unset;
    }
	.rescue-dogs-search{
		flex-direction:column;
	}
    
    .modal-content {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .nav-btn {
        font-size: 20px;
        padding: 8px 12px;
        min-width: 40px;
        height: 40px;
    }
    
    .modal-navigation {
        gap: 15px;
        margin-top: 15px;
    }
}

.adopt-me {
    background: var( --e-global-color-primary );
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top:10px;
    margin-bottom: 15px;
}
.adopt-me a {
    color: white !important;
    text-decoration: none !important;
}