/* Provenza Properties - Estilos Mejorados v2.0 */

/* ==================== Grid de Propiedades ==================== */
.provenza-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* ==================== Tarjeta de Propiedad ==================== */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #7c601c;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.property-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.property-status-badge.status-vendida {
    background: #e74c3c;
}

.property-status-badge.status-alquilada {
    background: #f39c12;
}

.property-status-badge.status-reservada {
    background: #9b59b6;
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 26px;
    font-weight: 700;
    color: #202020;
    margin-bottom: 10px;
}

.property-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.property-title a {
    color: #202020;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.property-location {
    color: #797978;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.property-location i {
    margin-right: 10px;
    color: #2d2d2d;
    font-size: 20px;
}

/* ==================== Opciones de Pago en Card ==================== */
.property-payment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.payment-badge,
.negotiable-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f1f1;
    border-radius: 20px;
    font-size: 14px;
    color: #797978;
    border: 1px solid #e0e0e0;
}

.payment-badge i,
.negotiable-badge i {
    font-size: 0px;
    color: #7c601c;
}

/* ==================== Iconos de Compartir en Card ==================== */
.property-share-icons {
    display: flex;
    gap: 8px;
    margin: 10px 0 20px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 16px;
}

.share-icon:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.share-icon[data-network="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-icon[data-network="whatsapp"] {
    background: #25d366;
}

.share-icon[data-network="linkedin"] {
    background: #0077b5;
}

.property-features {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 15px;
}

.property-features span {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #797978;
}

.property-features i {
    margin-right: 10px;
    color: #2d2d2d;
    font-size: 20px;
}

.property-btn {
    display: inline-block;
    background: #7c601c;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.property-btn:hover {
    background: #202020;
    color: white;
}

/* ==================== Filtros de Propiedades ==================== */
.property-filters {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.filter-field select,
.filter-field input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-field select:focus,
.filter-field input:focus {
    outline: none;
    border-color: #3498db;
}

.filter-submit {
    background: #7c601c;;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.filter-submit:hover {
    background: #202020;
}

.filter-submit i {
    font-size: 14px;
}

/* ==================== Loader para AJAX ==================== */
.loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== PÃ¡gina Individual de Propiedad ==================== */
.property-single-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.property-single-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 20px;
}

.property-badge-single {
    display: inline-block;
    background: #7c601c;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.property-badge-single.badge-vendida {
    background: #e74c3c;
}

.property-badge-single.badge-alquilada {
    background: #f39c12;
}

.property-badge-single.badge-reservada {
    background: #9b59b6;
}

.property-single-title {
    font-size: 32px;
    font-weight: 700;
    color: #202020;
    margin: 10px 0;
    line-height: 1.3;
}

.property-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #797978;
    font-size: 16px;
    flex-wrap: wrap;
}

.property-meta-top span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-meta-top i {
    font-size: 10px;
}

.property-price-large {
    font-size: 36px;
    font-weight: 700;
    color: #e74c3c;
    margin:5px 0;
}

.property-code {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #797978;
    font-weight: 600;
}

/* ==================== GalerÃ­a Principal ==================== */
.property-gallery-section {
    margin-bottom: 40px;
}

.property-main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 15px;
}

.property-main-image img {
    width: 100%;
    height: 100%;
    object-fit: none;
}

.property-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.property-thumbnail {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.property-thumbnail:hover {
    border-color: #2980b9;
    transform: scale(1.05);
}

.property-thumbnail:hover,
.property-thumbnail.active {
    border-color: #7c601c;
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Sección de Video (NUEVO) ==================== */
.property-video-section {
    margin: 20px 0 40px;
    text-align: center;
}

.property-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #7c601c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 96, 28, 0.3);
}

.property-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 96, 28, 0.4);
    background: #202020;
}

.property-video-btn i {
    font-size: 20px;
}

/* ==================== Modal de Video (NUEVO) ==================== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.video-modal-close:hover {
    color: #7c601c;
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==================== Grid Principal ==================== */
.property-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* ==================== DescripciÃ³n y Detalles ==================== */
.property-main-content {
    background: white;
}

.property-section {
    margin-bottom: 40px;
}

.property-section-title {
    font-size: 26px;
    font-weight: 500;
    color: #202020;
    margin-bottom: 20px;
    border-bottom: 3px solid #7c601c;
    padding-bottom: 10px;
}

.property-description {
    font-size: 15px;
    color: #202020;
    margin-bottom: 30px;
}
.property-description-h3{
    font-size: 16px; 
    margin-bottom: 15px; 
    color: #202020;
    line-height: 1.4em;
}

/* ==================== CaracterÃ­sticas Grid ==================== */
.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: #7c601c;
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 10px;
}

.feature-label {
    font-size: 12px;
    color: #797978;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-value {
    font-size: 18px;
    font-weight: 700;
    color: #202020;
}

/* ==================== Lista de CaracterÃ­sticas ==================== */
.characteristics-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.characteristic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.characteristic-item i {
    color: #7c601c;
    font-size: 18px;
}

.characteristic-item span {
    font-size: 16px;
    color: #202020;
}

/* ==================== Sidebar ==================== */
.property-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.sidebar-widget-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #202020;
}

.property-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 500;
    color: #202020;
    font-size: 16px;
}

.spec-value {
    color: #797978;
    font-size: 16px;
}

/* ==================== Formulario de Contacto ==================== */
.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #202020;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: #7c601c;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #202020;
}

/* ==================== Compartir ==================== */
.property-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 16px;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0077b5; }

/* ==================== Opciones de Pago ==================== */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 2px solid #2d2d2d;
}

.payment-option-item i {
    font-size: 22px;
    color: #7c601c;
    margin-top: 2px;
}

.payment-option-item > div {
    flex: 1;
}

.payment-option-item strong {
    display: block;
    color: #202020;
    margin-bottom: 5px;
    font-size: 14px;
}

.payment-option-item span {
    color: #202020;
    font-size: 16px;
}

/* ==================== Responsive ==================== */
@media (max-width: 968px) {
    .provenza-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .property-content-grid {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        position: static;
    }
    
    .property-main-image {
        height: 350px;
    }
    
    .characteristics-list {
        grid-template-columns: 1fr;
    }
    
    .property-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .property-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-single-title {
        font-size: 24px;
    }
    
    .property-price-large {
        font-size: 28px;
    }
    
    /* Video Modal Responsive */
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: -35px;
        font-size: 30px;
    }
    
    .property-video-btn {
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .property-video-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .property-video-btn i {
        font-size: 20px;
    }
}