/* Styles for the profile listing */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
}

header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    font-size: 1.5rem;
}

header a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

h2 {
    margin-top: 20px;
}

form {
    position: relative;
    display: inline-block;
    width: 50%;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#postcodeSuggestions {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    z-index: 1000;
    margin-top: 5px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

#profilesContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.profile-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 98%;
    max-width: 1000px;
    height: 20vh; /* Ensure each profile box takes 20% of the screen height */
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 2;
    padding-right: 15px;
    text-align: left;
}

.profile-info h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.profile-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.profile-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}
