/* --- CONTENEDOR Y ESTRUCTURA --- */
.property-single-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.col-left {
    flex: 2;
    min-width: 300px;
}

.col-right {
    flex: 1;
    min-width: 300px;
}

/* --- ESTILO BASE --- */
.breadcrumbs {
    width: 100%;
    overflow: hidden; /* Evita que rompa el layout */
    margin-bottom: 20px;
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap; /* Obliga a los items a quedarse en una sola línea */
    font-size: 14px;
    color: #666;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.breadcrumbs a {
    color: #003366;
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li.active {
    color: #333;
    font-weight: bold;
    /* Evita que el título larguísimo de la casa rompa todo en móvil */
    max-width: 200px; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- TÍTULO --- */
.main-title {
    color: #003366;
    font-size: 2.2rem;
    margin-top: 0;
    border-bottom: 3px solid #003366;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}



/* --- PRECIO --- */
.price-container {
    margin: 40px 0;
    background: #f9f9f9;
    padding: 25px;
    border-left: 6px solid #d9534f;
    border-radius: 4px;
}

.price-container .label {
    display: block;
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
}

.price-amount {
    font-size: 32px;
    font-weight: bold;
    color: #d9534f;
}

/* --- SIDEBAR DE CONTACTO --- */
.contact-card {
    background: #003366;
    padding: 30px;
    border-radius: 12px;
    color: white;
    position: sticky;
    top: 20px; /* Se queda fijo al bajar */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-card h3 {
    margin-top: 0;
    text-align: center;
    font-size: 22px;
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px 15px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.btn-submit {
    background: #d9534f;
    color: white;
    border: none;
    padding: 16px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #c13e3a;
    transform: translateY(-2px);
}

/* --- SUGERENCIAS --- */
.similar-properties {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.section-title {
    text-align: center;
    color: #003366;
    margin-bottom: 40px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.property-card:hover { transform: translateY(-5px); }

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body { padding: 20px; }

.card-title { margin: 0 0 10px; color: #003366; }

.card-price {
    color: #d9534f;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.btn-details {
    display: block;
    text-align: center;
    background: #003366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .row { flex-direction: column; }
    .col-right { position: static; }
    .contact-card { position: static; }
    .main-image-container { height: 300px; }
}

/* --- AJUSTE PARA MÓVIL (Responsivo) --- */
@media (max-width: 768px) {
    .breadcrumbs {
display:none;
    }
}

.property-highlights {
    padding: 15px 0;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
}

.property-highlights span {
    color: #004a87; /* El azul marino de la marca */
    font-size: 16px;
    font-weight: 500;
    display: block; /* Permite que el texto fluya naturalmente */
}

/* Estilo para los separadores verticales */
.property-highlights span::after {
    content: "";
    display: none; 
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .property-highlights {
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
    }
    
    .property-highlights span {
        font-size: 14px;
        white-space: normal; /* Permite que el texto salte de línea si es muy largo */
        text-align: left;
    }
}

.property-gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.main-image-container {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f4f4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.featured-image-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f6f6f6;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.featured-image.is-visible {
    opacity: 1;
    transform: scale(1);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    backdrop-filter: blur(4px);
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}

.arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.arrow-left {
    left: 16px;
}

.arrow-right {
    right: 16px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 12px;
}

.thumb-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.25s ease;
}

.thumb-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.thumb-wrap.active::after,
.thumb-wrap:hover::after {
    background: rgba(0, 0, 0, 0.02);
}

.thumb-wrap.active {
    outline: 2px solid #e65c00;
    outline-offset: 2px;
}

.thumb {
    width: 100%;
    height: 86px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.thumb-wrap:hover .thumb {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .featured-image-stage {
        aspect-ratio: 4 / 3;
    }

    .thumb {
        height: 72px;
    }

    .arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .arrow-left {
        left: 10px;
    }

    .arrow-right {
        right: 10px;
    }
}