/* ============================================
   prop-detail.css
   Estilos de ficha de propiedad (diseño nuevo).
   Servido desde /assets-new/css/prop-detail.css
   ============================================ */

/* ===== BREADCRUMB SLIM =====
   padding-top compensa el header sticky/fixed + aire visual:
   - Desktop (≥992px): 55px top-bar + 80px logo/nav + 25px aire = 160px
   - Mobile  (<992px): 82px mobile-header + 18px aire = 100px           */
.nb-breadcrumb-area {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 160px 0 20px;
}
@media (max-width: 991px) {
    .nb-breadcrumb-area {
        padding-top: 100px;
        padding-bottom: 16px;
    }
}
.nb-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
.nb-breadcrumb-list a { color: #555; text-decoration: none; }
.nb-breadcrumb-list a:hover { color: #F5B91C; }
.nb-breadcrumb-list .sep { color: #bbb; }
.nb-breadcrumb-list .current { color: #333; font-weight: 500; }

/* ===== MAIN WRAPPER ===== */
.nb-prop-area { padding: 36px 0 60px; }

/* ===== GALERÍA ===== */
.nb-gallery-wrap { margin-bottom: 36px; position: relative; }

.nb-gallery-wrap .ib-prop-gallery-main .swiper-slide img,
.nb-gallery-main-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
@media (max-width: 768px) {
    .nb-gallery-wrap .ib-prop-gallery-main .swiper-slide img,
    .nb-gallery-main-slide img { height: 240px; }
}

/* Tira de thumbs */
.nb-gallery-thumbs { margin-top: 10px; }
.nb-gallery-thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s;
}
.nb-gallery-thumbs .swiper-slide-thumb-active { opacity: 1; }
.nb-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Contador de fotos */
.nb-gallery-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.03em;
}

/* ===== GRID 2 COLUMNAS ===== */
.nb-content-grid {
    display: grid;
    grid-template-columns: 1fr 370px;
    gap: 36px;
    align-items: start;
}
@media (max-width: 1100px) {
    .nb-content-grid { grid-template-columns: 1fr; }
}

/* ===== TÍTULO + BADGES + UBICACIÓN ===== */
.nb-prop-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.nb-badge-op {
    background: #1a1a2e;
    color: #F5B91C;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 13px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.nb-badge-phase {
    background: #F5B91C;
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 13px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.nb-prop-title {
    font-size: 25px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}
@media (max-width: 768px) { .nb-prop-title { font-size: 19px; } }
.nb-prop-location-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
}
.nb-prop-location-line svg { color: #F5B91C; flex-shrink: 0; }

/* ===== QUICK FACTS ===== */
.nb-quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}
.nb-quick-fact-cell {
    background: #fff;
    padding: 18px 14px;
    text-align: center;
}
.nb-quick-fact-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #999;
    margin-bottom: 6px;
    font-weight: 600;
}
.nb-quick-fact-value {
    font-size: 19px;
    font-weight: 700;
    color: #222;
    line-height: 1.1;
}
.nb-price-cell .nb-quick-fact-value { color: #F5B91C; }
.nb-quick-fact-sub {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

/* ===== SECCIONES ===== */
.nb-section {
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 22px;
}
.nb-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F5B91C;
    display: inline-block;
}

/* ===== DESCRIPCIÓN CON TOGGLE ===== */
.nb-desc-preview {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    position: relative;
}
.nb-desc-preview.nb-clamped {
    max-height: 105px;
    overflow: hidden;
}
.nb-desc-preview.nb-clamped::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(transparent, #fff);
}
.nb-desc-full-content {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    display: none;
}
.nb-desc-full-content p { margin-bottom: 10px; }
.nb-desc-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: none;
    border: none;
    color: #F5B91C;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.nb-desc-toggle-btn:hover { text-decoration: underline; }
.nb-desc-toggle-btn svg { transition: transform 0.2s; }
.nb-desc-toggle-btn.nb-expanded svg { transform: rotate(180deg); }

/* ===== MAPA LAZY ===== */
.nb-map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 36px 20px;
    text-align: center;
}
.nb-map-placeholder p { color: #555; margin-bottom: 16px; font-size: 14px; }
.nb-map-show-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.nb-map-show-btn:hover { background: #2d2d50; }
.nb-map-frame-wrap { display: none; }
.nb-map-frame-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 8px;
    display: block;
}
.nb-no-map { color: #aaa; font-size: 14px; text-align: center; padding: 20px 0; margin: 0; }

/* ===== SIMILARES ===== */
.nb-similar-section { margin-top: 28px; }
.nb-similar-title { font-size: 20px; font-weight: 700; margin-bottom: 18px; color: #1a1a1a; }
/* 6 cards = 2 filas de 3 en desktop, 3 filas de 2 en tablet, 6 filas de 1 en mobile */
.nb-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 768px) {
    .nb-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .nb-similar-grid { grid-template-columns: 1fr; }
}
.nb-sim-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eaecef;
    text-decoration: none;
    display: block;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.nb-sim-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.nb-sim-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.nb-sim-body { padding: 12px 14px; }
.nb-sim-title {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nb-sim-price { font-size: 14px; font-weight: 700; color: #F5B91C; margin: 0; }

/* ===== VIDEO YOUTUBE ===== */
.nb-video-wrap iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
    display: block;
}
@media (max-width: 768px) {
    .nb-video-wrap iframe { height: 220px; }
}

/* ===== SIDEBAR ===== */
.nb-sidebar-sticky { position: sticky; top: 20px; }

.nb-agent-card {
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 18px;
}
.nb-agent-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.nb-agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #F5B91C;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nb-agent-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 3px;
}
.nb-agent-company { font-size: 12px; color: #777; margin: 0; }
.nb-contact-form-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 12px;
}

/* Ajuste de los campos del form heredado dentro del sidebar */
.nb-agent-card .ib-prop-agent-form input,
.nb-agent-card .ib-prop-agent-form textarea {
    width: 100%;
    box-sizing: border-box;
}
