/* ===================================
   PROPERTY ARCHIVE STYLES
   Used for property listing pages, filters, search, and pagination
   =================================== */

/* Archive Container Layout */
.property-archive-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.property-list-container {
    flex: 1;
    min-width: 0;
}

.property-map-container {
    flex: 0 0 400px;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
}

.property-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
}

.map-fallback {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
}

/* Archive Header */
.archive-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23000" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.archive-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.2;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Property Filters */
.property-filters {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
}

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

.filters-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.filters-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.filters-toggle:hover,
.filters-toggle:focus {
    background: var(--primary-color-dark);
}

.filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 120px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.filter-group label {
    display: none;
}

.filter-group input:not(.price-input) {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(var(--primary-color-rgb), 0.1);
}

.filter-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-range input {
    flex: 1;
}

.filter-range span {
    color: #666;
    font-size: 0.9rem;
}

.filter-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.filter-button:hover {
    background: #0069d9;
}

.reset-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.reset-button:hover {
    background: #5a6268;
}

/* Active Filters */
.active-filters {
    margin-bottom: 30px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.filter-tag .remove-filter:hover,
.filter-tag .remove-filter:focus {
    opacity: 1;
}

.clear-filters {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.clear-filters:hover,
.clear-filters:focus {
    color: var(--primary-color);
}

/* Property Tools Bar */
.property-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.results-info {
    color: #666;
    font-size: 0.95rem;
}

.results-count {
    font-weight: 600;
    color: #333;
}

.view-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #ddd;
}

.view-toggle button {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.view-toggle button.active,
.view-toggle button:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    max-width:1280px;
    margin-left:auto;
    margin-right:auto;
}

.properties-grid.sold-properties {
    display: block;
}

/* Property Listing Container */
.property-listing {
    margin-bottom: 50px;
}

.property-listing.loading {
    opacity: 0.7;
    pointer-events: none;
}

.property-listing.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
}

.no-results p {
    color: #666;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-results .btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.no-results .btn:hover,
.no-results .btn:focus {
    background: var(--primary-color-dark);
}

.no-properties-found {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.no-properties-found h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #212529;
}

.no-properties-found p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.no-properties,
.error {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    grid-column: 1 / -1;
}

.error {
    color: #dc3545;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.pagination .page-numbers:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.property-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers a:hover,
.page-numbers a:focus {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers .dots {
    border: none;
    background: none;
    color: #999;
    cursor: default;
}

.page-numbers .prev,
.page-numbers .next {
    padding: 0 16px;
    font-size: 0.9rem;
}

/* Load More Button */
.load-more {
    display: block;
    margin: 0 auto;
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.load-more:hover {
    background: #5a6268;
}

.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.load-more-btn:hover,
.load-more-btn:focus {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn.loading {
    color: transparent;
}

.load-more-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgb(255 255 255 / 30%);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Loading States */
.properties-grid.loading {
    position: relative;
    min-height: 200px;
}

.properties-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgb(0 0 0 / 10%);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (width <= 1024px) {
    .property-archive-container {
        flex-direction: column;
    }

    .property-map-container {
        flex: none;
        position: relative;
        top: 0;
        height: 400px;
        width: 100%;
        margin-top: 30px;
    }

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (width <= 768px) {
    .property-archive-container {
        padding: 15px;
    }

    .archive-header {
        padding: 40px 0 30px;
    }

    .archive-title {
        font-size: 2rem;
    }

    .archive-stats {
        flex-direction: column;
        gap: 20px;
    }

    .property-filters {
        padding: 20px;
        position: static;
    }

    .filters-toggle {
        display: block;
    }

    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-buttons {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .filter-button,
    .reset-button {
        width: 100%;
    }

    .property-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .view-controls {
        justify-content: space-between;
    }

    .property-pagination {
        gap: 4px;
    }

    .page-numbers a,
    .page-numbers span {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

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

@media (width <= 480px) {
    .archive-title {
        font-size: 1.8rem;
    }

    .property-filters {
        padding: 16px;
    }

    .filters-actions {
        flex-direction: column;
        gap: 8px;
    }

    .filters-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .active-filters-list {
        justify-content: center;
    }

    .load-more-btn {
        width: 100%;
        padding: 16px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-numbers {
        min-width: 35px;
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .property-filters,
    .property-tools,
    .property-pagination,
    .load-more-container {
        display: none;
    }

    .archive-header {
        background: none;
        padding: 20px 0;
    }

    .property-archive-container {
        display: block;
    }

    .properties-grid {
        display: block;
    }

    .property-item {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #000;
    }

    * {
        color: #000 !important;
        background: #fff !important;
    }

    .property-status-badge {
        border: 1px solid #000;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ===================================
   CONDO BADGES STYLES
   For displaying project status badges
   =================================== */

.condo-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.condo-coming-soon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgb(16 185 129 / 30%);
}

.condo-status {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgb(59 130 246 / 30%);
}

/* ===================================
   CONDO LAYOUT STYLES
   New modular layout structure
   NOTE: Most condo-specific styles have been moved to taxonomy-location.css
   These base styles remain for property archive pages
   =================================== */

.condo-header-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.condo-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.condo-property-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.condo-date-line {
    font-size: 16px;
    color: var(--color-gray-text);
    font-style: normal;
    text-align: right;
}

.condo-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.condo-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.condo-for-sale {
    background: #007bff;
    color: white;
}

.condo-for-sale:hover {
    background: #0056b3;
    color: white;
}

.condo-for-lease {
    background: #007bff;
    color: white;
}

.condo-for-lease:hover {
    background: #0056b3;
    color: white;
}

.condo-project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.location-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Condo Gallery Section - First Image Dominant Layout */
.condo-gallery-section {
    background: #f8f9fa;
    margin-bottom: 0;
}

.condo-gallery-grid {
    display: grid;
    grid-template-columns: calc(70% - 20px) 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
    height: 600px;
    max-width: 1400px;
    margin: 0 auto;
}

.condo-gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
    cursor: pointer;
    background: #fff;
}

/* First image takes 70% width, spans all 3 rows */
.condo-gallery-item:first-child {
    grid-column: 1;
    grid-row: 1 / 4;
}

/* Second item (2nd pic) - 1st row, 2nd column */
.condo-gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Third item (3rd pic) - 1st row, 3rd column */
.condo-gallery-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

/* Fourth item (4th pic) - 2nd row, 2nd column */
.condo-gallery-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

/* Fifth item (5th pic) - 2nd row, 3rd column */
.condo-gallery-item:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* Sixth item (6th pic) - 3rd row, 2nd column */
.condo-gallery-item:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
}

/* Seventh item (video) - 3rd row, 3rd column with gallery counter */
.condo-gallery-item:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
    position: relative;
}

/* Hide items after the seventh one */
.condo-gallery-item:nth-child(n+8) {
    display: none;
}

.condo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.condo-gallery-item:hover {
    filter: brightness(1.1);
}

.condo-gallery-item:hover img {
    /* Remove scale transform */
}

/* Image overlay for better visual hierarchy */
.condo-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / 10%) 0%, rgb(0 0 0 / 30%) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.condo-gallery-item:hover::before {
    /* opacity: 1; */
}

/* Video play button styling for masonry */
.condo-gallery-item .video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgb(255 255 255 / 90%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
}

.condo-gallery-item:hover .video-play-button {
    background: rgb(255 255 255 / 100%);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Gallery Counter for 4th item */
.gallery-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgb(0 0 0 / 80%);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 4;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}

.gallery-counter:hover {
    background: rgb(0 0 0 / 90%);
}

/* Hide old gallery elements */
.condo-gallery-main,
.gallery-main-image,
.gallery-thumbnail-scroll,
.gallery-thumbnail {
    display: none;
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid transparent;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgb(102 126 234 / 30%);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgb(0 0 0 / 40%), rgb(0 0 0 / 60%));
    opacity: 0.8;
}

.video-thumbnail:hover .video-overlay-bg {
    opacity: 1;
}

.video-play-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
    transition: all 0.3s ease;
    border: 3px solid rgb(255 255 255 / 90%);
}

.video-thumbnail:hover .video-play-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgb(0 0 0 / 40%);
}

.video-play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 3px;
}

/* Add a subtle video badge */
.video-play-overlay::after {
    content: 'VIDEO';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgb(0 0 0 / 80%);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Main Video Container */
.main-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.main-video-container iframe,
.main-video-container video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Condo Menu Info Section - Sticky Navigation */
.condo-menu-info {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
}

.condo-menu-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.condo-menu-nav::-webkit-scrollbar {
    display: none;
}

.condo-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    white-space: nowrap;
    width: 100%;
    justify-content: space-between;
}

.condo-menu-item {
    flex-shrink: 0;
    flex: 1;
    text-align: center;
}

.condo-menu-link {
    display: block;
    padding: 16px 24px;
    color: var(--color-gray-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.condo-menu-link:hover,
.condo-menu-link.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: rgb(59 130 246 / 5%);
}

.condo-menu-link:hover {
    transform: translateY(-1px);
}

/* Active state indicator */
.condo-menu-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgb(59 130 246 / 50%);
}


/* Responsive design for condo menu */
@media (width <= 768px) {
    .condo-menu-nav {
        justify-content: flex-start;
        padding: 0 15px;
    }

    .condo-menu-list {
        justify-content: flex-start;
        gap: 10px;
    }

    .condo-menu-item {
        flex: none;
        text-align: left;
    }

    .condo-menu-link {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media (width <= 480px) {
    .condo-menu-link {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .condo-menu-info {
        top: 0;
    }
}

/* Main Content Layout: 60/40 Split */

/* NOTE: Layout styles have been moved to taxonomy-location.css for location pages */

/* These remain as fallback for property archive pages */
.condo-main-layout {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Condo Map Area - Display image from 3rd gallery item */
.condo-map-area {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 264px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 67px;
}

.condo-map-area .map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.condo-map-area .map-image:hover {
    opacity: 0.9;
    filter: brightness(1.05);
}

.condo-map-area .map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgb(0 0 0 / 70%));
    color: white;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.condo-map-area:hover .map-overlay {
    opacity: 1;
}

/* NOTE: Property details grid and amenities styles have been moved to taxonomy-location.css */

/* These styles are now managed in taxonomy-location.css for proper specificity on location pages */

/* Agent Card Styles - Compact Layout for 264px Height */
.agent-cta-area .agent-card {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Larger Agent Photo */
.agent-cta-area .agent-photo {
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.agent-cta-area .agent-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agent-cta-area .agent-photo img:hover {
    border-color: var(--color-gray-text);
    box-shadow: 0 4px 16px rgb(107 114 128 / 20%);
}

/* Compact Agent Info */
.agent-cta-area .agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-cta-area .agent-name {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

.agent-cta-area .agent-title {
    color: var(--color-gray-text);
    font-size: 0.75rem;
    margin: 0;
    font-style: italic;
    text-align: center;
    line-height: 1.2;
}

/* Compact Social Pills Layout */
.agent-cta-area .agent-title-with-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.agent-cta-area .agent-social {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.agent-cta-area .agent-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    min-width: 24px;
    height: 20px;
}

.agent-cta-area .agent-social-link:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgb(59 130 246 / 20%);
}

/* Minimal Realtor Info */
.agent-cta-area .realtor-info {
    margin: 6px 0;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    text-align: center;
}

.agent-cta-area .realtor-name {
    margin: 0;
    font-size: 0.7rem;
    color: var(--color-gray-text);
    line-height: 1.3;
    font-style: italic;
}

.agent-cta-area .realtor-name strong {
    font-weight: 500;
    font-style: normal;
    color: #4b5563;
}

.agent-cta-area .realtor-name a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-style: normal;
    transition: color 0.2s ease;
    border-bottom: 1px dotted #9ca3af;
}

.agent-cta-area .realtor-name a:hover {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Compact Contact Buttons */
.agent-cta-area .agent-contact {
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-shrink: 0;
}

.agent-cta-area .agent-contact-item {
    margin: 0;
    flex: 1;
}

.agent-cta-area .agent-phone-btn,
.agent-cta-area .agent-email-btn,
.agent-cta-area .cta-btn {
    display: inline-block;
    width: 100%;
    padding: 8px 6px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1.2;
}

.agent-cta-area .agent-phone-btn:hover,
.agent-cta-area .agent-email-btn:hover,
.agent-cta-area .cta-btn:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgb(59 130 246 / 20%);
}

.agent-cta-area .agent-email-btn {
    background: #10b981;
}

.agent-cta-area .agent-email-btn:hover {
    background: #059669;
    box-shadow: 0 3px 10px rgb(16 185 129 / 20%);
}

/* Compact Default CTA */
.agent-cta-area .default-cta {
    text-align: center;
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.agent-cta-area .default-cta h3 {
    color: #1f2937;
    font-size: 1rem;
    margin: 0 0 8px;
    border: none;
    padding: 0;
    line-height: 1.2;
}

.agent-cta-area .default-cta p {
    color: var(--color-gray-text);
    margin: 0 0 12px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.agent-cta-area .default-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 90%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 80%);
    transition: transform 0.3s ease;
    transform-origin: center center;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

#lightbox-image:active {
    cursor: grabbing;
}

.lightbox-video-container {
    max-width: 90vw;
    max-height: 90vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 80%);
}

.lightbox-video-container iframe,
.lightbox-video-container video {
    width: 100%;
    max-width: 1200px;
    height: auto;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(0 0 0 / 70%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgb(0 0 0 / 90%);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgb(0 0 0 / 70%);
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .property-filters {
        border: 2px solid #000;
    }

    .filter-group select,
    .filter-group input {
        border: 2px solid #000;
    }

    .page-numbers a,
    .page-numbers span {
        border: 2px solid #000;
    }

    .condo-badge {
        border: 2px solid #000;
    }
}

/* ===================================
   REAL ESTATE CTA BANNER
   Full-width call to action banner section
   =================================== */

.realestate-cta-banner {
    width: 100%;
    max-width: 1280px;
    margin: 60px auto;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    padding: 80px 40px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.realestate-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-grid)"/></svg>');
    opacity: 0.3;
}

.cta-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.cta-banner-subtitle {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin: 0 0 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-primary-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 18px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(0 123 255 / 30%);
    border: none;
    cursor: pointer;
}

.cta-primary-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(0 123 255 / 40%);
    color: #fff;
    text-decoration: none;
}

.cta-secondary-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 18px 36px;
    border: 2px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-secondary-btn:hover {
    background: #fff;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(255 255 255 / 20%);
    text-decoration: none;
}

.cta-banner-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgb(255 255 255 / 20%);
}

.cta-stat-item {
    text-align: center;
}

.cta-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.cta-stat-label {
    font-size: 0.95rem;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Responsive design for CTA banner */
@media (width <= 768px) {
    .realestate-cta-banner {
        padding: 60px 0;
        margin: 40px 0;
    }

    .cta-banner-container {
        padding: 0 15px;
    }

    .cta-banner-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .cta-banner-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .cta-banner-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }

    .cta-primary-btn,
    .cta-secondary-btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .cta-banner-stats {
        flex-direction: column;
        gap: 30px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .cta-stat-number {
        font-size: 2rem;
    }

    .cta-stat-label {
        font-size: 0.9rem;
    }
}

@media (width <= 480px) {
    .realestate-cta-banner {
        padding: 50px 0;
    }

    .cta-banner-title {
        font-size: 1.8rem;
    }

    .cta-banner-subtitle {
        font-size: 1rem;
    }

    .cta-primary-btn,
    .cta-secondary-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .cta-stat-number {
        font-size: 1.8rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN FOR NEW LAYOUT
   =================================== */

@media (width <= 1024px) {
    .condo-main-layout {
        flex-direction: column;
        gap: 30px;
    }

    .condo-content-area {
        flex: none;
    }

    .agent-cta-area {
        flex: none;
        position: relative;
        top: auto;
        max-height: none;
        order: -1; /* Move agent CTA to top on tablet/mobile */
    }

    .condo-map-area {
        flex: none;
        position: relative;
        top: auto;
        width: 100%;
        max-width: none;
        order: -1; /* Move map area to top on tablet/mobile */
        margin-bottom: 20px;
    }

    .condo-gallery-grid {
        grid-template-columns: 50% 1fr 1fr;
        gap: 10px;
        height: 300px;
    }

    /* Simplify to show only first image and video on tablet */
    .condo-gallery-item:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .condo-gallery-item:nth-child(2) {
        grid-column: 2 / 4;
        grid-row: 1 / 3;
    }

    .condo-gallery-item:nth-child(n+3) {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (width <= 768px) {
    .condo-name-section {
        padding: 30px 0;
    }

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

    .condo-project-title {
        font-size: 2rem;
    }

    .condo-main-layout {
        padding: 0 15px;
        gap: 25px;
    }

    .agent-cta-area {
        padding: 25px;
    }

    /* Modern Info Table Responsive */
    .condo-info-table {
        grid-template-columns: 1fr;
    }

    .info-table-row {
        padding: 16px;
        gap: 16px;
    }

    .info-table-row .info-icon {
        width: 44px;
        height: 44px;
    }

    .info-title {
        font-size: 1rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .availability-stats {
        gap: 15px;
    }

    .spec-number {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .condo-content-area section {
        padding: 25px;
        margin-bottom: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 18px 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .condo-gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 6px;
        height: auto;
    }

    .condo-gallery-item {
        height: 200px;
    }

    /* Stack items vertically on mobile, first image and video full width */
    .condo-gallery-item:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .condo-gallery-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .condo-gallery-item:nth-child(n+3) {
        display: none;
    }

    .condo-gallery-item .video-play-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

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

    .agent-name {
        font-size: 1.3rem;
    }

    .agent-social {
        gap: 10px;
    }

    .agent-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-close {
        top: -40px;
        font-size: 30px;
        padding: 8px;
    }

    .lightbox-video-container {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-video-container iframe,
    .lightbox-video-container video {
        max-width: 100%;
    }
}

@media (width <= 480px) {
    .condo-project-title {
        font-size: 1.5rem;
    }

    .location-description {
        font-size: 1rem;
    }

    .condo-main-layout {
        gap: 20px;
    }

    .agent-cta-area {
        padding: 20px;
    }

    .condo-content-area section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .condo-content-area h3 {
        font-size: 1.25rem;
    }

    /* Info Table Mobile */
    .info-table-row {
        padding: 14px;
        gap: 12px;
    }

    .info-table-row .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-title {
        font-size: 0.95rem;
    }

    .info-value {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .condo-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .condo-info-item strong {
        min-width: auto;
    }

    .gallery-main-image {
        height: 250px;
    }

    .gallery-thumbnail {
        width: calc(50% - 5px);
        min-width: calc(50% - 5px);
    }

    .video-play-icon {
        width: 40px;
        height: 40px;
    }

    .video-play-icon::before {
        border-left: 14px solid white;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        margin-left: 2px;
    }

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

    .agent-name {
        font-size: 1.2rem;
    }

    .agent-phone-btn,
    .agent-email-btn,
    .cta-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .agent-social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        background-color: rgb(0 0 0 / 70%);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    .developers-list {
        gap: 8px;
    }

    .developer-name {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .amenities-content {
        padding: 20px;
    }

    .amenities-content p {
        font-size: 0.9rem;
    }
}

/* ===================================
   SECONDARY CTA BANNER
   Lighter themed banner with different design
   =================================== */

.realestate-cta-banner-secondary {
    width: 100%;
    max-width: 1280px;
    margin: 80px auto 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    padding: 60px 40px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgb(0 0 0 / 8%);
}

.realestate-cta-banner-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="secondary-dots" width="16" height="16" patternUnits="userSpaceOnUse"><circle cx="8" cy="8" r="1.5" fill="%23007bff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23secondary-dots)"/></svg>');
    opacity: 0.6;
}

.cta-banner-secondary-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-banner-secondary-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner-secondary-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    line-height: 1.2;
}

.cta-banner-secondary-subtitle {
    font-size: 1.1rem;
    color: #475569;
    margin: 0 0 32px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-banner-secondary-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.cta-secondary-primary-btn {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(16 185 129 / 30%);
    border: none;
    cursor: pointer;
}

.cta-secondary-primary-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(16 185 129 / 40%);
    color: #fff;
    text-decoration: none;
}

.cta-secondary-secondary-btn {
    display: inline-block;
    background: #fff;
    color: #1e293b;
    padding: 16px 32px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-secondary-secondary-btn:hover {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(30 41 59 / 20%);
    text-decoration: none;
}

.cta-banner-secondary-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    padding-top: 32px;
    border-top: 1px solid rgb(203 213 225 / 60%);
}

.cta-secondary-stat-item {
    text-align: center;
}

.cta-secondary-stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 6px;
}

.cta-secondary-stat-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Responsive design for secondary CTA banner */
@media (width <= 768px) {
    .realestate-cta-banner-secondary {
        padding: 50px 30px;
        margin: 60px auto 30px;
    }

    .cta-banner-secondary-container {
        padding: 0 15px;
    }

    .cta-banner-secondary-title {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .cta-banner-secondary-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .cta-banner-secondary-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 28px;
    }

    .cta-secondary-primary-btn,
    .cta-secondary-secondary-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .cta-banner-secondary-stats {
        flex-direction: column;
        gap: 25px;
        margin-top: 35px;
        padding-top: 25px;
    }

    .cta-secondary-stat-number {
        font-size: 1.9rem;
    }

    .cta-secondary-stat-label {
        font-size: 0.85rem;
    }
}

@media (width <= 480px) {
    .realestate-cta-banner-secondary {
        padding: 40px 20px;
        border-radius: 12px;
    }

    .cta-banner-secondary-title {
        font-size: 1.7rem;
    }

    .cta-banner-secondary-subtitle {
        font-size: 0.95rem;
    }

    .cta-secondary-primary-btn,
    .cta-secondary-secondary-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .cta-secondary-stat-number {
        font-size: 1.6rem;
    }
}

/* ===================================
   WALKSCORE SECTION STYLES
   Location walkability and transit scores
   =================================== */

.walkscore-section {
    width: 100%;
    max-width: 1280px;
    margin: 60px auto;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
    position: relative;
    overflow: hidden;
}

.walkscore-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="walkscore-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="%2310b981" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23walkscore-pattern)"/></svg>');
    opacity: 0.8;
}

.walkscore-container {
    position: relative;
    z-index: 2;
}

.walkscore-header {
    text-align: center;
    margin-bottom: 40px;
}

.walkscore-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    line-height: 1.2;
}

.walkscore-icon {
    width: 32px;
    height: 32px;
    color: #10b981;
    flex-shrink: 0;
}

.walkscore-address {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    font-style: italic;
}

.walkscore-content {
    margin-bottom: 40px;
}

.walkscore-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.score-item {
    text-align: center;
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 8%);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.score-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgb(0 0 0 / 12%);
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 8px solid;
    background: #fff;
}

.score-circle.walkscore {
    border-color: #10b981;
    color: #10b981;
}

.score-circle.transit {
    border-color: #3b82f6;
    color: #3b82f6;
}

.score-circle.bike {
    border-color: #f59e0b;
    color: #f59e0b;
}

.score-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
    margin-top: -4px;
}

.score-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
}

.score-description {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.walkscore-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.walkscore-disclaimer {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

.walkscore-features h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 24px;
    text-align: center;
}

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

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    background: #f8fafc;
    border-color: #10b981;
    transform: translateY(-2px);
}

.amenity-icon {
    width: 24px;
    height: 24px;
    color: #10b981;
    flex-shrink: 0;
}

.amenity-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.3;
}

/* Loading state */
.walkscore-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgb(16 185 129 / 30%);
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.walkscore-loading p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Responsive design for walkscore section */
@media (width <= 768px) {
    .walkscore-section {
        padding: 30px 20px;
        margin: 40px auto;
    }

    .walkscore-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 8px;
    }

    .walkscore-icon {
        width: 28px;
        height: 28px;
    }

    .walkscore-address {
        font-size: 1rem;
    }

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

    .score-circle {
        width: 100px;
        height: 100px;
        border-width: 6px;
    }

    .score-number {
        font-size: 2rem;
    }

    .score-title {
        font-size: 1.2rem;
    }

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

    .amenity-item {
        padding: 12px 8px;
    }

    .amenity-icon {
        width: 20px;
        height: 20px;
    }

    .amenity-item span {
        font-size: 0.8rem;
    }
}

@media (width <= 480px) {
    .walkscore-section {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .walkscore-title {
        font-size: 1.5rem;
    }

    .walkscore-address {
        font-size: 0.9rem;
    }

    .score-circle {
        width: 80px;
        height: 80px;
        border-width: 5px;
    }

    .score-number {
        font-size: 1.6rem;
    }

    .score-max {
        font-size: 0.9rem;
    }

    .score-title {
        font-size: 1.1rem;
    }

    .score-description {
        font-size: 0.9rem;
    }

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

    .amenity-item {
        padding: 10px 6px;
    }

    .amenity-icon {
        width: 18px;
        height: 18px;
    }

    .amenity-item span {
        font-size: 0.75rem;
    }
}

/* Value Property Section */
.value-property-title {
    text-align: center;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .property-listing.loading::after,
    .load-more-btn.loading::after,
    .properties-grid.loading::after,
    .loading-spinner {
        animation: none;
    }

    .filter-button,
    .load-more-btn,
    .page-numbers a,
    .view-toggle button,
    .gallery-main-image img,
    .gallery-thumbnail,
    .video-thumbnail,
    .stat-item,
    .developer-name,
    .agent-phone-btn,
    .agent-email-btn,
    .cta-btn,
    .agent-social-link,
    .score-item,
    .amenity-item {
        transition: none;
    }

    .load-more-btn:hover,
    .gallery-main-image:hover img,
    .stat-item:hover,
    .developer-name:hover,
    .score-item:hover,
    .amenity-item:hover {
        transform: none;
    }
}
