/* Basic Reset */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Flex container for map and sidebar */
#container {
    display: flex;
    height: auto;  /* This makes the container fill the viewport */
}

/* Map takes up the remaining space */
#map {
    flex: 1;
    height: 100%; /* Let the map fill the container's height */
}

/* Sidebar styling */
#sidebar {
    width: 500px;
    /* Sidebar width */
    overflow-y: auto;
    background-color: #f4f4f4;
    border-left: 1px solid #ddd;
    /* padding: 10px; */
    box-sizing: border-box;
    height: 1000px;
}

/* Sidebar location item styles */
.location-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding-left: 20px;
}

.location-item:hover {
    background-color: #eaeaea;
}

.location-item.active {
    background-color: #e4e4e4;
}

/* Container for image and info in sidebar */
.sidebar-item-container {
    display: flex;
    align-items: flex-start;
}

/* Sidebar image */
.location-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

/* Location info in sidebar */
.location-info {
    flex: 1;
}

.location-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.location-title i {
    color: #d00;
    margin-right: 5px;
}

.location-stars {
    color: #f1c40f;
    /* Gold for stars */
    margin-bottom: 20px;
    font-size: 15px;
    margin-top: 10px;
}

/* Two-line truncated description */
.location-description.short {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #555;
}

/* Expanded content in sidebar */
.expanded-content {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.location-item.active .expanded-content {
    display: block;
}

/* Button styling */
.button {
    display: inline-block;
    margin-right: 5px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.button:hover {
    background-color: #4CAF50;
}

.gm-style-iw-chr {
    display: none !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
	max-width: 400px;
}

.gm-style-iw.gm-style-iw-c {
    padding: 0;
}

/* Modal container (initially off-screen) */
.location-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 500px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    transition: right 0.5s ease-in-out;
}

/* Modal content */
.location-modal .modal-content {
    background-color: white;
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    max-height: 100%;
}

/* Location details */
#modal-location-details {
    font-size: 16px;
}

/* Button styling */
.location-modal .button {
    margin-top: 10px;
}

/* Optional: If you want to adjust the modal for smaller screens */
@media screen and (max-width: 768px) {
    .location-modal {
        width: 100%;
        position: absolute;
    }
}

#back-button {
    background-color: #4CAF50;
    border: 2px solid #4CAF50;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

#back-button:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-3px);
}

#back-button:active {
    transform: translateY(1px);
}

#back-button:focus {
    outline: none;
}

#back-button:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.openingHours {
    width: 100%;
    font-size: 15px;
}

.locImage {
    width: 100%;
    height: 100%;
}

h5 {
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 10px;
}
h5 a {
    text-decoration: none;
    font-size: 13px;
    color: black;
}

#modal-location-details section {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    margin-top: 15px;
}

/* Add this CSS to style the button */
.full-detail {
    display: inline-block;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #4CAF50;
    color: #fff;
    border: 2px solid #4CAF50;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    float: right;
}

/* Hover effects */
.full-detail:hover {
    background-color: #4CAF50;
    /* Darker blue when hovered */
    border-color: #4CAF50;
    /* Change border color to match */
    color: #fff;
    /* Keep text white */
    transform: translateY(-2px);
    /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Increase shadow on hover */
}

/* Focus effect for accessibility */
.full-detail:focus {
    outline: none;
    /* Remove default outline */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    /* Highlight with a glow */
}

.rating {
    color: black;
    font-weight: bold;
    margin-right: 5px;
    font-size: 14px;
}

/* Overall container for the reviews */
.review {
    display: flex;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Image container */
.review .image {
    margin-right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.review .description figure {
    margin: 0px;
}

/* Background image for the profile picture */
.review .bg-transfer {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Description section */
.review .description {
    flex: 1;
}

/* Rating container */
.review .rating-passive {
    display: inline-block;
    align-items: center;
    margin-bottom: 10px;
    margin-right: 20px;
}

/* Star rating */
.review .rating-passive .stars {
    display: inline;
}

.review .rating-passive .fa-star {
    color: #ffbf00;
    /* Gold color for stars */
    margin-right: 2px;
    margin-left: 0px;
    display: inline-block;
}

.review .rating-passive .fa-star:last-child {
    margin-right: 0;
}

/* Date of the review */
.review .description .date {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* Review content */
.review .description p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-top: 10px;
}

/* Author's name */
.review .description p strong {
    font-weight: bold;
    color: #333;
}

/* Hover effect on the review container */
.review:hover {
    background-color: #f1f1f1;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness: Stack the image and description vertically on small screens */
@media (max-width: 768px) {
    .review {
        flex-direction: column;
        align-items: flex-start;
    }

    .review .image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .review .description {
        margin-left: 0;
    }
}

/* Initial truncated state */
.custReview {
    display: -webkit-box;
    /* Enable box model for the clamping */
    -webkit-line-clamp: 3;
    /* Number of lines to display before truncation */
    -webkit-box-orient: vertical;
    /* Required for -webkit-line-clamp to work */
    overflow: hidden;
    /* Hide text that overflows */
    text-overflow: ellipsis;
    /* Show ellipsis (...) when text overflows */
    max-height: 4.5em;
    /* Initial max-height for the truncated view */
    transition: max-height 0.3s ease-out;
    /* Smooth transition for max-height */
}

.custReview.expanded {
    -webkit-line-clamp: unset;
    /* Remove line clamp when expanded */
    max-height: unset;
    /* Remove max-height when expanded */
}


/* Show more/less button styling */
.showMoreBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

.showMoreBtn:hover {
    background-color: #4CAF50;
}

.totalReviews {
    color: gray;
    font-size: 12px;
    margin-left: 10px;
}
.businessType {
    margin-right: 10px;
    color: white;
    border: 1px solid #000;
    background-color: black;
    font-size: 10px;
    padding: 3px;
    text-transform: uppercase;
}
.mapDirection {
    font-size: 12px;
}
.openHours {
    color: green;
}
.closedHours {
    color: red;
}
i.fa-star-half-o::before {
    content: "\f089";
}
.locationSection {
    padding: 10px;
    background-color: #62b147;
}
.locationSection h2 {
    margin: 0px;
    color: white;
    font-size: 16px;
}
.location-item.medical {
    background-color: #d1f4ff;
}
.medicalTitle {
    color: gray;
    line-height: 0.5px;
    font-weight: 100;
}
.info-window-body p {
    font-size: 14px;
}
#modal-location-details .mapImageContainer {
    position: relative;
}
#modal-location-details .mapImageContainer img {
    height: auto;
}
#modal-location-details .mapImageContainer section {
    background-color: rgba(0, 0, 0, .9);
    padding: 10px;
    color: white;
    width: 100%;
    bottom: 0;
    position: absolute;
    margin-bottom: 0px;
}
#modal-location-details .mapImageContainer section p {
    margin-bottom: 0px;
}
#modal-location-details .mapImageContainer section h3 {
    margin-top: 0px;
}
.leaflet-container a.mapDirection {
    color: white;
}