:root {
    --ast-global-color-0: #54B435;
    --ast-global-color-1: #379237;
    --ast-global-color-2: #0F172A;
    --ast-global-color-3: #2F3B40;
    --ast-global-color-4: #EDFBE2;
    --ast-global-color-5: #FFFFFF;
    --ast-global-color-6: #D5EAD8;
    --ast-global-color-7: #0C1406;
    --ast-global-color-8: #222222;
}

/* PROPERTY CARD SYSTEM */
/* Grid Container - Use for both archive and shortcode */
.property-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Property Card - Fixed Height */
.property-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--ast-global-color-5);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.property-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.property-image-link {
    display: block;
    height: 100%;
}

.property-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image-link img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1;
}

.property-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-info h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
    line-height: 1.3;
    color: var(--ast-global-color-8);
}

.property-info h3 a {
    color: var(--ast-global-color-8);
    text-decoration: none;
}

.property-info h3 a:hover {
    color: var(--ast-global-color-0);
}

.property-location {
    color: var(--ast-global-color-3);
    margin: 0 0 10px;
    font-size: 0.9em;
}

.price {
    color: var(--ast-global-color-0);
    font-weight: 700;
    font-size: 1.3em;
    margin: 10px 0;
}

.property-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ast-global-color-3);
    font-size: 0.9em;
}

.property-meta i {
    color: var(--ast-global-color-0);
    font-size: 0.9em;
}

.excerpt {
    color: var(--ast-global-color-3);
    font-size: 0.95em;
    margin: 0 0 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.property-footer {
    margin-top: auto;
    padding-top: 15px;
}

.property-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.property-link:hover {
    background: var(--ast-global-color-1);
    transform: translateX(5px);
}

/* SINGLE PROPERTY STYLES */
.catalpa-property-single {
    font-family: 'Roboto', sans-serif;
    color: var(--ast-global-color-8);
    line-height: 1.6;
}

/* Hero Section */
.property-hero {
    position: relative;
    margin-bottom: 50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(12, 20, 6, 0.3) 0%, var(--ast-global-color-7) 100%);
    color: var(--ast-global-color-5);
    display: flex;
    align-items: flex-end;
}

.hero-overlay .container {
    padding-bottom: 60px;
}

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

.single-property-badge {
    display: inline-block;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 12px 25px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 20px;
}

.property-title {
    font-size: 2.5rem;
    margin: 0 0 15px;
    color: var(--ast-global-color-7) !important;
    line-height: 1.2;
}

.property-meta-single {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

/* Main Content */
.property-main-content {
    padding: 40px 0;
}

.property-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.property-section {
    margin-bottom: 50px;
}

.section-title {
    position: relative;
    font-size: 1.8rem;
    margin: 0 0 30px;
    padding-bottom: 15px;
    color: var(--ast-global-color-8);
}

.section-title span {
    position: relative;
    display: inline-block;
    padding-right: 20px;
    z-index: 1;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
}

.property-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ast-global-color-8);
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.spec-content h3 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    color: var(--ast-global-color-3);
    font-weight: normal;
}

.spec-content p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ast-global-color-8);
}

/* Gallery Grid */
.property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar */
.property-sidebar {
    position: relative;
}

.sidebar-card {
    background: var(--ast-global-color-5);
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.card-title {
    font-size: 1.4rem;
    margin: 0 0 25px;
    color: var(--ast-global-color-8);
    position: relative;
    padding-bottom: 10px;
}

.card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--ast-global-color-0);
}

/* Agent Card */
.agent-info {
    display: block;
}

.agent-details h4 {
    margin: 0 0 15px;
    font-size: 1.2rem;
    color: var(--ast-global-color-8);
}

.agent-details p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ast-global-color-3);
    font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form-fallback {
    margin-top: 15px;
}

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

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--ast-global-color-3);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: var(--ast-global-color-1);
}

.submit-button:disabled {
    background: var(--ast-global-color-3);
    cursor: not-allowed;
}

#form-message.success {
    background: var(--ast-global-color-4);
    color: var(--ast-global-color-1);
    border: 1px solid var(--ast-global-color-1);
}

#form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

/* Pagination */
.ast-pagination {
    margin: 40px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .property-content-grid {
        grid-template-columns: 1fr;
    }
    
    .property-sidebar {
        margin-top: 50px;
    }
    
    .hero-overlay {
        padding: 60px 0 30px;
    }
    
    .property-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 60vh;
        min-height: 400px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .property-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .property-meta-single {
        flex-direction: column;
        gap: 10px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .property-gallery {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        height: 50vh;
    }
    
    .single-property-badge {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}

/* PROPERTY SEARCH */
.property-search-container {
    background: var(--ast-global-color-5);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin: 40px 0;
}

.property-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-row {
    display: flex;
    gap: 20px;
}

.search-field {
    flex: 1;
    margin-bottom: 15px;
}

.search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ast-global-color-3);
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--ast-global-color-5);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--ast-global-color-0);
    box-shadow: 0 0 0 3px rgba(84, 180, 53, 0.2);
    outline: none;
}

/* Price Range Specific Styles */
.price-range {
    align-items: flex-end;
}

.price-field {
    flex: 1;
}

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

.price-inputs input {
    flex: 1;
    text-align: center;
}

.price-separator {
    color: var(--ast-global-color-3);
    font-weight: bold;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.search-submit {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-submit:hover {
    background: var(--ast-global-color-1);
    transform: translateY(-2px);
}

.search-reset {
    color: var(--ast-global-color-3);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

/* Autocomplete Styles */
.ui-autocomplete {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu-item:hover {
    background-color: var(--ast-global-color-4);
    color: var(--ast-global-color-0);
}

.ui-state-focus {
    background-color: var(--ast-global-color-0) !important;
    color: white !important;
}

/* Search results count */
.search-results-count {
    margin: 20px 0;
    font-size: 1.1rem;
    color: var(--ast-global-color-3);
    font-weight: 500;
}

.search-results-count strong {
    color: var(--ast-global-color-0);
}

/* Responsive search */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 0;
    }
    
     .search-row.price-range {
        flex-direction: row;
        gap: 0;
    }
    .price-separator {
        display: none;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* No results */
    .no-results {
        grid-column: 1 / -1;
        text-align: center;
        padding: 50px 20px;
        background: var(--ast-global-color-4);
        border-radius: 8px;
        margin: 30px 0;
    }
    
    .no-results h3 {
        color: var(--ast-global-color-3);
        margin-bottom: 15px;
    }
    
    .no-results p {
        color: var(--ast-global-color-3);
        margin-bottom: 20px;
    }
}

/* AJAX Search Container */
.property-search-ajax-container {
    margin: 40px 0;
}

/* Loading Indicator */
.search-loading {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
}

.loading-spinner {
    border: 4px solid var(--ast-global-color-4);
    border-top: 4px solid var(--ast-global-color-0);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* AJAX Pagination */
.ajax-pagination {
    text-align: center;
    margin: 30px 0;
    grid-column: 1 / -1;
}

.load-more {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.load-more:hover {
    background: var(--ast-global-color-1);
    transform: translateY(-2px);
}

.load-more:disabled {
    background: var(--ast-global-color-3);
    cursor: not-allowed;
}

/* Search Results Count */
.search-results-count {
    margin: 20px 0;
    font-size: 1.1rem;
    color: var(--ast-global-color-3);
    font-weight: 500;
    padding: 10px 15px;
    background: var(--ast-global-color-4);
    border-radius: 6px;
}

.search-results-count strong {
    color: var(--ast-global-color-0);
}

/* FIXES FOR SEARCH BAR AND GRID LAYOUT */
.property-search-ajax-container .property-grid-container {
    display: grid !important;
    gap: 30px !important;
    margin: 40px 0 !important;
    width: 100% !important;
}

.property-search-ajax-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure consistent card widths */
.property-grid-container .property-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Spectra Maps Compatibility */
.property-card .uagb-google-map__wrap {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.property-card .uagb-google-map__iframe {
    height: 150px !important;
}

.property-map .uagb-google-map__wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Ensure proper sizing for Spectra maps */
.uagb-google-map__wrap {
    position: relative;
}

.uagb-google-map__iframe {
    width: 100%;
    border: none;
}

.map-address {
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--ast-global-color-4);
    border-radius: 6px;
    font-size: 0.95rem;
}

.map-address i {
    color: var(--ast-global-color-0);
    margin-right: 8px;
}

.properties-overview-map {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

@media (max-width: 920px) {
    /* Specific fix for 920px breakpoint */
    body,
    .property-grid-container,
    .property-search-ajax-container,
    .property-main-content,
    .catalpa-property-single {
        background-color: var(--ast-global-color-4) !important;
    }

}



/* Add these styles to your existing CSS */

/* Autocomplete Styles */
.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    float: left;
    display: none;
    min-width: 160px;
    padding: 4px 0;
    margin: 0 0 10px 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu-item:hover,
.ui-state-focus {
    background-color: var(--ast-global-color-4);
    color: var(--ast-global-color-0);
}

.ui-helper-hidden-accessible {
    display: none;
}

/* Add these styles to your existing CSS */

/* Autocomplete Styles */
.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    float: left;
    display: none;
    min-width: 160px;
    padding: 4px 0;
    margin: 0 0 10px 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: inherit;
}

.ui-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--ast-global-color-3);
    transition: all 0.2s ease;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu-item:hover,
.ui-state-focus {
    background-color: var(--ast-global-color-4);
    color: var(--ast-global-color-0);
    border-color: transparent;
}

.ui-helper-hidden-accessible {
    display: none;
}

/* Make sure the autocomplete appears above other elements */
.ui-front {
    z-index: 9999;
}

/* Additional customization for autocomplete */
.ui-autocomplete {
    font-size: 1rem;
    line-height: 1.5;
}

.ui-menu-item {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.ui-menu-item:hover,
.ui-state-focus {
    font-weight: 600;
}

/* Ensure the autocomplete works well on mobile */
@media (max-width: 768px) {
    .ui-autocomplete {
        width: 100% !important;
        left: 0 !important;
        right: 0;
        max-width: none;
    }
}


/* Add these styles to your existing CSS */

/* Enhanced Hero Section */
.property-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: var(--ast-global-color-5);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-property-badge {
    display: inline-block;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 15px 30px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.property-title {
    font-size: 3rem;
    margin: 0 0 20px;
    color: var(--ast-global-color-5);
    line-height: 1.2;
}

.property-meta-single {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .property-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .single-property-badge {
        font-size: 1.4rem;
        padding: 12px 25px;
    }
    
    .property-title {
        font-size: 2.2rem;
    }
    
    .property-meta-single {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .property-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .single-property-badge {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-meta-single {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
}

/* Corner Category Badge */
.property-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Remove property type from meta items in hero */
.property-meta-single .meta-item:first-child {
    display: none;
}

/* Responsive adjustments for corner badge */
@media (max-width: 768px) {
    .property-type-badge {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .property-type-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


/* Corner Category Badge */
.property-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Enhanced Hero Section */
.property-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: var(--ast-global-color-5);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-property-badge {
    display: inline-block;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 15px 30px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.property-title {
    font-size: 3rem;
    margin: 0 0 20px;
    color: var(--ast-global-color-5);
    line-height: 1.2;
}

.property-meta-single {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .property-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .single-property-badge {
        font-size: 1.4rem;
        padding: 12px 25px;
    }
    
    .property-title {
        font-size: 2.2rem;
    }
    
    .property-meta-single {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .property-type-badge {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .property-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .single-property-badge {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-meta-single {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .property-type-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


/* Add these styles to your existing CSS */

/* Enhanced Hero Section */
.property-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: var(--ast-global-color-5);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-property-badge {
    display: inline-block;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 15px 30px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.property-title {
    font-size: 3rem;
    margin: 0 0 10px;
    color: var(--ast-global-color-5);
    line-height: 1.2;
}

/* Address in the middle */
.property-address {
    font-size: 1.4rem;
    margin: 10px 0 20px;
    color: var(--ast-global-color-5);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.property-meta-single {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Corner Category Badge */
.property-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .property-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .single-property-badge {
        font-size: 1.4rem;
        padding: 12px 25px;
    }
    
    .property-title {
        font-size: 2.2rem;
    }
    
    .property-address {
        font-size: 1.2rem;
    }
    
    .property-meta-single {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .property-type-badge {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .property-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .single-property-badge {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-address {
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .property-meta-single {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .property-type-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


/* Leaflet Map Styles */
.property-map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    z-index: 1;
}

.leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 12px 15px;
    line-height: 1.4;
}

.leaflet-popup-content-wrapper {
    border-radius: 6px;
}

.map-address {
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--ast-global-color-4);
    border-radius: 6px;
    font-size: 0.95rem;
}

.map-address i {
    color: var(--ast-global-color-0);
    margin-right: 8px;
}

/* Corner Category Badge */
.property-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Address in the middle */
.property-address {
    font-size: 1.4rem;
    margin: 10px 0 20px;
    color: var(--ast-global-color-5);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Enhanced Hero Section */
.property-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: var(--ast-global-color-5);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-property-badge {
    display: inline-block;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 15px 30px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.property-title {
    font-size: 3rem;
    margin: 0 0 10px;
    color: var(--ast-global-color-5);
    line-height: 1.2;
}

.property-meta-single {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .property-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .single-property-badge {
        font-size: 1.4rem;
        padding: 12px 25px;
    }
    
    .property-title {
        font-size: 2.2rem;
    }
    
    .property-address {
        font-size: 1.2rem;
    }
    
    .property-meta-single {
        gap: 15px;
    }
    
    .meta-item {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .property-type-badge {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .property-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .single-property-badge {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-address {
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .property-meta-single {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .property-type-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


/* New badge styles */
.property-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ast-global-color-1);
    color: var(--ast-global-color-5);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1;
}

.property-status-badge[data-status="kiado"] {
    background: #FF9800; /* Orange for rental */
}

.attention-feature-single {
    background-color: #ff9f9f;
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid #ff7f7f;
}

/* Attention Feature – Card Badge */
.attention-feature {
    background-color: #3498db !important; /* clean, modern blue */    color: var(--ast-global-color-5) !important;            /* white */
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--ast-global-color-8);
}

/* Property type in meta section */
.property-type {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ast-global-color-3);
    font-size: 0.9em;
}

.property-type i {
    color: var(--ast-global-color-0);
    font-size: 0.9em;
}
.property-type-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.property-type {
    background-color: var(--ast-global-color-6);
    color: var(--ast-global-color-2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.property-sale-rent {
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
}

.property-sale-rent[data-status="kiado"] {
    background-color: #FF9800; /* Orange for rental */
}




.featured-properties-container {
    margin: 50px 0;
    border-radius: 10px;
}

.featured-properties-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--ast-global-color-2);
    position: relative;
    padding-bottom: 15px;
}

.featured-properties-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--ast-global-color-0);
}

/* ===========================
   Small-screen fixes <= 400px
   =========================== */
@media (max-width: 400px) {
  /* Force single-column list and tighter spacing */
  
  
    .price-inputs {
        flex-direction: column;
        gap: 5px;
    }
  .property-grid-container {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin: 18px 0;
    padding: 0 10px;
  }

  .property-card {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transform: none !important; /* disable hover lift on small screens */
  }

  /* Make the image area smaller so it doesn't dominate */
  .property-image-container {
    height: 140px;
  }
  .property-image-link img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
  }

  /* Reduce paddings & font sizes to fit */
  .property-info {
    padding: 12px;
  }
  .property-info h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .property-location {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  .excerpt {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  /* Price alignment fix: always left and full-width so flex spacing won't push it */
  .price {
    display: block;
    width: 100%;
    text-align: left !important;
    font-size: 1.08rem;
    margin: 6px 0 10px;
  }

  /* Prevent meta items from pushing the price to the right */
  .property-meta,
  .property-type-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start !important;
  }

  /* Badge sizing/position */
  .property-badge,
  .property-status-badge,
  .property-type-badge {
    top: 10px;
    left: 10px;
    right: auto;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  /* Action button smaller */
  .property-link {
    padding: 8px 12px;
    font-size: 0.85rem;
    display: inline-flex;
    gap: 6px;
  }

  /* Keep agent/card footers readable */
  .sidebar-card,
  .card-title,
  .submit-button {
    padding: 16px;
  }

  /* Make specs/gallery stack more compact */
  .specs-grid,
  .property-gallery,
  .features-grid {
    gap: 12px;
  }

  /* Make autocomplete full width on tiny screens, if used inside card */
  .ui-autocomplete {
    left: 0 !important;
    right: 0;
    width: calc(100% - 20px) !important;
    margin-left: 10px;
    max-height: 180px;
  }
}


/* Clean Header Styles */
.hero-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.property-status-badge {
    background: var(--ast-global-color-1);
    color: var(--ast-global-color-5);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.property-status-badge[data-status="kiado"] {
    background: #FF9800;
}

.property-type-badge {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.hero-text-content {
    margin: 20px 0;
}

.property-title {
    font-size: 2.5rem;
    margin: 0 0 10px;
    color: var(--ast-global-color-5);
    line-height: 1.2;
}

.property-address {
    font-size: 1.3rem;
    margin: 0 0 25px;
    color: var(--ast-global-color-5);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.property-meta-single {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.attention-feature-single {
    background-color: #ff9f9f;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
    margin: 15px 0;
    border: 1px solid #ff7f7f;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-badges {
        top: 15px;
        left: 15px;
        right: 15px;
    }
    
    .property-status-badge,
    .property-type-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .property-title {
        font-size: 2rem;
    }
    
    .property-address {
        font-size: 1.1rem;
    }
    
    .property-meta-single {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .attention-feature-single {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .hero-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .property-status-badge,
    .property-type-badge {
        width: auto;
        text-align: center;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-address {
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .property-meta-single {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
}

/* Clean Hero Section - JUST PRICE CENTERED */
.property-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-price {
    color: var(--ast-global-color-5);
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    text-align: center;
    line-height: 1.2;
}

/* Property Header Info */
.property-header-info {
    text-align: center;
    padding: 40px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.property-title {
    font-size: 2.5rem;
    margin: 0 0 10px;
    color: var(--ast-global-color-8);
    line-height: 1.2;
}

.property-address {
    font-size: 1.3rem;
    margin: 0 0 25px;
    color: var(--ast-global-color-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.property-status-type {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.property-status {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
}

.property-status.status-elado {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
}

.property-status.status-kiado {
    background: #FF9800;
    color: var(--ast-global-color-5);
}

.property-type {
    padding: 10px 20px;
    background: var(--ast-global-color-4);
    color: var(--ast-global-color-2);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
}

.attention-feature-single {
    background-color: #ff9f9f;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #ff7f7f;
}

/* Gallery Section */
.property-gallery-section {
    margin-bottom: 40px;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    display: block;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Improved Content Grid */
.property-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.property-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .property-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .property-sidebar {
        order: -1;
    }
    
    .property-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .property-price {
        font-size: 2.8rem;
    }
    
    .property-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .property-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .property-price {
        font-size: 2.2rem;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-address {
        font-size: 1.1rem;
    }
    
    .property-status-type {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .property-hero {
        height: 35vh;
        min-height: 250px;
    }
    
    .property-price {
        font-size: 1.8rem;
    }
    
    .property-title {
        font-size: 1.5rem;
    }
    
    .property-address {
        font-size: 1rem;
    }
    
    .property-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .property-status,
    .property-type,
    .attention-feature-single {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}






/* Big Hero Section - LOCATION CENTERED */
.property-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--ast-global-color-5);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.property-title {
    font-size: 4rem;
    margin: 0 0 20px;
    color: var(--ast-global-color-5);
    line-height: 1.1;
}

.property-address {
    font-size: 1.8rem;
    margin: 0;
    color: var(--ast-global-color-5);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 400;
}

/* Property Price Section */
.property-price-section {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.property-price {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--ast-global-color-0);
    margin-bottom: 25px;
    line-height: 1.1;
}

.property-status-type {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.property-status {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.property-status.status-elado {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
}

.property-status.status-kiado {
    background: #FF9800;
    color: var(--ast-global-color-5);
}

.property-type {
    padding: 12px 25px;
    background: var(--ast-global-color-4);
    color: var(--ast-global-color-2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.attention-feature-single {
    background-color: #ff9f9f;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid #ff7f7f;
}

/* Gallery Section */
.property-gallery-section {
    margin-bottom: 40px;
}

.property-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    display: block;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Improved Content Grid */
.property-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.property-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .property-hero {
        height: 65vh;
        min-height: 500px;
    }
    
    .property-title {
        font-size: 3.5rem;
    }
    
    .property-address {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .property-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .property-sidebar {
        order: -1;
    }
    
    .property-hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .property-title {
        font-size: 3rem;
    }
    
    .property-address {
        font-size: 1.4rem;
    }
    
    .property-price {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .property-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .property-title {
        font-size: 2.5rem;
    }
    
    .property-address {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .property-price {
        font-size: 2.2rem;
    }
    
    .property-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .property-status-type {
        flex-direction: column;
        gap: 12px;
    }
    
    .property-status,
    .property-type,
    .attention-feature-single {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .property-hero {
        height: 45vh;
        min-height: 350px;
    }
    
    .property-title {
        font-size: 2rem;
    }
    
    .property-address {
        font-size: 1.1rem;
    }
    
    .property-price {
        font-size: 1.8rem;
    }
    
    .property-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
}



/* Hero with Side Badges */
.property-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-badge {
    position: absolute;
    top: 30px;
    z-index: 10;
}

.hero-badge.left-badge {
    left: 30px;
}

.hero-badge.right-badge {
    right: 30px;
}

.status-badge {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.status-badge.elado {
    background: var(--ast-global-color-0);
}

.status-badge.kiado {
    background: #FF9800;
}

.type-badge {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.property-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
}

.property-address {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.95;
}

/* Attention Feature in Details */
.attention-value {
    color: #ff6b6b;
    font-weight: 600;
}

/* Rest of the CSS remains the same */
.property-key-info {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.key-info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ast-global-color-0);
}

.price-period {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.property-specs {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #666;
}

.spec i {
    color: var(--ast-global-color-0);
}

/* Main Grid Layout */
.property-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

.property-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.content-section h2 {
    font-size: 1.3rem;
    margin: 0 0 20px;
    color: #333;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ast-global-color-0);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description */
.description {
    line-height: 1.7;
    color: #555;
}

.description p {
    margin-bottom: 1rem;
}

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

/* Details Grid */
.details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-item .label {
    color: #666;
    font-weight: 500;
}

.detail-item .value {
    color: #333;
    font-weight: 600;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
}

.feature-item i {
    color: var(--ast-global-color-0);
    width: 16px;
}

/* Sidebar */
.property-sidebar {
    /* No sticky positioning */
}

.contact-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.agent-info {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.agent-info h3 {
    margin: 0 0 15px;
    font-size: 1.2rem;
    color: #333;
}

.agent-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.contact-form {
    padding: 20px;
}

.contact-form h4 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    color: #333;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ast-global-color-0);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--ast-global-color-0);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: var(--ast-global-color-1);
}

.submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .key-info-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .property-hero {
        height: 45vh;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .property-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-badge {
        top: 20px;
    }
    
    .hero-badge.left-badge {
        left: 20px;
    }
    
    .hero-badge.right-badge {
        right: 20px;
    }
    
    .property-title {
        font-size: 2rem;
    }
    
    .property-address {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .property-specs {
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .property-hero {
        height: 35vh;
        min-height: 250px;
    }
    
    .hero-badge {
        top: 15px;
    }
    
    .hero-badge.left-badge {
        left: 15px;
    }
    
    .hero-badge.right-badge {
        right: 15px;
    }
    
    .status-badge,
    .type-badge {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .property-title {
        font-size: 1.6rem;
    }
    
    .property-address {
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .property-specs {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .key-info-content {
        align-items: stretch;
    }
}
/* Privacy Policy Checkbox Styles - Updated for inline layout */
.checkbox-group {
    margin: 15px 0;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start; /* Align items to top for proper wrapping */
    flex-wrap: nowrap; /* Keep checkbox and label on same line */
    gap: 10px; /* Space between checkbox and label */
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px; /* Slight vertical alignment */
    margin-right: 0;
    width: auto;
    flex-shrink: 0; /* Prevent checkbox from shrinking */
    order: 1; /* Checkbox comes first */
}

.checkbox-group label {
    display: inline;
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
    line-height: 1.4;
    order: 2; /* Label comes after checkbox */
    text-align: left;
    word-break: break-word; /* Allow label to wrap */
    overflow-wrap: break-word; /* Handle long words */
    flex: 1; /* Take remaining space */
}

.checkbox-group label a {
    color: var(--ast-global-color-0);
    text-decoration: none;
    margin: 0 5px;
    font-weight: 600;
    white-space: nowrap; /* Keep link text together */
}

.checkbox-group label a:hover {
    text-decoration: underline;
    color: var(--ast-global-color-1);
}

/* Make checkbox required */
.checkbox-group input[type="checkbox"]:required:invalid {
    outline: 2px solid #ff6b6b;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .checkbox-group {
        padding: 10px;
        gap: 8px;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .checkbox-group label a {
        white-space: normal; /* Allow link to wrap on mobile */
    }
}
