.directory {
    line-height: 1.4;
    font-family: Arial, sans-serif;
}

.directory form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.directory input[type="text"],
.directory button {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.directory input[type="text"] {
    width: min(100%, 320px);
    border: 1px solid #ddd;
}

.directory button {
    border: none;
    background-color: #07659e;
    color: #fff;
    cursor: pointer;
}

.directory button:hover {
    background-color: #005187;
}

.results,
.tile {
    box-sizing: border-box;
}

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

.tile {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.tile h3 {
    background-color: #07659e;
    color: #fff;
    margin: 0;
    padding: 10px;
    font-size: 18px;
}

.tile .address,
.tile p {
    padding: 5px 20px;
    margin: 0;
    border-bottom: 1px solid #ddd;
    background-color: #f7f7f7;
    font-weight: 700;
    color: #333;
}

.tile p {
    background-color: transparent;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.tile a {
    color: #06c;
    text-decoration: none;
}

.tile a:hover {
    text-decoration: underline;
}

.tile .contact-info {
    padding: 10px;
    background-color: #f9f9f9;
}

.tile .contact-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.tile .contact-info p {
    padding-left: 20px;
    margin: 0;
    font-size: 14px;
}

.tile .residents-children,
.tile .other-info {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.tile .other-info strong,
.tile .residents-children strong,
.gsmd-label {
    color: #333;
    font-weight: 700;
}

.gsmd-message {
    margin: 0;
}

.gsmd-error {
    color: #b32d2e;
}
