/* =========================
   NOBTI PLACES PAGE V3
   ========================= */

.places-v3-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.places-v3-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    white-space: nowrap;
}

.places-v3-filter-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.places-v3-filter-box label {
    font-weight: 900;
    color: #334155;
}

.places-v3-filter-box .form-control,
.places-v3-filter-box .form-select {
    border-radius: 16px;
}

.places-v3-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.places-v3-filter-actions .btn {
    border-radius: 16px;
    font-weight: 800;
}

.places-v3-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.places-v3-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.places-v3-stat-card span {
    display: block;
    color: #64748b;
    font-weight: 900;
    font-size: 0.86rem;
    margin-bottom: 6px;
}

.places-v3-stat-card strong {
    display: block;
    color: #1d4ed8;
    font-size: 30px;
    line-height: 1;
}

.places-v3-active-filters {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* =========================
   CARDS
   ========================= */

.places-v3-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
    transition: 0.22s ease;
}

.places-v3-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
}

.places-v3-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #94a3b8;
}

.places-v3-card-empty::before {
    background: #198754;
}

.places-v3-card-medium::before {
    background: #ffc107;
}

.places-v3-card-hot::before {
    background: #dc3545;
}

.places-v3-card-unknown::before {
    background: #64748b;
}

.places-v3-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.places-v3-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex: 0 0 52px;
}

.places-v3-card h4 {
    font-weight: 900;
    font-size: 1.18rem;
    line-height: 1.4;
}

.places-v3-card h4 a {
    text-decoration: none;
    color: #1d4ed8;
}

.places-v3-card h4 a:hover {
    color: #1e40af;
}

.places-v3-meta {
    color: #64748b;
    font-size: 0.92rem;
}

.places-v3-address {
    color: #334155;
    margin-top: 14px;
    min-height: 48px;
}

.places-v3-location-line {
    margin-bottom: 12px;
}

.location-ok {
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-block;
}

.location-missing {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-block;
}

.places-v3-status-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
}

.places-v3-expired-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 14px;
}

.places-v3-no-report-box {
    background: #fff7ed;
    border: 1px dashed #fed7aa;
    border-radius: 18px;
    padding: 14px;
    color: #7c2d12;
}

.places-v3-no-report-box strong {
    display: block;
    margin-bottom: 4px;
}

.places-v3-no-report-box small {
    color: #9a3412;
}

.status-title {
    font-weight: 900;
    color: #0f172a;
}

.places-v3-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 9px;
}

.places-v3-buttons .btn {
    border-radius: 12px;
    font-weight: 800;
}

/* Fix buttons readability */
.places-v3-buttons .btn-primary {
    color: #ffffff !important;
}

.places-v3-buttons .btn-success {
    color: #ffffff !important;
}

.places-v3-buttons .btn-outline-warning {
    color: #92400e !important;
    border-color: #f59e0b;
    background: #fffbeb;
}

.places-v3-buttons .btn-outline-warning:hover {
    color: #ffffff !important;
    background: #f59e0b;
    border-color: #f59e0b;
}

/* =========================
   EMPTY STATE
   ========================= */

.places-v3-empty-state {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 28px;
    padding: 44px 24px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.places-v3-empty-state .empty-state-icon {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 18px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
    .places-v3-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .places-v3-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .places-v3-actions {
        white-space: normal;
    }

    .places-v3-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .places-v3-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .places-v3-hero,
    .places-v3-filter-box,
    .places-v3-card {
        border-radius: 20px;
        padding: 18px;
    }

    .places-v3-stats-grid {
        grid-template-columns: 1fr;
    }

    .places-v3-filter-actions .btn {
        width: 100%;
    }

    .places-v3-card-header {
        flex-direction: column;
    }

    .places-v3-icon {
        width: 48px;
        height: 48px;
    }
}
.smart-status-mini {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.smart-status-mini span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #334155;
}

/* Public cleanup: hide technical internal metrics from public places cards */
.places-v3-card .smart-status-mini span:nth-child(n+2) {
    display: none;
}

.places-v3-card .smart-status-mini span:first-child {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
}