/* 
   Clinical OS V10 - Doctors Explorer 
   Refined for Premium Horizontal Filtering
*/

:root {
    --color-primary: #2563eb;
    --color-primary-soft: #eff6ff;
    --color-accent-pink: #db2777;
    --color-accent-pink-soft: #fdf2f8;
    --color-accent-green: #16a34a;
    --color-accent-green-soft: #f0fdf4;
    --slate-50: #ffffff;
    --slate-100: #ffffff;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-900: #0f172a;
}

/* OVERRIDE GLOBAL LAYOUT PADDING FOR FLUSH ATTACHMENT */
.main-content-yt .page-container-yt {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-container-fluid {
    background: #ffffff;
    min-height: 100vh;
    padding: 0 0 3rem;
    /* Remove side padding — children manage their own edges */
}

/* --- ATTACHED CATEGORY BAR (Clinical OS Style) --- */
.q-category-nav {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 64px;
    z-index: 1001;
    width: 100%;
    display: flex !important;
    align-items: center;
    padding: 0 8px;
    flex-direction: row;
    /* Inner on left, Static on right */
}

.q-category-inner {
    flex: 1;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 12px;
    gap: 12px;
}

.q-category-inner::-webkit-scrollbar {
    display: none;
}

.v-line-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}

.q-category-static {
    flex-shrink: 0;
    padding: 8px;
    background: #ffffff;
    z-index: 10;
}

.q-category-static .qcat-btn {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    color: var(--color-primary) !important;
    min-width: 64px !important;
}

@media (min-width: 1025px) {
    .q-category-inner {
        justify-content: center;
        justify-content: safe center;
        padding: 10px 8px;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .q-category-inner {
        padding: 0.6rem 1rem;
        gap: 0.75rem;
        /* Momentum scroll for iOS */
        -webkit-overflow-scrolling: touch;
    }

    .qcat-btn {
        flex-shrink: 0;
        /* Prevent squashing */
        min-width: 72px;
        padding: 8px 0;
        border-radius: 12px;
    }

    .qcat-btn i {
        font-size: 0.85rem;
    }

    .qcat-btn span {
        font-size: 0.65rem;
        letter-spacing: -0.2px;
    }

    .qcat-btn.active::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 2px;
        background: var(--color-primary);
        border-radius: 2px;
    }
}

.qcat-btn {
    flex: 0 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    padding: 8px 4px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}

.qcat-btn i {
    font-size: 0.9rem;
    color: var(--slate-500);
}

.qcat-btn span {
    font-size: 0.62rem;
    font-weight: 800;
    color: #475569;
    white-space: nowrap !important;
    /* Force single line labels in specialty list */
}

.qcat-btn:hover {
    background: var(--color-primary-soft);
}

.qcat-btn:hover i,
.qcat-btn:hover span {
    color: var(--color-primary);
}

.qcat-btn.active {
    background: #eff6ff;
    border-color: #dbeafe;
}

.qcat-btn.active i,
.qcat-btn.active span {
    color: var(--color-primary);
    font-weight: 950;
}

/* --- ATTACHED DISCOVERY STRIP --- */
.feed-dashboard-header {
    background: #ffffff;
    padding: 0.5rem 4rem;
    /* same horizontal padding as category nav */
    border-radius: 0;
    /* flat/flush look */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    margin: 0;
    /* zero side margin — padding handles edge alignment */
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    border-left: none;
    border-right: none;
    max-width: none;
    width: 100%;
    /* full width of the zero-padded container */
}

.search-filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 0 auto;
    /* centre & shrink the interactive controls */
}

/* Industrial Filter Cards (Compact) */
.filter-group-v3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    flex: 1;
    min-width: 170px;
    transition: all 0.2s ease;
}

.filter-group-v3:hover,
.filter-group-v3:focus-within {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.q-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.filter-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filter-content label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1px;
}

.filter-content input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-900);
    outline: none;
}

.filter-content input::placeholder {
    color: #cbd5e1;
}

/* Radius / Distance Styling */
.radius-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.radius-header span {
    font-size: 0.7rem;
    font-weight: 850;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    padding: 2px 8px;
    border-radius: 4px;
    /* SHARP LOOK */
}

.distance-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    /* Thicker track */
    background: #e2e8f0;
    /* Default background */
    background-image: linear-gradient(var(--color-primary), var(--color-primary));
    background-size: var(--progress, 0%) 100%;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin-top: 15px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Groove effect */
}

.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 5px solid var(--color-primary);
    cursor: grab;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    margin-top: -8px;
    /* Perfectly centered on 8px track */
}

.distance-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.15), 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* For Firefox */
.distance-slider::-moz-range-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
}

.distance-slider::-moz-range-progress {
    height: 8px;
    background: var(--color-primary);
    border-radius: 10px;
}

/* Refresh / Submit Button */
.btn-refresh-v3 {
    width: 42px;
    height: 42px;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-refresh-v3 span {
    display: none;
    /* Hidden on Desktop to prevent overflow */
}

.btn-refresh-v3:hover {
    background: #1d4ed8;
    transform: scale(1.05) rotate(180deg);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.masonry-feed-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 4rem 2rem;
    /* increased padding to avoid sidebar crowding */
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Premium Doctor Card - Compact V2 */
.doctor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.08);
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-card:hover .card-media img {
    transform: scale(1.08);
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    font-size: 0.62rem;
    font-weight: 950;
    padding: 4px 10px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
    z-index: 5;
}

.verified-tick {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    background: var(--color-primary) !important;
    /* Platform Blue */
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
    z-index: 10 !important;
}

.card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.specialty-tag {
    font-size: 0.58rem;
    font-weight: 950;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 950;
    color: #f59e0b;
}

.review-count {
    color: var(--slate-500);
    font-size: 0.7rem;
    font-weight: 600;
}

.doctor-name {
    font-size: 1rem;
    font-weight: 950;
    color: var(--slate-900);
    margin-bottom: 3px;
    letter-spacing: -0.012em;
    line-height: 1.2;
}

.location-row {
    font-size: 0.78rem;
    color: var(--slate-500);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.mini-tag {
    background: #ffffff;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 750;
}

.action-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-view-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    background: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.78rem;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
    .btn-primary-view-full {
        font-size: 0.74rem;
        padding: 0 10px;
    }
}

.btn-primary-view-full:hover {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.btn-card-phone {
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    flex-shrink: 0;
}
.btn-card-phone:hover {
    background: #e2e8f0;
}

.btn-card-whatsapp {
    width: 42px;
    height: 42px;
    background: #ecfdf5;
    color: #16a34a;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    flex-shrink: 0;
}
.btn-card-whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.distance-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f9ff;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 850;
    margin-left: auto;
    border: 1px solid #e0f2fe;
}

.distance-badge-v2 i {
    font-size: 0.65rem;
    color: #0ea5e9;
}

/* --- BANNER / NOTIFICATIONS --- */
.distance-active-banner {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px;
    color: #166534;
    font-weight: 600;
    font-size: 0.75rem;
}

.distance-active-banner i {
    color: #22c55e;
    font-size: 1rem;
}

.clear-loc {
    margin-left: auto;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.7rem;
    background: #22c55e;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.clear-loc:hover {
    background: #16a34a;
}

/* Responsive */

@media (max-width: 1650px) {
    .masonry-feed-container {
        padding: 2rem 2rem;
    }
}

@media (max-width: 1300px) {
    .masonry-feed-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 950px) {
    .masonry-feed-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 700px) {
    .masonry-feed-container {
        grid-template-columns: 1fr;
    }

    .filter-group-v3 {
        min-width: 100%;
    }

    .feed-dashboard-header {
        padding: 1.5rem;
    }
}

/* --- PREMIUM CATEGORY EXPLORER MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10005;
    align-items: flex-end;
    /* Mobile: slides from bottom */
    justify-content: center;
    animation: fadeInOverlay 0.4s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.category-explorer-modal {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
    animation: modalSlideUpMobile 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific compact header for Post Modal */
.question-creation-modal .modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
}

.question-creation-modal .modal-header-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.question-creation-modal .modal-title-group h3 {
    font-size: 1.15rem;
}

.question-creation-modal .modal-title-group p {
    font-size: 0.8rem;
}

@media (min-width: 769px) {
    .modal-overlay {
        align-items: center;
    }

    .category-explorer-modal {
        border-radius: 28px;
        animation: modalEntranceDesktop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes modalSlideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes modalEntranceDesktop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.modal-title-group h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.modal-title-group p {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 2px 0 0 0;
    font-weight: 500;
}

.modal-close-btn {
    margin-left: auto;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn:hover {
    background: #fff;
    color: #ef4444;
    border-color: #fee2e2;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.category-grid-explorer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    padding: 32px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.category-grid-explorer::-webkit-scrollbar {
    width: 4px;
}

.category-grid-explorer::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.cat-explore-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 12px;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cat-explore-item i {
    font-size: 1.5rem;
    color: var(--slate-500);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.cat-explore-item span {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--slate-900);
    text-align: center;
    line-height: 1.2;
    z-index: 2;
}

.cat-active-indicator {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0) 100%);
    opacity: 0;
    transition: 0.3s;
}

.cat-explore-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
}

.cat-explore-item:hover .cat-active-indicator {
    opacity: 1;
}

.cat-explore-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--color-primary);
}

/* Mobile Filter Hub Styles */
.mobile-filter-tabs {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    position: relative;
    z-index: 100;
}

.m-filter-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 12px;
    color: var(--slate-500);
    transition: all 0.3s ease;
    cursor: pointer;
}

.m-filter-tab i {
    font-size: 1rem;
}

.m-filter-tab span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-filter-tab.active {
    background: #eff6ff;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .mobile-filter-tabs {
        display: none !important;
        /* Hide tabs completely */
    }

    /* THE DISCOVERY CARD - Compact Version */
    .filter-controls-premium {
        background: #ffffff !important;
        padding: 14px 15px !important;
        /* Shrunk from 24px */
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
        margin: 0 !important;
    }

    .mobile-filter-title {
        display: block !important;
        font-size: 0.95rem !important;
        /* Smaller */
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 10px !important;
        /* Tighter */
        text-align: left;
    }

    .search-filter-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* LOCATION BOX - Compact */
    .city-input-wrapper {
        background: #f1f5f9 !important;
        border: 1.2px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 6px 12px !important;
        /* Shrunk */
        margin-bottom: 10px !important;
        /* Shrunk */
        flex-direction: row !important;
        height: 44px !important;
        /* Fixed height */
    }

    .city-input-wrapper .q-icon-badge {
        width: 20px !important;
        font-size: 0.9rem !important;
    }

    .city-input-wrapper .filter-content label {
        font-size: 0.55rem !important;
        margin-bottom: 0 !important;
    }

    .city-input-wrapper .filter-content input {
        font-size: 0.8rem !important;
    }

    /* DISTANCE SECTION - Compact */
    .distance-filter-wrapper {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        /* Shrunk */
        width: 100% !important;
    }

    .radius-header {
        margin-bottom: 4px !important;
    }

    .radius-header label {
        font-size: 0.8rem !important;
        /* Smaller */
        font-weight: 700 !important;
    }

    .radius-header .radius-value {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    .radius-slider-v3 {
        width: 100% !important;
        margin-top: 2px !important;
        /* Tighter */
        height: 6px !important;
    }

    /* SEARCH BUTTON - Compact */
    .btn-refresh-v3 {
        width: 100% !important;
        height: 42px !important;
        background: #2563eb !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        gap: 8px !important;
    }

    /* CITY SUGGESTIONS DROPDOWN */
    .city-input-wrapper {
        position: relative !important;
        overflow: visible !important;
    }

    .city-suggestions {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
        z-index: 10005 !important;
        margin-top: 8px !important;
        overflow: hidden !important;
    }

    .city-suggestions div {
        padding: 12px 16px !important;
        cursor: pointer !important;
        transition: background 0.2s ease !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .city-suggestions div:hover {
        background: #f8fafc !important;
    }

    .city-suggestions div strong {
        color: #1e293b !important;
        display: block !important;
        font-size: 0.9rem !important;
    }

    .city-suggestions div small {
        color: #64748b !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 600px) {
    .category-grid-explorer {
        grid-template-columns: repeat(3, 1fr);
        padding: 24px 16px;
        gap: 12px;
    }

    .cat-explore-item {
        padding: 16px 8px;
        border-radius: 16px;
    }

    .cat-explore-item i {
        font-size: 1.25rem;
    }

    .cat-explore-item span {
        font-size: 0.72rem;
    }
}

/* ═══════════════════════════════════════════════════
   Extracted from: Views/Doctors\Book.cshtml
═══════════════════════════════════════════════════ */
.booking-hero {
            background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #2563eb 100%);
            border-radius: 28px;
            padding: 36px 40px;
            margin-bottom: 28px;
            position: relative;
            overflow: hidden;
            color: white;
        }
        .booking-hero::before {
            content: '';
            position: absolute;
            top: -60px; right: -60px;
            width: 220px; height: 220px;
            border-radius: 50%;
            background: rgba(255,255,255,0.05);
        }
        .booking-hero::after {
            content: '';
            position: absolute;
            bottom: -40px; left: 40%;
            width: 160px; height: 160px;
            border-radius: 50%;
            background: rgba(37,99,235,0.25);
        }
        .section-premium {
            background: #ffffff;
            border-radius: 24px;
            padding: 28px 32px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 24px -8px rgba(0,0,0,0.06);
            margin-bottom: 20px;
        }
        .section-premium-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
            padding-bottom: 18px;
            border-bottom: 1px solid #f8fafc;
        }
        .section-icon-box {
            width: 48px; height: 48px;
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
        }
        .field-label {
            font-size: 0.75rem;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: block;
            margin-bottom: 10px;
        }
        .field-input {
            width: 100%;
            border-radius: 14px;
            padding: 14px 18px;
            border: 2px solid #f1f5f9;
            background: #f8fafc;
            font-size: 0.95rem;
            font-weight: 600;
            color: #1e293b;
            outline: none;
            transition: all 0.2s;
            font-family: inherit;
        }
        .field-input:focus {
            border-color: #2563eb;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
        }
        .slot-pill {
            padding: 12px 20px;
            border-radius: 14px;
            border: 2px solid #e2e8f0;
            background: #f8fafc;
            font-weight: 700;
            font-size: 0.9rem;
            color: #1e293b;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
        }
        .slot-pill:hover { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
        .slot-pill.selected {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            border-color: #2563eb;
            color: #fff;
            box-shadow: 0 6px 16px rgba(37,99,235,0.3);
            transform: translateY(-1px);
        }
        .submit-btn {
            width: 100%;
            padding: 18px;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            border: none;
            border-radius: 18px;
            font-size: 1.05rem;
            font-weight: 800;
            cursor: pointer;
            letter-spacing: 0.01em;
            box-shadow: 0 8px 24px rgba(37,99,235,0.3);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,0.4); }
        .submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

        .doctor-avatar-box {
            width: 100px;
            height: 100px;
            border-radius: 24px;
            border: 4px solid rgba(255,255,255,0.15);
            overflow: hidden;
            background: #fff;
            flex-shrink: 0;
        }
        .doctor-avatar-box img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════════════
   Extracted from: Views/Doctors\BookingSuccess.cshtml
═══════════════════════════════════════════════════ */
@keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-20px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes scaleIn {
            from { opacity: 0; transform: scale(0.8); }
            to   { opacity: 1; transform: scale(1); }
        }
        @keyframes pulseRing {
            0%   { transform: scale(1); opacity: 0.6; }
            100% { transform: scale(2.4); opacity: 0; }
        }
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50%       { opacity: 0.3; }
        }
        @keyframes confettiFall {
            0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
            100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
        }

        .confetti-dot {
            position: fixed;
            width: 10px; height: 10px;
            border-radius: 3px;
            animation: confettiFall linear forwards;
            pointer-events: none;
            z-index: 9999;
        }

        .success-wrapper {
            max-width: 760px;
            margin: 0 auto;
            padding: 24px 16px 80px;
        }

        .success-hero {
            background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #2563eb 100%);
            border-radius: 28px;
            padding: 44px 40px 36px;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-bottom: 24px;
            animation: fadeInDown 0.6s ease both;
            color: white;
        }
        .success-hero::before {
            content: '';
            position: absolute;
            top: -80px; right: -80px;
            width: 260px; height: 260px;
            border-radius: 50%;
            background: rgba(255,255,255,0.04);
        }
        .success-hero::after {
            content: '';
            position: absolute;
            bottom: -60px; left: 30%;
            width: 200px; height: 200px;
            border-radius: 50%;
            background: rgba(37,99,235,0.2);
        }

        .check-circle-wrap {
            position: relative;
            width: 88px; height: 88px;
            margin: 0 auto 20px;
            z-index: 2;
        }
        .check-circle {
            width: 88px; height: 88px;
            background: linear-gradient(135deg, #10b981, #059669);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 2.2rem;
            color: #fff;
            box-shadow: 0 12px 32px rgba(16,185,129,0.4);
            animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
        }
        .pulse-ring {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            border: 2px solid rgba(16,185,129,0.5);
            animation: pulseRing 2s ease-out infinite;
            width: 88px; height: 88px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 20px;
            animation: fadeInUp 0.5s ease 0.5s both;
        }
        @media (max-width: 540px) { .info-grid { grid-template-columns: 1fr; } }

        .info-card {
            background: #fff;
            border-radius: 20px;
            padding: 22px 24px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 16px -4px rgba(0,0,0,0.06);
        }
        .info-card-icon {
            width: 44px; height: 44px;
            border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem;
            margin-bottom: 14px;
        }

        .pipeline-wrap {
            background: #fff;
            border-radius: 24px;
            padding: 28px 32px;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 16px -4px rgba(0,0,0,0.06);
            margin-bottom: 20px;
            animation: fadeInUp 0.5s ease 0.6s both;
        }
        .pipeline-step {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 14px 0;
        }
        .pipeline-step + .pipeline-step {
            border-top: 1px solid #f8fafc;
        }
        .step-num {
            width: 36px; height: 36px;
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-weight: 800;
            font-size: 0.85rem;
            flex-shrink: 0;
        }
        .step-active  { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
        .step-pending { background: #f1f5f9; color: #94a3b8; }
        .step-done    { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }

/* ═══════════════════════════════════════════════════
   Extracted from: Views/Doctors\_BookingChoiceModal.cshtml
═══════════════════════════════════════════════════ */
/* Doctor Booking Choice Modal Styles (Handled globally by shared_components.css) */
/* Kept clean for modularity and backwards compatibility */
#doctorBookingModal .modal-dialog {
    max-width: 440px;
}

/* RTL Adaptations for Doctors Explorer */
[dir="rtl"] .choice-arrow i,
[dir="rtl"] .btn-clean-back i {
    transform: scaleX(-1);
}

[dir="rtl"] .location-row i,
[dir="rtl"] .rating-badge i {
    margin-left: 4px;
    margin-right: 0;
}
