
/* =========================================================
   HAPPY LAND — DOCTOR THEME
   Desktop + Mobile Responsive
   Brand: Blue, Lime Green, White
========================================================= */

:root {
    --hl-navy: #17324D;
    --hl-blue: #0875B5;
    --hl-blue-dark: #075A88;
    --hl-red: #ad1510;
    --hl-blue-light: #DDF1FA;
    --hl-blue-pale: #F2F8FC;

    --hl-lime: #79C400;
    --hl-lime-dark: #65A500;
    --hl-green-text: #356D0A;
    --hl-mint: #F0F8E8;
    --hl-mint-strong: #E2F3D2;

    --hl-white: #FFFFFF;
    --hl-line: #D5E5EF;
    --hl-muted: #6C7D8B;
    --hl-page-bg: #F4F8FA;
}

/* =========================================================
   1. HALAMAN UTAMA
========================================================= */

.doctor-page {
    padding: 32px 0 56px;
    background: var(--hl-page-bg);
    color: var(--hl-navy);
}

.doctor-header {
    margin-bottom: 24px;
    text-align: center;
}

.doctor-header h3 {
    color: var(--hl-navy);
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.4;
}

.doctor-header-line {
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 8px;
    background: var(--hl-lime);
}

.doctor-intro {
    max-width: 720px;
    margin: 0 auto 26px;
    text-align: center;
}

.doctor-intro h4 {
    color: var(--hl-navy);
    font-weight: 800;
    line-height: 1.4;
}

.doctor-intro p,
.doctor-intro small {
    color: var(--hl-muted);
    line-height: 1.6;
}

/* =========================================================
   2. PENCARIAN DOKTER
========================================================= */

.doctor-search-box {
    width: min(100%, 920px);
    margin: 0 auto 28px;
    padding: 26px;
    border: 1px solid rgba(8, 117, 181, .2);
    border-radius: 18px;
    background: var(--hl-blue);
    box-shadow: 0 8px 24px rgba(23, 50, 77, .1);
}

.doctor-search-box label,
.doctor-search-label {
    color: var(--hl-white);
    font-weight: 700;
}

.doctor-search-box .form-control,
.doctor-search-box .select2-container--default
.select2-selection--single {
    min-height: 44px;
    border: 1px solid var(--hl-line);
    border-radius: 9px;
    background: var(--hl-white);
    color: var(--hl-navy);
}

.doctor-search-box .select2-container--default
.select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    color: var(--hl-navy);
}

.doctor-search-box .select2-container--default
.select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.doctor-search-btn {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: var(--hl-lime);
    color: var(--hl-navy);
    font-weight: 800;
    transition: background .2s ease;
}

.doctor-search-btn:hover,
.doctor-search-btn:focus {
    background: var(--hl-lime-dark);
    color: var(--hl-white);
}

.doctor-option-btn {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    color: var(--hl-white);
    font-weight: 700;
}

.doctor-option-btn:hover,
.doctor-option-btn.active {
    border-color: var(--hl-lime);
    background: var(--hl-lime);
    color: var(--hl-navy);
}

.doctor-suggestions {
    overflow: hidden;
    border: 1px solid var(--hl-line);
    border-radius: 10px;
    background: var(--hl-white);
    box-shadow: 0 12px 24px rgba(23, 50, 77, .14);
}

.doctor-suggestion-item {
    padding: 11px 14px;
    color: var(--hl-navy);
}

.doctor-suggestion-item:hover,
.doctor-suggestion-item:focus {
    background: var(--hl-blue-light);
}

/* =========================================================
   3. DAFTAR DOKTER
========================================================= */

.doctor-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.doctor-list-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--hl-line);
    border-radius: 18px;
    background: var(--hl-white);
    box-shadow: 0 5px 20px rgba(23, 50, 77, .05);
    transition: box-shadow .2s ease;
}

.doctor-list-card:hover {
    box-shadow: 0 8px 24px rgba(23, 50, 77, .09);
}

/* =========================================================
   4. FOTO DAN TOMBOL PROFIL
========================================================= */

.doctor-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    padding: 24px 16px;
    background: #EDF5F8;
}

.doctor-photo {
    display: block;
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 3px solid var(--hl-blue);
    border-radius: 50%;
    background: var(--hl-white);
    box-shadow:
        0 0 0 4px var(--hl-white),
        0 0 0 6px rgba(8, 117, 181, .2);
}

.doctor-photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.doctor-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border: 0;
    border-radius: 24px;
    background: var(--hl-blue);
    color: var(--hl-white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}

.doctor-more:hover,
.doctor-more:focus {
    background: var(--hl-blue-dark);
    color: var(--hl-white);
}

/* =========================================================
   5. INFORMASI DOKTER
========================================================= */

.doctor-info {
    position: relative;
    min-width: 0;
    padding: 24px 26px;
}

.doctor-name {
    margin: 0 165px 10px 0;
    color: var(--hl-navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.doctor-specialty {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 20px;
    background: var(--hl-blue-light);
    color: var(--hl-blue-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.doctor-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: var(--hl-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.doctor-today-status {
    position: absolute;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 44px);
    padding: 8px 12px;
    border-radius: 24px;
    background: #E8F6D9;
    color: var(--hl-green-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.doctor-today-status .status-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28A65A;
}

.doctor-status-upcoming {
    background: var(--hl-blue-light);
    color: var(--hl-blue-dark);
}

.doctor-status-upcoming .status-dot {
    background: var(--hl-blue);
}

.doctor-status-unavailable {
    background: #FDECEC;
    color: #B33B46;
}

.doctor-status-unavailable .status-dot {
    background: #D94B55;
}

/* =========================================================
   6. JADWAL PRAKTIK
========================================================= */

.doctor-schedule-title {
    margin: 0 0 8px;
    color: var(--hl-navy);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

/*
   Pembungkus tidak diberi border agar tidak muncul
   garis ganda. Border utama ada pada tabel jadwal.
*/

.doctor-schedule-wrapper {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 0;
    outline: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: #B7CBD3 #F0F5F7;
}

.doctor-schedule-table {
    min-width: 620px;
    overflow: hidden;
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    outline: none;
    background: var(--hl-white);
    box-shadow: none;
}

.doctor-schedule-head,
.doctor-schedule-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.doctor-schedule-head > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 8px 4px;
    border-right: 1px solid rgba(255, 255, 255, .16);
    background: var(--hl-blue);
    color: var(--hl-white);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.doctor-schedule-head > div:last-child,
.doctor-schedule-body > div:last-child {
    border-right: 0;
}

/* Header hari ini */
.doctor-schedule-head > div.day-today {
    background: var(--hl-lime);
    color: var(--hl-navy);
    box-shadow: inset 0 -3px 0 var(--hl-lime-dark);
}

.doctor-schedule-body > div {
    min-width: 0;
    min-height: 0;
    padding: 6px 4px;
    border-right: 1px solid var(--hl-line);
    background: var(--hl-white);
    color: var(--hl-muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.doctor-schedule-body > div.day-today {
    background: var(--hl-mint);
}

.doctor-schedule-body > div > div {
    margin: 2px 0;
    padding: 5px 3px;
    border-radius: 7px;
    background: var(--hl-blue-light);
    color: var(--hl-blue-dark);
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
}

.doctor-schedule-body > div.day-today > div {
    background: var(--hl-mint-strong);
    color: var(--hl-green-text);
}

/* =========================================================
   7. DETAIL DOKTER
========================================================= */

/* =========================================================
   7. DETAIL DOKTER
   Menggunakan variabel warna Happy Land yang sudah ada
========================================================= */

.detail-dokter-page {
    padding: 25px 0 45px;
    background: var(--hl-page-bg);
    color: var(--hl-navy);
    font-family: 'Poppins', sans-serif;
}

.detail-dokter-page,
.detail-dokter-page *,
.detail-dokter-page *::before,
.detail-dokter-page *::after {
    box-sizing: border-box;
}

/* Layout desktop: sidebar + konten utama */
.detail-dokter-page .detail-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.detail-dokter-page .profile-sidebar,
.detail-dokter-page .detail-main {
    min-width: 0;
}

/* Sidebar foto dokter */
.detail-dokter-page .profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border: 1px solid var(--hl-line);
    border-radius: 18px;
    background: #EDF5F8;
}

.detail-dokter-page .doctor-photo {
    display: block;
    width: min(100%, 180px);
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto 8px;
    border: 4px solid var(--hl-white);
    border-radius: 50%;
    background: var(--hl-white);
    object-fit: cover;
    object-position: center;
    box-shadow:
        0 0 0 3px var(--hl-blue),
        0 0 0 6px rgba(8, 117, 181, .18);
}

/* Tombol dan label sidebar */
.detail-dokter-page .profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 9px 12px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detail-dokter-page .status-available {
    background: #E8F6D9;
    color: var(--hl-green-text);
}

.detail-dokter-page .status-unavailable {
    background: #FDECEC;
    color: #B33B46;
}

.detail-dokter-page .clinic-button,
.detail-dokter-page .clinic-tag {
    background: var(--hl-blue-light);
    color: var(--hl-blue-dark);
}

/* Tombol pendaftaran */
.detail-dokter-page .booking-button {
    cursor: pointer;
    background: var(--hl-lime);
    color: var(--hl-navy);
    transition: background .2s ease, color .2s ease;
}

.detail-dokter-page .booking-button:hover,
.detail-dokter-page .booking-button:focus-visible {
    background: var(--hl-lime-dark);
    color: var(--hl-white);
}

.detail-dokter-page .back-button {
    border-color: var(--hl-line);
    background: var(--hl-white);
    color: var(--hl-blue-dark);
}

.detail-dokter-page .back-button:hover,
.detail-dokter-page .back-button:focus-visible {
    background: var(--hl-blue-light);
    color: var(--hl-blue-dark);
}

/* Kartu informasi */
.detail-dokter-page .about-card,
.detail-dokter-page .detail-card,
.detail-dokter-page .doctor-heading-card,
.detail-dokter-page .important-note {
    min-width: 0;
    margin: 0 0 16px;
    overflow: hidden;
    border: 1px solid var(--hl-line);
    border-radius: 16px;
    background: var(--hl-white);
    box-shadow: 0 5px 20px rgba(23, 50, 77, .05);
}

/* Judul dan identitas dokter */
.detail-dokter-page .doctor-heading-card {
    padding: 22px 24px;
}

.detail-dokter-page .clinic-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.detail-dokter-page .doctor-name {
    margin: 0 0 8px;
    color: var(--hl-navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.detail-dokter-page .hospital-name {
    color: var(--hl-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Judul bagian informasi */
.detail-dokter-page .detail-card-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--hl-line);
    background: var(--hl-blue-pale);
    color: var(--hl-white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.detail-dokter-page .detail-card-body {
    padding: 16px;
    color: var(--hl-muted);
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.detail-dokter-page .detail-card-body p:last-child {
    margin-bottom: 0;
}

.detail-dokter-page .empty-profile {
    color: var(--hl-muted);
    font-style: italic;
}

/* Tentang dokter */
.detail-dokter-page .about-card {
    padding: 16px;
}

.detail-dokter-page .about-title {
    margin-bottom: 9px;
    color: var(--hl-blue-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.detail-dokter-page .about-content {
    color: var(--hl-muted);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.detail-dokter-page .about-content p:last-child {
    margin-bottom: 0;
}

/* Deskripsi dipindahkan ke bawah jadwal pada mobile */
.detail-dokter-page .about-mobile {
    display: none;
}

.detail-dokter-page .about-desktop {
    display: block;
    width: 100%;
    margin-top: 8px;
}

/* Jadwal desktop */
.detail-dokter-page .schedule-desktop-wrapper {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 0 !important;
    outline: none !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.detail-dokter-page .schedule-table {
    width: 100%;
    min-width: 560px;
    margin: 0;
    border: 1px solid var(--hl-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    outline: none;
    background: var(--hl-white);
    box-shadow: none;
    table-layout: fixed;
}

.detail-dokter-page .schedule-table th {
    padding: 12px 4px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .16);
    background: var(--hl-blue);
    color: var(--hl-white);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
}

.detail-dokter-page .schedule-table th:last-child {
    border-right: 0;
}

/* Hari ini menggunakan hijau lime */
.detail-dokter-page .schedule-table th.today {
    background: var(--hl-lime);
    color: var(--hl-navy);
    box-shadow: inset 0 -3px 0 var(--hl-lime-dark);
}

.detail-dokter-page .schedule-table td {
    padding: 7px 5px;
    border: 0;
    border-top: 1px solid var(--hl-line);
    border-right: 1px solid var(--hl-line);
    background: var(--hl-white);
    color: var(--hl-muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
    vertical-align: top;
}

.detail-dokter-page .schedule-table td:last-child {
    border-right: 0;
}

.detail-dokter-page .schedule-table td.today {
    background: var(--hl-mint);
}

/* Jam praktik */
.detail-dokter-page .schedule-time {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 2px 0;
    padding: 5px 3px;
    border: 0;
    border-radius: 7px;
    background: var(--hl-blue-light);
    color: var(--hl-blue-dark);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.detail-dokter-page .schedule-time.today {
    background: var(--hl-mint-strong);
    color: var(--hl-green-text);
}

/* Mobile disembunyikan pada desktop */
.detail-dokter-page .schedule-mobile {
    display: none;
}

/* Catatan dan tombol WhatsApp */
.detail-dokter-page .important-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.detail-dokter-page .important-note-title {
    margin-bottom: 5px;
    color: var(--hl-red);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.detail-dokter-page .important-note-text {
    color: var(--hl-muted);
    font-size: 11px;
    line-height: 1.6;
}

.detail-dokter-page .whatsapp-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 24px;
    background: #17865B;
    color: var(--hl-white);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
}

.detail-dokter-page .whatsapp-button:hover,
.detail-dokter-page .whatsapp-button:focus-visible {
    background: #126E49;
    color: var(--hl-white);
}

/* Modal pendaftaran */
#buatJanjiModal .modal-content {
    overflow: hidden;
    border: 1px solid var(--hl-line);
    border-radius: 16px;
}

#buatJanjiModal .modal-header {
    background: var(--hl-blue);
    color: var(--hl-white);
}

#buatJanjiModal .modal-title {
    color: var(--hl-white);
    font-weight: 800;
}

#buatJanjiModal .btn-success {
    border-color: var(--hl-lime);
    background: var(--hl-lime);
    color: var(--hl-navy);
    font-weight: 800;
}

#buatJanjiModal .btn-success:hover {
    border-color: var(--hl-lime-dark);
    background: var(--hl-lime-dark);
    color: var(--hl-white);
}

#buatJanjiModal .btn-primary {
    border-color: var(--hl-blue);
    background: var(--hl-blue);
    color: var(--hl-white);
}

#buatJanjiModal .btn-primary:hover {
    border-color: var(--hl-blue-dark);
    background: var(--hl-blue-dark);
}

/* =========================================================
   RESPONSIVE DETAIL DOKTER
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {
    .detail-dokter-page .detail-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 16px;
    }

    .detail-dokter-page .profile-sidebar {
        padding: 16px 12px;
    }

    .detail-dokter-page .doctor-photo {
        width: min(100%, 150px);
    }

    .detail-dokter-page .doctor-heading-card {
        padding: 20px;
    }

    .detail-dokter-page .doctor-name {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .detail-dokter-page {
        padding: 18px 0 30px;
    }

    .detail-dokter-page .container-lg {
        padding-right: 12px;
        padding-left: 12px;
    }

    .detail-dokter-page .detail-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .detail-dokter-page .profile-sidebar,
    .detail-dokter-page .detail-main {
        width: 100%;
        min-width: 0;
    }

    .detail-dokter-page .profile-sidebar {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-areas:
            "photo status"
            "photo name"
            "photo clinic"
            "photo booking"
            "photo back"
            "about about";
        align-items: start;
        column-gap: 12px;
        row-gap: 7px;
        margin-bottom: 16px;
        padding: 14px;
        border-radius: 15px;
    }

    .detail-dokter-page .doctor-photo {
        grid-area: photo;
        width: 78px;
        max-width: 100%;
        margin: 4px auto 0;
    }

    /* Identitas tetap di sebelah foto pada mobile */
    .detail-dokter-page .profile-sidebar > .status-available,
    .detail-dokter-page .profile-sidebar > .status-unavailable {
        grid-area: status;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        min-height: 0;
        padding: 5px 8px;
        font-size: 10px;
    }

    .detail-dokter-page .profile-sidebar > .clinic-button {
        grid-area: clinic;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        min-height: 0;
        padding: 5px 9px;
        font-size: 10px;
    }

    .detail-dokter-page .profile-sidebar > .booking-button {
        grid-area: booking;
        justify-self: start;
        width: fit-content;
        min-height: 32px;
        padding: 7px 12px;
        font-size: 10px;
    }

    .detail-dokter-page .profile-sidebar > .back-button {
        grid-area: back;
        justify-self: start;
        width: fit-content;
        min-height: 30px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .detail-dokter-page .profile-sidebar > .about-desktop {
        display: none;
    }

    .detail-dokter-page .doctor-heading-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .detail-dokter-page .clinic-tag {
        margin-bottom: 7px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .detail-dokter-page .doctor-name {
        margin-bottom: 6px;
        font-size: 19px;
        line-height: 1.4;
    }

    .detail-dokter-page .hospital-name {
        font-size: 11px;
    }

    .detail-dokter-page .detail-card {
        margin-bottom: 12px;
        border-radius: 13px;
    }

    .detail-dokter-page .detail-card-header {
        padding: 11px 13px;
        font-size: 12px;
    }

    .detail-dokter-page .detail-card-body {
        padding: 13px;
        font-size: 11px;
    }

    /* Desktop hanya tabel; mobile hanya kartu */
    .detail-dokter-page .schedule-desktop-wrapper {
        display: none;
    }

    .detail-dokter-page .schedule-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 9px;
    }

    .detail-dokter-page .schedule-day-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 90px;
        padding: 7px;
        border: 1px solid var(--hl-line);
        border-radius: 8px;
        background: #F7FAFC;
    }

    .detail-dokter-page .schedule-day-card.today {
        border-color: var(--hl-lime);
        background: var(--hl-mint);
        box-shadow: none;
    }

    .detail-dokter-page .schedule-day-name {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 6px;
        padding: 6px;
        border-radius: 5px;
        background: var(--hl-blue-light);
        color: var(--hl-blue-dark);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.35;
    }

    .detail-dokter-page .schedule-day-card.today .schedule-day-name {
        background: var(--hl-mint-strong);
        color: var(--hl-green-text);
    }

    .detail-dokter-page .today-label {
        flex: 0 0 auto;
        padding: 3px 5px;
        border-radius: 4px;
        background: var(--hl-lime);
        color: var(--hl-navy);
        font-size: 8px;
        font-weight: 800;
        line-height: 1.3;
        white-space: nowrap;
    }

    .detail-dokter-page .schedule-mobile-time,
    .detail-dokter-page .schedule-mobile-empty {
        margin-top: 5px;
        color: var(--hl-blue-dark);
        font-size: 10px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .detail-dokter-page .schedule-mobile-empty {
        color: var(--hl-muted);
    }

    /* Hari terakhir memenuhi baris bila jumlah kartu ganjil */
    .detail-dokter-page .schedule-day-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .detail-dokter-page .about-mobile {
        display: block;
        padding: 14px;
        margin-bottom: 12px;
    }

    .detail-dokter-page .about-title {
        margin-bottom: 7px;
        font-size: 12px;
    }

    .detail-dokter-page .about-content {
        font-size: 11px;
        line-height: 1.6;
    }

    .detail-dokter-page .important-note {
        align-items: flex-start;
        gap: 12px;
        padding: 13px;
        margin-bottom: 12px;
    }

    .detail-dokter-page .important-note-title {
        font-size: 11px;
    }

    .detail-dokter-page .important-note-text {
        font-size: 10px;
    }

    .detail-dokter-page .whatsapp-button {
        padding: 8px 11px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .detail-dokter-page .profile-sidebar {
        grid-template-columns: 70px minmax(0, 1fr);
        column-gap: 9px;
        padding: 11px;
    }

    .detail-dokter-page .doctor-photo {
        width: 66px;
    }

    .detail-dokter-page .profile-button {
        font-size: 9px;
    }

    .detail-dokter-page .doctor-name {
        font-size: 17px;
    }

    .detail-dokter-page .schedule-mobile {
        gap: 5px;
        padding: 7px;
    }

    .detail-dokter-page .schedule-day-card {
        min-height: 85px;
        padding: 6px;
    }

    .detail-dokter-page .schedule-day-name {
        font-size: 9px;
    }

    .detail-dokter-page .schedule-mobile-time,
    .detail-dokter-page .schedule-mobile-empty {
        font-size: 9px;
    }

    .detail-dokter-page .important-note {
        flex-direction: column;
    }

    .detail-dokter-page .whatsapp-button {
        align-self: flex-end;
    }
}


/* =========================================================
   8. EMPTY STATE DAN PAGINATION
========================================================= */

.doctor-empty,
.doctor-loading {
    padding: 28px 16px;
    border: 1px solid var(--hl-line);
    border-radius: 16px;
    background: var(--hl-white);
    color: var(--hl-muted);
    text-align: center;
}

.doctor-empty h4 {
    margin: 12px 0 6px;
    color: var(--hl-navy);
    font-weight: 800;
}

.doctor-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.doctor-page-btn {
    border: 1px solid var(--hl-line);
    border-radius: 9px;
    background: var(--hl-white);
    color: var(--hl-navy);
}

.doctor-page-btn.active {
    border-color: var(--hl-blue);
    background: var(--hl-blue);
    color: var(--hl-white);
}

/* =========================================================
   9. RESPONSIVE TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {
    .doctor-list-card {
        grid-template-columns: 155px minmax(0, 1fr);
    }

    .doctor-profile {
        padding: 22px 12px;
    }

    .doctor-photo {
        width: 96px;
        height: 96px;
    }

    .doctor-info {
        padding: 22px 20px;
    }

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

/* =========================================================
   10. RESPONSIVE MOBILE
========================================================= */

@media (max-width: 767.98px) {
    .doctor-page {
        padding: 20px 0 36px;
    }

    .doctor-page .container-lg {
        padding-right: 12px;
        padding-left: 12px;
    }

    .doctor-header {
        margin-bottom: 20px;
    }

    .doctor-header h3 {
        font-size: 22px;
        line-height: 1.4;
    }

    .doctor-intro {
        margin-bottom: 22px;
        padding: 0 6px;
    }

    .doctor-intro h4 {
        font-size: 18px;
    }

    .doctor-search-box {
        width: 100%;
        margin-bottom: 22px;
        padding: 18px 14px;
        border-radius: 15px;
    }

    .doctor-search-row,
    .doctor-search-bottom {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .doctor-search-field,
    .doctor-search-action {
        width: 100%;
        min-width: 0;
    }

    .doctor-search-btn {
        width: 100%;
        min-height: 42px;
    }

    .doctor-search-options {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
    }

    .doctor-search-options .doctor-search-label {
        width: 100%;
    }

    .doctor-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    /* Kartu dokter */
    .doctor-list-card {
        display: grid !important;
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-areas:
            "photo status"
            "photo name"
            "photo specialty"
            "description description"
            "profilebutton profilebutton"
            "schedule schedule";
        align-items: start;
        column-gap: 12px;
        row-gap: 0;
        min-width: 0;
        padding: 12px;
        overflow: hidden;
        border: 1px solid var(--hl-line);
        border-radius: 15px;
        background: var(--hl-white);
        box-shadow: 0 4px 14px rgba(23, 50, 77, .05);
    }

    /* Elemen anak mengikuti grid kartu */
    .doctor-list-card .doctor-profile,
    .doctor-list-card .doctor-info {
        display: contents !important;
    }

    /* Foto dokter */
    .doctor-list-card .doctor-photo {
        grid-area: photo;
        display: block;
        flex: 0 0 76px;
        width: 76px;
        min-width: 76px;
        height: 76px;
        margin: 4px 0 0;
        padding: 0;
        border: 3px solid var(--hl-blue);
        border-radius: 50%;
        background: var(--hl-white);
        box-shadow:
            0 0 0 3px var(--hl-white),
            0 0 0 5px rgba(8, 117, 181, .18);
        overflow: hidden;
    }

    .doctor-list-card .doctor-photo img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        object-position: center;
    }

    /* Status ketersediaan */
    .doctor-list-card .doctor-today-status {
        grid-area: status;
        position: static !important;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        margin: 0 0 5px;
        padding: 4px 8px;
        border-radius: 20px;
        background: #E8F6D9;
        color: var(--hl-green-text);
        font-size: 10px;
        line-height: 1.3;
    }

    .doctor-list-card .doctor-today-status .status-dot {
        flex: 0 0 6px;
        width: 6px;
        height: 6px;
    }

    /* Nama dokter */
    .doctor-list-card .doctor-name {
        grid-area: name;
        width: 100%;
        min-width: 0;
        margin: 0 0 6px !important;
        color: var(--hl-navy);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    /* Klinik */
    .doctor-list-card .doctor-specialty {
        grid-area: specialty;
        display: inline-flex;
        justify-self: start;
        align-self: start;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        margin: 0 0 7px !important;
        padding: 5px 9px;
        border-radius: 20px;
        background: var(--hl-blue-light);
        color: var(--hl-blue-dark);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.3;
    }

    /* Deskripsi di baris tersendiri */
    .doctor-list-card .doctor-description {
        grid-area: description;
        display: -webkit-box;
        width: 100%;
        min-width: 0;
        margin: 2px 0 8px;
        color: var(--hl-muted);
        font-size: 11px;
        line-height: 1.45;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    /* Tombol profil di bawah deskripsi */
    .doctor-list-card .doctor-more {
        grid-area: profilebutton;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        justify-self: start;
        align-self: start;
        width: fit-content !important;
        min-width: 0 !important;
        max-width: 100%;
        min-height: 32px;
        margin: 0 0 12px !important;
        padding: 8px 15px;
        border: 0;
        border-radius: 22px;
        background: var(--hl-blue);
        color: var(--hl-white);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .doctor-list-card .doctor-more:hover,
    .doctor-list-card .doctor-more:focus {
        background: var(--hl-blue-dark);
        color: var(--hl-white);
    }

    /* Area jadwal */
    .doctor-list-card .doctor-schedule-wrapper {
        grid-area: schedule;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        outline: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .doctor-list-card .doctor-schedule-title {
        margin: 0 0 7px;
        color: var(--hl-navy);
        font-size: 13px;
        font-weight: 800;
        line-height: 1.35;
    }

    .doctor-list-card .doctor-schedule-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        overflow: visible;
        border: 0;
        outline: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    /* Header desktop disembunyikan di mobile */
    .doctor-list-card .doctor-schedule-head {
        display: none !important;
    }

    /* Jadwal dua kolom */
    .doctor-list-card .doctor-schedule-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        border: 0;
    }

    .doctor-list-card .doctor-schedule-body > div {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-width: 0;
        min-height: 0;
        padding: 6px 7px;
        border: 1px solid var(--hl-line);
        border-radius: 8px;
        background: #F7FAFC;
        font-size: 11px;
        line-height: 1.35;
        text-align: left;
    }

    .doctor-list-card .schedule-mobile-day {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        margin: 0 0 5px;
        padding: 5px;
        border-radius: 5px;
        background: var(--hl-blue-light);
        color: var(--hl-blue-dark);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.3;
    }

    .doctor-list-card .schedule-mobile-badge {
        flex: 0 0 auto;
        padding: 2px 4px;
        border-radius: 4px;
        background: var(--hl-lime);
        color: var(--hl-navy);
        font-size: 8px;
        font-weight: 800;
        white-space: nowrap;
    }

    .doctor-list-card .doctor-schedule-body > div
    > div:not(.schedule-mobile-day) {
        margin: 2px 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--hl-blue-dark);
        font-size: 10px;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Hari ini */
    .doctor-list-card .doctor-schedule-body > div.day-today {
        border-color: var(--hl-lime);
        background: var(--hl-mint);
        box-shadow: none;
    }

    .doctor-list-card .doctor-schedule-body > div.day-today
    .schedule-mobile-day {
        background: var(--hl-mint-strong);
        color: var(--hl-green-text);
    }

    .doctor-list-card .doctor-schedule-body > div.day-today
    .schedule-mobile-badge {
        background: var(--hl-lime);
        color: var(--hl-navy);
    }

    .doctor-list-card .doctor-schedule-body > div.day-today
    > div:not(.schedule-mobile-day) {
        color: var(--hl-blue-dark);
    }

    /* Empty state */
    .doctor-empty,
    .doctor-loading {
        padding: 24px 14px;
        border-radius: 14px;
        font-size: 12px;
    }

    .doctor-empty h4 {
        font-size: 16px;
    }

    /* Pagination */
    .doctor-pagination {
        gap: 5px;
        margin: 22px 0 30px;
    }

    .doctor-page-btn {
        min-width: 34px;
        height: 35px;
        padding: 0 8px;
        font-size: 12px;
    }

    /* Hari terakhir yang ganjil memenuhi seluruh baris */
    .doctor-list-card .doctor-schedule-body
    > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   11. HP KECIL
========================================================= */

@media (max-width: 380px) {
    .doctor-list-card {
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 9px;
        padding: 10px;
    }

    .doctor-list-card .doctor-photo {
        width: 68px;
        min-width: 68px;
        height: 68px;
    }

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

    .doctor-list-card .doctor-more {
        padding: 8px 12px;
        font-size: 10px;
    }

    .doctor-list-card .doctor-schedule-body {
        gap: 4px;
    }

    .doctor-list-card .doctor-schedule-body > div {
        padding: 6px;
    }
}

/* =========================================================
   12. DESKTOP: HARI TIDAK DOBEL
========================================================= */

@media (min-width: 768px) {
    .doctor-list-card .doctor-schedule-body .schedule-mobile-day {
        display: none !important;
    }

    .doctor-list-card .doctor-schedule-body > div {
        padding: 6px 4px;
    }

    .doctor-list-card .doctor-schedule-body > div > div {
        margin: 2px 0;
        padding: 5px 3px;
        line-height: 1.35;
    }

    /* Satu garis luar saja pada tabel desktop */
    .doctor-list-card .doctor-schedule-wrapper {
        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .doctor-list-card .doctor-schedule-table {
        border: 1px solid var(--hl-line) !important;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: none !important;
    }
}

/* =========================================================
   13. PERAPIAN OUTLINE JADWAL DETAIL
========================================================= */

.detail-dokter-page .doctor-schedule-wrapper {
    border: 0;
    outline: none;
    box-shadow: none;
}

.detail-dokter-page .doctor-schedule-table {
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.detail-dokter-page .schedule-table {
    outline: none;
    box-shadow: none;
}

/* Fokus keyboard tetap terlihat tanpa membuat border ganda */
.doctor-list-card .doctor-more:focus-visible,
.doctor-search-btn:focus-visible {
    outline: 2px solid var(--hl-blue);
    outline-offset: 2px;
}

/* =========================================================
   HAPPY LAND — DETAIL DOKTER
   Penyempurnaan desain desktop dan mobile
   Bagian daftar dokter tidak diubah
========================================================= */

/* ---------- LAYOUT UTAMA ---------- */

.detail-dokter-page .detail-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.detail-dokter-page .profile-sidebar,
.detail-dokter-page .detail-main {
    min-width: 0;
}

.detail-dokter-page .profile-sidebar {
    position: relative;
    padding: 18px 15px;
    gap: 11px;
    background: #EDF5F8;
}

/* ---------- FOTO DOKTER ---------- */

.detail-dokter-page .doctor-photo {
    width: min(100%, 172px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* ---------- KARTU INFORMASI ---------- */

.detail-dokter-page .about-card,
.detail-dokter-page .detail-card,
.detail-dokter-page .doctor-heading-card,
.detail-dokter-page .important-note {
    border-color: var(--hl-line);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(23, 50, 77, 0.045);
}

/* ---------- IDENTITAS DOKTER ---------- */

.detail-dokter-page .doctor-heading-card {
    padding: 22px 24px;
    border-top: 3px solid var(--hl-blue);
}

.detail-dokter-page .doctor-name {
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.detail-dokter-page .hospital-name {
    line-height: 1.6;
}

/* ---------- JUDUL KARTU ---------- */

.detail-dokter-page .detail-card-header {
    border-top: 3px solid var(--hl-blue);
    background: var(--hl-blue-pale);
    color: var(--hl-blue-dark);
}

.detail-dokter-page .detail-card-body,
.detail-dokter-page .about-content {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.detail-dokter-page .detail-card-body p:last-child,
.detail-dokter-page .about-content p:last-child {
    margin-bottom: 0;
}

/* ---------- JADWAL DESKTOP ---------- */

.detail-dokter-page .schedule-desktop-wrapper {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 0;
    outline: none;
    box-shadow: none;
}

.detail-dokter-page .schedule-table {
    width: 100%;
    min-width: 560px;
    table-layout: fixed;
}

.detail-dokter-page .schedule-table th,
.detail-dokter-page .schedule-table td {
    overflow-wrap: normal;
    word-break: normal;
}

/* ---------- TENTANG DOKTER ---------- */

@media (min-width: 768px) {
    .detail-dokter-page .about-mobile {
        display: none !important;
    }

    .detail-dokter-page .about-desktop {
        display: block !important;
        width: 100%;
    }
}

/* ---------- CATATAN PENDAFTARAN ---------- */

.detail-dokter-page .important-note {
    background: #F0F8E8;
    border-color: #D5EAC0;
}

.detail-dokter-page .important-note-title {
    color: var(--hl-green-text);
}

.detail-dokter-page .important-note-text {
    line-height: 1.65;
}

.detail-dokter-page .whatsapp-button {
    background: #17865B;
}

.detail-dokter-page .whatsapp-button:hover,
.detail-dokter-page .whatsapp-button:focus-visible {
    background: #126E49;
    color: var(--hl-white);
}

/* ---------- RESPONSIVE TABLET ---------- */

@media (min-width: 768px) and (max-width: 1100px) {
    .detail-dokter-page .detail-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 16px;
    }

    .detail-dokter-page .profile-sidebar {
        padding: 16px 12px;
    }

    .detail-dokter-page .doctor-photo {
        width: min(100%, 150px);
    }

    .detail-dokter-page .doctor-heading-card {
        padding: 20px;
    }

    .detail-dokter-page .doctor-name {
        font-size: 20px;
    }
}

/* ---------- RESPONSIVE MOBILE ---------- */

@media (max-width: 767.98px) {
    .detail-dokter-page {
        padding: 14px 0 28px;
    }

    .detail-dokter-page .container-lg {
        padding-right: 12px;
        padding-left: 12px;
    }

    .detail-dokter-page .detail-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .detail-dokter-page .profile-sidebar,
    .detail-dokter-page .detail-main {
        width: 100%;
        min-width: 0;
    }

    /* Foto di kiri, informasi di kanan */
    .detail-dokter-page .profile-sidebar {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas:
            "photo status"
            "photo clinic"
            "photo booking"
            "photo back"
            "about about";
        align-items: start;
        column-gap: 12px;
        row-gap: 7px;
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .detail-dokter-page .doctor-photo {
        grid-area: photo;
        width: 72px;
        max-width: 100%;
        margin: 3px auto 0;
    }

    /* Status dokter */
    .detail-dokter-page .profile-sidebar > .status-available,
    .detail-dokter-page .profile-sidebar > .status-unavailable {
        grid-area: status;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        min-height: 0;
        padding: 5px 8px;
        font-size: 10px;
        text-align: left;
    }

    /* Klinik */
    .detail-dokter-page .profile-sidebar > .clinic-button {
        grid-area: clinic;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        min-height: 0;
        padding: 5px 9px;
        font-size: 10px;
        text-align: left;
    }

    /* Tombol pendaftaran */
    .detail-dokter-page .profile-sidebar > .booking-button {
        grid-area: booking;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        min-height: 32px;
        padding: 7px 12px;
        font-size: 10px;
    }

    /* Tombol kembali */
    .detail-dokter-page .profile-sidebar > .back-button {
        grid-area: back;
        justify-self: start;
        width: fit-content;
        max-width: 100%;
        min-height: 30px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .detail-dokter-page .profile-button {
        justify-content: flex-start;
        text-align: left;
    }

    /* Tentang dokter dipindahkan ke bawah jadwal */
    .detail-dokter-page .about-desktop {
        display: none !important;
    }

    /* Identitas dokter */
    .detail-dokter-page .doctor-heading-card {
        padding: 15px;
        margin-bottom: 12px;
        border-top-width: 3px;
    }

    .detail-dokter-page .clinic-tag {
        margin-bottom: 7px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .detail-dokter-page .doctor-name {
        margin-bottom: 6px;
        font-size: 19px;
        line-height: 1.4;
    }

    .detail-dokter-page .hospital-name {
        font-size: 11px;
    }

    /* Kartu informasi */
    .detail-dokter-page .detail-card {
        margin-bottom: 12px;
        border-radius: 13px;
    }

    .detail-dokter-page .detail-card-header {
        padding: 11px 13px;
        font-size: 12px;
    }

    .detail-dokter-page .detail-card-body {
        padding: 13px;
        font-size: 11px;
    }

    /* Desktop memakai tabel, mobile memakai kartu */
    .detail-dokter-page .schedule-desktop-wrapper {
        display: none !important;
    }

    .detail-dokter-page .schedule-mobile {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 10px;
    }

    .detail-dokter-page .schedule-day-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 88px;
        padding: 8px;
        border: 1px solid var(--hl-line);
        border-radius: 9px;
        background: #F7FAFC;
    }

    /* Hari ini ditandai hijau lime */
    .detail-dokter-page .schedule-day-card.today {
        border-color: var(--hl-lime);
        background: var(--hl-mint);
        box-shadow: none;
    }

    .detail-dokter-page .schedule-day-name {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 6px;
        padding: 6px;
        border-radius: 5px;
        background: var(--hl-blue-light);
        color: var(--hl-blue-dark);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.35;
    }

    .detail-dokter-page .schedule-day-card.today .schedule-day-name {
        background: var(--hl-mint-strong);
        color: var(--hl-green-text);
    }

    .detail-dokter-page .today-label {
        flex: 0 0 auto;
        padding: 3px 5px;
        border-radius: 4px;
        background: var(--hl-lime);
        color: var(--hl-navy);
        font-size: 8px;
        font-weight: 800;
        line-height: 1.3;
        white-space: nowrap;
    }

    .detail-dokter-page .schedule-mobile-time,
    .detail-dokter-page .schedule-mobile-empty {
        margin-top: 5px;
        color: var(--hl-blue-dark);
        font-size: 10px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .detail-dokter-page .schedule-mobile-empty {
        color: var(--hl-muted);
    }

    /* Hari terakhir memenuhi satu baris jika jumlahnya ganjil */
    .detail-dokter-page .schedule-day-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* Tentang dokter setelah jadwal */
    .detail-dokter-page .about-mobile {
        display: block !important;
        padding: 14px;
        margin-bottom: 12px;
    }

    .detail-dokter-page .about-title {
        margin-bottom: 7px;
        font-size: 12px;
    }

    .detail-dokter-page .about-content {
        font-size: 11px;
        line-height: 1.6;
    }

    /* Catatan pendaftaran */
    .detail-dokter-page .important-note {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 13px;
        margin-bottom: 12px;
    }

    .detail-dokter-page .important-note-title {
        font-size: 11px;
    }

    .detail-dokter-page .important-note-text {
        font-size: 10px;
    }

    .detail-dokter-page .whatsapp-button {
        align-self: flex-start;
        padding: 8px 11px;
        font-size: 10px;
    }
}

/* ---------- HP KECIL ---------- */

@media (max-width: 380px) {
    .detail-dokter-page .profile-sidebar {
        grid-template-columns: 66px minmax(0, 1fr);
        column-gap: 9px;
        padding: 10px;
    }

    .detail-dokter-page .doctor-photo {
        width: 62px;
    }

    .detail-dokter-page .profile-button {
        font-size: 9px;
    }

    .detail-dokter-page .doctor-name {
        font-size: 17px;
    }

    .detail-dokter-page .schedule-mobile {
        gap: 5px;
        padding: 8px;
    }

    .detail-dokter-page .schedule-day-card {
        min-height: 85px;
        padding: 6px;
    }

    .detail-dokter-page .schedule-day-name {
        font-size: 9px;
    }

    .detail-dokter-page .schedule-mobile-time,
    .detail-dokter-page .schedule-mobile-empty {
        font-size: 9px;
    }

    .detail-dokter-page .important-note {
        flex-direction: column;
    }

    .detail-dokter-page .whatsapp-button {
        align-self: flex-start;
    }
}

/* =========================================================
   PERBAIKAN MOBILE DETAIL DOKTER
   Desktop dan daftar dokter tetap dipertahankan
========================================================= */

.detail-dokter-page .mobile-doctor-name {
    display: none;
}


/* =====================================================
   HAPPY LAND - FINAL MOBILE DETAIL DOKTER
   Nama seperti desktop, tanpa klinik duplikat,
   informasi dengan background putih.
===================================================== */

@media (max-width: 767.98px) {

    /* Layout halaman */
    .detail-dokter-page .detail-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Kartu profil */
    .detail-dokter-page .profile-sidebar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;

        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;

        padding: 12px !important;
        margin: 0 0 12px !important;

        background: #EDF5F8 !important;
        border: 1px solid #D5E5EF !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    /* Foto: jangan memotong gambar sumber */
    .detail-dokter-page .profile-sidebar > img.doctor-photo {
        display: block !important;
        flex: 0 0 auto !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;

        object-fit: contain !important;
        object-position: center !important;

        margin: 0 auto 4px !important;
        padding: 0 !important;
        box-sizing: border-box !important;

        border: 0 !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    /* Nama dokter: gaya heading desktop */
    .detail-dokter-page .profile-sidebar > h2.mobile-doctor-name {
        display: block !important;
        position: static !important;
        flex: 0 0 auto !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-self: stretch !important;
        box-sizing: border-box !important;

        margin: 0 0 8px !important;
        padding: 14px 12px !important;

        background: #FFFFFF !important;
        border: 1px solid #D5E5EF !important;
        border-top: 3px solid #0875B5 !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 10px rgba(23, 50, 77, 0.05) !important;

        color: var(--hl-navy, #17324D) !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: clamp(23px, 6vw, 29px) !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
        letter-spacing: -0.5px !important;

        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Hilangkan label tambahan dan garis dekoratif lama */
    .detail-dokter-page .profile-sidebar > h2.mobile-doctor-name::before {
        content: none !important;
        display: none !important;
    }

    .detail-dokter-page .profile-sidebar > h2.mobile-doctor-name::after {
        content: none !important;
        display: none !important;
    }

    /* Klinik tidak ditampilkan dua kali di mobile */
    .detail-dokter-page .profile-sidebar > .clinic-button {
        display: none !important;
    }

    /* Informasi status dengan latar putih */
    .detail-dokter-page .profile-sidebar > .status-available,
    .detail-dokter-page .profile-sidebar > .status-unavailable {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;

        margin: 0 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;

        background: #FFFFFF !important;
        border: 1px solid #D5E5EF !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    /* Tombol daftar */
    .detail-dokter-page .profile-sidebar > .booking-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;

        margin: 0 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* Tombol kembali */
    .detail-dokter-page .profile-sidebar > .back-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;

        margin: 0 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;

        background: #FFFFFF !important;
        border: 1px solid #D5E5EF !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    /* Sembunyikan heading desktop agar nama tidak ganda */
    .detail-dokter-page .doctor-heading-card {
        display: none !important;
    }

    /* Tentang Dokter versi desktop disembunyikan di mobile */
    .detail-dokter-page .about-desktop {
        display: none !important;
    }

    /* Konten utama */
    .detail-dokter-page .detail-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;

        width: 100% !important;
        min-width: 0 !important;
    }

    /* Tentang Dokter sebelum jadwal */
    .detail-dokter-page .detail-main > .about-mobile {
        display: block !important;
        order: 1 !important;

        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 12px !important;
        padding: 16px !important;
        box-sizing: border-box !important;

        background: #FFFFFF !important;
        border: 1px solid #D5E5EF !important;
        border-radius: 14px !important;
    }

    /* Kartu jadwal dan informasi berikutnya */
    .detail-dokter-page .detail-main > .detail-card {
        order: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .detail-dokter-page .detail-main > .important-note {
        order: 3 !important;
    }

    .detail-dokter-page .profile-sidebar > .clinic-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;
        min-height: 42px !important;

        margin: 0 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;

        background: #DDF1FA !important;
        color: #075A88 !important;
        border: 1px solid #C7E8F8 !important;
        border-radius: 12px !important;
        text-align: center !important;
    }
}

@media (max-width: 380px) {
    .detail-dokter-page .profile-sidebar > h2.mobile-doctor-name {
        font-size: 21px !important;
    }
}


/* Ikon header kartu detail dokter */
.detail-dokter-page .detail-card-header .detail-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;

    width: 34px;
    height: 34px;
    border-radius: 10px;

    background: #DDF1FA;
    color: #0875B5;
}

.detail-dokter-page .detail-card-header .detail-header-icon svg {
    display: block;
    width: 20px;
    height: 20px;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
