/* ====================================
   Community Directory - Public Styles
   Version: 1.0.6 - Two column layout
   ==================================== */

/* ===== SEARCH PAGE STYLES ===== */

.community-search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters Section */
.community-filters {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-section {
    margin-bottom: 30px;
	padding: 25px;
    display: block !important;
}

.filter-section:last-of-type {
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 1.25rem;
    color: #c13838;
    margin-bottom: 15px;
    font-weight: 600;
    display: block !important;
}

.filter-grid,
.city-filters,
.amenity-filters {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 15px !important;
}

.filter-checkbox,
.cities-section .filter-checkbox,
.lifestyle-section .filter-checkbox {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background 0.2s;
    width: auto !important;
    max-width: 100% !important;
}

.filter-checkbox:hover {
    background: #e9ecef;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-checkbox span {
    font-size: 14px;
    color: #333;
}

.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #c13838;
    color: #fff;
}

.btn-primary:hover {
    background: #a02e2e;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Results Section */
.community-results {
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 2rem;
    color: #c13838;
    margin: 0;
}

.results-count {
    font-size: 1.1rem;
    color: #666;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c13838;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Community Grid */
.community-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 40px;
}

.community-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.community-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.community-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.community-image::after {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: inherit;
    transition: transform 0.3s ease;
    z-index: 0;
}

.community-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.community-card:hover .community-image::after {
    transform: scale(1.1);
}

.community-card:hover .community-image::before {
    background: rgba(0, 0, 0, 0.2);
}

.community-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.community-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.community-city {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

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

.pagination-link {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: #c13838;
    color: #fff;
    border-color: #c13838;
}

.pagination-link.active {
    background: #c13838;
    color: #fff;
    border-color: #c13838;
}

/* ===== DETAILS PAGE STYLES ===== */

.community-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.community-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 20px;
    background: linear-gradient(135deg, #c13838 0%, #a02e2e 100%);
    color: #fff;
    border-radius: 8px;
}

.community-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
}

.community-location {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.9;
}

.community-section {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.community-section h2 {
    font-size: 1.8rem;
    color: #c13838;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #c13838;
    padding-bottom: 10px;
}

/* Two Column Layout for Real Estate & Map */
.community-two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.two-column-left,
.two-column-right {
    min-width: 0;
}

.two-column-left h2,
.two-column-right h2 {
    font-size: 1.6rem;
}

/* Real Estate Table */
.real-estate-table table {
    width: 100%;
    border-collapse: collapse;
}

.real-estate-table th,
.real-estate-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.real-estate-table th {
    background: #c13838;
    color: #fff;
    font-weight: 600;
}

.real-estate-table tr:hover {
    background: #f8f9fa;
}

/* Map */
.community-map {
    border-radius: 8px;
    overflow: hidden;
}

.community-map iframe {
    display: block;
}

/* Description */
.community-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

/* Two-column self-balancing layout for description */
.community-description-columns {
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid #e0e0e0;
}

.community-description-columns p {
    margin-bottom: 1.2em;
    text-align: justify;
    break-inside: avoid-column;
    orphans: 3;
    widows: 3;
}

.community-description-columns h1,
.community-description-columns h2,
.community-description-columns h3,
.community-description-columns h4 {
    break-after: avoid-column;
    margin-top: 0;
}

/* Tablet responsive - single column */
@media (max-width: 992px) {
    .community-description-columns {
        column-count: 1;
        column-gap: 0;
        column-rule: none;
    }
    
    .community-description-columns p {
        text-align: left;
    }
}

/* Section Icons */
.community-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    flex-shrink: 0;
    stroke: #c13838;
}

/* Gallery */
.community-gallery-section {
    position: relative;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gallery-header h2 {
    margin: 0;
}

.gallery-count-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.gallery-count-link:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gallery-count-link .image-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.gallery-count-link .image-label {
    font-size: 14px;
}

/* Gallery Grid - 4 columns, 2 rows = 8 images per page */
.community-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default 4 columns, can be overridden by styling settings */
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    /* aspect-ratio: 4/3;
    background: #f0f0f0;*/
}


.gallery-item.hidden {
    display: none;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.plus-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gallery-page-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.gallery-page-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.gallery-page-btn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Amenities Grid - 4 items per row */
.amenities-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px;
}

.community-section .amenities-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

.amenity-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.amenity-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #c13838;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.amenity-name {
    font-size: 0.95rem;
    color: #333;
    flex: 1;
}

/* Community Profile Grid - 4 items per row */
.community-profile-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
}

.community-section .community-profile-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

.profile-item {
    padding: 15px;
    border: none;
    width: 100%;
    box-sizing: border-box;
	background: #f8f9fa;;
	border-radius: 6px;
}

.profile-item strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.profile-item span {
    color: #666;
}

/* Agent Info - Main Content Section */
.community-expert .agent-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.community-expert .agent-photo {
    flex-shrink: 0;
}

.community-expert .agent-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.community-expert .agent-details h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.community-expert .agent-company {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.community-expert .agent-contact {
    margin: 5px 0;
    font-size: 1rem;
}

/* Inquiry Form */
.inquiry-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-field .required {
    color: #c13838;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #c13838;
}

.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 992px) {
    .community-two-column-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .community-filters {
        padding: 20px;
    }

    .filter-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .community-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

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

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

@media (max-width: 480px) {
    .community-gallery {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .community-profile-grid {
        grid-template-columns: 1fr;
    }
}

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

    .community-section {
        padding: 20px;
    }

    .community-header h1 {
        font-size: 1.8rem;
    }

    .community-gallery {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .community-profile-grid {
        grid-template-columns: 1fr;
    }

    .agent-info {
        flex-direction: column;
    }

    .agent-photo img {
        width: 150px;
        height: 150px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .community-search-container,
    .community-details-container {
        padding: 10px;
    }

    .community-header {
        padding: 30px 15px;
    }

    .community-header h1 {
        font-size: 1.5rem;
    }

    .filter-section h3 {
        font-size: 1.1rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .community-section h2 {
        font-size: 1.4rem;
    }

    .real-estate-table {
        overflow-x: auto;
    }

    .real-estate-table table {
        min-width: 400px;
    }
}

/* Request Brochure Form */
.request-brochure {
    background: transparent;
    color: #333;
}

.request-brochure h2 {
    color: #c13838;
    border-bottom-color: #e0e0e0;
}

.inquiry-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-field .required {
    color: #c13838;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Checkbox Field Styles */
.form-field.checkbox-field {
    margin: 20px 0 !important;
}

.form-field.checkbox-field .checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.form-field.checkbox-field .checkbox-label input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    border: 2px solid #ddd !important;
    outline: 2px solid #ddd !important;
    outline-offset: -2px !important;
    border-radius: 3px;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #fff !important;
    background-color: #fff !important;
    position: relative;
    vertical-align: middle;
    box-sizing: border-box !important;
}

.form-field.checkbox-field .checkbox-label input[type="checkbox"]:checked {
    background: #667eea !important;
    border-color: #667eea !important;
}

.form-field.checkbox-field .checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-field.checkbox-field .checkbox-label input[type="checkbox"]:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.form-field.checkbox-field .checkbox-label span {
    line-height: 1.5 !important;
    color: #333;
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
}

.form-field.checkbox-field .checkbox-label span .required {
    color: #c13838 !important;
}

.form-field.checkbox-field .checkbox-label input[type="checkbox"]:checked {
    background: #667eea !important;
    border-color: #667eea !important;
}

.btn-request-brochure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-request-brochure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: #5568d3;
}

.btn-request-brochure:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-request-brochure .btn-icon {
    width: 20px;
    height: 20px;
}

/* Radio Field Styles */
.form-field.radio-field {
    margin: 20px 0;
}

.form-field.radio-field > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.radio-options {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.radio-label span {
    color: #333;
    font-size: 16px;
}

.radio-label input[type="radio"]:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Visit Website Section */
.community-website-section {
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-website,
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-website {
    background: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-website:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: #5568d3;
    color: #fff;
    text-decoration: none;
}

.btn-download-pdf {
    background: #c13838;
    box-shadow: 0 4px 15px rgba(193, 56, 56, 0.3);
}

.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 56, 56, 0.4);
    background: #a52f2f;
    color: #fff;
    text-decoration: none;
}

.btn-website .btn-icon,
.btn-download-pdf .btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
}

.form-message.success {
    background: #4caf50;
    color: #fff;
}

.form-message.error {
    background: #f44336;
    color: #fff;
}

/* ===== SIDEBAR WIDGET STYLES ===== */

.community-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Request Information Button */
.btn-request-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 40px 12px 20px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-request-info:hover {
    background: linear-gradient(135deg, #5568d3 0%, #654091 100%);
    transform: translateY(-1px);
}

.btn-request-info .btn-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.btn-request-info .toggle-icon {
    position: absolute;
    right: 15px;
    font-size: 12px;
    transition: transform 0.3s;
}

/* Accordion Form */
.request-form-accordion {
    background: transparent;
    padding: 20px 15px;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.inquiry-form-compact .form-field {
    margin-bottom: 12px;
}

.inquiry-form-compact label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.inquiry-form-compact .required {
    color: #c13838;
}

.inquiry-form-compact input[type="text"],
.inquiry-form-compact input[type="email"],
.inquiry-form-compact input[type="tel"],
.inquiry-form-compact textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.inquiry-form-compact input:focus,
.inquiry-form-compact textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.inquiry-form-compact textarea {
    resize: vertical;
    font-family: inherit;
}

.btn-submit-inquiry {
    width: 100%;
    background: #667eea;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-submit-inquiry:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit-inquiry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.inquiry-form-compact .form-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.inquiry-form-compact .form-message.success {
    background: #4caf50;
    color: #fff;
}

.inquiry-form-compact .form-message.error {
    background: #f44336;
    color: #fff;
}

/* Sidebar Agent Section */
.community-agent-section {
    padding: 25px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.community-agent-section .widget-title {
    font-size: 1.3rem;
    color: #c13838;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #c13838;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.community-agent-section .agent-name-display {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.community-agent-section .agent-photo {
    margin: 0 auto 20px;
    width: 180px;
    height: 180px;
}

.community-agent-section .agent-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.community-agent-section .agent-photo-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.community-agent-section .placeholder-initials {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
}

.community-agent-section .agent-contact-info {
    margin-top: 20px;
}

.community-agent-section .agent-company {
    color: #666;
    font-style: italic;
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.community-agent-section .agent-phone {
    margin: 0;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #c13838;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(193, 56, 56, 0.3);
}

.phone-link:hover {
    background: #a02e2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 56, 56, 0.4);
}

.phone-link .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.no-agent {
    padding: 20px 0;
}

.no-agent-message {
    color: #999;
    font-size: 1rem;
    font-style: italic;
}

/* Inquiry Widget */
.community-inquiry-widget {
    background: transparent;
    color: #333;
    padding: 0 15px;
}

.community-inquiry-widget .widget-title {
    color: #c13838;
    border-bottom-color: #e0e0e0;
}

.community-inquiry-widget .form-field {
    margin-bottom: 15px;
}

.community-inquiry-widget .form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.community-inquiry-widget .required {
    color: #c13838;
}

.community-inquiry-widget input[type="text"],
.community-inquiry-widget input[type="email"],
.community-inquiry-widget input[type="tel"],
.community-inquiry-widget textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.community-inquiry-widget input:focus,
.community-inquiry-widget textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.community-inquiry-widget textarea {
    resize: vertical;
    font-family: inherit;
}

.community-inquiry-widget .btn-request-brochure {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #667eea;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
}

.community-inquiry-widget .btn-request-brochure .btn-icon {
    width: 20px;
    height: 20px;
}

.community-inquiry-widget .btn-request-brochure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: #5568d3;
}

.community-inquiry-widget .btn-request-brochure:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.community-inquiry-widget .form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.community-inquiry-widget .form-message.success {
    background: #4caf50;
    color: #fff;
}

.community-inquiry-widget .form-message.error {
    background: #f44336;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .agent-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-request-brochure {
        width: 100%;
        justify-content: center;
    }
    
    .community-agent-widget,
    .community-inquiry-widget {
        padding: 20px;
    }
    
    .community-sidebar-widget {
        margin-bottom: 20px;
    }
    
    .community-agent-section {
        padding: 20px;
    }
    
    .btn-request-info {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .agent-name-display {
        font-size: 1.2rem;
    }
    
    .agent-photo {
        width: 150px;
        height: 150px;
    }
    
    .phone-link {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
}

/* ===== COMMUNITY NAVIGATION STYLES ===== */
.community-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #c13838;
    border-radius: 6px;
    color: #c13838;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-button:hover {
    background: #c13838;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(193, 56, 56, 0.2);
}

.nav-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-button:hover svg {
    transform: scale(1.1);
}

.nav-prev:hover svg {
    transform: translateX(-3px);
}

.nav-next:hover svg {
    transform: translateX(3px);
}

.nav-position {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 0 10px;
}

.nav-back-to-search {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.nav-back-to-search:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .community-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
    
    .nav-button span {
        display: inline;
    }
    
    .nav-position {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .nav-button span {
        display: none;
    }
    
    .nav-button {
        padding: 12px;
        width: auto;
        min-width: 50px;
        justify-content: center;
    }
    
    .nav-back-to-search span {
        display: inline;
    }
    
    .community-navigation {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-position {
        flex-basis: 100%;
        order: -1;
    }
    
    .nav-prev, .nav-next {
        flex: 1;
    }
    
    .nav-back-to-search {
        flex-basis: 100%;
    }
}
