/* ============================================
   CRE SIMPLE LISTINGS - COMPLETE STYLESHEET
   ============================================ */

/* RESET & BASE STYLES */
.cre-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.cre-section {
    margin: 40px 0;
}

/* ============================================
   1. HERO FILTER STYLES
   ============================================ */
.cre-hero-filter {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 50px 40px;
    border-radius: 12px;
    margin: 30px 0 50px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cre-hero-filter h2 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
}

.cre-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

.cre-filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cre-filter-select,
.cre-filter-input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cre-filter-select:focus,
.cre-filter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cre-filter-button {
    padding: 14px 35px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.cre-filter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.cre-filter-button:active {
    transform: translateY(-1px);
}

/* ============================================
   2. FEATURED PROPERTIES STYLES
   ============================================ */
.cre-featured-properties {
    margin: 60px 0;
}

.cre-featured-properties h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    position: relative;
}

.cre-featured-properties h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    margin: 15px auto;
    border-radius: 2px;
}

.cre-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin: 40px 0;
}

/* ============================================
   3. PROPERTY CARD STYLES
   ============================================ */
.cre-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cre-property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cre-property-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cre-property-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cre-property-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cre-property-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.4;
}

.cre-property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cre-property-title a:hover {
    color: #3b82f6;
}

.cre-property-price {
    font-size: 26px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 12px;
}

.cre-property-location {
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cre-property-location i {
    color: #ef4444;
}

.cre-property-type {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cre-property-type i {
    color: #8b5cf6;
}

.cre-property-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 15px;
}

.cre-property-link {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.cre-property-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
    color: white;
}

/* ============================================
   4. LISTING PAGE LAYOUT
   ============================================ */
.cre-listing-page {
    display: flex;
    gap: 40px;
    margin: 50px 0;
}

.cre-sidebar-filters {
    flex: 0 0 320px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.cre-sidebar-filters h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
}

.cre-properties-main {
    flex: 1;
}

.cre-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ============================================
   5. FILTER SECTIONS
   ============================================ */
.cre-filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.cre-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cre-filter-section h4 {
    margin-bottom: 18px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cre-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.cre-checkbox-group::-webkit-scrollbar {
    width: 6px;
}

.cre-checkbox-group::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cre-checkbox-group::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cre-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.cre-checkbox-label:hover {
    background: #f3f4f6;
}

.cre-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cre-checkbox-label span {
    font-size: 15px;
    color: #4b5563;
}

/* ============================================
   6. ACTIVE FILTERS
   ============================================ */
.cre-active-filters {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.cre-active-filters h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.cre-active-filters > div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cre-active-filters span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cre-active-filters a {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cre-active-filters a:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-2px);
}

/* ============================================
   7. RESULTS INFO & LOADING
   ============================================ */
.cre-results-info {
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

#cre-results-count {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

#cre-loading {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.cre-loading {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   8. STATUS BADGES
   ============================================ */
.cre-status-available {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.cre-status-under-contract {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.cre-status-leased {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.cre-status-sold {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* ============================================
   9. NO RESULTS & ERROR STATES
   ============================================ */
.cre-no-results,
.cre-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    color: #6b7280;
    border: 2px dashed #cbd5e1;
}

.cre-no-results h3,
.cre-error h3 {
    color: #4b5563;
    margin-bottom: 15px;
}

/* ============================================
   10. PAGINATION
   ============================================ */
.cre-pagination {
    margin: 50px 0;
}

.cre-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 0 5px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
}

.cre-pagination .page-numbers:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.cre-pagination .page-numbers.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.cre-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.cre-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #4b5563;
    transform: none;
}

/* ============================================
   11. PRICE RANGE STYLES
   ============================================ */
.price-range {
    display: flex;
    gap: 15px;
    align-items: center;
}

.price-range span {
    color: #6b7280;
    font-weight: 600;
}

.price-range input {
    flex: 1;
}

/* ============================================
   12. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .cre-listing-page {
        gap: 30px;
    }
    
    .cre-sidebar-filters {
        flex: 0 0 280px;
    }
    
    .cre-properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .cre-listing-page {
        flex-direction: column;
    }
    
    .cre-sidebar-filters {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
    }
    
    .cre-featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .cre-hero-filter {
        padding: 30px 20px;
    }
    
    .cre-hero-filter h2 {
        font-size: 26px;
    }
    
    .cre-filter-form {
        flex-direction: column;
    }
    
    .cre-filter-group {
        width: 100%;
    }
    
    .cre-featured-grid,
    .cre-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .cre-property-image {
        height: 200px;
    }
    
    .cre-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .cre-hero-filter h2 {
        font-size: 22px;
    }
    
    .cre-featured-properties h2 {
        font-size: 28px;
    }
    
    .cre-property-price {
        font-size: 22px;
    }
    
    .cre-property-title {
        font-size: 18px;
    }
}

/* ============================================
   13. UTILITY CLASSES
   ============================================ */
.cre-mt-20 { margin-top: 20px; }
.cre-mb-20 { margin-bottom: 20px; }
.cre-mt-40 { margin-top: 40px; }
.cre-mb-40 { margin-bottom: 40px; }
.cre-text-center { text-align: center; }
.cre-text-right { text-align: right; }
.cre-text-bold { font-weight: 700; }
.cre-text-muted { color: #6b7280; }

/* ============================================
   14. PRINT STYLES
   ============================================ */
@media print {
    .cre-hero-filter,
    .cre-sidebar-filters,
    .cre-filter-button,
    .cre-property-link {
        display: none;
    }
    
    .cre-property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cre-container {
        max-width: 100%;
        padding: 0;
    }
}

/* ============================================
   SINGLE PROPERTY PAGE ADDITIONAL STYLES
   ============================================ */

/* Property Header */
.cre-property-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.cre-property-title {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.cre-confidential-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.cre-confidential-notice h4 {
    margin: 0;
    color: #92400e;
}

.cre-confidential-notice p {
    margin: 8px 0 0 0;
    color: #92400e;
}

/* Quick Contact Form */
.cre-quick-contact {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cre-quick-contact h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1f2937;
}

.cre-quick-contact input,
.cre-quick-contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.cre-quick-contact input:focus,
.cre-quick-contact textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cre-contact-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cre-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cre-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cre-direct-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.cre-direct-contact h4 {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 16px;
}

/* Property Gallery */
.cre-property-gallery {
    margin: 30px 0;
}

.cre-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.cre-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.cre-thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.cre-thumbnail:hover {
    transform: scale(1.05);
    border-color: #3b82f6 !important;
}

/* Property Tabs */
.cre-property-tabs {
    margin: 40px 0;
}

.cre-tab-buttons {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cre-tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.cre-tab-button:hover {
    color: #1f2937;
}

.cre-tab-button.active {
    color: #1f2937;
    border-bottom: 3px solid #3b82f6;
}

.cre-tab-content {
    display: none;
}

.cre-tab-content.active {
    display: block;
}

/* Overview Grid */
.cre-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cre-short-description {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.cre-key-facts {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.cre-facts-grid {
    display: grid;
    gap: 15px;
}

.cre-fact-item strong {
    color: #6b7280;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Details Grid */
.cre-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cre-details-list {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.cre-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.cre-detail-item:last-child {
    border-bottom: none;
}

.cre-detail-item:hover {
    background: #f8fafc;
}

/* Location Grid */
.cre-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cre-location-details {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.cre-location-item {
    margin-bottom: 15px;
}

.cre-showings-instructions {
    margin-top: 30px;
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

/* Map Container */
#cre-map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

#cre-map {
    width: 100%;
    height: 100%;
}

/* Documents Grid */
.cre-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cre-document-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cre-document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Similar Properties */
.cre-similar-properties {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.cre-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.cre-similar-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cre-similar-card:hover {
    transform: translateY(-10px);
}

/* Status Badges */
.cre-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cre-featured-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cre-property-header {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 992px) {
    .cre-property-header {
        grid-template-columns: 1fr;
    }
    
    .cre-overview-grid,
    .cre-details-grid,
    .cre-location-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cre-property-title {
        font-size: 28px;
    }
    
    .cre-main-image img {
        height: 300px;
    }
    
    .cre-documents-grid {
        grid-template-columns: 1fr;
    }
    
    .cre-similar-grid {
        grid-template-columns: 1fr;
    }
    
    .cre-tab-buttons {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .cre-tab-button {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .cre-property-title {
        font-size: 24px;
    }
    
    .cre-main-image img {
        height: 250px;
    }
    
    .cre-thumbnail {
        width: 80px;
        height: 60px;
    }
}