body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0B192C;
    color: #000B58;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #1E3E62;
    color: #F1EFE7;
    text-align: center;
}

.header h1 {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: bold;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.filters input {
    background-color: #F1EFE7;
    color: #1E3E62;
    border: 1px solid #F1EFE7;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    width: 220px;
    max-width: 100%;
    box-sizing: border-box;
}

.filters button {
    background-color: #4477b1;
    color: #F1EFE7;
    border: 1px solid #4477b1;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    width: 220px;
    max-width: 100%;
    box-sizing: border-box;
}

.filters button {
    cursor: pointer;
}

.filters button:hover {
    background-color: #3b6799;
}

.chip {
    display: inline-flex;
    align-items: center;
    background-color: #4477b1;
    color: white;
    padding: 5px 10px; 
    margin: 5px;
    border-radius: 20px; 
    font-size: 14px;
    white-space: nowrap;
    box-sizing: border-box; 
}

.chip button {
    background: none; 
    border: none;
    color: white;
    margin-left: 10px; 
    cursor: pointer; 
    font-size: 14px; 
}

.chip button:hover {
    color: #ccc;
}

.hidden {
    display: none; 
}

#no-results {
    text-align: center;
    color: #F1EFE7;
    font-size: 18px;
    margin-top: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #F1EFE7;
    border: 1px solid #003161;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
    margin-bottom: 20px;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.card h2 {
    margin: 0;
    font-size: 14px;
    color: #333;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
}

.card:hover {
    transform: translateY(-5px);
}

.card:hover h2 {
    opacity: 1;
}

.phone-link {
    color: black;        
    text-decoration: none; 
}

.phone-link:hover {
    text-decoration: underline; 
    color: gray; 
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
}

.pagination button:hover {
    background-color: #007bff;
    color: white;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
    justify-content: center;
}

.chip {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip button {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.chip button:hover {
    color: #ddd;
}

.footer {
    background-color: #000000;
    color: #F1EFE7;
    padding: 20px;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #F1EFE7;
}

.footer p,
.footer a {
    color: #F1EFE7;
    text-decoration: none;
    margin: 5px 0;
    font-size: 14px;
}

.footer a:hover {
    text-decoration: underline;
    color: #FFD700;
}

.footer .social-links a {
    display: inline-block;
    margin: 0 10px;
    font-size: 16px;
    color: #F1EFE7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #1E90FF;
}


@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .card img {
        height: 100px;
    }

    .card h2 {
        font-size: 12px;
    }

    .card {
        padding: 10px;
    }

    .card p {
        font-size: 10px;
    }

    .card button {
        font-size: 10px;
        padding: 6px 10px;
    }

    .header h1 {
        font-size: 20px;
        margin: 0 0 10px;
    }

    .filters {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .filters input {
        width: 100%;
        max-width: 100%;
    }

    .filters button {
        width: 100%;
    }

    .footer {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer .social-links {
        margin-top: 20px;
    }
}