/* ========================================
   TOKKO MODULE CSS
   Estilos específicos para Propiedades Inmobiliarias
   ======================================== */

/* ==========================================
   PROPERTY CARD COMPONENTS - Según Porto 12.1.0
   ========================================== */

/* Property Card Base */
.property-card-modern {
    transition: var(--transition-smooth);
    border-radius: var(--border-radius3x);
}

.property-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-modern-hover);
}

/* Property Image */
.property-image {
    height: 250px;
}

.property-img {
    object-fit: cover;
    transition: var(--transition-default);
}

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

/* Property Price Badge */
.property-price {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0 0 var(--border-radius2x) 0;
}

/* Property Title Link */
.property-title-link {
    transition: var(--transition-default);
}

.property-card-modern .property-title-link:hover {
    color: var(--primary) !important;
}

/* Operation Badges */
.operation-badge {
    border-radius: var(--border-radius2x);
}

.operation-venta {
    background: var(--mtn-success);
}

.operation-alquiler {
    background: var(--primary);
}

.operation-temporal {
    background: var(--mtn-warning);
    color: var(--dark) !important;
}

.operation-default {
    background: var(--secondary);
}

/* Property Details Button */
.property-details-btn {
    transition: var(--transition-default);
    border-radius: var(--border-radius2x);
}

.property-card-modern .property-details-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================
   PROPERTY LISTINGS
   ========================================== */

.property-grid .property-item h3,
.property-list .property-title {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.property-price {
    font-family: var(--font-family-primary) !important;
    font-weight: 700;
    color: var(--primary);
}

.property-location,
.property-details {
    font-family: var(--font-family-tertiary) !important;
    font-weight: 300;
}

/* ==========================================
   PROPERTY SEARCH FORM
   ========================================== */

.property-search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius3x);
    padding: 2rem;
    box-shadow: var(--shadow-modern);
}

.property-search-form .form-group {
    margin-bottom: 1.5rem;
}

.property-search-form .form-label {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.property-search-form .form-control,
.property-search-form .form-select {
    border-radius: var(--border-radius2x);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.property-search-form .form-control:focus,
.property-search-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--primary-rgba-20);
}

.property-search-form .btn-search {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--border-radius2x);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.property-search-form .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-modern-hover);
}

/* ==========================================
   PROPERTY FILTERS
   ========================================== */

.property-filters {
    background: white;
    border-radius: var(--border-radius3x);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-modern);
}

.property-filter-group {
    margin-bottom: 1.5rem;
}

.property-filter-group:last-child {
    margin-bottom: 0;
}

.property-filter-label {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    display: block;
}

.property-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.property-filter-option {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: var(--border-radius2x);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.property-filter-option:hover,
.property-filter-option.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* ==========================================
   PROPERTY GRID LAYOUT
   ========================================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.property-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-item-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.property-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-item:hover .property-item-overlay {
    opacity: 1;
}

.property-item-actions {
    display: flex;
    gap: 1rem;
}

.property-action-btn {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 2px solid transparent;
}

.property-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    border-color: white;
}

.property-item-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-item-badge.venta {
    background: var(--mtn-success);
}

.property-item-badge.alquiler {
    background: var(--primary);
}

.property-item-badge.temporal {
    background: var(--mtn-warning);
    color: var(--dark);
}

.property-item-content {
    padding: 2rem;
}

.property-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.property-item-title:hover {
    color: var(--primary);
}

.property-item-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-item-location i {
    color: var(--primary);
}

.property-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.property-item-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.property-feature i {
    color: var(--primary);
}

.property-item-actions-bottom {
    display: flex;
    gap: 0.5rem;
}

.property-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.property-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.property-btn.primary {
    background: var(--primary);
    color: white;
}

.property-btn.primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* ==========================================
   PROPERTY SINGLE VIEW
   ========================================== */

.property-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.property-single-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-modern);
}

.property-single-gallery {
    margin-bottom: 2rem;
}

.property-single-main-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid #eee;
}

.property-single-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-single-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.property-single-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.property-single-thumbnail.active {
    border-color: var(--primary);
}

.property-single-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-single-info {
    margin-bottom: 2rem;
}

.property-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.property-single-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.property-single-location {
    color: #666;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.property-single-location i {
    color: var(--primary);
}

.property-single-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.property-single-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.property-single-feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

.property-single-feature-content {
    flex: 1;
}

.property-single-feature-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.property-single-feature-value {
    font-weight: 600;
    color: var(--secondary);
}

.property-single-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.property-single-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.property-single-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.property-single-btn.primary {
    background: var(--primary);
    color: white;
}

.property-single-btn.primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.property-single-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.property-single-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-modern);
}

.property-single-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
}

.property-single-amenities {
    margin-bottom: 2rem;
}

.property-single-amenities h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.property-single-amenities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.property-single-amenities li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-single-amenities li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.property-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.property-single-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-modern);
}

.property-single-widget h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary);
}

.property-contact-form .form-group {
    margin-bottom: 1rem;
}

.property-contact-form .form-label {
    font-family: var(--font-family-primary) !important;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.property-contact-form .form-control {
    border-radius: var(--border-radius2x);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.property-contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--primary-rgba-20);
}

.property-contact-form .btn-submit {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius2x);
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.property-contact-form .btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ==========================================
   PROPERTY PAGINATION
   ========================================== */

.property-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.property-pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.property-pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.property-pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.property-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   PROPERTY NOT FOUND
   ========================================== */

.property-not-found {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-modern);
}

.property-not-found-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.property-not-found-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.property-not-found-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.property-not-found-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.property-not-found-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.property-not-found-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.property-not-found-btn.primary {
    background: var(--primary);
    color: white;
}

.property-not-found-btn.primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
    .property-single-body {
        grid-template-columns: 1fr;
    }
    
    .property-single-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-item-content {
        padding: 1.5rem;
    }
    
    .property-single-title {
        font-size: 2rem;
    }
    
    .property-single-price {
        font-size: 1.5rem;
    }
    
    .property-search-form {
        padding: 1.5rem;
    }
    
    .property-filters {
        padding: 1.5rem;
    }
    
    .property-filter-options {
        flex-direction: column;
    }
    
    .property-filter-option {
        text-align: center;
    }
    
    .property-single-actions {
        flex-direction: column;
    }
    
    .property-single-btn {
        flex: none;
    }
    
    .property-single-features {
        grid-template-columns: 1fr;
    }
    
    .property-single-amenities ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .property-single {
        padding: 1rem 0.5rem;
    }
    
    .property-single-header {
        padding: 1.5rem;
    }
    
    .property-single-content {
        padding: 1.5rem;
    }
    
    .property-single-widget {
        padding: 1.5rem;
    }
    
    .property-single-main-image {
        height: 250px;
    }
    
    .property-single-title {
        font-size: 1.8rem;
    }
    
    .property-single-price {
        font-size: 1.3rem;
    }
    
    .property-single-actions {
        gap: 0.5rem;
    }
    
    .property-not-found {
        padding: 2rem 1rem;
    }
    
    .property-not-found-title {
        font-size: 1.5rem;
    }
    
    .property-not-found-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .property-not-found-btn {
        width: 100%;
        max-width: 300px;
    }
}
