/* Estilos globais para as páginas internas (Views) */

body {
    padding-top: 80px; /* Offset para a navbar */
}

/* CONTAINER PRINCIPAL */
.view-container {
    padding: 2rem 5%;
    min-height: calc(100vh - 80px);
}

.view-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.view-header p {
    color: var(--color-text-muted);
}

/* BREADCRUMB / VOLTAR */
.back-link {
    color: var(--color-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.5);
}

.back-link:hover {
    color: var(--color-secondary);
    background: #FFFFFF;
    transform: translateX(-5px);
    box-shadow: var(--shadow-soft);
}

/* MODULE: MAP COMPONENT (PROFISSIONAIS) */
.map-layout {
    display: grid;
    grid-template-columns: 1.2fr 380px;
    gap: 2.5rem;
    height: 75vh;
}

@media (max-width: 968px) {
    .map-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.map-area {
    background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&q=80') center/cover;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    box-shadow: var(--shadow-soft);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(14, 165, 233, 0.15); /* Tonalidade azul claro em vez de preta */
}

/* Map Markers (Simulacao) */
.marker {
    position: absolute;
    background: var(--color-primary);
    color: #FFFFFF;
    padding: 0.5rem;
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 183, 3, 0.4), inset 0 -3px 0 rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.marker:hover { transform: scale(1.3) translateY(-10px); z-index: 20; }
.marker.blue { background: var(--color-secondary); box-shadow: 0 10px 20px rgba(2, 132, 199, 0.4), inset 0 -3px 0 rgba(0,0,0,0.1); }

.m1 { top: 30%; left: 40%; }
.m2 { top: 60%; left: 20%; animation: float 4s ease-in-out infinite reverse; }
.m3 { top: 20%; left: 70%; }
.m4 { top: 75%; left: 80%; }

.map-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 1rem;
}

.filter-bar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.filter-chip {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: var(--color-text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.filter-chip.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.filter-chip.active-blue {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.clinic-card {
    background: #FFFFFF;
    padding: 1.8rem;
    border-radius: 24px;
    border: 1px solid #F1F5F9;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.clinic-card:hover { transform: translateY(-8px) scale(1.02); border-color: #BAE6FD; box-shadow: var(--shadow-soft); }
.clinic-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--color-text-main); }
.clinic-card p { font-size: 0.95rem; margin-bottom: 1rem; color: var(--color-text-muted); }
.badge { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; font-weight: 700; margin-right: 0.5rem;}
.badge-24h { background: #FEF2F2; color: #DC2626; box-shadow: inset 0 0 0 1px #FCA5A5; }
.badge-home { background: #F0F9FF; color: #0284C7; box-shadow: inset 0 0 0 1px #BAE6FD; }

/* MODULE: TIPS & TRAVEL COMMUNITY */
.travel-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.reviews-section, .tips-section {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid #F1F5F9;
    box-shadow: var(--shadow-soft);
}

.review-card {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-card:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.review-airline { font-weight: 800; color: var(--color-secondary); font-size: 1.3rem; }
.review-rating i { color: var(--color-primary); filter: drop-shadow(0 2px 4px rgba(255, 183, 3, 0.3)); }

.tips-grid { display: flex; flex-direction: column; gap: 1rem; }
.tip-item { 
    display: flex; gap: 1rem; align-items: flex-start; 
    background: #F8FAFC; padding: 1.2rem; border-radius: 16px;
    border: 1px solid #E2E8F0; transition: transform 0.3s;
}
.tip-item:hover { transform: translateX(5px); background: #F0F9FF; }
.tip-icon { font-size: 1.8rem; color: var(--color-primary); }

/* MODULE: ADOPTION GRID */
.adoption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.pet-card {
    background: #FFFFFF;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #F1F5F9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pet-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: var(--shadow-hover);
}

.pet-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pet-card:hover .pet-image { transform: scale(1.05); }

.pet-info {
    padding: 1.8rem;
    position: relative;
    background: #FFFFFF;
}

.pet-info h3 { margin-bottom: 0.2rem; font-size: 1.4rem; color: var(--color-secondary); }
.pet-info p { font-size: 0.95rem; margin-bottom: 1rem; color: var(--color-text-muted); font-weight: 500; }
