/* ============================================================
   ডক্টরপাড়া — doctors.css
   Professional Redesign
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */

/* ── Base ───────────────────────────────────────────────────── */

/* ============================================================
   NAVBAR
   ============================================================ */

/* ============================================================
   MOBILE HEADER
   ============================================================ */

/* ============================================================
   SIDE DRAWER
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1081A0 55%, var(--secondary) 100%);
    padding: 52px 0 64px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: -60px; right: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: rgba(255,255,255,.06); pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute; bottom: -80px; left: -60px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(255,255,255,.05); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.hero-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 16px;
}
.hero-breadcrumb a { color: rgba(255,255,255,.75); transition: var(--transition); }
.hero-breadcrumb a:hover { color: var(--white); }
.hero-breadcrumb i { font-size: .7rem; }
.page-hero h1 { font-size: 2.4rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.page-hero h1 span { color: #7FECF7; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 28px; }

/* Hero Search Bar — single-row card with auto-submit */
.hero-search-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 6px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.hero-search-field {
    flex: 1 1 130px;
    min-width: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-right: 1px solid var(--border);
    min-height: 48px;
}
.hero-search-field--keyword { flex: 1.6 1 180px; }
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.hero-search-field input,
.hero-search-field select {
    border: none; outline: none; background: transparent;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: .92rem; color: var(--text); width: 100%;
    appearance: none; padding: 0;
    min-width: 0; /* allow shrink in flex */
    text-overflow: ellipsis;
}
.hero-search-field input::placeholder,
.hero-search-field select option:first-child { color: var(--text-muted); }
.hero-search-field select { cursor: pointer; }

/* Auto-submit loading overlay */
.doc-filter-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(15, 23, 42, .35); backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center;
}
.doc-filter-overlay.show { display: flex; }
.doc-filter-spinner {
    background: #fff; padding: 16px 26px; border-radius: 99px;
    font-family: 'Hind Siliguri', sans-serif; font-weight: 700; color: var(--primary);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    display: flex; align-items: center; gap: 10px;
}
.doc-filter-spinner i {
    display: inline-block; animation: doc-spin 0.8s linear infinite;
    font-size: 1.2rem;
}
@keyframes doc-spin { to { transform: rotate(360deg); } }
.btn-search {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); border: none;
    border-radius: var(--radius-sm);
    padding: 13px 24px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: .93rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn-search:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11,85,99,.3); }

/* Hero Stats Row */
.hero-stats-row {
    display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap;
}
.hero-stat {
    display: flex; align-items: center; gap: 10px;
}
.hero-stat-num { font-size: 1.4rem; font-weight: 700; color: var(--white); }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.65); line-height: 1.3; }

/* Hero Wave */
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }

/* ============================================================
   SPECIALTY CHIPS (horizontal scroll)
   ============================================================ */
.specialty-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}
.specialty-chips {
    display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden;
    padding: 0 0 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #0ea5e9 #e2e8f0;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
/* First chip (সকল) — sticky on left while others scroll */
.specialty-chips > .chip:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #ffffff;
    box-shadow: 6px 0 12px -6px rgba(0,0,0,.18);
}
.specialty-chips > .chip:first-child.active,
.specialty-chips > .chip:first-child:hover {
    background: linear-gradient(135deg, #0ea5e9, #0c4a6e) !important;
    color: #fff !important;
    border-color: #0ea5e9 !important;
}
.specialty-chips::-webkit-scrollbar { height: 8px; }
.specialty-chips::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.specialty-chips::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #0ea5e9, #0c4a6e);
    border-radius: 10px;
}
.specialty-chips::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0284c7, #075985);
}
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-family: 'Hind Siliguri', sans-serif;
    font-size: .83rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: var(--transition);
}
.chip i { font-size: .95rem; }
.chip:hover, .chip.active {
    background: var(--primary); color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(11,85,99,.2);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-layout { padding: 32px 0 56px; }

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.filter-header {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    border: 1.5px solid var(--border);
}
.filter-header h5 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0; display: flex; align-items: center; gap: 8px; }
.filter-header h5 i { color: var(--primary); }
.btn-reset {
    background: rgba(231,76,60,.08); color: var(--danger);
    border: none; border-radius: 8px;
    padding: 5px 12px; font-size: .8rem; font-weight: 600;
    cursor: pointer; font-family: 'Hind Siliguri', sans-serif;
    transition: var(--transition);
}
.btn-reset:hover { background: var(--danger); color: var(--white); }

.filter-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border: 1.5px solid var(--border);
    margin-bottom: 10px;
    transition: var(--transition);
}
.filter-card:hover { border-color: rgba(23,162,184,.3); }
.filter-card-title {
    font-size: .88rem; font-weight: 700; color: var(--dark);
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1px solid var(--bg-light);
}
.filter-card-title i { color: var(--primary); margin-right: 7px; }
.filter-card-title .toggle-icon { font-size: .8rem; color: var(--text-muted); transition: var(--transition); }
.filter-card-title.collapsed .toggle-icon { transform: rotate(-90deg); }

.filter-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}
.filter-option:hover { padding-left: 4px; }
.filter-option label {
    display: flex; align-items: center; gap: 10px;
    font-size: .87rem; color: var(--text); cursor: pointer; flex: 1;
}
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
    cursor: pointer; flex-shrink: 0;
}
.filter-count {
    font-size: .75rem; font-weight: 600;
    background: var(--bg-light); color: var(--text-muted);
    padding: 2px 8px; border-radius: 20px;
}
.filter-expand {
    font-size: .8rem; color: var(--secondary); font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
    margin-top: 8px; transition: var(--transition); border: none; background: none;
    font-family: 'Hind Siliguri', sans-serif; padding: 0;
}
.filter-expand:hover { color: var(--primary); }

/* Price Range */
.price-range-wrap { padding: 4px 0; }
.form-range { accent-color: var(--primary); width: 100%; }
.price-display {
    display: flex; justify-content: space-between;
    font-size: .8rem; color: var(--text-muted); margin-top: 6px;
}
.price-val { color: var(--primary); font-weight: 700; }

/* Star Rating Filter */
.star-row { display: flex; align-items: center; gap: 4px; }
.star-row i { color: #F59E0B; font-size: .85rem; }

/* Apply Filter Btn */
.btn-apply-filter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); border: none; border-radius: var(--radius-sm);
    padding: 13px; width: 100%; font-size: .93rem; font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px;
}
.btn-apply-filter:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11,85,99,.3); }

/* Mobile Filter Toggle */
.mobile-filter-btn {
    display: none;
    align-items: center; gap: 8px;
    background: var(--primary); color: var(--white);
    border: none; border-radius: 50px;
    padding: 10px 20px; font-size: .88rem; font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    cursor: pointer; transition: var(--transition);
}
.mobile-filter-btn:hover { background: var(--primary-lt); }

/* ============================================================
   RESULTS AREA
   ============================================================ */
.results-toolbar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border: 1.5px solid var(--border);
    margin-bottom: 16px;
    gap: 12px; flex-wrap: wrap;
}
.results-count { font-size: .92rem; color: var(--text); font-weight: 500; }
.results-count strong { color: var(--primary); font-size: 1.05rem; }
.results-controls { display: flex; align-items: center; gap: 10px; }
.sort-select {
    border: 1.5px solid var(--border); border-radius: 8px;
    padding: 7px 12px; font-size: .84rem; color: var(--text);
    font-family: 'Hind Siliguri', sans-serif; background: var(--white);
    outline: none; cursor: pointer; transition: var(--transition);
}
.sort-select:focus { border-color: var(--secondary); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 34px; height: 34px; border-radius: 8px;
    border: 1.5px solid var(--border); background: var(--white);
    color: var(--text-muted); cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: .95rem;
    transition: var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================================
   DOCTOR CARD
   ============================================================ */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    padding: 20px 22px;
    margin-bottom: 14px;
    display: flex; gap: 18px; align-items: flex-start;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.doctor-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: scaleY(0); transform-origin: top;
    transition: var(--transition);
}
.doctor-card:hover::before { transform: scaleY(1); }
.doctor-card:hover {
    border-color: rgba(23,162,184,.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Avatar */
.doctor-avatar {
    width: 80px; height: 80px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: var(--white);
    flex-shrink: 0; position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.doctor-avatar.av-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.doctor-avatar.av-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.doctor-avatar.av-4 { background: linear-gradient(135deg, #ff9a9e, #fad0c4); color: #a0556e; }
.doctor-avatar.av-5 { background: linear-gradient(135deg, #84fab0, #8fd3f4); color: #2a7a5a; }
.doctor-avatar.av-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #5a3a7a; }
.doctor-avatar.av-7 { background: linear-gradient(135deg, #ffecd2, #fcb69f); color: #8b4513; }
.doctor-avatar.av-8 { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); color: #1a4a7a; }

.availability-dot {
    position: absolute; bottom: 5px; right: 5px;
    width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid var(--white);
    background: var(--success);
}
.availability-dot.busy { background: var(--warning); }
.availability-dot.offline { background: #aaa; }

/* Doctor Info */
.doctor-info { flex: 1; min-width: 0; }
.doctor-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.doctor-name { font-size: 1.05rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.verified-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(39,174,96,.1); color: var(--success);
    font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
    margin-left: 8px; white-space: nowrap;
}
.doctor-specialty {
    font-size: .87rem; font-weight: 600; color: var(--primary);
    margin-bottom: 8px;
}
.doctor-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: .82rem; color: var(--text-muted);
}
.meta-item i { color: var(--primary); font-size: .85rem; flex-shrink: 0; }
.meta-item strong { color: var(--text); }

/* Tags Row */
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px;
    font-size: .76rem; font-weight: 600;
}
.tag-video { background: rgba(23,162,184,.1); color: var(--secondary); }
.tag-visit { background: rgba(39,174,96,.1); color: var(--success); }
.tag-phone { background: rgba(108,99,255,.1); color: #6C63FF; }
.tag-exp   { background: rgba(243,156,18,.1); color: var(--warning); }
.tag-degree{ background: rgba(11,85,99,.08); color: var(--primary); }

/* Rating */
.rating-row { display: flex; align-items: center; gap: 6px; }
.stars { display: flex; gap: 2px; }
.stars i { color: #F59E0B; font-size: .8rem; }
.rating-num { font-size: .85rem; font-weight: 700; color: var(--dark); }
.rating-count { font-size: .78rem; color: var(--text-muted); }

/* Doctor Actions */
.doctor-actions {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 10px; flex-shrink: 0; min-width: 140px;
}
.doctor-fee {
    text-align: right;
}
.fee-label { font-size: .75rem; color: var(--text-muted); }
.fee-amount { font-size: 1.15rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.fee-amount span { font-size: .78rem; font-weight: 400; color: var(--text-muted); }

.next-slot {
    text-align: right; font-size: .78rem;
}
.next-slot .slot-available { color: var(--success); font-weight: 600; }
.next-slot .slot-label { color: var(--text-muted); }

.btn-profile {
    background: rgba(11,85,99,.08);
    color: var(--primary);
    border: 1.5px solid rgba(11,85,99,.2);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: .84rem; font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    cursor: pointer; transition: var(--transition); width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-profile:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.btn-book {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); border: none;
    border-radius: var(--radius-sm);
    padding: 9px 16px; font-size: .84rem; font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    cursor: pointer; transition: var(--transition); width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-book:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 5px 15px rgba(11,85,99,.25); }

/* ============================================================
   PAGINATION
   ============================================================ */
.custom-pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; margin-top: 32px; flex-wrap: wrap;
}
.pg-btn {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--white); color: var(--text);
    font-family: 'Hind Siliguri', sans-serif; font-size: .88rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pg-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.pg-btn i { font-size: .9rem; }

/* ============================================================
   FOOTER
   ============================================================ */

/* ============================================================
   BOTTOM NAV
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {

    .filter-sidebar {
        position: fixed; top: 0; left: -110%;
        width: 88%; max-width: 340px; height: 100vh;
        z-index: 2100; background: var(--white);
        transition: left .35s cubic-bezier(0.4,0,0.2,1);
        max-height: 100vh; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        box-shadow: 4px 0 24px rgba(0,0,0,.18);
    }
    .filter-sidebar.active { left: 0; }
    .filter-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,.5); z-index: 2099;
        display: none; backdrop-filter: blur(3px);
    }
    .filter-overlay.active { display: block; }
    .mobile-filter-btn { display: flex; }
    .doctor-actions { min-width: 120px; }

}

@media (max-width: 768px) {

    
    
    
    
    

    .page-hero { padding: 28px 0 44px; }
    .page-hero h1 { font-size: 1.7rem; }
    .hero-search-box { padding: 8px; }
    .hero-search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 14px; flex: 1 1 100%; }
    .hero-search-field:last-of-type { border-bottom: none; }
    .btn-search { width: 100%; justify-content: center; margin-top: 6px; }
    .hero-stats-row { gap: 16px; }
    .hero-stat-num { font-size: 1.2rem; }

    .doctor-card { flex-wrap: wrap; gap: 12px; }
    .doctor-actions { width: 100%; flex-direction: row; min-width: unset; flex-wrap: wrap; }
    .doctor-fee { flex: 1; text-align: left; }
    .next-slot { text-align: left; }
    .btn-profile, .btn-book { flex: 1; min-width: 120px; }
    .doctor-avatar { width: 64px; height: 64px; font-size: 1.5rem; }

    .results-toolbar { flex-direction: column; align-items: flex-start; }
    .main-layout { padding: 20px 0 40px; }

}

@media (max-width: 480px) {

    .page-hero h1 { font-size: 1.45rem; }
    .doctor-card { padding: 14px 14px; }
    .doctor-name { font-size: .95rem; }
    .tags-row { gap: 4px; }
    .tag { font-size: .72rem; padding: 3px 8px; }

}

