/* Galería de propiedades */
.property-gallery {
    width: 100%;
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnails {
    width: 100%;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #0042FF;
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: #e74c3c;
}

.no-images {
    background: #f8f9fa;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: #666;
}

/* Modal para imagen completa */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 1rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: 0 auto;
    max-width: 75%;
    /* max-height: 90vh; */
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: #ccc;
}

/* Navegación del Modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-nav:hover {
    color: #ccc;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* div fondo + border */
.div-fondo-borde {
    margin: 1rem 0;
    padding: 10px 1rem;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Titulo y precio de ficha */
.property-title {
    margin: 1rem 0;
    padding: 10px 1rem;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Características de propiedad */
.features {
    margin: 20px 0;
    padding: 10px 1rem;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 1rem 0;
    padding: 10px;
}

.feature {
    /* display: flex;
    justify-content: flex-start; */
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.feature:last-child {
    border-bottom: none;
}

/* Agente */
.agent-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    background: #f8f9fa;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-info h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.h1-titulo-ficha {
    color: #0042FF;
    font-size: 2.2em;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 0;
    color: #666;
}

.breadcrumb a {
    color: #0042FF;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Precios */
.price-section {
    /* background: #ededf7; 
    padding: 20px;
    border-radius: 8px; */
    margin: 20px 0;
}

.price-tag {
    margin: 2rem 0;
}

.price-tag strong {
    font-size: 2em !important;
    color: #272727;
}


/* Descripción */
.description {
    background: #f8f9fa;
    padding: 10px 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 1rem 0;
    line-height: 1.6;
}

.datos-inmob-agente {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 1rem 0;
    line-height: 1.6;
}

/* Responsive para galería */
@media (max-width: 768px) {
    .h1-titulo-ficha {
        font-size: 1.8em;
    }

    .main-image {
        height: 300px;
    }

    .thumbnails {
        justify-content: center;
    }

    .agent-card {
        flex-direction: column;
        text-align: center;
    }

    .agent-photo {
        margin: 0 auto;
    }

    .modal-nav {
        font-size: 30px;
        padding: 5px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .image-modal {
        padding-top: 25vh;
    }
}



/* Ficha de propiedad */
.property-gallery {
    margin-bottom: 30px;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin: 1rem 0;
}

.agent-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Perfil de agente */
.agent-profile {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.agent-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}


/* Responsive */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .agent-profile {
        flex-direction: column;
        text-align: center;
    }

}


/* Sección de contacto del agente */
.agent-contact-section {
    /* background: linear-gradient(135deg, #d4d4d4 0%, #d8d8d8 100%); */
    color: rgb(39, 39, 39);
    padding: 50px 0;
    margin-top: 50px;
}

.agent-contact-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.agent-contact-section>.container>p {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1.1em;
}

.agent-contact-card {
    background: white;
    color: #333;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.agent-contact-photo {
    flex-shrink: 0;
}

.agent-contact-photo img {
    width: 120px;
    height: 120px;
    border-radius: 100%;
    object-fit: cover;
    border: 1px solid #f0f2f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #eee;
}

.agent-contact-info {
    flex: 1;
}

.agent-contact-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.agent-position {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.agent-contact-details {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.contact-icon {
    font-size: 1.2em;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.contact-icon i:hover {
    color: #666;
}

.contact-text {
    flex: 1;
    font-size: 1.1em;
}

.contact-text a {
    color: #3498db;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 15px;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20c95e;
    transform: translateY(-2px);
}

.contact-actions {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    border: none !important;
    background: #ED7600;
}

.btn-secondary:hover {
    background: #d86d01;
}

/* Responsive */
@media (max-width: 768px) {
    .agent-contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .agent-contact-photo {
        margin: 0 auto;
    }

    .agent-contact-photo img {
        width: 100px;
        height: 100px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .whatsapp-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .agent-contact-section h2 {
        font-size: 1.5em;
    }
}

/* Estilos para el carrousel de miniaturas */
.thumbnails-carousel {
    position: relative;
    margin-top: 15px;
    padding: 0 43px;
    margin-top: -130px;
    z-index: 1;
    background: linear-gradient(135deg, #ffffffad 0%, #ecececc9 100%);
}

.thumbnails-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 10px 0;
    gap: 8px;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    padding-bottom: 0;
}

.thumbnail.active {
    border-color: #ED7600;
    transform: scale(1.05);
}

.thumbnail:hover {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.3);
}

.carousel-btn:disabled:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .thumbnail {
        width: 70px;
        height: 50px;
    }

    .thumbnails-carousel {
        padding: 0 30px;
    }
}

@media (max-width: 576px) {
    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .thumbnails-carousel {
        padding: 0 25px;
        margin-top: -94px;
    }
}