﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 2px solid #e0e0e0;
}

.properties-header{
    margin: 70px 0 20px 0;
}

h1 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.header-divider {
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 100px;
    margin: 0 auto 20px;
}

/* Filtros */
.filters-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 14px;
}

.filter-input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    .filter-input:focus {
        outline: none;
        border-color: #667eea;
    }

.btn-search {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .btn-search:hover {
        transform: translateY(-2px);
    }

/* Grid de propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.property-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.property-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    position: relative;
}

.property-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
}

.property-location {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.property-price {
    font-size: 28px;
    font-weight: bold;
    margin-top: 10px;
}

.property-content {
    padding: 25px;
}

.property-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 18px;
    margin-bottom: 5px;
    color: #667eea;
}

.feature-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.property-phone {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.phone-number {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

    .phone-number:hover {
        color: #667eea;
    }

.btn-details {
    display: block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-details:hover {
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

    .empty-state h3 {
        margin-bottom: 15px;
        color: #2c3e50;
        font-size: 24px;
    }

    .empty-state p {
        font-size: 16px;
        max-width: 500px;
        margin: 0 auto;
    }

.property-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

    .carousel-indicator.active {
        background: white;
    }

@@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .property-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .container {
        padding: 15px;
    }
}

.property-details-container {
    max-width: 1000px;
    margin: 90px auto;
    padding: 0 20px;
}

.property-detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.property-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.property-detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.property-detail-location {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.property-detail-price {
    font-size: 36px;
    font-weight: bold;
    margin-top: 15px;
}

.property-detail-content {
    padding: 40px;
}

.description-section {
    margin-bottom: 30px;
}

.description-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.description-text {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
    white-space: pre-line;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature-item {
    text-align: center;
    padding: 15px;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #667eea;
}

.feature-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.contact-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.contact-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-top: 30px;
}

.btn-back {
    display: block;
    background: #95a5a6;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-back:hover {
        background: #7f8c8d;
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
    }

.btn-contact {
    display: block;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-contact:hover {
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    }

.offers-section {
    margin-top: 30px;
    padding: 25px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.offers-title {
    font-size: 18px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 15px;
}

.offer-item {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.property-gallery {
    margin: 0;
}

.main-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

    .image-nav:hover {
        background: rgba(0,0,0,0.9);
        transform: translateY(-50%) scale(1.1);
    }

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    padding: 0 10px;
}

.thumbnail {
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

    .thumbnail:hover {
        transform: scale(1.05);
    }

    .thumbnail.active {
        border-color: #667eea;
    }

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images {
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
}

.no-images-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

@@media (max-width: 768px) {
    .property-detail-header {
        padding: 25px;
    }

    .property-detail-content {
        padding: 25px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}