/* ========================================= */
/* === ESTILOS DETALLES MASCOTA === */
/* ========================================= */

:root {
    --color-mint: #AEE2E1;
    --color-orange: #EC9C42;
    --text-dark: #333;
    --bg-gray: #f9f9f9;
}

body {
    background-color: #f4f7f6;
}

.details-wrapper {
    max-width: 1200px;
    margin: 100px auto 30px auto; /* ✅ nav fijo 80px + 20px */
    padding: 0 20px;
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--color-orange);
}

/* TARJETA PRINCIPAL */
.details-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr; /* ✅ Grid de 2 columnas iguales */
    gap: 0;
}

/* COLUMNA IZQUIERDA (FOTOS) */
.details-gallery {
    background-color: #000; /* Fondo negro para fotos */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    padding: 0;
    position: relative;
}

/* Carousel debe ocupar todo el espacio */
#carouselMascota {
    width: 100%;
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.detail-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* ✅ Contiene la imagen sin cortar */
}

/* Botones del carousel más visibles */
/* ══ PERSONALIZACIÓN FLECHAS CARRUSEL MU PSSY ══ */

/* Contenedor del botón */
.carousel-control-prev,
.carousel-control-next {
    width: 60px; /* Un poco más ancho para facilitar el clic */
    background: transparent; /* Quitamos el fondo cuadrado oscuro */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: transparent;
    opacity: 1;
}

/* El icono de la flecha propiamente */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-orange); /* ✅ El Naranja Mupssy */
    border-radius: 50%; /* Flechas circulares, más modernas */
    background-size: 50% 50%; /* Ajusta el tamaño de la flecha blanca dentro del naranja */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    filter: none; /* ✅ Eliminamos el filtro que las ponía azules/oscuras */
}

/* Efecto al pasar el mouse sobre el círculo naranja */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: #d68b38; /* Un naranja un poco más oscuro al hacer hover */
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Ajuste de posición para que no queden pegadas al borde */
.carousel-control-prev { left: 10px; }
.carousel-control-next { right: 10px; }

/* ══ INDICADORES (PUNTITOS) TAMBIÉN EN NARANJA ══ */
.carousel-indicators .active {
    background-color: var(--color-orange);
}

/* COLUMNA DERECHA (INFO) */
.details-info {
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
}

.pet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.pet-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.pet-type {
    background: var(--color-mint);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #005f5f;
    white-space: nowrap;
}

/* ETIQUETAS (EDAD, TAMAÑO) */
.pet-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tag {
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-green { background: #e8f5e9; color: #2e7d32; }
.tag-red { background: #ffebee; color: #c62828; }

/* DESCRIPCIÓN */
.pet-description h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.pet-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.vaccine-details {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0d47a1;
}

.divider {
    margin: 30px 0;
    border-color: #eee;
}

/* TARJETA DE DUEÑO */
.owner-card {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.owner-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.published-by {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.owner-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.view-profile-link {
    font-size: 0.85rem;
    color: var(--color-orange);
    text-decoration: none;
}

.btn-chat {
    background: var(--color-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-chat:hover {
    background: #d68b38;
    transform: translateY(-2px);
    color: white;
}

.btn-chat.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .details-card {
        grid-template-columns: 1fr;
    }
    
    .details-gallery {
        min-height: 400px;
    }
    
    .detail-img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .details-card {
        grid-template-columns: 1fr;
    }
    
    .details-gallery {
        min-height: 350px;
    }
    
    .detail-img {
        max-height: 350px;
    }

    .details-info {
        padding: 25px;
        max-height: auto;
    }

    .pet-header {
        flex-direction: column;
    }

    .pet-header h1 {
        font-size: 2rem;
    }

    .owner-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-chat {
        width: 100%;
        justify-content: center;
    }
}

/* === FORZAR MISMO MENU QUE INICIO === */
@media (max-width: 768px) {

    /* No queremos menú móvil, así que: */
    .menu-toggle {
        display: none !important;
    }

    .nav {
        flex-direction: row;
        align-items: center;
    }

    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }

    .nav-icon, #user-img {
        width: 35px;
        height: 35px;
    }

    .nav-list li a {
        padding: 5px;
    }

    /* Ajuste pequeño del dropdown */
    .nav2-list {
        right: -50px;
    }
}

.pet-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Adoptar (menta) */
.type-adopt {
    background: #b8ebe5;
    color: #0b6b63;
}

/* Perdido (alerta suave) */
.type-lost {
    background: #ffd6d6;
    color: #b02a2a;
}

.owner-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Contenedor del check */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    background: #1da1f2; /* Azul verificado */
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(29, 161, 242, 0.4);
}

/* Icono interno */
.verified-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* icono blanco */
}

.verified-badge:hover {
    transform: scale(1.1);
    transition: 0.2s ease;
}

/* ============================================
   NAVBAR FIJO — OVERRIDE FINAL DMascotas
   ============================================ */
.details-wrapper { margin-top: 100px !important; }

@media (max-width: 768px) {
    .details-wrapper { margin-top: 90px !important; }
}