/* ==========================================================================
   DHIIGKAAL - HEALTHCARE DIRECTORY & SERVICES DESIGN SYSTEM
   Platform Crimson Tone System & High-Visibility UI Polish
   ========================================================================== */

/* 1. HERO SECTION (RICH MEDICAL CRIMSON) */
.directory-hero,
.services-hero,
.profile-hero {
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
                linear-gradient(135deg, #ba1a21 0%, #a4161c 50%, #881016 100%);
    color: #ffffff;
    padding: 64px 0 72px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.directory-hero::after,
.services-hero::after,
.profile-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.directory-hero .container,
.services-hero .container,
.profile-hero .container {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.directory-hero small,
.services-hero small,
.profile-hero small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    margin-bottom: 12px;
}

.directory-hero h1,
.services-hero h1,
.profile-hero h1 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.16;
    color: #ffffff;
    margin: 4px 0 14px 0;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.directory-hero p,
.services-hero p,
.profile-hero p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.94);
    max-width: 740px;
    margin: 0;
    font-weight: 450;
}

.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.hero-back-link:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateX(-3px);
    color: #ffffff;
}

/* 2. SEARCH & FILTER WORKSPACE */
.directory-search-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(186, 26, 33, 0.07), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 24px 28px;
    margin-bottom: 36px;
    position: relative;
}

.directory-search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    background: linear-gradient(90deg, #ba1a21, #dc2626, #f87171);
    border-radius: 0 0 4px 4px;
}

.search-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.search-field-input,
.search-field-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.96rem;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-field-input:focus,
.search-field-select:focus {
    border-color: #ba1a21;
    box-shadow: 0 0 0 3.5px rgba(186, 26, 33, 0.14);
    outline: none;
}

.btn-search-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #ba1a21 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(186, 26, 33, 0.3);
    transition: all 0.2s ease;
    height: 48px;
}

.btn-search-primary:hover {
    background: linear-gradient(135deg, #a4161c 0%, #b91c1c 100%);
    box-shadow: 0 6px 18px rgba(186, 26, 33, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Category Pills Bar */
.filter-pills-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.filter-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-pill-btn.active {
    background: #ba1a21;
    color: #ffffff;
    border: 1.5px solid #ba1a21;
    box-shadow: 0 3px 10px rgba(186, 26, 33, 0.25);
}

.filter-pill-btn.inactive {
    background: #f8fafc;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.filter-pill-btn.inactive:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* 3. DIRECTORY CARDS GRID */
.directory-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}
/* 3. DIRECTORY CARDS GRID */
.directory-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.directory-facility-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.directory-facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -4px rgba(186, 26, 33, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    border-color: #fca5a5;
}

.directory-facility-card.is-partner {
    border-color: #cbd5e1;
}

.directory-facility-card.is-partner:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.badge-partner-pill {
    font-size: 0.76rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
    letter-spacing: 0.02em;
}

.badge-type-pill {
    font-size: 0.76rem;
    font-weight: 750;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-verified-inline {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-registered-pill {
    font-size: 0.74rem;
    font-weight: 650;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 999px;
}

.facility-card-name {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 12px 0 6px 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.facility-card-title-link {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.facility-card-title-link:hover {
    color: #ba1a21;
}

.verified-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

.facility-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 550;
    margin-bottom: 16px;
}

.location-pin-svg {
    color: #ba1a21;
    flex-shrink: 0;
}

/* Services Preview Box Inside Card */
.services-preview-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.services-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.services-preview-title {
    font-size: 0.80rem;
    font-weight: 750;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.services-count-badge {
    font-size: 0.74rem;
    font-weight: 800;
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 999px;
}

.services-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: #1e293b;
    padding: 5px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.services-preview-item:last-child {
    border-bottom: none;
}

.services-preview-price {
    font-weight: 800;
    color: #ba1a21;
    font-size: 0.88rem;
}

/* Locked Card Notice */
.locked-directory-notice {
    background: linear-gradient(135deg, #fffdf8 0%, #fef8ee 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.locked-icon-badge {
    font-size: 1.15rem;
    flex-shrink: 0;
    line-height: 1;
}

.locked-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 2px;
}

.locked-desc {
    margin: 0;
    font-size: 0.80rem;
    color: #78350f;
    line-height: 1.4;
}

.facility-card-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    background: linear-gradient(135deg, #ba1a21 0%, #a4161c 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 750;
    font-size: 0.90rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(186, 26, 33, 0.22);
    transition: all 0.2s ease;
}

.btn-view-profile:hover {
    background: linear-gradient(135deg, #99141a 0%, #881016 100%);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(186, 26, 33, 0.32);
    transform: translateY(-1px);
}

.btn-whatsapp-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 750;
    font-size: 0.90rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-whatsapp-chat:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
    transform: translateY(-1px);
}

/* 4. PROFILE SHOW PAGE WORKSPACE */
.profile-content-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    padding: 28px 32px;
    margin-bottom: 28px;
}

.profile-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.profile-service-row {
    padding: 18px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
    margin-bottom: 14px;
}

.profile-service-row:hover {
    background: #ffffff;
    border-color: #fca5a5;
    box-shadow: 0 6px 16px rgba(186, 26, 33, 0.06);
}

.profile-service-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ba1a21;
    letter-spacing: -0.02em;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .directory-search-card div[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 640px) {
    .directory-search-card div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .directory-cards-grid {
        grid-template-columns: 1fr !important;
    }
    .directory-hero h1,
    .services-hero h1,
    .profile-hero h1 {
        font-size: 1.9rem !important;
    }
}

/* 5. PAGINATION SVG CONSTRAINTS & CLEAN STYLING */
nav[role="navigation"] svg,
.pagination svg,
.pagination-wrapper svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
    width: 100%;
}

.pagination-wrapper nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
}

