/**
 * Listeo Price Bar Styles
 * Adds green CTA bar at bottom of listing cards
 */

/* ========================================
   MAIN PRICE BAR CONTAINER
   ======================================== */

.listeo-price-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #4fba3a !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08) !important;
    z-index: 10 !important;
    min-height: 40px !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: background 0.25s ease !important;
}

/* Ensure parent card has relative positioning and space for the bar */
.listing-card-container-nl {
    position: relative !important;
}

.listing-card-nl {
    position: relative !important;
    padding-bottom: 44px !important; /* Make room for the green bar */
    overflow: visible !important; /* Prevent cutting off the bar */
}

/* ========================================
   CONTENT WRAPPER
   ======================================== */

.listeo-price-bar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

/* ========================================
   CTA LABEL
   ======================================== */

.listeo-price-bar__label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.2px !important;
    display: block !important;
    flex: 1 1 auto !important;
    text-align: left !important;
}

/* ========================================
   PRICE SECTION
   ======================================== */

.listeo-price-bar__price-wrapper {
    position: relative !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 16px !important;
    background: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: inset 0 0 0 1px rgba(79, 186, 58, 0.35);
}

.listeo-price-bar__price-wrapper::before {
    content: "" !important;
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
}

.listeo-price-bar__price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c7a3f !important; /* Host Suite style green for the amount */
    line-height: 1.1 !important;
    white-space: nowrap !important;
    display: block !important;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.listing-card-container-nl:hover .listeo-price-bar,
.listeo-price-bar:hover {
    background: #45a834 !important;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.12) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet view (768px and below) */
@media (max-width: 768px) {
    .listeo-price-bar {
        padding: 6px 14px;
        min-height: 36px;
    }
    
    .listeo-price-bar__content {
        gap: 12px;
    }
    
    .listeo-price-bar__label {
        font-size: 14px;
    }
    
    .listeo-price-bar__price {
        font-size: 20px;
    }
    
    .listeo-price-bar__period {
        font-size: 11px;
    }
}

/* Mobile view (480px and below) */
@media (max-width: 480px) {
    .listeo-price-bar {
        padding: 6px 12px;
        min-height: 34px;
    }
    
    .listeo-price-bar__content {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .listeo-price-bar__label {
        font-size: 13px;
        text-align: center;
    }
    
    .listeo-price-bar__price-wrapper {
        align-items: center;
    }
    
    .listeo-price-bar__price {
        font-size: 18px;
    }
    
    .listeo-price-bar__period {
        font-size: 11px;
    }
    
    .listing-card-nl {
        padding-bottom: 50px !important; /* More space on mobile due to stacking */
    }
}

/* ========================================
   COMPATIBILITY & EDGE CASES
   ======================================== */

/* Ensure bar stays above image overlays but below modals */
.listing-card-nl .listing-image-container-nl {
    z-index: 1;
}

/* Maintain proper stacking with bookmark/favorite buttons */
.listing-card-nl .like-icon {
    z-index: 5;
}

/* Ensure slider arrows stay clickable */
.listing-card-nl .slider-arrow-nl {
    z-index: 3;
}

/* Handle long listing titles pushing content down */
.listing-card-nl .listing-details-nl {
    min-height: auto; /* Prevent fixed height conflicts */
}

/* Featured/Sponsored badges should stay on top */
.listing-card-nl .listing-badges-nl {
    z-index: 11;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .listeo-price-bar {
        background: #27ae60 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
