body.obra-single-canvas,
body.obra-single-canvas *,
body.obra-single-canvas *::before,
body.obra-single-canvas *::after { box-sizing: border-box; }

.obra-single {
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    background: #f8fafc;
    padding: 32px 20px;
    overflow-x: hidden;
    max-width: 100vw;
}

.obra-single__container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

/* ── Header ── */
.obra-single__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #00318a;
    color: #fff;
    padding: 24px 28px;
    border-radius: 12px;
}

.obra-single__header h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.obra-single__badge {
    color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Media ── */
.obra-single__media {
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    max-width: 100%;
}

.obra-single__media--instagram {
    width: min(430px, 100%);
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    padding-bottom: 18px;
    background: #fff;
}

.obra-single__cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.obra-single__instagram {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    background: #fff;
}

.obra-swiper {
    width: 100%;
    overflow: hidden;
}

.obra-swiper .swiper-wrapper {
    align-items: stretch;
}

.obra-swiper .swiper-slide {
    overflow: hidden;
}

.obra-swiper .swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.obra-swiper .swiper-pagination {
    position: relative;
    margin-top: 10px;
    text-align: center;
}

.obra-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    opacity: 1;
}

.obra-swiper .swiper-pagination-bullet-active {
    background: #2563eb;
    width: 24px;
    border-radius: 4px;
}

/* ── Dados ── */
.obra-single__dados {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.obra-single__dados p {
    margin: 0;
    padding: 16px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    font-size: 0.92rem;
    line-height: 1.4;
}

.obra-single__dados p strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* ── Descricao ── */
.obra-single__descricao {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    line-height: 1.75;
    font-size: 0.92rem;
}

.obra-single__descricao p {
    margin: 0 0 10px;
}

.obra-single__descricao p:last-child {
    margin-bottom: 0;
}

/* ── Mini-mapa ── */
.obra-single__mapa {
    border-radius: 12px;
    overflow: hidden;
}

#obra-single-map {
    height: 280px;
    background: #dfe5da;
}

.obra-single-pin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15,23,42,0.25);
}

.obra-single-pin img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ── QR Code ── */
.obra-single__qr {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.obra-single__qr h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
}

#obra-single-qr canvas,
#obra-single-qr img {
    display: block;
    border-radius: 6px;
}

#obra-single-qr-download {
    border: 2px solid #0f172a;
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.2s;
}

#obra-single-qr-download:hover {
    background: #0f172a;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .obra-single__dados {
        grid-template-columns: 1fr;
    }
    .obra-single__header {
        padding: 18px 20px;
    }
    .obra-single__header h1 {
        font-size: 1.15rem;
    }
    .obra-single__qr {
        flex-direction: column;
        align-items: flex-start;
    }
    .obra-swiper .swiper-slide img,
    .obra-single__cover {
        height: 260px;
    }
}
