
.hospital-card {
    width: 100% !important;
    max-width: 100%;
    min-width: 300px;
    background: #ffffff;
    border-radius: 1em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    margin: 1em 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

    .hospital-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    }

.hospital-card-header {
    height: 0.5em;
    border-radius: 1em 1em 0 0;
}

.hospital-card-body {
    padding: 1em 1.2em;
}

.hospital-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.4em;
    flex-wrap: nowrap;
}

    .hospital-row .label {
        font-weight: 600;
        color: #444;
        flex: 0 0 20%;
        font-size: 0.95em;
        text-align: left;
        padding-left: 0.3em;
        white-space: nowrap;
    }

    .hospital-row .value {
        flex: 1 1 auto;
        color: #111;
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        font-size: 0.95em;
    }

@media (max-width: 599px) {
    .hospital-row {
        flex-direction: row !important;
        margin-bottom: 0.4em !important;
    }

    .hospital-row .label {
        flex: 0 0 20% !important;
        margin-bottom: 0 !important;
    }

    .hospital-row .value {
        flex: 1 1 auto !important;
    }
}

.hospital-pager {
    margin-top: 3.2em;
    text-align: center;
    font-size: 0.95em;
}

.hospital-pager .pager-page {
    display: inline-block;
    padding: 0.5em 1em;
    font-size: 1.1em;
    border-radius: 0.5em;
    margin: 0 0.25em;
    background: #eee;
    cursor: pointer;
    border: 1px solid #ddd;
    font-weight: 500;
    color: #444;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.hospital-pager .pager-page.active {
    background: #76b852 !important;
    color: #fff !important;
    border-color: #76b852 !important;
    font-weight: bold;
}

.hospital-pager .pager-page:hover {
    background: #d8ffd8;
    border-color: #76b852;
    color: #333;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-panel {
    width: 600px;
    height: 85vh;
    background: #fff;
    border-radius: 14px;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
}

.modal-header {
    font-size: 1.2em;
    font-weight: bold;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #ddd;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    margin-top: 1em;
}