body { background: #f2f4f8; }

/* ══ Page header ══ */
.maq-detail-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 20px 0 16px;
}
.maq-detail-header h1 {
    font-family: var(--font-main);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin: 6px 0 0;
    line-height: 1.2;
}
.maq-detail-header .breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}
.maq-detail-header .breadcrumb-item,
.maq-detail-header .breadcrumb-item a {
    font-family: var(--font-main);
    font-size: 0.83rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.maq-detail-header .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.maq-detail-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

.btn-back {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    text-decoration: none;
    margin-bottom: 8px;
}
.btn-back:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ══ Main layout ══ */
.maq-detail-body { padding: 28px 0 60px; }

/* ══ Gallery ══ */
.gallery-main {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e7f0;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-no-img {
    text-align: center;
    padding: 40px;
    cursor: default;
}
.gallery-no-img i { font-size: 4rem; color: #b8cce0; display: block; margin-bottom: 12px; }
.gallery-no-img span {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: #a0b4c8;
}
.gallery-count-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.52);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, opacity 0.15s;
    background: #e8edf8;
    opacity: 0.7;
}
.gallery-thumb.active { border-color: var(--color-primary); opacity: 1; }
.gallery-thumb:hover  { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ══ Card sections ══ */
.maq-card-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e7f0;
    padding: 22px 24px;
    margin-top: 18px;
}
.section-title-bar {
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title-bar i { color: var(--color-primary-light); }

/* ══ Specs grid ══ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
}
@media (max-width: 575px) { .specs-grid { grid-template-columns: 1fr; } }
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f0f4fa;
    gap: 10px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.spec-key i { font-size: 0.73rem; color: var(--color-primary-light); width: 13px; text-align: center; }
.spec-val {
    font-family: var(--font-main);
    font-size: 0.93rem;
    font-weight: 700;
    color: #1a2340;
    text-align: right;
}

/* ══ Info card (sticky sidebar) ══ */
.maq-info-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e7f0;
    padding: 22px 22px 20px;
    position: sticky;
    top: 88px;
}

/* Type/status badges */
.type-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tbadge {
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tbadge-venta   { background: var(--color-primary); color: #fff; }
.tbadge-renta   { background: var(--color-accent);  color: #fff; }
.tbadge-avail   { background: rgba(25,135,84,0.12); color: #146c43; border: 1px solid rgba(25,135,84,0.25); }
.tbadge-rented  { background: rgba(13,110,253,0.11); color: #0a58ca; border: 1px solid rgba(13,110,253,0.22); }
.tbadge-sold    { background: rgba(220,53,69,0.1);  color: #b02a37; border: 1px solid rgba(220,53,69,0.22); }

/* Title area */
.info-title {
    font-family: var(--font-main);
    font-size: clamp(1.35rem, 2.5vw, 1.7rem);
    font-weight: 900;
    color: #0a2744;
    line-height: 1.2;
    margin-bottom: 3px;
}
.info-subtitle {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 16px;
}

/* Notice banners */
.notice-rented {
    background: rgba(13,110,253,0.07);
    border: 1px solid rgba(13,110,253,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: #0a58ca;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}
.notice-sold {
    background: rgba(220,53,69,0.07);
    border: 1px solid rgba(220,53,69,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: #b02a37;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}
.notice-rented i, .notice-sold i { margin-top: 2px; flex-shrink: 0; }

/* Price blocks */
.price-block { margin-bottom: 14px; }
.price-label {
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 2px;
}
.price-main {
    font-family: var(--font-main);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-primary-dark);
    line-height: 1;
}
.price-main .ps { font-size: 0.85rem; font-weight: 500; color: var(--color-gray); }
.price-alt {
    font-family: var(--font-main);
    font-size: 0.88rem;
    color: var(--color-gray);
    margin-top: 3px;
}
.price-alt strong { color: #1a2340; }

/* Mini specs */
.specs-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    padding: 12px 14px;
    background: #f6f9ff;
    border-radius: 8px;
    margin-bottom: 16px;
}
.smi {
    font-family: var(--font-main);
    font-size: 0.83rem;
    color: #1a2340;
    display: flex;
    align-items: center;
    gap: 5px;
}
.smi i { font-size: 0.75rem; color: var(--color-primary-light); width: 13px; text-align: center; }

.info-divider { border: none; border-top: 1px solid #eef1f8; margin: 14px 0; }

/* CTA buttons */
.btn-wa {
    font-family: var(--font-main);
    font-size: 0.97rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
    text-decoration: none;
}
.btn-wa:hover  { background: #1ead53; color: #fff; }
.btn-wa.is-disabled { background: #9e9e9e; cursor: not-allowed; pointer-events: none; opacity: 0.7; }

.btn-outline-catalog {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    padding: 10px 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-outline-catalog:hover { background: var(--color-primary); color: #fff; }

.publisher-note {
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--color-gray);
    text-align: center;
    margin-top: 12px;
}

/* Description */
.desc-text {
    font-family: var(--font-main);
    font-size: 0.96rem;
    color: #3a4060;
    line-height: 1.65;
    white-space: pre-line;
}

/* ══ Lightbox ══ */
.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,12,30,0.9);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lb-close {
    position: absolute;
    top: 14px;
    right: 18px;
    color: rgba(255,255,255,0.8);
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.15s;
}
.lb-close:hover { color: #fff; }
.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.lb-btn:hover { background: rgba(255,255,255,0.24); }
.lb-btn-prev { left: 14px; }
.lb-btn-next { right: 14px; }
.lb-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.65);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(0,0,0,0.4);
    padding: 3px 12px;
    border-radius: 20px;
}

/* ══ Share button ══ */
.btn-share-toggle {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    padding: 10px 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 8px;
}
.btn-share-toggle:hover { background: var(--color-primary); color: #fff; }

/* Share menu */
.share-menu {
    display: none;
    position: absolute;
    top: -200px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 100;
    min-width: 200px;
    overflow: hidden;
    animation: slideUpShare 0.25s ease;
}
.share-menu.open { display: block; }
@keyframes slideUpShare {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.share-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f8;
    background: #f6f9ff;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray);
}
.share-menu-body { padding: 0; }
.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f4fa;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: #1a2340;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
}
.share-item:last-child { border-bottom: none; }
.share-item:hover { background: #f6f9ff; }
.share-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}
.share-item.whatsapp i   { color: #25d366; }
.share-item.facebook i   { color: #1877f2; }
.share-item.twitter i    { color: #1da1f2; }
.share-item.linkedin i   { color: #0a66c2; }
.share-item.email i      { color: #ea6311; }
.share-item.copy i       { color: var(--color-primary); }

/* Share wrapper */
.share-wrapper {
    position: relative;
}
