* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f7ff;
    color: #333;
    line-height: 1.6;
}

.container_hos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center
}

headerhos {
    background: linear-gradient(135deg, #1a6fc4 0%, #2c3e50 100%);
    color: white;
    padding: 25px 0;
    text-align: center;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-container {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

#searchInput {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #4a90e2;
}

.hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.hospital-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hospital-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.hospital-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hospital-card:hover .hospital-image img {
    transform: scale(1.05);
}

.hospital-info {
    padding: 20px;
}

.hospital-name {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.hospital-address,
.hospital-mobile {
    margin-bottom: 12px;
    color: #555;
    display: flex;
    align-items: flex-start;
}

.hospital-address:before {
    content: "📍";
    margin-right: 8px;
}

.hospital-mobile:before {
    content: "📞";
    margin-right: 8px;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.map-link:hover {
    text-decoration: underline;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hospital-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }
}