/* Premium Pet Detail Styles */
.pet-detail-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Breadcrumb Style */
.breadcrumb {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-inner a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.breadcrumb-inner a:hover {
    color: var(--primary);
}

/* Hero Grid */
.pet-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .pet-hero-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .pet-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Gallery Section */
.gallery-container {
    position: relative; /* Default to relative for mobile */
    width: 100%;
}

@media (min-width: 993px) {
    .gallery-container {
        position: sticky;
        top: 100px;
    }
}

.slider-viewport {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

.main-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.main-slider::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8);
}

.slider-viewport:hover .slider-arrow {
    opacity: 1;
    transform: scale(1);
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
}

.thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.thumb-item {
    flex: 0 0 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumb-item.active {
    border-color: var(--primary);
    opacity: 1;
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Stack */
.glass-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.pet-title-block h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: -0.04em;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    font-weight: 700;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-premium {
    flex: 1;
    padding: 1.5rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-adopt {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-adopt:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

.btn-share {
    background: white;
    color: #ef4444;
    border: 2px solid var(--border);
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.btn-share.active {
    background: #ef4444;
    color: white !important;
    border-color: #ef4444;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.btn-share:hover {
    transform: translateY(-3px) scale(1.05);
    background: #fff5f5;
    border-color: #ef4444;
}

.btn-share:active {
    transform: scale(0.95);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 2.5rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.contact-item:hover {
    transform: translateX(10px);
    background: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Empty State */
.no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
    color: var(--text-lighter);
}

.no-photo i {
    font-size: 5rem;
}

.no-photo span {
    font-weight: 700;
    font-size: 1.2rem;
}

.description-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
}

.attribute-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.attr-tag {
    background: white;
    border: 1px solid var(--border);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.attr-tag i {
    color: var(--primary);
}

.special-needs-alert {
    background: #fff5f5;
    border-left: 5px solid var(--danger);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.special-needs-alert h4 {
    color: var(--danger);
    margin-bottom: 0.5rem;
}