/* ===================================
   ESTILOS PARA PÁGINA INDIVIDUAL DE PROPIEDAD
   ===================================*/

/* Property Header */
.property-header {
    background: linear-gradient(135deg, #16a085, #52c5b8);
    color: white;
    padding: 8rem 0 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.property-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.property-header .container {
    position: relative;
    z-index: 2;
}

.property-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.property-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.property-meta .meta-item i {
    color: #52c5b8;
}

.property-type {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.property-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.property-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.property-actions .btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.property-actions .btn-primary {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.property-actions .btn-primary:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.property-actions .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.property-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 3rem;
}

.main-image-container {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.thumbnails-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #16a085;
    transform: scale(1.05);
}

/* Image Viewer Modal */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.viewer-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
    left: -80px;
}

.nav-button.next {
    right: -80px;
}

.close-viewer {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-viewer:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Property Information Cards */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    height: 100%;
    margin-bottom: 2rem;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: #16a085;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.info-item span {
    color: #666;
}

.feature-badge {
    background-color: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #16a085;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Property Description */
.property-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #16a085, #52c5b8);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
    border-radius: 20px;
}

.contact-section h3 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-section .btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.contact-section .btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: white;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-header {
        padding: 6rem 0 3rem 0;
    }
    
    .property-header h1 {
        font-size: 2.2rem;
    }
    
    .property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .property-actions {
        width: 100%;
    }
    
    .property-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .main-image {
        height: 300px;
    }
    
    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .nav-button.prev {
        left: 15px;
    }
    
    .nav-button.next {
        right: 15px;
    }
    
    .viewer-image {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .thumbnails-container {
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
}
