/* Map Container Styles */
#gmp-map {
    height: calc(100vh - 70px); /* Adjusted height to fit above footer */
    width: calc(100% - 10px);
    padding: 5px;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow under the map */
    border-radius: 8px; /* Optional: rounded corners for a softer look */
}

/* Adjust content layout */
body {
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Header Styles */
header {
    background-color: #007BFF;
    padding: 20px;
    text-align: center;
    color: white;
}

/* Logo Styles */
img.home {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.button, .custom-button, .view-more-button, .search-button, .login-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 3px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 10px;
}

.button:hover,
.custom-button:hover,
.view-more-button:hover,
.search-button:hover,
.login-button:hover {
    background-color: #0056b3;
}

/* Search Input Styles */
.search-input {
    margin: 10px auto;
    text-align: center;
}

.search-bar {
    width: 250px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 10px;
}

/* Closest Repairers List */
#closest-repairers {
    margin: 20px 0;
    list-style-type: none;
    padding: 0;
}

#closest-repairers li {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

#closest-repairers li:hover {
    background-color: #f0f0f0;
}

/* Repairer Card Styles */
.repairer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.repairer-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 10px;
    flex: 1 1 calc(20% - 20px); /* 5 items per row */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.repairer-card:hover {
    transform: translateY(-5px);
}

/* Repairer Title */
.repairer-title {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Repairer Address */
.repairer-address {
    font-size: 14px;
    color: #555;
}

/* Responsive Styles */
@media (max-width: 500px) {
    .button, .custom-button, .view-more-button, .search-button, .login-button {
        width: 100%;
        margin: 10px 0;
        padding-bottom: 5px;
    }

    .repairer-card {
        flex: 1 1 calc(45% - 20px);
    }

    .content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .repairer-card {
        flex: 1 1 calc(100% - 20px);
    }
}

/* No Results Found */
.no-results {
    text-align: center;
    font-size: 18px;
    color: #777;
}

/* Additional Styles */
.google_div {
    margin: 15px;
    box-shadow: 3px 3px #808080, -1em 0 .4em #D3D3D3;
    margin-bottom: 50px;
}

/* Content Styles */
.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
/* Modal background */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
    transition: opacity 0.3s ease; /* Fade transition */
}

/* Modal content */
.modal-content {
    background-color: #fefefe; /* White background */
    margin: 10% auto; /* Adjusted margin for better centering */
    padding: 20px; /* Padding inside the modal */
    border: 1px solid #888; /* Border */
    width: 90%; /* Slightly wider for small screens */
    max-width: 600px; /* Set a max-width for larger screens */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow effect */
    animation: slide-in 0.3s forwards; /* Slide in effect */
}

/* Close button */
.close-button {
    color: #aaa; /* Grey color */
    float: right; /* Right aligned */
    font-size: 28px; /* Size of close button */
    font-weight: bold; /* Bold */
    cursor: pointer; /* Pointer cursor on hover */
    transition: color 0.3s; /* Smooth color transition */
}

.close-button:hover,
.close-button:focus {
    color: #ff0000; /* Change color to red on hover */
    text-decoration: none; /* No underline */
}

/* Animation for modal */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-30px); /* Slide from above */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Normal position */
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .modal-content {
        width: 95%; /* Make it full width on smaller screens */
        margin: 5% auto; /* Reduce top margin on smaller screens */
    }
}

/* Content Styles inside Modal */
.modal-content h2 {
    margin-top: 0; /* Remove top margin for headings */
    color: #007BFF; /* Primary color for headings */
}

/* Body content within modal */
.modal-content p {
    color: #333; /* Darker text for better readability */
    line-height: 1.5; /* Improve line spacing */
}

.modal-content button {
    background-color: #007BFF; /* Primary color for buttons */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 4px; /* Rounded corners */
    padding: 10px 15px; /* Button padding */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth background transition */
    margin-top: 15px; /* Space above buttons */
}

.modal-content button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}


.view-button {
    padding: 8px 12px; /* Button padding */
    background-color: #0056b3; /* Green color */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Transition for hover effect */
}

.view-button:hover {
    background-color: #0056b3; /* Darker green on hover */
}

/* Repairers Column Layout */
#repairers-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

/* Individual Repairers Column */
.repairers-column {
    flex: 1;
    margin: 0 10px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Ensure the repairer details list items are displayed in a block */
.repairer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer Styles */
footer {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
    margin-top: auto;
    font-size: 12px;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.custom-input,
.custom-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #007bff;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.custom-input:focus,
.custom-textarea:focus {
    border-color: #0056b3;
    outline: none;
}

.error {
    color: red;
    font-size: 0.9em;
}

.success {
    color: green;
    font-size: 0.9em;
}

/* Login Button */
.login-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #0056b3;
}

/* View More Button */
.view-more-button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    cursor: pointer;
}

/* Additional styles for the modal headings */
h3 {
    display: inline-block;
    margin-right: 20px;
}


.suggestions-box {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    position: absolute;
    background: white;
    z-index: 1000;
}

.suggestions-box div {
    padding: 10px;
    cursor: pointer;
}

.suggestions-box div:hover {
    background-color: #f0f0f0;
}

.repairer-indicators {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
}

.indicator {
    width: 10px;
    height: 10px;
    margin-right: 5px;
    display: inline-block;
}

/* Franchise Marker */
.indicator.franchise {
    background-color: red;
}

/* Agent Marker */
.indicator.agent {
    background-color: blue;
}

/* RADS Marker */
.indicator.rads {
    background-color: green;
}

/* Label Styles */
.repairer-indicators label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
