/* /assets/css/custom-style-pet-profile.css */

:root {
    --background-color: #f8f9fa;
    --card-background-color: #ffffff;
    --primary-color: #5c9ded;
    --text-primary-color: #1f2c46;
    --text-secondary-color: #617195;
    --border-color: #e3e8f3;
    --border-radius-lg: 24px;
    --box-shadow-soft: 0 25px 50px rgba(31, 44, 82, 0.08);
}

body {
    background-color: var(--background-color);
}

.pet-profile-area {
    padding: 60px 0;
}

.pet-profile-container {
    background-color: var(--card-background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
}

/* Header */
.pet-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.pet-hero-header .pet-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary-color);
    margin: 0;
}
.pet-meta-line {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--text-secondary-color);
    font-weight: 600;
}
.pet-meta-line i {
    color: var(--primary-color);
}
.pet-actions-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.pet-action-pill {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-secondary-color);
    transition: all 0.2s ease;
    background-color: #fff;
}
.pet-action-pill:hover, .pet-action-pill.liked {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pet-action-pill.report-link:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* Gallery */
.pet-gallery .main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    touch-action: pan-y;
    cursor: grab;
}
.pet-gallery .main-image-container.is-dragging {
    cursor: grabbing;
}
.pet-gallery .main-image-container img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}
.pet-gallery .gallery-slider {
    display: flex;
    transition: transform 0.45s ease;
}
.pet-gallery .gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
}
.pet-gallery .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 2;
}
.pet-gallery .gallery-nav i {
    font-size: 1.5rem;
}
.pet-gallery .main-image-container:hover .gallery-nav,
.pet-gallery .main-image-container:focus-within .gallery-nav {
    opacity: 1;
    pointer-events: auto;
}
.pet-gallery .gallery-nav.prev { left: 16px; }
.pet-gallery .gallery-nav.next { right: 16px; }
.pet-gallery .gallery-nav:hover {
    background: rgba(0, 0, 0, 0.55);
}
.pet-gallery .gallery-nav:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
@media (max-width: 767.98px) {
    .pet-gallery .gallery-nav {
        opacity: 1;
        pointer-events: auto;
    }
}
.thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}
.thumbnail-strip .thumb {
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.thumbnail-strip .thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}
.thumbnail-strip .thumb.active {
    border-color: var(--primary-color);
}

/* Info Tabs */
.pet-info-tabs {
    height: 100%;
}
.pet-info-tabs .nav-tabs {
    border-bottom: 1px solid var(--border-color);
}
.pet-info-tabs .nav-link {
    font-weight: 600;
    color: var(--text-secondary-color);
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    padding: 0.8rem 1.5rem;
}
.pet-info-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: #f7f9fd;
    border-color: var(--border-color) var(--border-color) #f7f9fd;
}
.pet-info-tabs .tab-content {
    padding: 1rem;
    background-color: #f7f9fd;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 16px 16px;
}

/* Feature Cards */
.pet-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.pet-feature-card {
    background: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.pet-feature-card i { font-size: 1.5rem; color: var(--primary-color); }
.pet-feature-card .feature-title { font-size: 0.8rem; font-weight: 700; color: #A0AEC0; }
.pet-feature-card .feature-value { font-size: 1rem; font-weight: 700; color: var(--text-primary-color); }

/* Sections */
.pet-section {
    margin-bottom: 1.5rem;
}
.pet-section h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}
.pet-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pet-tag {
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.pet-tag.tag-green { background-color: #e6f7f2; color: #008a5b; }
.pet-tag.tag-blue { background-color: #eaf2fd; color: #3b82f6; }

/* Donor Card */
.donor-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f6fffb;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    border: 1px solid #d5f5e3;
}
.donor-card img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.donor-info h5 { font-size: 0.9rem; color: var(--text-secondary-color); margin-bottom: 0.2rem; }
.donor-info span { font-size: 1.05rem; font-weight: 700; color: var(--text-primary-color); }

/* Contact Form */
.cta-button.whatsapp-button {
    background-color: #25D366;
    border-color: #25D366;
}
.cta-button.whatsapp-button:hover {
    background-color: #1EAE54;
    border-color: #1EAE54;
}

/* Additional Sections */
.pet-clinic-section, .pet-suggestions-section, .pet-recent-section {
    margin: 3.5rem auto;
}
.clinic-highlight {
    background: linear-gradient(135deg, rgba(92, 157, 237, 0.12), rgba(72, 201, 176, 0.18));
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.clinic-highlight h3 { font-weight: 700; color: var(--text-primary-color); }
.pet-suggestions-section h3, .pet-recent-section h3 {
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}
.pet-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.pet-mini-card {
    background: var(--card-background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(34, 51, 84, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pet-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(34, 51, 84, 0.12);
}
.pet-mini-card .pet-mini-card-image {
    display: block;
}
.pet-mini-card .pet-mini-card-image img,
.pet-mini-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
}
.pet-mini-card .mini-body { padding: 1rem; }
.pet-mini-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary-color); }
.pet-mini-card p { margin: .35rem 0 0; color: var(--text-secondary-color); font-size: .9rem; }
.pet-mini-card a { display: inline-flex; align-items: center; gap: .3rem; margin-top: .6rem; font-weight: 600; color: var(--primary-color); }

/* Floating Button */
#request-location-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .pet-gallery .main-image-container img { height: 350px; }
    .pet-info-tabs { margin-top: 2rem; }
}
@media (max-width: 767px) {
    .pet-profile-container { padding: 1.5rem; }
    .pet-hero-header { flex-direction: column; align-items: flex-start; }
    .pet-actions-inline { width: 100%; justify-content: space-between; }
    .pet-action-pill { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
}

/* Card de Clínica Aprimorado */
.clinic-card {
    background: var(--card-background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(34, 51, 84, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0; /* Remover padding para a imagem encostar nas bordas */
}

.clinic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(34, 51, 84, 0.15);
}

.clinic-card .clinic-media {
    margin-bottom: 0; /* Remover margem */
    border-radius: 0; /* Remover borda arredondada */
}

.clinic-card .clinic-cover {
    border-radius: 20px 20px 0 0; /* Arredondar apenas cantos superiores */
}

.clinic-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 0.5rem;
}

.clinic-card .clinic-meta {
    color: var(--text-secondary-color);
    margin-bottom: 1rem;
}

.clinic-card p {
    color: var(--text-secondary-color);
    font-size: 0.95rem;
    flex-grow: 1; /* Faz o parágrafo ocupar o espaço disponível */
    margin-bottom: 1rem;
}

.clinic-card a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

/* Adicionar padding ao corpo do card de clínica */
.clinic-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Perfil público do pet — experiência premium v2. A galeria mantém a animação controlada por JavaScript. */
body.pet-profile-page {
    --qp-ink: #073d49;
    --qp-muted: #66818a;
    --qp-teal: #009fa8;
    --qp-aqua: #00cdb6;
    --qp-line: #d7e9e8;
    background:
        radial-gradient(circle at 4% 15%, rgba(0, 206, 183, .12), transparent 25rem),
        linear-gradient(180deg, #f5fbfb 0, #fff 42rem);
    color: var(--qp-ink);
}

.pet-profile-page .pet-profile-area {
    padding: 58px 0 32px;
}

.pet-profile-page .pet-profile-container {
    border: 1px solid var(--qp-line);
    border-radius: 30px;
    box-shadow: 0 24px 65px rgba(8, 61, 73, .10);
}

.pet-profile-page .pet-profile-main {
    overflow: hidden;
    padding: 0;
    background: #fff;
}

.pet-profile-page .pet-hero-header {
    position: relative;
    isolation: isolate;
    min-height: 180px;
    margin: 0 0 34px;
    padding: 38px 44px;
    overflow: hidden;
    background: linear-gradient(118deg, #063f4d 0%, #047e88 58%, #06aaae 100%);
    color: #fff;
}

.pet-profile-page .pet-hero-header::before,
.pet-profile-page .pet-hero-header::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(191, 255, 244, .22);
    border-radius: 50%;
    content: '';
}

.pet-profile-page .pet-hero-header::before {
    width: 330px;
    height: 330px;
    top: -185px;
    right: 9%;
}

.pet-profile-page .pet-hero-header::after {
    width: 480px;
    height: 480px;
    top: -290px;
    right: -90px;
}

.pet-profile-page .pet-hero-header .pet-name {
    max-width: 680px;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.5rem, 5vw, 4.1rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1;
}

.pet-profile-page .pet-meta-line {
    margin-top: 14px;
    color: rgba(255, 255, 255, .85);
    font-size: 1rem;
}

.pet-profile-page .pet-meta-line i {
    color: #97fff0;
}

.pet-profile-page .pet-actions-inline {
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pet-profile-page .pet-action-pill {
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: .65rem 1rem;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.pet-profile-page .pet-action-pill:hover,
.pet-profile-page .pet-action-pill.liked {
    border-color: #fff;
    background: #fff;
    color: #087e88;
}

.pet-profile-page .pet-action-pill.report-link:hover {
    border-color: #ffe4df;
    background: #fff2f0;
    color: #c74e49;
}

.pet-profile-page .pet-action-pill.like-button.liked {
    border-color: #fff;
    background: #fff;
    color: #056f79;
    box-shadow: 0 12px 24px rgba(0, 37, 48, .2);
}

.pet-profile-page .pet-action-pill.like-button.liked:hover {
    background: #dff8f4;
    color: #045d66;
    transform: translateY(-1px);
}

.pet-profile-page .pet-action-pill.like-button.liked i {
    color: #009e9d;
    animation: qp-favorite-pop .3s ease both;
}

@keyframes qp-favorite-pop {
    0% { transform: scale(.75); }
    60% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.pet-profile-page .pet-profile-main > .row {
    padding: 0 44px 44px;
}

.pet-profile-page .pet-gallery {
    position: sticky;
    top: 22px;
}

.pet-profile-page .pet-gallery .main-image-container {
    margin-bottom: 13px;
    border: 1px solid rgba(0, 145, 153, .2);
    border-radius: 24px;
    box-shadow: 0 20px 42px rgba(4, 78, 89, .16);
    background: #e8f7f6;
}

.pet-profile-page .pet-gallery .main-image-container img {
    height: clamp(330px, 38vw, 510px);
    border-radius: 23px;
}

.pet-profile-page .pet-gallery .gallery-nav {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .65);
    background: rgba(5, 63, 75, .64);
    box-shadow: 0 8px 24px rgba(1, 39, 48, .22);
}

.pet-profile-page .pet-gallery .gallery-nav:hover {
    background: var(--qp-teal);
}

.pet-profile-page .thumbnail-strip {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}

.pet-profile-page .thumbnail-strip .thumb {
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
}

.pet-profile-page .thumbnail-strip .thumb img {
    height: 66px;
    border-radius: 9px;
}

.pet-profile-page .thumbnail-strip .thumb.active {
    border-color: var(--qp-aqua);
    box-shadow: 0 5px 15px rgba(0, 191, 174, .22);
}

.pet-profile-page .pet-info-tabs {
    overflow: hidden;
    border: 1px solid var(--qp-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(6, 67, 75, .07);
}

.pet-profile-page .pet-info-tabs .nav-tabs {
    gap: 6px;
    padding: 10px 12px 0;
    border: 0;
    background: #effafa;
}

.pet-profile-page .pet-info-tabs .nav-link {
    border: 0;
    border-radius: 12px 12px 0 0;
    padding: .8rem 1rem;
    color: #54717a;
    font-weight: 800;
}

.pet-profile-page .pet-info-tabs .nav-link.active {
    border: 0;
    background: #fff;
    color: var(--qp-teal);
}

.pet-profile-page .pet-info-tabs .tab-content {
    min-height: 430px;
    padding: 25px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.pet-profile-page .pet-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.pet-profile-page .pet-feature-card {
    min-height: 112px;
    padding: 15px;
    border-color: #e0efee;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f4fbfb);
}

.pet-profile-page .pet-feature-card i {
    color: var(--qp-teal);
}

.pet-profile-page .pet-feature-card .feature-title {
    color: #789098;
}

.pet-profile-page .pet-feature-card .feature-value {
    color: var(--qp-ink);
    text-transform: capitalize;
}

.pet-profile-page .pet-section h2,
.pet-profile-page .pet-info-tabs h2 {
    margin: 0 0 12px;
    color: var(--qp-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.46rem;
    font-weight: 600;
}

.pet-profile-page .pet-tags-section {
    gap: 8px;
}

.pet-profile-page .pet-tag {
    padding: .48rem .72rem;
    border: 1px solid transparent;
    font-weight: 700;
}

.pet-profile-page .pet-tag.tag-green {
    border-color: #c9eee5;
    background: #edfff8;
    color: #087b67;
}

.pet-profile-page .pet-tag.tag-blue {
    border-color: #cbe9f0;
    background: #effafd;
    color: #087a90;
}

.pet-profile-page .donor-card,
.pet-profile-page .owner-ngo-card {
    margin-top: 22px;
    border-color: #d7efec;
    border-radius: 16px;
    background: linear-gradient(135deg, #f1fffb, #f4fbff);
}

.pet-profile-page .donor-info .donor-label,
.pet-profile-page .owner-ngo-card small {
    margin: 0 0 3px;
    color: #65828a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pet-profile-page .pet-story {
    margin-top: 34px;
    padding: 30px;
    border: 1px solid #dceeed;
    border-radius: 22px;
    background: linear-gradient(135deg, #f1fbfa, #fff);
}

.pet-profile-page .pet-section-kicker {
    margin: 0 0 7px;
    color: var(--qp-teal);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pet-profile-page .pet-story h2,
.pet-profile-page .pet-clinic-section h2,
.pet-profile-page .pet-suggestions-section > h2,
.pet-profile-page .et-recent-section > h2 {
    margin: 0 0 11px;
    color: var(--qp-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -.035em;
}

.pet-profile-page .pet-story-content {
    max-width: 850px;
    color: #58747c;
    font-size: 1.02rem;
    line-height: 1.8;
}

.pet-profile-page .pet-clinic-section,
.pet-profile-page .pet-suggestions-section,
.pet-profile-page .et-recent-section {
    margin-top: 42px;
    margin-bottom: 46px;
}

.pet-profile-page .clinic-highlight {
    padding: 33px;
    border: 1px solid #bfe9e5;
    border-radius: 24px;
    background: linear-gradient(118deg, #073f4c, #087f87 66%, #09aeb0);
    color: #fff;
    text-align: left;
    box-shadow: 0 18px 42px rgba(4, 91, 99, .16);
}

.pet-profile-page .clinic-highlight h2,
.pet-profile-page .clinic-highlight p {
    color: #fff;
}

.pet-profile-page .clinic-highlight p {
    max-width: 760px;
    margin: 0;
    opacity: .84;
}

.pet-profile-page .clinic-card,
.pet-profile-page .pet-mini-card {
    border: 1px solid var(--qp-line);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(5, 62, 73, .08);
}

.pet-profile-page .clinic-card:hover,
.pet-profile-page .pet-mini-card:hover {
    transform: translateY(-6px);
    border-color: #9fddd8;
    box-shadow: 0 22px 38px rgba(5, 91, 99, .14);
}

.pet-profile-page .clinic-card .clinic-cover,
.pet-profile-page .pet-mini-card .pet-mini-card-image img {
    height: 190px;
    border-radius: 19px 19px 0 0;
}

.pet-profile-page .clinic-card h3,
.pet-profile-page .pet-mini-card h3 {
    margin: 0;
    color: var(--qp-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.pet-profile-page .pet-suggestions-section {
    padding: 34px;
    background: #fff;
}

.pet-profile-page .et-recent-section > h2 {
    text-align: center;
}

.pet-profile-page #reportModal .modal-content {
    overflow: hidden;
    border: 1px solid #d8e9e9;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(4, 57, 67, .2);
}

.pet-profile-page #reportModal .modal-header {
    border-bottom-color: #e2efef;
    background: #f2fbfa;
}

.pet-profile-page #reportModal .modal-title {
    color: var(--qp-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
}

.pet-profile-page #reportModal .cta-button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #00c7b4, #009ca9);
    box-shadow: 0 11px 22px rgba(0, 157, 166, .2);
}

@media (max-width: 991px) {
    .pet-profile-page .pet-gallery { position: static; }
    .pet-profile-page .pet-info-tabs { margin-top: 24px; }
}

@media (max-width: 767px) {
    .pet-profile-page .pet-profile-area { padding-top: 30px; }
    .pet-profile-page .pet-hero-header { min-height: 0; padding: 29px 23px; }
    .pet-profile-page .pet-profile-main > .row { padding: 0 18px 24px; }
    .pet-profile-page .pet-actions-inline { justify-content: flex-start; }
    .pet-profile-page .pet-action-pill { padding: .56rem .72rem; font-size: .84rem; }
    .pet-profile-page .pet-gallery .main-image-container img { height: min(70vw, 420px); }
    .pet-profile-page .pet-info-tabs .tab-content { min-height: 0; padding: 19px; }
    .pet-profile-page .pet-feature-grid { grid-template-columns: 1fr 1fr; }
    .pet-profile-page .pet-story,
    .pet-profile-page .pet-suggestions-section { padding: 23px; }
    .pet-profile-page .clinic-highlight { padding: 25px; }
}
