/* ============================================================
   Mini-cards de popup do mapa (compartilhado entre as homes)
   Extraído de homepage-premium.css
   ============================================================ */

/* Override Leaflet popup defaults */
.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 260px !important;
    max-width: 280px !important;
    line-height: 1.5 !important;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Mini Card Container */
.mc-popup {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* Image wrapper */
.mc-img-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.mc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mc-popup:hover .mc-img-wrap img {
    transform: scale(1.05);
}

/* Gradient overlay on image */
.mc-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    pointer-events: none;
}

/* Badges (over image) */
.mc-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.mc-badge-tipo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: var(--mc-cor, #6c757d);
    backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
}

.mc-badge-op {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mc-badge-op.mc-sale {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.mc-badge-op.mc-rent {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

/* Body */
.mc-body {
    padding: 12px 14px 14px;
}

.mc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-loc {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mc-loc i {
    color: #ef4444;
    font-size: 0.65rem;
}

/* Features row */
.mc-feats {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mc-feats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #4b5563;
    font-weight: 500;
}

.mc-feats span i {
    color: #9ca3af;
    font-size: 0.65rem;
}

/* Footer (price + button) */
.mc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mc-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.02em;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #1a5f4a, #22845e);
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.mc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 95, 74, 0.35);
    color: #fff !important;
}

.mc-btn i {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.mc-btn:hover i {
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 480px) {
    .leaflet-popup-content {
        min-width: 220px !important;
        max-width: 240px !important;
    }
    .mc-img-wrap {
        height: 110px;
    }
    .mc-title {
        font-size: 0.8rem;
    }
    .mc-price {
        font-size: 0.85rem;
    }
}