/* Property Cards System */

.property-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: auto;
    min-height: 500px;
}

.property-tag.status-available {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.35);
}

.property-tag.status-sold {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.35);
}

.property-tag.status-reserved {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.4);
}

.property-tag.status-rented {
    background: rgba(59, 130, 246, 0.12);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.35);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}

.property-category.mais-procurados {
    background: linear-gradient(135deg, var(--tenant-accent, #d4af37) 0%, var(--tenant-accent-light, #f1d366) 100%);
}

.property-category.lancamentos {
    background: linear-gradient(135deg, #2a6496 0%, #4a90e2 100%);
}

.property-category.beira-mar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.property-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-title h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location i {
    color: var(--tenant-accent, #d4af37);
}

.property-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.feature i {
    color: var(--tenant-accent, #d4af37);
    text-align: center;
}

.property-price {
    text-align: center;
    margin: 10px 0;
}

.property-price h3 {
    color: var(--tenant-accent, #d4af37);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.price-type {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

.property-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-contact {
    flex: 1;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-favorite {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-favorite:hover {
    background: #fff5f5;
    border-color: var(--tenant-accent, #d4af37);
    color: var(--tenant-accent, #d4af37);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--tenant-accent, #d4af37);
    margin-bottom: 2rem;
    opacity: 0.7;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.empty-state-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.empty-state-cta {
    background: linear-gradient(135deg, var(--tenant-accent, #d4af37) 0%, var(--tenant-accent-light, #f1d366) 100%);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.empty-state-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.3);
}

/* Loading State */
.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #999;
    font-size: 1.1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loading-placeholder i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .property-card {
        min-height: auto;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 15px;
        gap: 12px;
    }
    
    .property-title h3 {
        font-size: 1.1rem;
    }
    
    .property-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .property-price h3 {
        font-size: 1.3rem;
    }
    
    .btn-contact {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-favorite {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .property-actions {
        flex-direction: column;
    }
    
    .btn-favorite {
        width: 100%;
        height: 45px;
    }
}

/* Property Details Links */

.property-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

/* Premium Card Enhancements */
.premium-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    animation: pulse 2s infinite;
}

.property-badge.badge-lancamentos {
    background: linear-gradient(135deg, #2a6496, #4a90e2);
}

.property-badge.badge-mais-procurados {
    background: linear-gradient(135deg, var(--tenant-accent, #d4af37), var(--tenant-accent-light, #f1d366));
    color: #1f2937;
}

.property-badge.badge-beira-mar {
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

.property-badge.badge-litoral-sul {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}

.property-badge.badge-litoral-norte {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.property-discount {
    position: absolute;
    top: 50px;
    right: 12px;
    background: linear-gradient(135deg, #2ed573, #7bed9f);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 3;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.property-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.highlight-item {
    background: linear-gradient(135deg, var(--tenant-accent, #d4af37), var(--tenant-accent-light, #f1d366));
    color: #1a1a2e;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.highlight-item i {
    font-size: 0.7rem;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.old-price {
    color: #999;
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.current-price {
    color: var(--tenant-accent, #d4af37);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--tenant-accent, #d4af37), var(--tenant-accent-light, #f1d366));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-link:hover {
    color: var(--tenant-accent, #d4af37);
}

.property-code {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: normal;
    display: block;
    margin-top: 0.25rem;
}

.btn-details {
    background: linear-gradient(135deg, var(--tenant-accent, #d4af37) 0%, var(--tenant-accent-light, #f1d366) 100%);
    color: #1a1a2e;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.4);
    color: #1a1a2e;
    text-decoration: none;
}

/* ========================================
   SPECIFIC CARD TYPES STYLING
======================================== */

/* PREMIUM CARD (Lançamentos) */
.premium-card {
    background: linear-gradient(135deg, rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.1) 0%, rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.05) 100%);
    border: 2px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.3);
    box-shadow: 0 8px 25px rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.2);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.3);
    border-color: rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.5);
}

/* POPULAR CARD (Mais Procurados) */
.popular-card {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    border: 2px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

.popular-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.3);
    border-color: rgba(243, 156, 18, 0.5);
}

.popular-card .property-views {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(243, 156, 18, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* READY CARD (Pronto para Morar) */
.ready-card {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border: 2px solid rgba(39, 174, 96, 0.3);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
}

.ready-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(39, 174, 96, 0.3);
    border-color: rgba(39, 174, 96, 0.5);
}

.ready-card .property-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* CATEGORIES STYLING */
.property-category.pronto-morar {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* ========================================
   CARD SYSTEM - PRIMARY/SECONDARY INFO
======================================== */

.property-card {
    background: #ffffff;
    border: 1px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.35);
    box-shadow: 0 10px 26px rgba(9, 26, 51, 0.12);
    min-height: 0;
}

.property-content {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
}

.property-title {
    color: #0e2a47;
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0;
}

.property-location {
    color: #405264;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: #22384e;
    font-size: 0.92rem;
}

.property-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.property-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.property-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.66rem;
    background: rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.14);
    border: 1px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.35);
    color: #6c4b08;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.property-features-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.property-feature-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    color: #3a6b8c;
    background: rgba(58, 107, 140, 0.08);
    border: 1px solid rgba(58, 107, 140, 0.18);
    border-radius: 6px;
    padding: 0.22rem 0.55rem;
    font-weight: 500;
    line-height: 1;
}

.property-feature-highlight i {
    font-size: 0.68rem;
    color: #3a6b8c;
    opacity: 0.75;
}

.property-feature-more {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    color: #8a97a4;
    font-weight: 600;
    padding: 0.22rem 0.45rem;
    line-height: 1;
}

.property-price {
    color: #0f8f4b;
    font-size: 1.6rem;
}

.property-price-type {
    margin: 0.2rem 0 0;
    color: #6a7a88;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.property-card-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 0.62rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.48);
    background: linear-gradient(135deg, #0e2a47 0%, #163b61 100%);
    color: #f4d775;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.property-card-details-btn:hover {
    background: linear-gradient(135deg, #153556 0%, #1c4670 100%);
    box-shadow: 0 8px 18px rgba(17, 51, 84, 0.26);
    transform: translateY(-1px);
    color: #ffe9a7;
}

.property-card-details-btn:active {
    transform: translateY(0);
}

.property-card-details-btn:focus-visible {
    outline: 2px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.6);
    outline-offset: 2px;
}

.properties-search-inline {
    margin-top: 0.9rem;
}

.properties-search-inline input {
    width: min(520px, 100%);
    padding: 0.72rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.45);
    background: #fffef9;
    color: #0f2944;
    font-size: 0.92rem;
}

.properties-search-inline input:focus {
    outline: none;
    border-color: var(--tenant-accent, #d4af37);
    box-shadow: 0 0 0 3px rgba(var(--tenant-accent-rgb, 212, 175, 55), 0.18);
}