/* Estilos generales para la sección de propiedad */
.property-detail-section {
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    padding: 2rem 20px;
    margin: auto;
    line-height: 1.6;
}

.property-detail-section
.container {
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

/* Breadcrumb */
.property-breadcrumb {
    margin-bottom: 1.5rem;
}

.property-breadcrumb .breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.property-breadcrumb .breadcrumb-item a {
    color: #143D66;
    text-decoration: none;
    transition: color 0.3s;
}

.property-breadcrumb .breadcrumb-item a:hover {
    color: #1a5a8f;
    text-decoration: underline;
}

.property-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

/* Encabezado de la propiedad */
.property-view-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5eb;
}

.property-view-header h1 {
    color: #143D66;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.property-view-location {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.property-view-location i {
    color: #143D66;
    margin-right: 0.5rem;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #143D66;
    margin: 1rem 0;
}

.original-price {
    font-size: 1.4rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.8rem;
}

/* Galería de imágenes */
.property-gallery {
    margin-bottom: 2.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image {
    height: 500px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.02);
}

.thumbnail-container {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    background-color: #fff;
}

.thumbnail {
    width: 100px;
    height: 75px;
    margin-right: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: rgba(20, 61, 102, 0.5);
}

.thumbnail.active {
    border-color: #143D66;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid de detalles */
.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .property-detail-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Tarjetas de detalles */
.detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-card h2 {
    color: #143D66;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5eb;
}

.property-description {
    line-height: 1.8;
    color: #495057;
}

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s;
}

.feature-item:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.5rem;
    color: #143D66;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.feature-item div span {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.feature-item div strong {
    font-size: 1.1rem;
    color: #212529;
}

/* Grid de comodidades */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.amenity {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.amenity i {
    color: #143D66;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Información legal */
.legal-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #143D66;
}

/* Sidebar */
.property-sidebar {
    position: relative;
}

@media (min-width: 992px) {
    .property-sidebar {
        position: sticky;
        top: 20px;
    }
}

/* Tarjeta de contacto */
.contact-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: #143D66;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.agent-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5eb;
}

.agent-avatar i {
    font-size: 2.5rem;
    color: #143D66;
    margin-right: 1rem;
}

.agent-details h4 {
    margin: 0;
    color: #212529;
    font-size: 1.1rem;
}

.agent-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Botones de contacto */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.contact-btn.phone {
    background-color: #28a745;
}

.contact-btn.whatsapp {
    background-color: #25D366;
}

.contact-btn.email {
    background-color: #6c757d;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Formulario de contacto */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #143D66;
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 61, 102, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background-color: #143D66;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #1a5a8f;
    transform: translateY(-2px);
}

/* Detalles rápidos */
.property-quick-facts {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.property-quick-facts h3 {
    color: #143D66;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.property-quick-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-quick-facts li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e1e5eb;
}

.property-quick-facts li:last-child {
    border-bottom: none;
}

.property-quick-facts li span {
    color: #6c757d;
}

.property-quick-facts li strong {
    color: #212529;
    font-weight: 500;
}

.property-quick-facts li.highlight {
    background-color: rgba(20, 61, 102, 0.05);
    margin: 0 -1.5rem;
    padding: 0.7rem 1.5rem;
}

.property-quick-facts li.highlight span {
    color: #143D66;
}

.property-quick-facts li.highlight strong {
    color: #dc3545;
    font-weight: 600;
}

/* Mapa */
.property-map {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.property-map h3 {
    color: #143D66;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

#propertyMap {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Propiedades similares */
.similar-properties {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5eb;
}

.similar-properties h2 {
    color: #143D66;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.similar-property {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.similar-property:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.similar-property a {
    text-decoration: none;
    color: inherit;
}

.similar-property img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.similar-details {
    padding: 1.2rem;
}

.similar-details h4 {
    color: #143D66;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.similar-details .location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.similar-details .location i {
    margin-right: 0.5rem;
    color: #143D66;
}

.similar-details .price {
    color: #143D66;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.similar-details .features {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.similar-details .features span {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.similar-details .features i {
    margin-right: 0.3rem;
    color: #143D66;
}

/* Efectos y animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-card, .contact-card, .property-quick-facts, .property-map {
    animation: fadeIn 0.5s ease-out forwards;
}

.detail-card:nth-child(1) { animation-delay: 0.1s; }
.detail-card:nth-child(2) { animation-delay: 0.2s; }
.detail-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card { animation-delay: 0.4s; }
.property-quick-facts { animation-delay: 0.5s; }
.property-map { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .main-image {
        height: 350px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .property-header h1 {
        font-size: 1.8rem;
    }
    
    .property-price {
        font-size: 1.5rem;
    }
    
    .features-grid, .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }

    .property-quick-facts,
    .property-map,
    .contact-card,
    .detail-card{
        padding: 0px;
    }

        
}