/**
 * Yolo Properties Modern - Estilos
 * Layout moderno com overlay e animações
 */

/* Grid Container */
.yolo-properties-modern-grid {
    display: grid;
    gap: 20px;
}

/* Responsividade das colunas */
.yolo-properties-modern-grid.columns-1 { grid-template-columns: repeat(1, 1fr); }
.yolo-properties-modern-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.yolo-properties-modern-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.yolo-properties-modern-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Tablet */
@media (max-width: 1024px) {
    .yolo-properties-modern-grid.columns-tablet-1 { grid-template-columns: repeat(1, 1fr); }
    .yolo-properties-modern-grid.columns-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .yolo-properties-modern-grid.columns-tablet-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
    .yolo-properties-modern-grid.columns-mobile-1 { grid-template-columns: repeat(1, 1fr); }
    .yolo-properties-modern-grid.columns-mobile-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Item do Property */
.property-modern-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
}

.property-modern-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* Imagem de fundo */
.property-modern-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

/* Removido o zoom no hover */

/* Imagem placeholder quando não há thumbnail */
.property-modern-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-modern-no-image span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 500;
}

/* Overlay escuro */
.property-modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.4s ease;
    z-index: 1;
}

.property-modern-item:hover .property-modern-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Borda dourada animada */
.property-modern-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.property-modern-border::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid #d4af37;
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animação da borda no hover - intensifica e retrai para o centro */
.property-modern-item:hover .property-modern-border::before {
    opacity: 1;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
}

/* Conteúdo (título e link) */
.property-modern-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

/* Título */
.property-modern-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Removida a animação de deslocamento no hover */

/* Link "Conhecer" */
.property-modern-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transform: translateY(0);
    transition: all 0.4s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.property-modern-item:hover .property-modern-link {
    opacity: 1;
    transform: translateY(0);
}

.property-modern-arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.property-modern-item:hover .property-modern-arrow {
    transform: translateX(5px);
}

/* Ajustes para mobile */
@media (max-width: 767px) {
    .property-modern-item {
        height: 300px;
    }
    
    .property-modern-content {
        padding: 20px;
    }
    
    .property-modern-title {
        font-size: 20px;
    }
    
    .property-modern-link {
        font-size: 13px;
    }
    
    /* Ajuste da borda no mobile - inicia mais próxima */
    .property-modern-border::before {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    
    /* No hover mobile, retrai para o centro */
    .property-modern-item:hover .property-modern-border::before {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

/* Animação de entrada suave */
.property-modern-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay progressivo para cada item */
.property-modern-item:nth-child(1) { animation-delay: 0.1s; }
.property-modern-item:nth-child(2) { animation-delay: 0.2s; }
.property-modern-item:nth-child(3) { animation-delay: 0.3s; }
.property-modern-item:nth-child(4) { animation-delay: 0.4s; }
.property-modern-item:nth-child(5) { animation-delay: 0.5s; }
.property-modern-item:nth-child(6) { animation-delay: 0.6s; }
.property-modern-item:nth-child(7) { animation-delay: 0.7s; }
.property-modern-item:nth-child(8) { animation-delay: 0.8s; }
.property-modern-item:nth-child(9) { animation-delay: 0.9s; }

/* Efeito de ripple ao clicar */
.property-modern-link-wrapper {
    position: relative;
    overflow: hidden;
}

.property-modern-link-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.property-modern-link-wrapper:active::after {
    width: 300px;
    height: 300px;
}
