/* Diagnostic Partners Page Styles */

.page-container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 2rem 2rem;
    background: #ffffff;
    min-height: 100vh;
}

.feed-dashboard-header {
    margin-bottom: 2.5rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.header-content {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

/* Filter section removed to avoid conflict with premium doctors.css styles */

/* Lab Cards Grid Layout */
.masonry-feed-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 24px !important;
    padding: 2rem 4rem !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
}

/* Responsive Grid Adjustments */
@media (max-width: 1650px) {
    .masonry-feed-container {
        padding: 2rem 2rem !important;
    }
}

@media (max-width: 1300px) {
    .masonry-feed-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 950px) {
    .masonry-feed-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .masonry-feed-container {
        grid-template-columns: 1fr !important;
    }
}

/* --- PREMIUM LAB CARD DESIGN --- */

/* Premium Card Wrapper */
.lab-premium-card {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    height: 100% !important;
    position: relative !important;
}

.lab-premium-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.08) !important;
}

/* Compact Media Section (Logo Area) - Smaller */
.lab-premium-card .card-media-compact {
    width: 100% !important;
    height: 160px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.lab-premium-card .card-media-compact img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.lab-premium-card .initials-placeholder {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #475569 !important;
}

/* Badge (ISO Certified) */
.status-badge-green {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid #bbf7d0 !important;
}

/* Compact Card Body */
.card-body-compact {
    padding: 15px !important;
    /* Reduced from 18px */
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    /* Tighter spacing */
    flex: 1 !important;
    background: #fff !important;
}

.card-name {
    font-size: 1.2rem !important;
    /* Slightly smaller */
    font-weight: 850 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.card-location {
    font-size: 0.85rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.features-row {
    display: flex !important;
    gap: 8px !important;
}

.feature-tag-blue {
    font-size: 0.75rem !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    background: #eff6ff !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.tests-section {
    margin-top: 2px !important;
}

.section-label {
    display: block !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

.tags-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.doc-mini-tag {
    background: #ffffff !important;
    color: #475569 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.doc-mini-tag.more {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

/* Footer with Rating and Button Side by Side */
.card-footer-with-rating {
    margin-top: auto !important;
    padding-top: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.rating-display {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.rating-display i {
    color: #f59e0b !important;
}

.btn-book-test {
    flex: 1 !important;
    padding: 10px !important;
    background: #2563eb !important;
    color: #fff !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    transition: 0.2s !important;
}

.lab-premium-card:hover .btn-book-test {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Custom styling for initials placeholder inside the new doctor-card media area */
.doctor-card .card-media.has-placeholder {
    background: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.doctor-card .card-media.has-placeholder .initials-placeholder {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
