/**
 * @Project TMS HOLDINGS
 * @Author Tang Van Binh <tangvanbinh201@gmail.com>
 * @Copyright (C) 2025 Tang Van Binh. All rights reserved
 * @License GNU/GPL version 2 or any later version
 */

/* ── Trang chủ module: service cards ────────────────────────── */
.tracuu-service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0072c6;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .2s, transform .15s;
    height: 100%;
}
.tracuu-service-card:hover {
    box-shadow: 0 4px 18px rgba(0,114,198,0.13);
    transform: translateY(-2px);
}
.tracuu-service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0072c6;
    font-size: 22px;
}
.tracuu-service-body { flex: 1; }
.tracuu-service-title { font-size: 17px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px 0; }
.tracuu-service-intro { font-size: 14px; color: #6c757d; margin: 0 0 12px 0; line-height: 1.5; }
.tracuu-service-cta { font-size: 13px; font-weight: 600; color: #0072c6; }

/* ── Khu vực kết quả ─────────────────────────────────────────── */
.tracuu-results-section { margin-top: 8px; }
#tracuu-result-info { font-size: 13px; color: #6c757d; margin-bottom: 12px; min-height: 20px; }
.tracuu-loading { text-align: center; padding: 32px; color: #adb5bd; font-size: 15px; }
.tracuu-empty { color: #adb5bd; font-style: italic; padding: 24px 0; text-align: center; }

/* ── Hospital card ─────────────────────────────────────────────── */
.hospital-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0072c6;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
}
.hospital-card:hover {
    box-shadow: 0 4px 18px rgba(0,114,198,0.13);
    transform: translateY(-2px);
}

/* Header: tên + badge loại nằm ngang */
.hospital-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f3f5;
}
.hospital-title-wrap { flex: 1; min-width: 0; }
.hospital-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px 0;
    line-height: 1.35;
}
.hospital-name-en {
    font-size: 12px;
    color: #868e96;
    margin: 0;
    font-style: italic;
}
.hospital-type-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e8f4fd;
    color: #0072c6;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
}

/* Body: địa chỉ, điện thoại, ghi chú */
.hospital-card-body {
    padding: 10px 16px;
    font-size: 14px;
    color: #495057;
}
.hospital-card-body p { margin: 4px 0; display: flex; align-items: baseline; gap: 6px; }
.hospital-card-body p i { color: #0072c6; flex-shrink: 0; width: 14px; text-align: center; }
.hospital-note { font-style: italic; color: #868e96; font-size: 13px; margin-top: 4px !important; }

/* Footer: baolanh tags + link bản đồ */
.hospital-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #f1f3f5;
}
.baolanh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.baolanh-tag {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.hospital-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0072c6;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.hospital-maps-btn:hover { color: #004a99; text-decoration: underline; }

/* ── Pagination ──────────────────────────────────────────────── */
.tracuu-pagination {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.tracuu-pagination button {
    min-width: 38px;
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: background .15s;
}
.tracuu-pagination button.active {
    background: #0072c6;
    color: #fff;
    border-color: #0072c6;
    font-weight: 600;
}
.tracuu-pagination button:hover:not(.active) { background: #e9ecef; }

/* ── Content box expand/collapse ────────────────────────────── */
.tracuu-content-box {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15);
    padding: 28px 32px 0;
    margin: 28px 0 0;
}
.tracuu-content-box h2{
	font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border, #eee);
    color: var(--txt, #333);
}
.tracuu-content-box h3{font-size: 1.2rem;font-weight: 600;margin: 1.25rem 0 0.5rem;}
.tracuu-content-box p{text-align: justify}
.tracuu-content-inner {
    max-height: 220px;
    overflow: hidden;
    transition: max-height .45s ease;
}
.tracuu-content-inner.expanded {
    max-height: 9999px;
}
.tracuu-content-overlay {
    position: absolute;
    left: 0; right: 0;
    bottom: 44px;
    height: 90px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
    transition: opacity .3s;
}
.tracuu-content-overlay.hidden { opacity: 0; }
.tracuu-content-toggle {
    text-align: center;
    padding: 12px 0 16px;
    background: #fff;
    border-radius: 0 0 10px 10px;
}
