body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-image: url('bg-image.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
}

img {
  max-width: 40%;
  height: auto;
  min-width: 300px;
}

.container {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.select-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M287%2C114.1L156.4%2C12.4c-4.4-4.8-10.9-5.1-15.3-0.2c-4.4%2C4.8-5%2C11.1-0.9%2C15.9L254.8%2C146.2L140.2%2C270.3c-4.1%2C4.7-3.5%2C11.3%2C1.3%2C15.4c4.8%2C4.1%2C11.3%2C3.5%2C15.4-1.3l130.4-149.9C293.4%2C125.1%2C293.4%2C118.8%2C287%2C114.1z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.search-button-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#searchButton {
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#searchButton:hover {
    background-color: #0056b3;
}

.pharmacy-list {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.initial-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    border: 1px dashed #ced4da;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.pharmacy-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(233, 236, 239, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    position: relative;
}

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

.pharmacy-card h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.pharmacy-card p {
    margin: 5px 0;
    line-height: 1.6;
    color: #495057;
}

.pharmacy-card strong {
    color: #34495e;
}

.map-link {
    position: absolute;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.map-link:hover {
    color: #0056b3;
}

.map-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.phone-link {
    color: #007bff;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .select-group {
        min-width: unset;
        width: 100%;
    }
}
