/**
 * New Properties Section - Styles
 * Sección de nuevas propiedades con grid de 2 columnas
 */

/* ===================================
   SECTION BASE
   =================================== */
.new-properties-section {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.new-properties-section .section-title {
    margin-bottom: 8px;
}

.new-properties-section .section-subtitle {
    margin: 0 auto;
    max-width: 600px;
}

/* ===================================
   PROPERTY CARD
   =================================== */
.new-property-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.new-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.property-card-inner {
    display: flex;
    height: 100%;
}

/* ===================================
   IMAGE SECTION
   =================================== */
.property-image-wrapper {
    position: relative;
    width: 45%;
    min-height: 350px;
    overflow: hidden;
    flex-shrink: 0;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.new-property-card:hover .property-image-wrapper img {
    transform: scale(1.05);
}

.property-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.95rem;
}

/* Badges (Presentado, Se alquila) */
.property-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.badge-featured {
    background: linear-gradient(135deg, #bfb37b 0%, #ffb300 100%);
    color: #1a1a1a;
}

.badge-status {
    background: rgba(45, 52, 54, 0.85);
    color: #fff;
    backdrop-filter: blur(8px);
    font-weight: 500;
    font-size: 0.75rem;
}

/* Action Icons (Favorito, Compartir, Más) */
.property-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d3436;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: #bfb37b;
    color: #1a1a1a;
    transform: scale(1.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   CONTENT SECTION
   =================================== */

.new-property-card .property-location {}

.property-card-content {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 16px;
}

/* Título */
.property-title {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.property-title a {
    color: #434141;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 19px;
}

.property-title a:hover {
    color: #bfb37b;
}

/* Ubicación */
.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #636e72;
    font-size: 0.9rem;
    margin: 0 0 6px 0;
}

.property-location svg {
    flex-shrink: 0;
}

/* Características */
.property-features {
    display: grid;
    gap: 16px 12px;

    padding: 16px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #636e72;
}

.feature-item svg {
    color: #bfb37b;
    flex-shrink: 0;
}

.feature-item span {
    display: flex;

    line-height: 1.2;
}

.feature-item strong {
    color: #2d3436;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 2px;
}

/* Footer (Precio y Botón) */
.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 15px;
}

.property-price {
    font-size: 1.3rem;
    font-weight: 200;
    color: #bfb37b;
}

.btn-details {
    padding: 6px 28px;
    background: transparent;
    border: 2px solid #bfb37b;
    border-radius: 8px;
    color: #bfb37b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-details:hover {
    background: #bfb37b;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* ===================================
   VIEW MORE BUTTON
   =================================== */
.btn-view-more {
    display: inline-block;
    padding: 14px 36px;


    border-radius: 8px;

    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-view-more:hover {
    background: #bfb37b;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (max-width: 991px) {
    .property-card-inner {
        flex-direction: column;
    }

    .property-image-wrapper {
        width: 100%;
        min-height: 300px;
    }

    .property-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .new-properties-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .property-image-wrapper {
        min-height: 250px;
    }

    .property-card-content {
        padding: 20px;
    }

    .property-title {
        font-size: 1.2rem;
    }

    .property-features {
        grid-template-columns: 1fr;

    }

    .property-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 0;
    }

    .btn-details,
    .btn-view-more {
        width: 100%;
        text-align: center;
    }
    .back-to-top{
        display: none !important;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .new-properties-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .property-badges {
        top: 12px;
        left: 12px;
        gap: 6px;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .property-actions {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .action-btn {
        width: 36px;
        height: 36px;
    }

    .property-price {
        font-size: 1.4rem;
    }
}

/* ===================================
   ANIMATION
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.new-property-card {
    animation: fadeInUp 0.6s ease-out;
}

.new-property-card:nth-child(1) {
    animation-delay: 0.1s;
}

.new-property-card:nth-child(2) {
    animation-delay: 0.2s;
}

.new-property-card:nth-child(3) {
    animation-delay: 0.3s;
}

.new-property-card:nth-child(4) {
    animation-delay: 0.4s;
}