/* Page Structure */
.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-wrapper {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f8f9fa;
}

.quick-search-wrapper {
    padding-bottom: 10px;
}

.doctors-scroll-wrapper {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.doctors-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.doctors-container {
    position: relative;
    min-height: 200px;
}

.doctors-content {
    min-height: 100vh;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.form-select.custom-select {
    border: #313739 !important;
    border-radius: 8px;
    padding: 10px !important;
    padding-right: 40px !important;
    background: #E6E6E6 !important;
    color: #313739 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
    height: 42px;
    font-size: 0.875rem !important;
}

.custom-select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #313739;
    font-size: 14px;
}

.form-select option {
    font-size: 12px !important;
    font-weight: 400;
}

/* Checkboxes */
.form-check {
    margin-bottom: 8px;
    padding-left: 0;
}

.form-check-label {
    font-size: 14px !important;
    color: #0C0C0C !important;
    font-weight: 500 !important;
    cursor: pointer;
}

#medicalProfessional .form-check-input:checked,
#gender .form-check-input:checked,
#issue .form-check-input:checked,
#price .form-check-input:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

/* Search Input */
.quick-search-input .input-group {
    border: 1px solid #e3e6f0;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.quick-search-input .input-group-text {
    background-color: white !important;
    border: none !important;
    color: #007bff;
}

.quick-search-input .form-control {
    border: none !important;
    box-shadow: none !important;
    height: 38px;
    font-size: 14px;
    color: #495057;
}

.quick-search-input .form-control::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.quick-search-input .form-control:focus {
    box-shadow: none !important;
    border: none !important;
}

.quick-search-input .input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-search {
    background: #00A8E0;
    border: none;
    color: white;
    height: 38px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 180, 219, 0.3);
}

.btn-search:hover {
    background: #018bb9;
    box-shadow: 0 4px 12px rgba(0, 180, 219, 0.4);
    color: white;
}

.btn-view-profile {
    border: 1.5px solid #00A8E0 !important;
    color: #00A8E0 !important;
    background-color: transparent;
}

.btn-view-profile:hover {
    color: white;
    border-color: #17a2b8;
}

.btn-book-appointment,
.no-data {
    background-color: #00A8E0;
    border: 1.5px solid #00A8E0 !important;
    color: white;
}

.btn-book-appointment:hover,
.no-data:hover {
    background-color: #0199cc;
    border-color: #0199cc !important;
    color: white;
}

.btn:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-reset-filters {
    background: white;
    border: 1.5px solid #d1d5db;
    color: #002633;
}

.btn-apply-filters {
    background: #00A8E0;
    border: 1.5px solid #00A8E0;
    color: white;
}


/* 4. DOCTOR CARDS                              */
.doctor-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctor-card .card-body {
    padding: 10px;
    border-radius: 8px;
    background: #FFF;
}

.doctor-card .row {
    align-items: flex-start;
}

.doctor-card .col-md-4 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 110px;
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Doctor Photo */
.doctor-photo img {
    width: 124px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #f8f9fa;
}

/* Doctor Info */
.doctor-name {
    font-size: 20px;
    font-weight: 600;
}

.doctor-name .badge {
    font-size: 14px;
    font-weight: 500;
    color: #0C0C0C;
    border-radius: 4px;
}

.spl-doctor {
    color: #002633;
    font-weight: 700;
    font-size: 24px;
}

.speciality {
    font-size: 14px !important;
    color: #747474;
    font-weight: 500;
    margin-bottom: 2px !important;
}

.doctor-details {
    font-size: 14px;
    font-weight: 500;
}

.doctor-details .fa {
    margin-right: 5px;
    width: 12px;
}

.doctor-details .text-sm {
    font-size: 14px;
    font-weight: 500;
    color: #747474;
}

.experience-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    color: #747474;
    font-size: 14px;
    font-weight: 500;
}

.experience-rating .fa-star {
    color: #ffc107;
}

.charges-amount {
    color: #00A8E0 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px 8px 8px;
    border-radius: 55px;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status-indicator.online {
    background-color: #E1FFD1;
    color: #0C0C0C;
}

.status-indicator.offline {
    background-color: #FFD1D1;
    color: #0C0C0C;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: #3CB200;
}

.status-dot.offline {
    background-color: #B24400;
}

/* Action Buttons */
.action-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    align-items: flex-end;
    pointer-events: auto;
}

.action-buttons .btn {
    min-width: 160px;
    font-size: 13px;
    height: 40px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
    pointer-events: auto;
}


/* 5. FILTERS & SIDEBAR                         */

.filters-sidebar {
    position: sticky;
    top: 80px;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none !important;
    scrollbar-width: none;
}

.filters-sidebar::-webkit-scrollbar {
    display: none;
}

.filter-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.quick-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none !important;
}

.filters {
    font-family: 20px;
    font-weight: 600;
    color: #0F93FE;
}

.filter-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 6px;
    user-select: none;
}

.filter-section {
    transition: all 0.3s ease;
}

.scrollable-filter {
    max-height: 130px;
    overflow-y: auto;
    padding-right: 10px;
}

.scrollable-filter::-webkit-scrollbar {
    width: 4px;
}

.scrollable-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollable-filter::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.scrollable-filter::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Filter Trigger Button (Hidden on Desktop) */
.filter-trigger-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #002633;
    cursor: pointer;
}


/* 6. MOBILE FILTER MODAL                       */

.filter-modal-overlay,
.sort-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-modal-overlay.show,
.sort-modal-overlay.show {
    display: block;
    opacity: 1;
}

.filters-sidebar-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 375px;
    height: 100%;
    background: white;
    z-index: 1051;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
}

.filters-sidebar-mobile.show {
    right: 0;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.mobile-filter-header h6 {
    font-size: 18px;
    font-weight: 600;
    color: #002633;
    margin: 0;
}

.mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-filter-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    gap: 12px;
}

.mobile-filter-footer .btn {
    flex: 1;
    height: 44px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}


/* 7. SORT MODAL (MOBILE)                       */

.sort-modal-content {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 1051;
    transition: bottom 0.3s ease;
    max-height: 50vh;
}

.sort-modal-content.show {
    bottom: 0;
}

.sort-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-modal-header h6 {
    font-size: 18px;
    font-weight: 600;
    color: #002633;
    margin: 0;
}

.sort-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.sort-options {
    padding: 20px;
}

.sort-option {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.sort-option:hover {
    background: #f3f4f6;
}

.sort-option.active {
    color: #00A8E0;
}

.sort-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #00A8E0;
}


/* 8. LOADING STATES                            */


.fast-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fast-loader-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 150px;
}

.fast-loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.fast-loader-text {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner.show {
    display: block;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.infinite-scroll-loader {
    margin: 20px 0;
}


.end-of-results i {
    display: block;
    margin: 0 auto 10px;
}

/* Skeleton Loading */
.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skeleton-card .row {
    display: flex;
    align-items: flex-start;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-image {
    width: 124px;
    height: 124px;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.large {
    height: 20px;
    width: 60%;
}

.skeleton-text.medium {
    height: 16px;
    width: 40%;
}

.skeleton-text.small {
    height: 14px;
    width: 30%;
}

.skeleton-badge {
    height: 24px;
    width: 80px;
    border-radius: 12px;
    display: inline-block;
}

.skeleton-button {
    height: 40px;
    border-radius: 6px;
}

.skeleton-status {
    height: 32px;
    width: 100px;
    border-radius: 55px;
    margin-bottom: 12px;
}


/* 9. UTILITY CLASSES                           */

.sort-section span {
    white-space: nowrap;
}

.field-highlight {
    animation: highlightField 2s ease-in-out;
}

@keyframes highlightField {

    0%,
    100% {
        background-color: transparent;
    }

    50% {
        background-color: #fff3cd;
    }
}

.filter-highlight {
    animation: highlightFilter 2s ease-in-out;
}

@keyframes highlightFilter {

    0%,
    100% {
        background-color: transparent;
    }

    50% {
        background-color: #d1ecf1;
    }
}

.text-primary.fw-bold {
    color: #0F93FE !important;
    font-size: 16px;
    font-weight: 600;
}

.card-body.py-4 {
    padding: 16px !important;
}

.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.fa-info-circle.text-muted {
    color: #9ca3af !important;
    cursor: help;
}

.fa-info-circle.text-muted:hover {
    color: #6b7280 !important;
}


/* Pagination */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: 14px;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}


/* 10. RESPONSIVE: TABLET (768px - 991px)       */

@media (max-width: 991px) and (min-width: 768px) {
    .doctor-card .card-body {
        padding: 16px;
    }

    .doctor-photo img {
        width: 100px;
    }

    .doctor-name .badge {
        font-size: 13px;
    }

    .doctor-details .text-sm {
        font-size: 13px;
    }

    .charges-amount {
        font-size: 16px !important;
    }

    .action-buttons {
        gap: 8px;
    }

    .action-buttons .btn {
        min-width: 130px;
        font-size: 12px;
        height: 38px;
    }

    .doctors-scroll-wrapper {
        max-height: calc(100vh - 350px);
    }
}


/* 11. RESPONSIVE: TABLET & MOBILE (< 991px)    */

@media (max-width: 991px) {
    .filters-sidebar {
        display: none !important;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .filter-trigger-btn {
        display: flex;
    }

    .quick-search .row {
        gap: 12px;
    }

    .quick-search-input {
        margin-bottom: 12px;
    }

    .doctor-card {
        margin-bottom: 16px;
    }

    .doctor-card .row {
        gap: 12px;
    }
}


/* 12. RESPONSIVE: MOBILE (< 768px)             */

@media (max-width: 767px) {

    /* Page Structure - Full Scroll */
    .page-wrapper,
    body,
    html {
        height: auto !important;
        overflow-x: hidden;
    }

    .quick-search-wrapper {
        position: relative;
        padding-bottom: 0;
    }

    .doctors-scroll-wrapper {
        overflow: visible !important;
        max-height: none !important;
        padding: 0 !important;
        flex: none !important;
    }

    .doctors-container {
        padding-bottom: 120px;
    }

    .footer {
        margin-top: 60px;
    }

    /* Filter Sidebar - Full Width */
    .filters-sidebar-mobile {
        width: 100%;
        max-width: 100%;
    }

    /* Doctor Card - Horizontal Layout */
    .doctor-card {
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .doctor-card .card-body {
        padding: 16px;
    }

    .doctor-card .row {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin: 0;
    }

    /* Doctor Photo - Left Side */
    .doctor-card .col-md-2,
    .doctor-card .col-sm-3 {
        width: auto;
        max-width: none;
        flex: 0 0 auto;
        margin-bottom: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .doctor-photo {
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }

    .doctor-photo img {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        object-fit: cover;
    }

    /* Mobile Status Indicator Below Image */
    .mobile-status-indicator {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 500;
        gap: 5px;
        white-space: nowrap;
    }

    .mobile-status-indicator.online {
        background-color: #E1FFD1;
        color: #0C0C0C;
    }

    .mobile-status-indicator.offline {
        background-color: #FFE5E5;
        color: #0C0C0C;
    }

    .mobile-status-indicator .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }

    .mobile-status-indicator .status-dot.online {
        background-color: #3CB200;
    }

    .mobile-status-indicator .status-dot.offline {
        background-color: #B24400;
    }

    /* Doctor Info - Right Side */
    .doctor-card .col-md-6,
    .doctor-card .col-sm-9 {
        width: auto;
        flex: 1;
        max-width: none;
        padding: 0 !important;
        margin-bottom: 0;
        min-width: 0;
    }

    .doctor-info {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .doctor-info * {
        text-align: left !important;
    }

    /* Doctor Name Row */
    .doctor-name-row {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 6px;
        margin-top: -2px;
    }

    .doctor-name {
        text-align: left;
        display: inline;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 16px;
        font-weight: 600;
        color: #0C0C0C;
    }

    .doctor-name .badge {
        display: none !important;
    }

    /* Specialty */
    .speciality {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        color: #666;
        font-weight: 400;
        text-align: left;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Experience and Location Row */
    .experience-rating {
        justify-content: flex-start;
        font-size: 12px !important;
        gap: 6px !important;
        color: #747474 !important;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        text-align: left;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .experience-rating .experience {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
        order: 1;
    }

    .experience-rating .rating {
        display: none !important;
    }

    .experience-rating .fa-star {
        color: #ffc107;
        font-size: 10px;
    }

    .experience-rating .mx-1 {
        margin: 0 3px;
        flex-shrink: 0;
        order: 2;
    }

    .experience-rating .mx-1:nth-of-type(2) {
        display: none !important;
    }

    .experience-rating img {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .experience-rating .location {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        order: 3;
    }

    /* Hide Desktop Details */
    .doctor-details .row:first-child {
        display: none !important;
    }

    .doctor-details .row:nth-child(2) {
        margin-top: 0 !important;
    }

    .doctor-details .col-auto {
        padding: 0;
        width: 100%;
    }

    /* Reorder Doctor Details */
    .doctor-details {
        display: flex;
        flex-direction: column;
    }

    .doctor-details .row:nth-child(2) {
        order: 1;
    }

    .d-md-none.mobile-qualifications {
        order: 2;
    }

    .d-md-none.mobile-time-charges {
        order: 3;
    }

    /* Qualifications with Rating */
    .mobile-qualifications {
        font-size: 12px;
        color: #002633;
        font-weight: 500;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 6px;
        order: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .mobile-qualifications .mobile-rating {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        color: #747474;
        font-weight: 600;
        font-size: 12px;
    }

    .mobile-qualifications .mobile-rating .fa-star {
        color: #ffc107;
        font-size: 11px;
    }

    /* Time and Charges Row */
    .mobile-time-charges {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #666;
        margin-bottom: 0;
        text-align: left;
        flex-wrap: wrap;
        order: 2;
    }

    .mobile-time-charges span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-time-charges .time-info {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .mobile-time-charges .time-info img {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .mobile-time-charges .charges-info {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-time-charges .charges-amount {
        color: #00A8E0 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
    }

    .mobile-time-charges svg {
        width: 7px;
        height: 9px;
        flex-shrink: 0;
    }

    /* Action Section - Full Width Below */
    .doctor-card .col-md-4 {
        width: 100%;
        max-width: 100%;
        text-align: center;
        min-height: auto;
        flex: 0 0 100%;
        margin-top: 12px;
        padding: 0;
    }

    .doctor-card .col-md-4>.status-indicator {
        display: none !important;
    }

    .doctor-card .text-end {
        text-align: center !important;
    }

    .doctor-card>.card-body>.row {
        flex-wrap: wrap;
    }

    /* Action Buttons - Stacked */
    .action-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 0;
    }

    .action-buttons .btn {
        width: 100%;
        min-width: 100%;
        height: 44px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
    }

    .btn-view-profile {
        border: 1.5px solid #00A8E0 !important;
        color: #00A8E0 !important;
        background-color: white;
        order: 2;
    }

    .btn-book-appointment {
        background-color: #00A8E0;
        border: 1.5px solid #00A8E0 !important;
        color: white;
        order: 1;
    }

    .btn-book-appointment:disabled {
        background-color: #E0E0E0 !important;
        border-color: #E0E0E0 !important;
        color: #999 !important;
        cursor: not-allowed;
    }

    /* Skeleton Adjustments */
    .skeleton-image {
        width: 70px;
        height: 70px;
    }

    .skeleton-status {
        height: 24px;
        width: 80px;
        margin-top: 8px;
    }

    /* Sort Section */
    .sort-section {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sort-section>div {
        flex: 1;
        min-width: 45%;
    }
}

/* 13. RESPONSIVE: MOBILE (< 576px)             */

@media (max-width: 575px) {
    .doctor-card .card-body {
        padding: 14px;
    }

    .doctor-photo img {
        width: 65px;
        height: 65px;
        margin-bottom: 15px;
    }

    .mobile-status-indicator {
        font-size: 10px;
        padding: 3px 8px;
    }

    .mobile-status-indicator .status-dot {
        width: 7px;
        height: 7px;
    }

    .action-buttons .btn {
        height: 42px;
        font-size: 12px;
        min-width: 90px;
        padding: 6px 12px;
    }

    .doctor-card .row {
        gap: 10px;
    }

    .doctor-card .col-md-4 {
        margin-top: 10px;
    }

    .mobile-filter-header,
    .mobile-filter-footer {
        padding: 12px 16px;
    }

    .mobile-filter-content {
        padding: 16px;
    }

    .doctor-name {
        font-size: 18px;
    }

    .charges-amount {
        font-size: 16px !important;
    }

    .filter-section {
        margin-bottom: 20px;
    }

    .filter-title h6 {
        font-size: 15px;
    }

    .form-check-label {
        font-size: 13px;
    }
}


/* 14. RESPONSIVE: VERY SMALL (< 400px)         */

@media (max-width: 400px) {
    .doctor-card .card-body {
        padding: 12px;
    }

    .doctor-photo img {
        width: 60px;
        height: 60px;
    }

    .experience-rating {
        font-size: 11px !important;
    }

    .mobile-time-charges {
        font-size: 11px !important;
    }

    .mobile-qualifications {
        font-size: 11px !important;
    }

    .doctor-card .row {
        gap: 8px;
    }
}


/* 15. RESPONSIVE: LANDSCAPE MOBILE              */
@media (max-width: 767px) and (orientation: landscape) {
    .doctor-photo img {
        width: 65px;
        height: 65px;
    }

    .doctor-card .card-body {
        padding: 14px;
    }

    .action-buttons .btn {
        height: 40px;
        font-size: 12px;
    }
}