/* hospital-search.css */

/* Search Filter Area */
.search-filter-container {
    background: #f4f7f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-filter-heading {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    color: #1a427b;
}

.search-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.search-filter-col {
    flex: 1 1 30%;
    min-width: 200px;
}

.search-filter-label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 16.5885px;
}

.search-filter-select {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16.5885px;
    background-color: #fff;
    box-sizing: border-box;
    line-height: normal;
}

.search-filter-btn-container {
    flex: 1 1 100%;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.search-filter-btn {
    background: #1a427b;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16.5885px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.search-filter-btn:hover {
    background: #133463;
}

.search-filter-clear-link {
    display: inline-block;
    color: #666;
    text-decoration: underline;
    font-size: 16.5885px;
}

/* Search Results Area */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid #1a427b;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-results-header h2.main-heading {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: bold;
    color: #1a427b;
}

.search-results-count {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.search-results-count-value {
    color: #008033;
    font-size: 32px;
}

@media (max-width: 767px) {
    .search-filter-btn-container {
        flex-direction: column;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-results-header h2.main-heading {
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-results-count {
        align-self: flex-end;
        background: #fff;
        padding-left: 10px;
        position: relative;
        z-index: 5;
    }
}

.hospital-list-container {
    display: grid;
    gap: 20px;
}

.hospital-list-empty {
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

/* Hospital Card */
.hospital-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hospital-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.hospital-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
    gap: 15px;
}

.hospital-card-main-info {
    flex: 1;
    min-width: 250px;
}

.hospital-card-area-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 16.5885px;
    margin-bottom: 10px;
    font-weight: bold;
}

.hospital-card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.hospital-title-link {
    color: #0056b3;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.hospital-title-link:hover {
    opacity: 0.8;
}

.hospital-card-department {
    color: #666;
    font-size: 16.5885px;
    font-weight: 500;
}

.hospital-card-department-value {
    color: #333;
}

.hospital-card-contact {
    text-align: left;
    min-width: 280px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.hospital-card-phone {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.hospital-card-phone a {
    color: inherit;
    text-decoration: none;
}

.hospital-card-address {
    color: #555;
    font-size: 16.5885px;
    line-height: 1.5;
}

.hospital-card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.hospital-card-detail-item {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 15px;
    border-radius: 8px;
}

.detail-age {
    border-left: 4px solid #4a90e2;
}

.detail-support {
    border-left: 4px solid #50e3c2;
}

.detail-conditions {
    border-left: 4px solid #b8e986;
}

.detail-mental {
    border-left: 4px solid #f5a623;
}

.detail-full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: bold;
    font-size: 16.5885px;
    color: #777;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 16.5885px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.hospital-card-notes {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffb300;
    grid-column: 1 / -1;
}

.notes-label {
    font-weight: bold;
    font-size: 16.5885px;
    color: #ff8f00;
    margin-bottom: 6px;
}

.notes-value {
    font-size: 16.5885px;
    color: #555;
    line-height: 1.4;
}