/* ==========================================================================
   Detalhes2 - Mobile-First CSS
   ========================================================================== */

:root {
    --pink: #e91e8c;
    --pink-dark: #d11a7d;
    --purple: #6f42c1;
    --teal: #20c997;
    --blue: #0dcaf0;
    --azure: #007bff;
    --dark: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-500: #adb5bd;
    --gray-700: #495057;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Page Container */
.detalhes2-page {
    /* background removed */
}

/* ==========================================================================
   Header
   ========================================================================== */
.detalhes2-header {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.detalhes2-header .container {
    max-width: 100%;
    padding: 0;
}

.header-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-info {
    flex: 1;
}

.pretitle {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    display: inline-block;
    vertical-align: middle;
}

.subtitle {
    font-weight: 400;
    color: var(--gray-700);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fav-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-500);
    transition: color 0.2s;
}

.fav-btn:hover,
.fav-btn .icon-heart.filled {
    color: var(--pink);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-contact:hover {
    background: var(--pink-dark);
    color: #fff;
}

.btn-contact:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Bio Section
   ========================================================================== */
.detalhes2-bio {
    padding: 12px 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.bio-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0;
}

.bio-text a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 500;
}

.bio-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Gallery - Full Width Grid
   ========================================================================== */
.detalhes2-gallery {
    padding: 16px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    padding: 0px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    background: #fff;
}

.gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: var(--radius);
}

.gallery-item:hover .gallery-media {
    transform: scale(1.05);
}

.gallery-item--video .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-item--video:hover .play-overlay {
    background: var(--pink);
}

/* ==========================================================================
   Info Section - No Card Wrappers
   ========================================================================== */
.detalhes2-info {
    padding: 24px 0;
}

/* Info Block - for Sobre mim and Redes Sociais */
.info-block {
    margin-bottom: 20px;
}

.info-block--sobre {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.info-block-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--dark);
}

/* Grid 2x2 (Servicos, Atende, Horarios, Valores) */
.info-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Info Card - boxes for 2x2 grid */
.info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--dark);
}

.info-card-header svg {
    color: var(--pink);
    flex-shrink: 0;
}

.info-card-body {
    padding: 16px;
}

/* Placeholder for empty data */
.info-placeholder {
    color: var(--gray-500);
    font-style: italic;
    margin: 0;
    font-size: 14px;
}

/* Descricao */
.descricao {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-700);
}

.leia-mais {
    color: var(--pink);
    text-decoration: none;
    font-weight: 500;
}

/* Cache block */
.info-block--cache {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.info-block--cache .info-block-header {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--gray-200);
}

.info-block--cache .info-block-body {
    padding-top: 12px;
}

/* Cache table */
.cache-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.cache-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.cache-table tr:last-child td {
    border-bottom: none;
}

.cache-value {
    text-align: right;
    font-weight: 600;
    color: var(--teal);
}

.cache-disclaimer {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    color: var(--gray-500);
}

/* Payment methods */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge-link {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.badge-link:hover {
    background: var(--pink);
    color: #fff;
}

/* Tags list */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tag:hover {
    opacity: 0.8;
}

.tag--teal {
    background: rgba(32, 201, 151, 0.15);
    color: #0ca678;
}

.tag--blue {
    background: rgba(13, 202, 240, 0.15);
    color: #0aa2c0;
}

.tag--azure {
    background: rgba(0, 123, 255, 0.15);
    color: var(--azure);
}

/* Schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table td {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table td:last-child {
    text-align: right;
    color: var(--gray-700);
}

/* ==========================================================================
   Social Links - Horizontal
   ========================================================================== */
.info-block--social {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.social-link img {
    vertical-align: middle;
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.detalhes2-reviews {
    padding: 24px 0;
    background: #fff;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--dark);
}

/* Empty reviews state */
.empty-reviews {
    text-align: center;
    padding: 40px 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.empty-reviews .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 8px;
}

.empty-reviews .empty-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0 0 16px;
}

.empty-reviews .btn-purple {
    background: var(--purple);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.empty-reviews .btn-purple:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Suggestions Section
   ========================================================================== */
.detalhes2-suggestions {
    padding: 24px 0;
    background: var(--gray-100);
}

/* ==========================================================================
   Offcanvas Modal - Improved Height
   ========================================================================== */
.detalhes2-page .offcanvas-bottom {
    min-height: auto;
    max-height: 80vh;
}

.detalhes2-page .offcanvas-body {
    padding: 24px 20px 40px;
}

/* Global offcanvas improvement */
#offcanvasBottom.offcanvas-bottom {
    min-height: 50vh;
    max-height: 60vh;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

#offcanvasBottom .offcanvas-header {
    padding: 24px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

#offcanvasBottom .offcanvas-header .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

#offcanvasBottom .offcanvas-title {
    font-size: 20px;
    font-weight: 600;
}

#offcanvasBottom .contact-name {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 400;
}

#offcanvasBottom .offcanvas-body {
    padding: 20px 20px 40px;
    overflow-y: auto;
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */
@media (min-width: 768px) {
    .header-row {
        flex-direction: row;
        align-items: center;
    }

    .title {
        font-size: 22px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    /* 2x2 grid for info cards */
    .info-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Social links horizontal on tablet+ */
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .social-link {
        flex: 0 0 auto;
    }
}

/* ==========================================================================
   Responsive - Desktop
   ========================================================================== */
@media (min-width: 1024px) {
    .detalhes2-header {
        padding: 20px;
        position: relative;
        top: auto;
        border-radius: var(--radius) var(--radius) 0 0;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--gray-200);
        border-bottom: none;
    }

    .detalhes2-bio {
        padding: 16px 20px 20px;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--gray-200);
        border-top: 1px solid var(--gray-200);
        margin-bottom: 16px;
    }

    .detalhes2-bio .container {
        max-width: 100%;
        padding: 0;
    }

    .detalhes2-header .container {
        max-width: 100%;
        padding: 0;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .bio-text {
        font-size: 15px;
    }
}

/* ==========================================================================
   Responsive - Large Desktop
   ========================================================================== */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-block {
    animation: fadeIn 0.3s ease forwards;
}

/* ==========================================================================
   Validacao Section Override
   ========================================================================== */
.detalhes2-info .validacao-section,
.detalhes2-info .card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Reviews in detalhes2 context
   ========================================================================== */
.detalhes2-reviews .review-item,
.detalhes2-reviews .card {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix button styles */
.btn-purple {
    background: var(--purple) !important;
    border-color: var(--purple) !important;
}

/* ==========================================================================
   Pretitle Link - Link de cidade no header
   ========================================================================== */
.pretitle-link {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pretitle-link:hover {
    color: var(--pink);
    text-decoration: underline;
}

/* ==========================================================================
   Tag Purple - Tag de cidade no "Atende em"
   ========================================================================== */
.tag--purple {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--purple);
    border: 1px solid rgba(111, 66, 193, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tag--purple:hover {
    background-color: rgba(111, 66, 193, 0.2);
    color: var(--purple);
    text-decoration: none;
}

.tag--purple svg {
    flex-shrink: 0;
}