/* Carrossel de miniaturas + galeria popup dos cards de imóvel (pgal-*) */

/* Selo "Lançamento" exibido sobre a mídia do card (cor da marca aplicada
 * inline via site.cor). Fica acima das miniaturas/badge de câmera. */
.lcmt-flag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #1a9ea6;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
    pointer-events: none;
}

.lcmt-flag i {
    font-size: .72rem;
}

.pgal-thumbs {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    touch-action: pan-y;
    cursor: grab;
    background: #e9e9e9;
}

.pgal-thumbs.is-dragging {
    cursor: grabbing;
}

.pgal-track {
    display: flex;
    height: 100%;
    width: 100%;
    will-change: transform;
}

.pgal-track.is-animating {
    transition: transform .28s ease;
}

.pgal-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.pgal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.pgal-slide--more {
    cursor: pointer;
}

.pgal-slide--more .pgal-more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
    background: rgba(10, 10, 10, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.pgal-slide--more .pgal-more-overlay strong {
    font-size: 1.05rem;
}

.pgal-slide--more .pgal-more-overlay span {
    font-size: .8rem;
    font-weight: 400;
    opacity: .9;
}

.pgal-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 3;
}

.pgal-dots span {
    width: 22px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.pgal-dots span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transition: background .2s, transform .2s;
}

.pgal-dots span.is-active::before {
    background: #fff;
    transform: scale(1.2);
}

.pgal-camera-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: none;
    border-radius: 999px;
    background: rgba(10, 10, 10, .6);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.pgal-camera-badge:hover {
    background: rgba(10, 10, 10, .8);
}

/* ===== Modal / Lightbox ===== */

.pgal-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .9);
}

.pgal-modal.is-open {
    display: flex;
}

.pgal-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.pgal-modal__counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: .9rem;
    opacity: .85;
    z-index: 2;
}

.pgal-modal__stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    touch-action: pan-y;
}

.pgal-modal__track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.pgal-modal__track.is-animating {
    transition: transform .3s ease;
}

.pgal-modal__slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
}

.pgal-modal__slide img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.pgal-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
}

.pgal-modal__nav:hover {
    background: rgba(255, 255, 255, .25);
}

.pgal-modal__nav--prev {
    left: 16px;
}

.pgal-modal__nav--next {
    right: 16px;
}

.pgal-modal__loading {
    color: #fff;
    font-size: .95rem;
    opacity: .85;
}
