/**
 * Real Estate Plugin Frontend Styles
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --rep-primary-color: #2c3e50;
    --rep-secondary-color: #3498db;
    --rep-accent-color: #e74c3c;
    --rep-success-color: #27ae60;
    --rep-warning-color: #f39c12;
    --rep-text-color: #2c3e50;
    --rep-text-light: #7f8c8d;
    --rep-border-color: #ecf0f1;
    --rep-background-light: #f8f9fa;
    --rep-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --rep-border-radius: 8px;
    --rep-transition: all 0.3s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.rep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.rep-row {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    gap: 20px;
}

.rep-col {
    padding: 0 15px;
    flex: 1;
}

.inner-sidebar-box {
    position: sticky;
    top: 0;       /*  ποια απόσταση από το πάνω μέρος να λήσει */
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
}

.rep-col-1 { flex: 0 0 8.333333%; }
.rep-col-2 { flex: 0 0 16.666667%; }
.rep-col-3 { flex: 0 0 25%; }
.rep-col-4 { flex: 0 0 33.333333%; }
.rep-col-6 { flex: 0 0 50%; }
.rep-col-8 { flex: 0 0 66.666667%; }
.rep-col-9 { flex: 0 0 75%; }
.rep-col-12 { flex: 0 0 100%; }

/* ==========================================================================
   Property Grid & Shortcodes
   ========================================================================== */

.properties-grid,
.rep-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.rep-columns-1 { grid-template-columns: repeat(1, 1fr); }
.rep-columns-2 { grid-template-columns: repeat(2, 1fr); }
.rep-columns-3 { grid-template-columns: repeat(3, 1fr); }
.rep-columns-4 { grid-template-columns: repeat(4, 1fr); }
.rep-columns-5 { grid-template-columns: repeat(5, 1fr); }
.rep-columns-6 { grid-template-columns: repeat(6, 1fr); }

.properties-grid[data-view="list"] {
    grid-template-columns: 1fr;
}

.properties-grid[data-view="list"] .property-card {
    display: flex;
    align-items: stretch;
}

.properties-grid[data-view="list"] .property-card .property-image {
    flex: 0 0 300px;
    height: auto;
}

.properties-grid[data-view="list"] .property-card .property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   Property Card & Shortcode Components
   ========================================================================== */

.property-card,
.rep-property-card {
    background: white;
    border-radius: var(--rep-border-radius);
    box-shadow: var(--rep-shadow);
    overflow: hidden;
    transition: var(--rep-transition);
    position: relative;
}

.property-card:hover,
.rep-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.property-image,
.rep-property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img,
.rep-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rep-transition);
}

.property-card:hover .property-image img,
.rep-property-card:hover .rep-property-image img {
    transform: scale(1.05);
}

.property-status,
.rep-property-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--rep-accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.property-status.for-rent,
.rep-property-status.for-rent {
    background: var(--rep-secondary-color);
}

.property-status.sold,
.rep-property-status.sold {
    background: var(--rep-text-light);
}

.property-price,
.rep-property-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: var(--rep-border-radius);
    font-size: 18px;
    font-weight: 700;
    z-index: 2;
}
.single-property .rep-property-price {
    position: relative;
    bottom: 0;
    right: 0;
    width: fit-content;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: var(--rep-border-radius);
    font-size: 18px;
    font-weight: 700;
    z-index: 2;
}
.property-content,
.rep-property-content {
    padding: 25px;
}

.property-title,
.rep-property-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--rep-text-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.property-title a,
.rep-property-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--rep-transition);
}

.property-title a:hover,
.rep-property-title a:hover {
    color: var(--rep-secondary-color);
}

.property-location,
.rep-property-location {
    color: var(--rep-text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.property-location::before,
.rep-property-location::before {
    content: "";
    margin-right: 5px;
}

.property-features,
.rep-property-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.property-feature,
.rep-property-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--rep-text-light);
}

.property-excerpt,
.rep-property-excerpt {
    color: var(--rep-text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.property-terms,
.rep-property-terms {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.property-term,
.rep-property-term {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================================================
   Shortcode Filters
   ========================================================================== */

.property-filters,
.rep-property-filters {
    background: white;
    padding: 30px;
    border-radius: var(--rep-border-radius);
    box-shadow: var(--rep-shadow);
    margin-bottom: 30px;
}

.property-filter-form,
.rep-property-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.rep-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group,
.rep-filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label,
.rep-filter-group label {
    font-weight: 600;
    color: var(--rep-text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-group input,
.filter-group select,
.rep-filter-group input,
.rep-filter-group select {
    padding: 12px;
    border: 1px solid var(--rep-border-color);
    border-radius: var(--rep-border-radius);
    font-size: 16px;
    transition: var(--rep-transition);
}

.filter-group input:focus,
.filter-group select:focus,
.rep-filter-group input:focus,
.rep-filter-group select:focus {
    outline: none;
    border-color: var(--rep-secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-actions,
.rep-filter-actions {
    display: flex;
    gap: 10px;
}

.filter-btn,
.rep-filter-btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--rep-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rep-transition);
}

.filter-btn.primary,
.rep-filter-btn-primary {
    background: var(--rep-secondary-color);
    color: white;
}

.filter-btn.primary:hover,
.rep-filter-btn-primary:hover {
    background: var(--rep-primary-color);
}

.filter-btn.secondary,
.rep-filter-btn-secondary {
    background: var(--rep-border-color);
    color: var(--rep-text-color);
}

.filter-btn.secondary:hover,
.rep-filter-btn-secondary:hover {
    background: var(--rep-text-light);
    color: white;
}

/* ==========================================================================
   Shortcode Maps
   ========================================================================== */

.property-map,
.rep-property-map {
    height: 400px;
    border-radius: var(--rep-border-radius);
    overflow: hidden;
    margin: 30px 0;
}

/* ==========================================================================
   No Results State
   ========================================================================== */

.rep-no-properties {
    text-align: center;
    padding: 60px 20px;
    color: var(--rep-text-light);
}

.rep-no-properties p {
    font-size: 18px;
    margin: 0;
}

/* ==========================================================================
   Featured Properties
   ========================================================================== */

.rep-featured-properties {
    margin: 30px 0;
}

.rep-featured-properties .rep-property-card {
    position: relative;
}

.rep-featured-properties .rep-property-card::before {
    content: "⭐";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 12px;
    z-index: 3;
}

.property-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--rep-border-color);
}

.property-action-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--rep-secondary-color);
    background: transparent;
    color: var(--rep-secondary-color);
    border-radius: var(--rep-border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--rep-transition);
    cursor: pointer;
}

.property-action-btn:hover {
    background: var(--rep-secondary-color);
    color: white;
}

.property-action-btn.primary {
    background: var(--rep-secondary-color);
    color: white;
}

.property-action-btn.primary:hover {
    background: var(--rep-primary-color);
}

/* ==========================================================================
   Property Filters
   ========================================================================== */

.property-filters {
    background: white;
    padding: 30px;
    border-radius: var(--rep-border-radius);
    box-shadow: var(--rep-shadow);
    margin-bottom: 30px;
}

.property-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: var(--rep-text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 12px;
    border: 1px solid var(--rep-border-color);
    border-radius: var(--rep-border-radius);
    font-size: 16px;
    transition: var(--rep-transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--rep-secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--rep-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rep-transition);
}

.filter-btn.primary {
    background: var(--rep-secondary-color);
    color: white;
}

.filter-btn.primary:hover {
    background: var(--rep-primary-color);
}

.filter-btn.secondary {
    background: var(--rep-border-color);
    color: var(--rep-text-color);
}

.filter-btn.secondary:hover {
    background: var(--rep-text-light);
    color: white;
}

/* ==========================================================================
   Property Map
   ========================================================================== */

.property-map {
    height: 400px;
    border-radius: var(--rep-border-radius);
    overflow: hidden;
    margin: 30px 0;
}

.properties-map-container {
    position: relative;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.map-control-btn {
    background: white;
    border: 1px solid var(--rep-border-color);
    padding: 8px 12px;
    border-radius: var(--rep-border-radius);
    cursor: pointer;
    transition: var(--rep-transition);
    font-size: 12px;
}

.map-control-btn:hover {
    background: var(--rep-secondary-color);
    color: white;
}

/* ==========================================================================
   Single Property
   ========================================================================== */

.single-property-header {
    margin-bottom: 40px;
}

.single-property-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--rep-text-color);
    margin: 0 0 10px 0;
}

.single-property-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.single-property-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--rep-accent-color);
}

.single-property-location {
    font-size: 16px;
    color: var(--rep-text-light);
    display: flex;
    align-items: center;
}

.single-property-location::before {
    content: "📍";
    margin-right: 8px;
}

.property-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    margin-bottom: 20px;
}

.gallery-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--rep-border-radius);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--rep-transition);
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    opacity: 1;
    transform: scale(1.05);
}

.property-details {
    background: white;
    padding: 30px;
    border-radius: var(--rep-border-radius);
    box-shadow: var(--rep-shadow);
    margin-bottom: 30px;
}

.property-details h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--rep-text-color);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--rep-border-color);
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.rep-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.property-detail-item {
    width: 45%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--rep-border-color);
}

.property-detail-item:last-child {
    border-bottom: none;
}

.property-detail-label {
    font-weight: 600;
    color: var(--rep-text-color);
}

.property-detail-value {
    color: var(--rep-text-light);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.property-contact-form {
    background: var(--rep-background-light);
    padding: 30px;
    border-radius: var(--rep-border-radius);
    margin: 30px 0;
}

.property-contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--rep-text-color);
    margin: 0 0 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--rep-text-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--rep-border-color);
    border-radius: var(--rep-border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--rep-transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rep-secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--rep-secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--rep-border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rep-transition);
}

.submit-btn:hover {
    background: var(--rep-primary-color);
}

.submit-btn:disabled {
    background: var(--rep-text-light);
    cursor: not-allowed;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.rep-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.rep-pagination a,
.rep-pagination span {
    padding: 10px 15px;
    border: 1px solid var(--rep-border-color);
    border-radius: var(--rep-border-radius);
    color: var(--rep-text-color);
    text-decoration: none;
    transition: var(--rep-transition);
}

.rep-pagination a:hover {
    background: var(--rep-secondary-color);
    color: white;
    border-color: var(--rep-secondary-color);
}

.rep-pagination .current {
    background: var(--rep-secondary-color);
    color: white;
    border-color: var(--rep-secondary-color);
}

/* ==========================================================================
   View Toggle
   ========================================================================== */

.view-toggle {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.view-toggle button {
    padding: 10px 15px;
    border: 1px solid var(--rep-border-color);
    background: white;
    color: var(--rep-text-color);
    border-radius: var(--rep-border-radius);
    cursor: pointer;
    transition: var(--rep-transition);
}

.view-toggle button.active,
.view-toggle button:hover {
    background: var(--rep-secondary-color);
    color: white;
    border-color: var(--rep-secondary-color);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.rep-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.rep-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--rep-border-color);
    border-top: 4px solid var(--rep-secondary-color);
    border-radius: 50%;
    animation: rep-spin 1s linear infinite;
}

@keyframes rep-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Messages
   ========================================================================== */

.rep-error-message,
.rep-success-message {
    padding: 15px 20px;
    border-radius: var(--rep-border-radius);
    margin: 20px 0;
    font-weight: 500;
}

.rep-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rep-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .rep-container {
        padding: 0 10px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-filter-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .single-property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .single-property-title {
        font-size: 24px;
    }
    
    .single-property-price {
        font-size: 22px;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .properties-grid[data-view="list"] .property-card {
        flex-direction: column;
    }
    
    .properties-grid[data-view="list"] .property-card .property-image {
        flex: none;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .property-card {
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .property-filters {
        margin: 20px -10px;
        border-radius: 0;
        padding: 20px;
    }
    
    .property-details {
        margin: 20px -10px;
        border-radius: 0;
        padding: 20px;
    }
}

/* ==========================================================================
   Property Gallery Slider
   ========================================================================== */

.rep-property-gallery {
    margin-bottom: 40px;
    background: #fff;
    border-radius: var(--rep-border-radius);
    overflow: hidden;
    box-shadow: var(--rep-shadow);
}

.rep-gallery-container {
    position: relative;
}

/* Main Slider */
.rep-gallery-slider {
    position: relative;
    width: 100%;
}

.rep-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.rep-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.rep-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(30px);
}

.rep-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.rep-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide Overlay */
.rep-slide-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) 30%,
        rgba(0,0,0,0) 70%,
        rgba(0,0,0,0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rep-slide:hover .rep-slide-overlay {
    opacity: 1;
}

.rep-slide-info {
    position: absolute;
    top: 20px;
    right: 20px;
}

.rep-slide-counter {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Navigation Arrows */
.rep-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: var(--rep-text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.rep-gallery-slider:hover .rep-slider-nav {
    opacity: 1;
    visibility: visible;
}

.rep-slider-nav:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rep-slider-prev {
    left: 20px;
}

.rep-slider-next {
    right: 20px;
}

.rep-slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Fullscreen Button */
.rep-fullscreen-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.rep-gallery-slider:hover .rep-fullscreen-btn {
    opacity: 1;
    visibility: visible;
}

.rep-fullscreen-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.rep-fullscreen-btn svg {
    width: 20px;
    height: 20px;
}

/* Thumbnails Navigation */
.rep-gallery-thumbnails {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.rep-thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rep-thumbnails-container::-webkit-scrollbar {
    display: none;
}

.rep-thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
}

.rep-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rep-thumbnail:hover {
    border-color: var(--rep-secondary-color);
    transform: translateY(-2px);
}

.rep-thumbnail:hover img {
    transform: scale(1.1);
}

.rep-thumbnail.active {
    border-color: var(--rep-secondary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Thumbnail Navigation Arrows */
.rep-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e1e5e9;
    border-radius: 50%;
    color: var(--rep-text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.rep-thumb-nav:hover {
    background: white;
    border-color: var(--rep-secondary-color);
    color: var(--rep-secondary-color);
}

.rep-thumb-prev {
    left: 5px;
}

.rep-thumb-next {
    right: 5px;
}

.rep-thumb-nav svg {
    width: 18px;
    height: 18px;
}

/* Gallery Indicators */
.rep-gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.rep-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rep-indicator:hover,
.rep-indicator.active {
    background: white;
    border-color: white;
}

/* Fullscreen Modal */
.rep-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rep-fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.rep-fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rep-fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rep-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 24px;
    line-height: 1;
}

.rep-fullscreen-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Loading State */
.rep-slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: rep-spin 1s linear infinite;
    z-index: 15;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rep-slider-container {
        height: 300px;
    }
    
    .rep-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .rep-slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .rep-slider-prev {
        left: 10px;
    }
    
    .rep-slider-next {
        right: 10px;
    }
    
    .rep-fullscreen-btn {
        width: 35px;
        height: 35px;
    }
    
    .rep-thumbnail {
        flex: 0 0 60px;
        width: 60px;
        height: 45px;
    }
    
    .rep-gallery-indicators {
        bottom: 10px;
    }
    
    .rep-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .rep-slider-container {
        height: 250px;
    }
    
    .rep-gallery-thumbnails {
        padding: 15px;
    }
    
    .rep-slide-counter {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Enhanced Dynamic Fields Styles */
.rep-custom-fields-section {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.rep-custom-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.rep-custom-field-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.rep-field-full { width: 100%; }
.rep-field-half { width: calc(50% - 10px); }
.rep-field-third { width: calc(33.333% - 14px); }
.rep-field-quarter { width: calc(25% - 15px); }

.rep-field-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rep-field-value {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.rep-field-description {
    margin-top: 5px;
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.color-preview {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .rep-field-half,
    .rep-field-third,
    .rep-field-quarter {
        width: 100%;
    }
}


/* ==========================================================================
   Εληνιή ακή λάση - Greek Energy Rating
   ========================================================================== */

.rep-energy-rating-container {
    margin: 20px 0;
    padding: 0;
    background: white;
    border: 2px solid #2c5530;
    border-radius: 0;
    font-family: Arial, sans-serif;
}

.rep-energy-rating-header {
    background: #2c5530;
    color: white;
    padding: 8px 15px;
    margin: 0;
}

.rep-energy-rating-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.rep-energy-rating-table {
    display: flex;
    flex-direction: column;
    background: white;
}

.rep-energy-row {
    display: flex;
    border-bottom: 1px solid #ddd;
    min-height: 35px;
    align-items: stretch;
}

.rep-energy-row:last-child {
    border-bottom: none;
}

.rep-energy-row.active {
    box-shadow: inset 0 0 0 3px #000;
    position: relative;
    z-index: 2;
}

.rep-energy-bar-container {
    flex: 1;
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
}

.rep-energy-bar {
    height: 100%;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    position: relative;
}

.rep-energy-range {
    flex: 1;
    text-align: left;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.rep-energy-label {
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* ρώματα ι κάθ ελληνιή ενεγειαή κλάη */
.rep-energy-class-aplus {
    background: linear-gradient(90deg, #1e7e34, #28a745);
}

.rep-energy-class-a {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.rep-energy-class-bplus {
    background: linear-gradient(90deg, #5cb85c, #7bc97b);
}

.rep-energy-class-b {
    background: linear-gradient(90deg, #8bc34a, #aed581);
}

.rep-energy-class- {
    background: linear-gradient(90deg, #ffc107, #ffcd38);
}

.rep-energy-class- {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.rep-energy-class-ε {
    background: linear-gradient(90deg, #f44336, #ef5350);
}

.rep-energy-class- {
    background: linear-gradient(90deg, #8d4925, #a0522d);
}

.rep-energy-class-η {
    background: linear-gradient(90deg, #5d4037, #6d4c41);
}

/* Responsive */
@media (max-width: 768px) {
    .rep-energy-rating-container {
        margin: 15px 0;
    }
    
    .rep-energy-bar {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .rep-energy-range {
        font-size: 10px;
    }
    
    .rep-energy-label {
        font-size: 14px;
        min-width: 25px;
    }
    
    .rep-energy-rating-header h4 {
        font-size: 12px;
    }
}

.energy-bar-zero-energy-consumption .energy-range,
.energy-bar-not-required .energy-range,
.energy-bar-energy-inefficient .energy-range {
    display: none;
}

/* ετωση της μφάισς  subscripts */
.rep-energy-range sub {
    font-size: 0.8em;
    vertical-align: sub;
}

.indicator-energy::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 18px solid #f0f0f0;
    border-bottom: 18px solid #f0f0f0;
    border-right: 25px solid var(--indicator-color);
}

.rep-checkbox-item {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   Area Circle Styles
   ========================================================================== */

.leaflet-interactive.area-circle {
    cursor: default !important;
}

.area-circle-tooltip {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.area-circle-tooltip::before {
    border-top-color: rgba(52, 152, 219, 0.9) !important;
}

/* ==========================================================================
   Property List Map - Area Circles
   ========================================================================== */

.property-area-circle {
    cursor: pointer !important;
}

.property-area-circle:hover {
    fill-opacity: 0.3 !important;
}

.property-popup .popup-note {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    color: #666;
    font-style: italic;
}

.property-popup .popup-note small {
    font-size: 11px;
}

/* Ensure clusters work properly with circles */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.marker-cluster span {
    line-height: 30px;
}