/* ========================================
   PREMIUM Property Hub Card Styles
   Enhanced Luxury Design for Property Cards
   ======================================== */

/* Property Hub Card - Premium Edition */
.property-hub-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.property-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(44, 95, 124, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.property-hub-card:hover::before {
    opacity: 1;
}

.property-hub-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 60px rgba(212, 175, 55, 0.25);
}

/* Property Image - Premium */
.property-hub-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.property-hub-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.property-hub-card:hover .property-hub-image::after {
    opacity: 1;
}

.property-hub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.property-hub-image img.loaded {
    opacity: 1;
}

.property-hub-card:hover .property-hub-image img {
    transform: scale(1.15);
}

/* Property Badges - Premium */
.property-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 3;
}

.property-badges .badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: badgeSlideIn 0.6s ease-out backwards;
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-badges .badge:nth-child(2) {
    animation-delay: 0.1s;
}

.property-badges .badge:nth-child(3) {
    animation-delay: 0.2s;
}

.property-badges .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
}

.badge-waterfront {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
}

.badge-golden-visa {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
    color: white;
}

.badge-affordable {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(124, 58, 237, 0.95) 100%);
    color: white;
}

.badge-luxury {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(194, 127, 58, 0.95) 100%);
    color: white;
}

.badge-hot-deal {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
    animation: hotDealPulse 2s ease-in-out infinite;
}

@keyframes hotDealPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6);
    }
}

.badge-family-friendly {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    color: white;
}

/* Property Content - Premium */
.property-hub-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(180deg, white 0%, #fafafa 100%);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-location i {
    font-size: 14px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.property-hub-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a3c6d;
    margin-bottom: 18px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.property-hub-card:hover .property-hub-content h3 {
    color: #2c5f7c;
}

/* Property Details - Premium */
.property-details {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.15);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.detail-item:hover {
    color: #2c5f7c;
    transform: translateY(-2px);
}

.detail-item i {
    color: #d4af37;
    font-size: 17px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.2));
}

/* Property Price Row - Premium */
.property-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 15px;
}

.property-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-value {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a3c6d 0%, #2c5f7c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
}

.property-roi {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.property-roi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.property-roi i {
    font-size: 14px;
}

/* Property Button - Premium */
.btn-property-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #1a3c6d 0%, #2c5f7c 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(44, 95, 124, 0.3);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.btn-property-hub::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-property-hub:hover::before {
    width: 300px;
    height: 300px;
}

.btn-property-hub:hover {
    background: linear-gradient(135deg, #2c5f7c 0%, #1a3c6d 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(44, 95, 124, 0.4);
}

.btn-property-hub i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-property-hub span {
    position: relative;
    z-index: 1;
}

.btn-property-hub:hover i {
    transform: translateX(6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-hub-card {
        border-radius: 20px;
    }

    .property-hub-image {
        height: 240px;
    }

    .property-badges {
        top: 15px;
        left: 15px;
        gap: 8px;
    }

    .property-badges .badge {
        padding: 6px 14px;
        font-size: 10px;
    }

    .property-hub-content {
        padding: 24px;
    }

    .property-hub-content h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .property-details {
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .detail-item {
        font-size: 13px;
    }

    .detail-item i {
        font-size: 16px;
    }

    .property-price-row {
        margin-bottom: 20px;
    }

    .price-value {
        font-size: 20px;
    }

    .property-roi {
        padding: 8px 16px;
        font-size: 12px;
    }

    .btn-property-hub {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .property-hub-card {
        border-radius: 18px;
    }

    .property-hub-image {
        height: 220px;
    }

    .property-badges {
        top: 12px;
        left: 12px;
        gap: 6px;
        max-width: calc(100% - 24px);
    }

    .property-badges .badge {
        padding: 5px 12px;
        font-size: 9px;
    }

    .property-hub-content {
        padding: 20px;
    }

    .property-location {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .property-hub-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .property-details {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .detail-item {
        font-size: 12px;
    }

    .detail-item i {
        font-size: 15px;
    }

    .property-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }

    .price-value {
        font-size: 19px;
    }

    .property-roi {
        padding: 7px 14px;
        font-size: 11px;
    }

    .btn-property-hub {
        padding: 13px 22px;
        font-size: 13px;
        gap: 10px;
    }
}
