.church-locator-container {
    position: relative; 
    width: 100%;
    margin: 0 auto; /* Center the container horizontally */
    padding-top: 20px; 
}

#church-locator-map {
    width: 100%;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

#church-locator-search {
    position: absolute; /* Position relative to the container */
    top: 340px; /* Adjust overlap with map by moving it up */
    left: 50%;
    transform: translateX(-50%); 
    width: 90%; 
    background-color: rgba(255,255,255,0.75);
    padding: 15px; /* Padding around the form */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
    border-radius: 8px; /* Optional: Rounded corners */
    z-index: 1000; /* Ensure it overlaps on top of the map */
    display: flex; /* Use flexbox to center the content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.search-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 10px; /* Adjust as needed */
}

#search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

button[type="submit"] {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #c3262a;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#church-locator-search form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between form elements */
}

#church-locator-search input[type="text"] {
    width: 80%; /* Width of the input field */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#church-locator-search button {
    padding: 10px 20px;
    background-color: #c3262a;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#church-locator-search button:hover {
    background-color: #a61b1b; /* Button hover color */
}

#church-results {
    margin-top: 65px; /* Space between search form and results */
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.loader {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E02828;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    color: #E02828;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

.display-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.display-options button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 8px 16px;
    margin-right: -7px;
    cursor: pointer;
}

.display-options button.active {
    background-color: #c3262a;
}

#results-display.list-view .result-item {
    display: block;
    width: 100%;
}

#results-display.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.result-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.result-item p {
    margin: 5px 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.result-item i {
    margin-right: 8px;
    color: #555;
}

.view-toggle {
    padding: 10px 20px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.view-toggle.active {
    background-color: #c3262a; /* Active button background color */
    color: #fff; /* Active button text color */
}

.view-toggle:not(.active) {
    background-color: #e0e0e0; /* Inactive button background color */
    color: #666; /* Inactive button text color */
}

/*.glass-card {
    background: rgba(255, 255, 255, 0.19);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}*/

.glass-card {
    border-radius: 16px;
    background: linear-gradient(0deg, rgba(252, 250, 249, 0.00) 10%, rgba(252, 250, 249, 0.20) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
