/**
 * Location Finder Block Styles
 */

/* General Styles */
.location-finder-wrapper {
    padding: 60px 0;
    font-family: var(--font1);
}

/* Heading Section */
.location-finder-heading {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.location-finder-subtitle {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #666;
}

.location-finder-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.location-finder-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
}

.location-finder-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.location-finder-link {
    display: inline-flex;
    align-items: center;
    color: var(--location-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.location-finder-link:hover {
    color: var(--location-secondary);
}

.location-finder-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.location-finder-link:hover i {
    transform: translateY(3px);
}

/* Map Section */
.location-finder-map-section {
    margin-bottom: 60px;
}

.location-finder-map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.location-finder-filters {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.location-finder-filter-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.location-finder-filter-description {
    margin-bottom: 25px;
    color: #666;
}

.location-finder-filter {
    margin-bottom: 20px;
}

.location-finder-filter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.location-finder-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
}

#filter-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    background-color: var(--location-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#filter-button:hover {
    background-color: var(--location-secondary);
}

.location-finder-view-listings {
    display: block;
    text-align: center;
    color: var(--location-primary);
    text-decoration: none;
    margin-top: 20px;
    font-weight: 600;
}

.location-finder-view-listings:hover {
    color: var(--location-secondary);
}

.location-finder-view-listings i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.location-finder-view-listings:hover i {
    transform: translateY(3px);
}

.location-finder-map {
    flex: 2;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Communities Section */
.location-finder-communities-section {
    padding-top: 20px;
}

.location-finder-communities-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.location-finder-below-cards {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.location-finder-communities-container {
    margin-top: 30px;
}

.location-finder-communities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Community Card */
.location-finder-community-card {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-finder-community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Card Top Section with Image and Logo */
.location-finder-card-top {
    position: relative;
}

.location-finder-community-image {
    height: 200px;
    overflow: hidden;
}

.location-finder-community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-finder-community-card:hover .location-finder-community-image img {
    transform: scale(1.05);
}

/* Logo Circle Styling */
.location-finder-community-logo-wrapper {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.location-finder-community-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-finder-community-card:hover .location-finder-community-logo {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.location-finder-community-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.location-finder-community-content {
    padding: 45px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.location-finder-community-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.location-finder-community-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #666;
}

.location-finder-community-info i {
    margin-right: 10px;
    margin-top: 4px;
    color: var(--location-primary);
}

.location-finder-community-info a {
    color: var(--location-primary);
    text-decoration: none;
}

.location-finder-community-info a:hover {
    text-decoration: underline;
}

.location-finder-community-living-options {
    margin-top: 15px;
    margin-bottom: 20px;
}

.location-finder-community-living-options p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.location-finder-living-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.location-finder-living-option {
    background-color: #e6f2f9;
    /* Light blue background instead of rgba */
    color: var(--location-primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.location-finder-community-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--location-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.location-finder-community-card .btn:hover {
    background-color: var(--location-secondary);
}

/* Map Info Window */
.map-info-window {
    padding: 0;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-info-window-logo {
    width: 100%;
    padding: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-info-window-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.map-info-window-title-only {
    background-color: var(--location-primary);
    color: #fff;
    padding: 15px;
    text-align: center;
}

.map-info-window-title-only h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

.map-info-window-content {
    padding: 0;
    background-color: #fff;
}

.map-info-window-image {
    height: 120px;
    overflow: hidden;
}

.map-info-window-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-info-window-details {
    padding: 15px;
}

.map-info-window-address,
.map-info-window-phone {
    margin-bottom: 10px;
    color: #666;
    display: flex;
    align-items: flex-start;
}

.map-info-window-address i,
.map-info-window-phone i {
    color: var(--location-primary);
    margin-right: 8px;
    margin-top: 4px;
}

.map-info-window-phone a {
    color: var(--location-primary);
    text-decoration: none;
}

.map-info-window-phone a:hover {
    text-decoration: underline;
}

.map-info-window-living-options {
    margin: 15px 0;
}

.map-info-window-living-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.map-info-window-living-option {
    background-color: #e6f2f9;
    /* Light blue background instead of rgba */
    color: var(--location-primary);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.map-info-window-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--location-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

.map-info-window-button:hover {
    background-color: var(--location-secondary);
}

/* Highlighted Card */
.location-finder-community-card.highlighted {
    border: 2px solid var(--location-primary);
    box-shadow: 0 5px 20px #c5e1f0;
    /* Light blue shadow instead of rgba */
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .location-finder-community-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 991px) {
    .location-finder-map-container {
        flex-direction: column;
    }

    .location-finder-filters,
    .location-finder-map {
        width: 100%;
    }

    .location-finder-heading {
        margin-bottom: 40px;
    }

    .location-finder-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .location-finder-community-card {
        width: 100%;
    }

    .location-finder-links {
        flex-direction: column;
        gap: 15px;
    }

    .location-finder-communities-row {
        gap: 20px;
    }

    .location-finder-heading {
        margin-bottom: 30px;
    }

    .location-finder-title {
        font-size: 1.8rem;
    }
}

/* devq:secondary-color-rules */
.location-finder-wrapper .location-finder-view-listings,
.location-finder-wrapper .location-finder-view-listings:hover,
.location-finder-wrapper .location-finder-view-listings:focus {
    color: var(--location-secondary);
}
.location-finder-wrapper .location-finder-community-info i {
    color: var(--location-secondary);
}
.location-finder-wrapper .location-finder-community-info a,
.location-finder-wrapper .location-finder-community-info a:hover,
.location-finder-wrapper .location-finder-community-info a:focus {
    color: var(--location-secondary);
}
.location-finder-wrapper .location-finder-living-option {
    color: var(--location-secondary);
}
