body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}

.page-header {
    max-width: 920px;
    margin: 20px auto 10px;
    padding: 0 12px;
}

.page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}
.page-note {
    margin: 6px 0 0;
    color: #475467;
    font-size: 14px;
}

.speciality-chips {
    max-width: 920px;
    margin: 8px auto 4px;
    padding: 0 12px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d0d7e2;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.chip:hover,
.chip:focus-visible {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    outline: none;
}

.chip.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #0f172a;
    font-weight: 600;
    font-size: 12px;
}

/* Doctor Cards */
.card {
    background: white;
    padding: 15px;
    margin: 12px auto;
    max-width: 920px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

.doctor-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.photo {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #ddd;
}

.photo[loading="lazy"] { background: #eee; }

.name {
    font-size: 18px;
    font-weight: bold;
}
.name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.timing {
    font-size: 14px;
    color: #c27d00;
    margin-top: 4px;
    font-weight: bold;
}
.name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.affiliation {
    margin-top: 4px;
    font-size: 14px;
    color: #0d6efd;
    font-weight: 600;
    word-break: break-word;
}
.aff-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700;
}
.aff-link:hover { text-decoration: underline; }
.meta-line {
    margin-top: 4px;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}
.meta-label {
    font-weight: 700;
}


.actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    flex: 1 1 auto;
    min-width: 90px;
    text-align: center;
}

.btn.map {
    background: #4285F4;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 5px;
}




.call { background: #28a745; color: white; }
.wa { background: #25D366; color: white; }
.share { background: #666; color: white; }
.pamphlet { background: #ff9800; color: white; }
.appoint { background: #673ab7; color: white; }
.pamphlet-preview {
    margin-top: 10px;
    overflow: hidden;
}
.pamphlet-preview .preview-embed {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}
.pamphlet-preview .preview-note {
    padding: 12px 14px;
    font-weight: 600;
    font-size: 14px;
    color: #b45309;
}
.pamphlet-preview iframe {
    width: 100%;
    min-height: 420px;
    height: 75vh;
    max-height: 900px;
    border: none;
    overflow: hidden;
}
.pamphlet-preview img {
    width: 100%;
    height: auto;
    display: block;
}
.btn.map:hover {
    background: #2f6adf;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #e5e7eb;
    color: #111827;
    text-transform: capitalize;
}
.status-approved {
    background: #ecfdf3;
    color: #027a48;
}
.status-pending {
    background: #fff7ed;
    color: #b45309;
}
.status-rejected,
.status-declined {
    background: #fef2f2;
    color: #b91c1c;
}
.muted {
    color: #6b7280;
    font-size: 13px;
}

.my-listings-section {
    max-width: 920px;
    margin: 12px auto 8px;
    padding: 0 12px;
}
.my-listings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.my-listings-head h3 {
    margin: 0;
}
.my-listings-head .muted {
    margin: 4px 0 0;
}
.secondary-link {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 700;
}
.my-listings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.my-listing-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.my-listing-main {
    flex: 1;
}
.my-listing-title {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}
.my-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.my-listing-card .status-pill {
    margin-left: 6px;
}
.my-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.my-listing-actions .btn {
    flex: 0 0 auto;
    min-width: 90px;
}
/* Pagination links */
.page-link {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
}

.msg {
    max-width: 920px;
    margin: 12px auto;
    padding: 10px 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .doctor-box { flex-direction: column; align-items: flex-start; }
    .photo { width: 84px; height: 84px; }
    .actions { flex-direction: column; }
    .btn { width: 100%; min-width: 0; }
    .search-box { padding: 8px; }
    .my-listings-head { flex-direction: column; align-items: flex-start; }
    .my-listing-card { flex-direction: column; align-items: flex-start; }
}
