/* ==============================================
   ESTILOS CENTRALIZADOS PARA TARJETAS NORA
   ============================================== */

/* Colores personalizados de NORA */
:root {
    --nora-primary-warm: #B27645;
    --nora-primary-dark: #2E2E2E;
    --nora-primary-green: #2D9442;
    --nora-warm-light: rgba(178, 118, 69, 0.1);
    --nora-dark-light: rgba(46, 46, 46, 0.1);
    --nora-green-light: rgba(45, 148, 66, 0.1);
}

.bg-nora-warm { background-color: var(--nora-primary-warm); }
.bg-nora-dark { background-color: var(--nora-primary-dark); }
.bg-nora-green { background-color: var(--nora-primary-green); }
.bg-nora-warm-light { background-color: var(--nora-warm-light); }
.bg-nora-dark-light { background-color: var(--nora-dark-light); }
.bg-nora-green-light { background-color: var(--nora-green-light); }

.text-nora-warm { color: var(--nora-primary-warm); }
.text-nora-dark { color: var(--nora-primary-dark); }
.text-nora-green { color: var(--nora-primary-green); }

.border-nora-warm { border-color: var(--nora-primary-warm); }
.border-nora-dark { border-color: var(--nora-primary-dark); }
.border-nora-green { border-color: var(--nora-primary-green); }

/* Colores legacy para compatibilidad */
.bg-primary-warm { background-color: var(--nora-primary-warm); }
.bg-primary-dark { background-color: var(--nora-primary-dark); }
.bg-primary-green { background-color: var(--nora-primary-green); }
.text-primary-warm { color: var(--nora-primary-warm); }
.text-primary-dark { color: var(--nora-primary-dark); }
.text-primary-green { color: var(--nora-primary-green); }

/* ==============================================
   TARJETA BASE
   ============================================== */
.nora-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.nora-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nora-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.nora-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nora-card:hover .nora-card-image img {
    transform: scale(1.05);
}

.nora-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nora-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--nora-primary-dark);
    margin-bottom: 8px;
}

.nora-card-location {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.nora-card-location i {
    color: var(--nora-primary-warm);
    margin-right: 6px;
    font-size: 0.75rem;
}

.nora-card-footer {
    padding: 12px 16px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.nora-card-footer i {
    margin-right: 4px;
    color: var(--nora-primary-warm);
}

/* Badges y elementos flotantes */
.nora-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.nora-badge-item {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    margin-right: 4px;
}

.nora-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.nora-heart-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nora-heart-btn:hover {
    background: white;
    transform: scale(1.1);
}

.nora-heart-icon {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.nora-heart-icon.active {
    color: #ef4444;
    fill: currentColor;
}

.nora-heart-icon:not(.active) {
    color: #6b7280;
    fill: none;
}

/* Precio flotante */
.nora-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 16px;
    z-index: 10;
}

.nora-price-main {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
}

.nora-price-secondary {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-left: 8px;
}

/* Características */
.nora-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.nora-feature {
    text-align: center;
}

.nora-feature-icon {
    color: var(--nora-primary-warm);
    font-size: 1rem;
    margin-bottom: 4px;
    display: block;
}

.nora-feature-value {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--nora-primary-dark);
    margin-bottom: 2px;
}

.nora-feature-label {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Tags */
.nora-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.nora-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.nora-tag i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.nora-tag-green {
    background: #dcfce7;
    color: #166534;
}

.nora-tag-blue {
    background: #dbeafe;
    color: #1e40af;
}

.nora-tag-yellow {
    background: #fef3c7;
    color: #92400e;
}

.nora-tag-gray {
    background: #f3f4f6;
    color: #374151;
}

.nora-tag-warm {
    background: rgba(178, 118, 69, 0.1);
    color: var(--nora-primary-warm);
}

/* ==============================================
   BOTONES
   ============================================== */
.nora-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-height: 36px;
}

.nora-btn i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.nora-btn-primary {
    background-color: transparent;
    color: var(--nora-primary-dark);
    border: 1px solid var(--nora-primary-dark);
}

.nora-btn-primary:hover {
    background-color: var(--nora-primary-dark);
    color: white;
    transform: translateY(-1px);
}

.nora-btn-secondary {
    background-color: transparent;
    color: var(--nora-primary-warm);
    border: 1px solid var(--nora-primary-warm);
}

.nora-btn-secondary:hover {
    background-color: var(--nora-primary-warm);
    color: white;
    transform: translateY(-1px);
}

.nora-btn-success {
    background-color: transparent;
    color: var(--nora-primary-green);
    border: 1px solid var(--nora-primary-green);
}

.nora-btn-success:hover {
    background-color: var(--nora-primary-green);
    color: white;
    transform: translateY(-1px);
}

.nora-btn-outline {
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.nora-btn-outline:hover {
    background-color: #f3f4f6;
    border-color: var(--nora-primary-warm);
    color: var(--nora-primary-warm);
    transform: translateY(-1px);
}

/* Botones con fondo sólido (legacy) */
.btn-ver-detalles {
    background-color: var(--nora-primary-dark) !important;
    color: white !important;
}
.btn-ver-detalles:hover {
    background-color: #1E1E1E !important;
}

.btn-agendar {
    background-color: var(--nora-primary-warm) !important;
    color: white !important;
}
.btn-agendar:hover {
    background-color: #A06B3E !important;
}

.btn-separar {
    background-color: var(--nora-primary-green) !important;
    color: white !important;
}
.btn-separar:hover {
    background-color: #258237 !important;
}

/* ==============================================
   VARIACIONES DE TARJETAS
   ============================================== */

/* Tarjeta compacta */
.nora-card-compact .nora-card-image {
    height: 150px;
}

.nora-card-compact .nora-card-content {
    padding: 16px;
}

/* Tarjeta destacada */
.nora-card-featured {
    border: 2px solid var(--nora-primary-warm);
    position: relative;
}

.nora-card-featured::before {
    content: "Destacada";
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--nora-primary-warm);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 20;
}

/* Tarjeta de favorito */
.nora-card-favorite {
    border-left: 4px solid #ef4444;
}

/* ==============================================
   ELEMENTOS ESPECÍFICOS DE PROPIEDADES
   ============================================== */

/* Estilos para las tarjetas de propiedades (compatibilidad) */
.propiedad-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.propiedad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.propiedad-imagen-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.propiedad-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.propiedad-card:hover .propiedad-imagen {
    transform: scale(1.05);
}

.propiedad-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.propiedad-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.propiedad-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.propiedad-match {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
}

.propiedad-botones {
    margin-top: auto;
}

/* Sección de precio en el contenido */
.nora-price-section {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.nora-price-section .nora-price-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nora-primary-warm);
    display: block;
}

.nora-price-section .nora-price-secondary {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.nora-price-details {
    display: flex;
    align-items: center;
}

.nora-pet-friendly {
    background-color: rgba(178, 118, 69, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(178, 118, 69, 0.2);
}

.nora-expandible-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(-10px);
}

.nora-card:hover .nora-expandible-info {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
}

/* ==============================================
   ANIMACIONES Y EFECTOS
   ============================================== */

/* Animación para favoritos */
.favorite-active {
    fill: #ef4444;
    stroke: #ef4444;
}

.heart-pulse {
    animation: heartBeat 1s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Estados de carga */
.nora-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==============================================
   UTILIDADES
   ============================================== */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    .nora-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nora-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .nora-btn {
        flex: none;
    }
    
    .propiedad-card {
        max-width: none;
    }
    
    .nora-card {
        max-width: none;
    }
} 