/* Estilos da Marca d'água - Rentimob.com */

/* Overlay da marca d'água */
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Texto da marca d'água */
.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

/* Texto adicional para criar repetição */
.watermark-text::before,
.watermark-text::after {
    content: "rentimob.com";
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
}

.watermark-text::before {
    transform: translate(-100px, -30px);
}

.watermark-text::after {
    transform: translate(100px, 30px);
}

/* Marca d'água para thumbnails */
.watermark-thumb .watermark-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.watermark-thumb .watermark-text::before {
    transform: translate(-30px, -15px);
}

.watermark-thumb .watermark-text::after {
    transform: translate(30px, 15px);
}

/* Marca d'água para modal */
.watermark-modal .watermark-text {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.25);
}

.watermark-modal .watermark-text::before {
    transform: translate(-150px, -50px);
}

.watermark-modal .watermark-text::after {
    transform: translate(150px, 50px);
}

/* Container de imagem do modal */
.modal-image-container {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Estilos para imagens com background */
.property-gallery__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.property-gallery__thumb-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Marca d'água para imóveis em destaque (caixa_imoveis.php) */
.watermark-property .watermark-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
}

.watermark-property .watermark-text::before {
    transform: translate(-60px, -20px);
}

.watermark-property .watermark-text::after {
    transform: translate(60px, 20px);
}

/* Estilos para cover-img com background */
.cover-img {
    width: 100%;
    height: 252px; /* Altura fixa baseada no max-height do container */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: block;
}

/* Ajuste para list-view */
.list-view .cover-img {
    height: 100%;
    max-height: 252px;
}

/* Estilos para modal de imagens */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.property-modal.active {
    display: block;
    align-items: center;
    justify-content: center;
}

.property-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.property-modal__content {
    position: relative;
    background: white;
    border-radius: 10px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10000;
}

.property-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.property-modal__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.property-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.property-modal__close:hover {
    color: #333;
}

.property-modal__body {
    padding: 0;
}

.property-modal__carousel {
    position: relative;
}

.property-modal__slide {
    position: relative;
}

.property-modal__image {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: block;
}

.property-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.modal-carousel-nav:hover {
    background: white;
    transform: scale(1.1);
}

.modal-carousel-nav i {
    font-size: 18px;
    color: #333;
}

.property-modal__indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #007bff;
}

/* Estilos para carousel de propriedades */
.property-item__thumb {
    position: relative !important;
    display: block !important;
    height: 252px !important;
    max-height: 252px !important;
}

.property-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 252px;
}

.property-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.property-carousel__slide.active {
    opacity: 1;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.property-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav i {
    font-size: 14px;
    color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
    .watermark-text {
        font-size: 1.5rem;
    }
    
    .watermark-modal .watermark-text {
        font-size: 2rem;
    }
    
    .watermark-thumb .watermark-text {
        font-size: 0.6rem;
    }
    
    .watermark-property .watermark-text {
        font-size: 1rem;
    }
    
    .cover-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .watermark-text {
        font-size: 1.2rem;
    }
    
    .watermark-modal .watermark-text {
        font-size: 1.5rem;
    }
    
    .watermark-thumb .watermark-text {
        font-size: 0.5rem;
    }
    
    .watermark-property .watermark-text {
        font-size: 0.8rem;
    }
    
    .cover-img {
        height: 180px;
    }
}
