/*
Theme Name:  Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.0
License: ThemeForest
License URI: http://themeforest.net/licenses
Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template:  listeo
*/

/* ----------------------------
   SINGLE COMMUNITY PAGE
----------------------------- */

.single-community .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}



.community-page {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.6;
    color: #333;
}

.community-sidebar {
    margin-left: 20px;
    position: sticky;
    top: 120px;
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.community-menu-wrapper {
    padding: 0;
}

.community-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-menu li {
    margin-bottom: 10px;
}

.community-menu a {
    display: block;
    background: #f7f7f7;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.community-menu a:hover {
    background: #fff;
    border-color: #d35400;
    color: #d35400;
    transform: translateX(4px);
}

.community-page section {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}

.community-hero p.community-tagline {
    font-size: 1.7rem !important;
    font-weight: 500 !important;
    color: #555 !important;
    margin: 15px 0 10px !important;
    line-height: 1.4 !important;
}

.community-hero p.community-location {
    font-size: 1.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.community-details ul,
.community-schools ul {
    list-style: none;
    padding-left: 0;
}

.community-details li,
.community-schools li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.community-amenities h3,
.community-poi h3 {
    margin-top: 20px;
    margin-bottom: 5px;
    color: #0073aa;
}

.community-amenities p,
.community-poi p {
    margin: 0 0 10px 0;
}

.community-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.community-additional-notes p {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #0073aa;
}

/* ----------------------------
   RANDOM NEIGHBORHOODS CAROUSEL
----------------------------- */

.community-random-neighborhoods {
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.community-random-neighborhoods h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #222;
}

.community-random-neighborhoods .community-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.community-random-neighborhoods .community-item {
    flex: 0 0 30%;
    text-align: center;
    border: 1px solid #eee;
    padding: 10px;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-random-neighborhoods .community-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.community-random-neighborhoods .community-image-wrapper {
    width: 100%;
    padding-top: 66.66%;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
}

.community-random-neighborhoods .community-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.community-random-neighborhoods .community-item:hover .community-image-wrapper img {
    transform: scale(1.05);
}

.community-random-neighborhoods .community-item a h3 {
    font-size: 1rem;
    margin: 10px 0 0 0;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.community-random-neighborhoods .community-item a:hover h3 {
    color: #005077;
}

@media (max-width: 992px) {
    .community-random-neighborhoods .community-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 576px) {
    .community-random-neighborhoods .community-item {
        flex: 0 0 100%;
    }
}
