.max-width {
    max-width: var(--max-width);
}

/* Header Styles */
.hoa-header {
    height: 80px;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0px;
}

.maplibregl-map {
    font: 12px/20px 'Raleway', sans-serif !important;
}

.hoa-header-container {
    width: 100%;
    max-width: var(--max-width);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hoa-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hoa-nav a:hover {
    text-decoration: underline;
}

.inquire-btn {
    width: 164px
}

/* Slider Styles */
.hoa-slider-section {
    margin-top: 80px;
    position: relative;
    width: 100%;
    height: 600px;
}

.hoa-swiper {
    width: 100%;
    height: 100%;
}

.hoa-swiper .swiper-slide {
    width: auto;
    margin-right: 4px !important;
    position: relative;
}

.hoa-swiper .swiper-slide img {
    height: 100%;
}

/* Swiper Navigation Buttons */
.hoa-swiper .swiper-button-prev,
.hoa-swiper .swiper-button-next {
    color: white;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 14px;
    transition: all 0.3s ease;
}

.hoa-swiper .swiper-navigation-icon {
    color: var(--hoa-dark-blue);
}

.hoa-slide-overlay {
    position: absolute;
    bottom: 0px;
    color: white;
    padding: 2px 8px;
    background-color: rgba(24, 29, 36, 0.5);
}

.hoa-community-description-form-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 0px 54px;
}

.hoa-community-description-form-section-inner {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 86px;
}

.hoa-community-description-form-section-inner-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 54px;
    width: 746px;
}

.hoa-community-description-form-section-inner-left-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hoa-community-description-form-section-inner-left-bottom {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.hoa-community-description-form-section-inner-right {
    width: 482px;
    box-shadow: 0 4px 19px 1px rgba(0, 0, 0, 0.11);
    background-color: var(--hoa-cream);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    border-radius: 10px;
}

/* Schedule Visit Form Styles */
.schedule-form-cover {
    width: 100%;
    height: 226px;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-form-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-form-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.schedule-form-header {
    display: flex;
    flex-direction: column;
}

/* Date Selector */
.date-selector-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-nav-btn.material-symbols-outlined {
    font-size: 24px;
    color: var(--hoa-dark-blue);
}

.date-options {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.date-option {
    background: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    transition: all 0.3s ease;
}

.date-option:hover {
    background-color: var(--hoa-light-grey);
}

.date-option.active {
    background-color: var(--hoa-medium-grey);
}

.date-option.active .date-day,
.date-option.active .date-number {
    color: white;
}

/* Time Selector */
.time-selector-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.time-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-family: Roboto, sans-serif !important;
}

.time-option {
    background: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-option:hover {
    background-color: var(--hoa-light-grey);
}

.time-option.active {
    background-color: var(--hoa-medium-grey);
    color: white;
}

.community-address {
    display: flex;
    align-items: center;
    gap: 6px;
}

.community-address .material-symbols-outlined {
    font-size: 20px;
    color: #cf2523;
}

.community-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hoa-dark-blue);
}

.community-description p {
    margin: 0 0 16px 0;
}

.community-description p:last-child {
    margin-bottom: 0;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stat-card {
    background-color: var(--hoa-cream);
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 366px;
}

.stat-card-icon-container {
    height: 66px;
    width: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
}

.stat-icon {
    font-weight: 600 !important;
    font-size: 32px !important;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Amenities Section */
.amenities-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amenity-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--hoa-dark-blue);
}

.map-section {
    width: 100%;
    min-height: 700px;
    padding: 24px 0px 0px;
    background-color: var(--hoa-cream);
    display: flex;
    justify-content: center;
}

.map-section-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.map-section-header {
    width: 100%;
    max-width: var(--max-width);
}

.map-section-header-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-title-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.map-section-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hoa-filter {
    min-width: 140px;
}

.map-placeholder {
    width: 100%;
    height: 640px;
    background-color: #e5e5e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hoa-medium-grey);
    font-size: 24px;
    font-weight: 600;
}

#poi-filters button {
    padding: 0px 12px !important;
    font-size: 14px !important;
}
.ag-grid-section {
    padding: 56px 0px;
    margin: 0 auto;
}

.floorplan-facts-insights-section {
    padding: 56px 0px 100px;
    align-items: center;
    background-color: var(--hoa-cream);
}

.floorplan-facts-insights-section-inner {
    max-width: var(--max-width);
}

.floorplan-card {
    border-radius: 12px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.09);
    border: solid 1px #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 308px;
    background-color: #fff;
    padding: 20px 40px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.floorplan-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.floorplan-card img {
    width: 230px;
    height: 190px;
}

.floorplan-view-more-btn {
    margin-left: auto;
    margin-right: auto;
    width: fit-content !important;
}

/* Floorplans Desktop */
.floorplans-desktop-grid {
        display: flex !important;
}

.floorplans-mobile-slider {
        display: none;
        max-width: 90vw;
}

/* Floorplans Swiper Styles */
.floorplans-swiper {
    width: 100%;
    padding-bottom: 20px;
}

.floorplans-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floorplans-swiper .floorplan-card {
    width: 100%;
    max-width: 340px;
}

/* Floorplans Navigation */
.floorplans-navigation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 80%;
    margin: auto;
}

.floorplan-nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floorplan-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.floorplan-nav-btn .material-symbols-outlined {
    font-size: 24px;
    color: var(--hoa-dark-blue);
}

.floorplans-pagination {
    /* display: flex;
    gap: 8px; */
    position: static !important;
    transform: translateX(0%) !important;
}
/* Community Facts Card */
.community-facts-card {
    background-color: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.community-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

/* New class to handle the bottom row spacing */
.community-facts-full-width {
    width: 100%;
}

.community-facts-list {
    list-style: disc;
    padding: 0px 0px 0px 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.community-facts-list li {
    line-height: 1.6;
}

.community-facts-list li strong {
    font-weight: 600;
}


/* Growth & Insights Section */
.growth-insights-section {
    margin-top: 60px;
}

.growth-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.insight-card {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.insight-card-header {
    margin-bottom: 24px;
}

.insight-card-header h5 {
    margin-bottom: 8px;
}

.insight-card-chart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-card-chart img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Community Reviews Section */
.community-reviews-section {
    padding: 40px 0px;
}

.community-reviews-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* .reviews-swiper {
    overflow: visible;
    padding: 0 20px;
} */

.reviews-swiper .swiper-slide {
    /* width: 514px !important; */
    /* height: 289px;
  margin: 0 30px;
  border-radius: 12px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.09);
  border: solid 0.5px #8998a6;
  background-color: #fff; */
    width: auto;
}

.review-card {
    background-color: white;
    padding: 54px 50px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.09);
    border: solid 0.5px var(--hoa-medium-grey);
    height: 290px;
    display: flex;
    border-radius: 12px;
    flex-direction: column;
    justify-content: space-between;
    width: 514px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card-header h5 {
    margin: 0;
}

.quote-icon {
    font-size: 28px !important;
    color: var(--hoa-light-grey);
}

.review-text {
    color: var(--hoa-dark-grey);
    line-height: 1.8;
}

.reviews-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.review-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-nav-btn:hover {
    background-color: var(--hoa-dark-grey);
    border-color: var(--hoa-dark-grey);
}

.review-nav-btn:hover .material-symbols-outlined {
    color: white;
}

.review-nav-btn .material-symbols-outlined {
    font-size: 24px;
    color: var(--hoa-dark-grey);
    transition: color 0.3s ease;
}

.reviews-pagination {
    display: flex;
    gap: 8px;
    position: static !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--hoa-light-grey);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--hoa-dark-grey);
    width: 24px;
    border-radius: 5px;
}

.frequently-asked-questions-section {
    padding: 80px 20px;
    /* background-color: var(--hoa-cream); */
}

.frequently-asked-questions-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    gap: 54px;
    align-items: flex-start;
    font-size: 20px;
    color: var(--hoa-dark-blue);
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid var(--hoa-light-grey);
    border-bottom: 1px solid var(--hoa-light-grey);
    padding: 16px 0;
}

.faq-item:not(:first-child) {
    border-top: none;
}

.faq-question {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: pointer;
    list-style: none;
    padding: 0;
    font-weight: 500;
    color: var(--hoa-dark-blue);
    user-select: none;
    gap: 12px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 24px !important;
    color: var(--hoa-dark-grey);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question span:last-child {
    flex: 1;
}

.faq-item[open] .faq-icon {
    transform: rotate(0deg);
}

.faq-answer {
    padding: 16px 0 8px 0;
    padding-left: 36px;
    color: var(--hoa-dark-grey);
    line-height: 1.8;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Section */
.hoa-footer {
    background-color: var(--hoa-light-grey);
    padding: 86px 62px 80px 64px;
}

.footer-company-name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--hoa-dark-blue);
}

.hoa-footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 100px;
}

.hoa-footer-left {
    flex: 1;
    max-width: 900px;
}

.hoa-footer-right {
    display: flex;
    flex-direction: column;
}

.hoa-footer-links {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.footer-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--hoa-dark-blue);
}

.footer-email {
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
}

.hoa-footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 34px;
}

.hoa-footer-social img {
    width: 20px;
    height: 20px;
}

.hoa-popup-heading {
    font-size: 30px;
    font-weight: 500;
    color: var(--hoa-dark-blue);
}



/* POI Popup Styles */
.maplibregl-popup.poi-popup .maplibregl-popup-content {
    padding: 0;
    border-radius: 8px;

}

.maplibregl-popup.poi-popup .maplibregl-popup-close-button {
    font-size: 24px;
    color: var(--hoa-medium-grey);
    right: 8px;
    top: 2px;
}

.poi-popup {
    min-width: 226px !important;
}

/* Property Detail Popup Styles */
.maplibregl-popup.property-detail-popup .maplibregl-popup-content {
    font-family: 'Raleway', sans-serif;
    padding: 28px 20px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border: solid 1px #c0c0c0;
    overflow: hidden;
    /* min-width: 850px; */
}

.maplibregl-popup.property-detail-popup .maplibregl-popup-close-button {
    font-size: 24px;
    /* padding: 8px 12px; */
    color: #333;
    right: 8px;
    top: 4px;
    /* background: rgba(255, 255, 255, 0.9); */
    /* border-radius: 50%; */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.maplibregl-popup.property-detail-popup .maplibregl-popup-close-button:hover {
    background: rgba(255, 255, 255, 1);
    color: #000;
}

.maplibregl-popup.property-detail-popup .maplibregl-popup-tip {
    display: none;
}

.property-popup-container button:hover {
    opacity: 0.9;
}

.property-popup-container button:first-of-type:hover {
    background: #4a545c !important;
}

.property-popup-container button:last-of-type:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}
.amenities-section-container-desktop {
    display: block;
}

.schedule-form-container-desktop {
    display: block;
}

.amenities-section-container-mobile {
    display: none;
}

.schedule-form-container-mobile {
    display: none;
}
 /* Mobile Listing Card Styles */
 .listing-card {
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
    padding-bottom: 30px;
    border-bottom: 1px solid var(--hoa-medium-grey);
}

.listing-card-content {
    display: flex;
    gap: 24px;
}

.listing-card-image {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
}

.listing-card-image img {
    width: 100%;
    object-fit: contain;
}

.listing-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E7EB;
}

.listing-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.listing-card-hoa {
    font-size: 16px;
    color: #4B5563;
    margin-top: 8px;
}

.listing-card-hoa-label {
    display: block;
    color: #111827;
    margin-bottom: 2px;
}

.listing-card-footer {
    padding: 0 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-card-button {
    width: 100%;
}

.hoa-desktop-table {
    display: block;
}
.hoa-mobile-cards {
    display: none;
}

/* Mobile Activity Card Styles */
.activity-card {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--hoa-medium-grey);
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.activity-card-info {
    flex: 1;
}

.activity-card-date {
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 4px;
}

.activity-card-lot {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.activity-card-status {
    font-size: 16px;
    color: #4B5563;
}

.activity-card-button {
    width: 100%;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-size: 16px;
}

.no-data-message {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .hoa-swiper .swiper-slide {
        width: 100%;
    }

    .hoa-swiper .swiper-slide img{
        width: 100%;
        object-fit: contain;
    }

    .amenities-section-container-desktop {
        display: none;
    }

    .schedule-form-container-desktop {
        display: none;
    }

    .amenities-section-container-mobile {
        display: block;
    }

    .schedule-form-container-mobile {
        display: block;
    }

    .max-width {
        padding: 0px 20px;
    }

    .hoa-header {
        padding: 20px;
    }

    .map-section-header {
        padding: 0px 20px;
    }

    .nav-links-container-mobile {
        position: absolute;
        right: 0;
        width: 100%;
        background-color: white;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.09);
        border: solid 0.5px var(--hoa-medium-grey);
        z-index: 1000;
        width: fit-content;
        align-items: flex-start;
    }

    .mobile-nav-container {
        position: relative;
    }

    .nav-links-container-desktop {
        display: none;
    }

    .mobile-nav-container {
        display: block !important;
    }

    .hoa-community-description-form-section-inner-left {
        gap:20px
    }

    .map-section-header-toggle-container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hoa-community-description-form-section {
        padding: 24px 20px 54px;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floorplan-facts-insights-section-inner {
        padding: 0px 20px;
    }

    .hoa-footer {
        padding: 60px 20px;
    }

    .growth-insights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .map-title-row {
        flex-direction: column;
        gap: 0px;
    }
}

@media (max-width: 768px) {
    .hoa-slider-section {
        height: auto;
    }

    .property-popup-container {
        flex-direction: column;
        padding-top: 8px;
        gap: 0px !important;
    }
    .hoa-community-description-form-section-inner {
        flex-wrap: wrap;
        gap: 40px;
    }

    .hoa-community-description-form-section-inner-left {
        width: 100%;
    }

    .hoa-community-description-form-section-inner-right {
        width: 100%;
    }

    .floorplan-card {
        width: 100%;
    }

    .hoa-footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .hoa-footer-right {
        align-items: flex-start;
        text-align: left;
    }

    .hoa-footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .review-card {
        padding: 32px 24px;
        height: auto;
        min-height: 280px;
    }

    .community-reviews-section {
        padding: 60px 20px;
    }

    .community-facts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .community-facts-card {
        padding: 32px 24px;
    }

    .faq-grid {
        flex-direction: column;
        gap: 0;
    }

    .frequently-asked-questions-section {
        padding: 60px 20px;
    }

    .review-card {
        width: auto;
    }

    .waitlist-popup-content form button {
        width: 100%;
    }

    .hoa-desktop-table {
        display: none;
    }
    .hoa-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    #amenities-filters {
        display: none;
    }
    .floorplans-desktop-grid {
        display: none !important;
    }
    .floorplans-mobile-slider {
        display: block;
    }
    .floorplan-view-more-btn {
        display: none !important;
    }
  /* .maplibregl-popup.property-detail-popup {
    position: absolute !important;
    left: 30px !important;
    right: 0 !important;
    bottom: 30px !important;
    top: auto !important;
    transform: none !important;
    max-height: 70vh;
    width: 100vw;
    overflow-y: auto;
    z-index: 2;
  } */
}