/* Estilos para la página de detalles de propiedad */

/* Breadcrumb */
.breadcrumb {
    background-color: #f9f9f9;
    padding: 1rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c8a97e;
}

/* Main Content */
.property-detail {
    padding: 3rem 0;
}

/* Gallery & Main Info */
.property-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-gallery {
    position: relative;
}

.gallery-main { /* contenedor de la galería (wrapper) */
    background: #0f0f0f;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    padding: 10px;
}

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;      /* un poco más alta para ver más detalles */
    max-height: 940px;          /* permitir mayor altura en escritorio */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #0a0a0a;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

/* Estilos para el marcado real usado en la vista */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 2px;
    scrollbar-width: thin;
}
.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}
.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.thumbnail {
    width: 110px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #111;
}

.thumbnail:hover {
    border-color: #c8a97e;
}

.thumbnail.active {
    border-color: #c8a97e;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Info */
.property-info {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: static; /* evitar superposición en escritorio */
}

.property-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.property-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: #222;
}

.property-location {
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 1rem;
}

.property-location i {
    margin-right: 0.5rem;
    color: #c8a97e;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c8a97e;
    margin: 1rem 0;
}

.property-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: #666;
    font-size: 0.95rem;
}

.property-meta i {
    color: #c8a97e;
    margin-right: 0.3rem;
}

.property-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #555;
}

.property-features {
    margin: 2rem 0;
}

.property-features h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}

.feature i {
    color: #c8a97e;
    width: 20px;
    text-align: center;
}

.property-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: #c8a97e;
    color: white;
}

.btn-primary:hover {
    background-color: #b8986e;
}

.btn-outline {
    background-color: transparent;
    color: #c8a97e;
    border: 1px solid #c8a97e;
}

.btn-outline:hover {
    background-color: rgba(200, 169, 126, 0.1);
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
}

.btn-icon:hover {
    background: #c8a97e;
    color: white;
}

/* Tabs */
.property-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 1.5rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #c8a97e;
}

.tab-btn.active {
    color: #c8a97e;
    border-bottom-color: #c8a97e;
}

.tabs-content {
    padding: 2rem 1.5rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #222;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.detail-label {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

.property-description-full {
    line-height: 1.7;
    color: #555;
}

/* Map Container */
.map-container {
    margin-bottom: 2rem;
}

#property-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

#property-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Documents */
.documents-list {
    display: grid;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #f0f0f0;
}

.document-item i {
    font-size: 2rem;
    color: #c8a97e;
    margin-right: 1.5rem;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin: 0 0 0.3rem 0;
    color: #333;
    font-size: 1rem;
}

.document-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

/* Agent Section */
.property-agent {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.agent-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
}

.agent-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid #f0f0f0;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-info h3 {
    margin: 0 0 0.5rem 0;
    color: #222;
    font-size: 1.4rem;
}

.agent-title {
    color: #c8a97e;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.agent-contact {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.agent-contact p {
    margin: 0.7rem 0;
    color: #555;
    display: flex;
    align-items: center;
}

.agent-contact i {
    margin-right: 0.8rem;
    color: #c8a97e;
    width: 20px;
    text-align: center;
}

.agent-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-block {
    width: 100%;
}

/* Contact Form */
.contact-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #222;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8a97e;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .property-main {
        grid-template-columns: 1fr;
    }
    
    .property-info {
        position: static;
    }
    
    .property-agent {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .details-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 420px; /* más altura en tablet/móvil grande */
    }
    
    .tabs-header {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 30px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .property-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-image {
        height: 320px; /* más altura en móviles pequeños */
    }
    
    .property-header h1 {
        font-size: 1.5rem;
    }
    
    .property-price {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
}
