/* =============================================================
   PROPERTY PRICE DISPLAY ENHANCEMENT
   ============================================================= */

/* Enhanced Price Box Styling */
.header-property-detail .box-price {
    position: relative;
    background: linear-gradient(135deg, #ED2027 0%, #c41e24 100%);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(237, 32, 39, 0.15);
    border: none;
    min-width: 200px;
    transition: all 0.3s ease;
}

.header-property-detail .box-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(237, 32, 39, 0.25);
}

.header-property-detail .box-price h7 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-property-detail .box-price .body-1 {
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
    opacity: 0.95;
    color: #ffffff;
}

/* Price Badge Indicator */
.header-property-detail .box-price::before {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: pulse-price 2s infinite;
}

@keyframes pulse-price {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Alternative Price Card Style */
.header-property-detail .box-price.price-card {
    background: #ffffff;
    color: #161e2d;
    border: 2px solid #ED2027;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header-property-detail .box-price.price-card h7 {
    color: #ED2027;
    text-shadow: none;
}

.header-property-detail .box-price.price-card .body-1 {
    color: #5c6368;
}

.header-property-detail .box-price.price-card::before {
    background: #ED2027;
}

/* Price with Currency Symbol */
.header-property-detail .box-price .currency-symbol {
    font-size: 18px;
    font-weight: 600;
    vertical-align: top;
    margin-right: 2px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .header-property-detail .content-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-property-detail .box-price {
        align-self: stretch;
        justify-content: center;
        min-width: unset;
        padding: 6px 6px;
    }
    
    .header-property-detail .box-price h7 {
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    .header-property-detail {
        margin: 0 -15px 20px;
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .header-property-detail .content-top {
        padding-bottom: 20px;
        margin-bottom: 20px;
        gap: 12px;
    }
    
    .header-property-detail .content-bottom {
        gap: 15px;
    }
    
    .header-property-detail .box-price {
        padding: 4px 4px;
        border-radius: 8px;
    }
    
    .header-property-detail .box-price h7 {
        font-size: 18px;
    }
    
    .header-property-detail .box-price .body-1 {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .header-property-detail .box-price {
        padding: 6px 6px;
        text-align: center;
    }
    
    .header-property-detail .box-price h7 {
        font-size: 20px;
    }
}

/* =============================================================
   PRICE TOOLTIP ENHANCEMENT
   ============================================================= */

.price-tooltip {
    position: relative;
    cursor: help;
}

.price-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #161e2d;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.price-tooltip::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #161e2d;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.price-tooltip:hover::after,
.price-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* =============================================================
   PRICE COMPARISON HIGHLIGHT
   ============================================================= */

.price-highlight {
    position: relative;
}

.price-highlight.price-good::after {
    content: '💰 Giá tốt';
    position: absolute;
    top: -8px;
    right: -10px;
    background: #28a745;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    transform: rotate(15deg);
    animation: bounce-price 1s ease-in-out 2;
}

.price-highlight.price-hot::after {
    content: '🔥 Hot';
    background: #fd7e14;
}

.price-highlight.price-new::after {
    content: '✨ Mới';
    background: #6f42c1;
}

@keyframes bounce-price {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(15deg); }
    40% { transform: translateY(-8px) rotate(15deg); }
    60% { transform: translateY(-4px) rotate(15deg); }
}

/* =============================================================
   STICKY PRICE BAR (Mobile)
   ============================================================= */

.sticky-price-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ED2027 0%, #c41e24 100%);
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-price-bar.active {
    transform: translateY(0);
}

.sticky-price-bar .price-text {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.sticky-price-bar .price-period {
    font-size: 12px;
    opacity: 0.9;
    margin-left: 4px;
}

.sticky-price-bar .contact-btn {
    background: #ffffff;
    color: #ED2027;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sticky-price-bar .contact-btn:hover {
    background: #f8f9fa;
    color: #ED2027;
    transform: scale(1.05);
}

/* Show sticky bar only on mobile when scrolled */
@media (max-width: 767.98px) {
    .sticky-price-bar.show {
        transform: translateY(0);
    }
    
    body.sticky-price-active {
        padding-bottom: 70px;
    }
}

@media (min-width: 768px) {
    .sticky-price-bar {
        display: none;
    }
}