/**
 * Property Listing Cards - Client Requirements
 * 
 * Changes for property cards in advanced search/archive pages:
 * - Title: Orange by default, black on hover
 * - Price: Orange, clickable
 * - Description: Smaller text, truncated
 * - View Details: Orange, bold
 * - Trust badges and CTA button
 * 
 * Version: 1.0.0
 * Date: 2025-11-27
 */

/* =============================================================================
   PROPERTY CARD TITLE - Orange by default, Black on hover
============================================================================= */

/* TESTING - THIS SHOULD MAKE ALL TITLES RED */
.tfre-property-card .tfre-property-title a,
.tfre-property-card h3.tfre-property-title a,
.property-inner .tfre-property-title a,
.card-content .tfre-property-title a,
.tfre-property-title a {
    color: #ff0000 !important; /* RED FOR TESTING */
    transition: color 0.3s ease;
    background: yellow !important; /* YELLOW BACKGROUND FOR TESTING */
    padding: 5px !important;
}

.tfre-property-card .tfre-property-title a:hover,
.tfre-property-card h3.tfre-property-title a:hover,
.property-inner .tfre-property-title a:hover,
.card-content .tfre-property-title a:hover {
    color: #000000 !important; /* Black on hover */
    text-decoration: none;
}

/* =============================================================================
   PROPERTY CARD PRICE - Orange, clickable
============================================================================= */
.tfre-property-price,
.tfre-prop-price-value,
span.tfre-property-price {
    color: #ff8c00 !important; /* Orange */
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Make price a clickable link */
.tfre-property-price a,
.property-price-link {
    color: #ff8c00 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tfre-property-price:hover,
.tfre-property-price a:hover,
.property-price-link:hover {
    color: #000000 !important; /* Black on hover */
}

/* =============================================================================
   DESCRIPTION TEXT - Smaller, truncated
============================================================================= */
.tfre-property-card .description,
.property-card-description,
.card-content .description,
.property-excerpt {
    font-size: 5px !important;
    line-height: 1.5 !important;
    color: #666;
    margin-bottom: 15px;
    
    /* Truncate long descriptions */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View Details link at end of description */
.property-view-details {
    color: #ff8c00 !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline;
    margin-left: 5px;
}

.property-view-details:hover {
    color: #000000 !important;
    text-decoration: underline;
}

/* =============================================================================
   READ MORE LINK
============================================================================= */
.property-read-more {
    display: block;
    color: #ff8c00;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.property-read-more:hover {
    color: #000000;
    text-decoration: underline;
}

/* =============================================================================
   TRUST BADGES / BENEFITS SECTION
============================================================================= */
.property-trust-badges {
    background: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 3px solid #ff8c00;
}

.property-trust-badges ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.property-trust-badges li {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #333;
}

.property-trust-badges li:before {
    content: "✔";
    color: #ff8c00;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

.property-trust-badges li:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   START ENQUIRY BUTTON
============================================================================= */
.property-enquiry-button {
    display: inline-block;
    background: #ff8c00;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.property-enquiry-button:hover {
    background: #000000;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =============================================================================
   CARD LAYOUT ADJUSTMENTS
============================================================================= */
.tfre-property-card .card-content {
    padding: 20px;
}

/* Ensure proper spacing in property cards */
.tfre-property-card .property-information {
    margin-bottom: 12px;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
============================================================================= */
@media (max-width: 768px) {
    .tfre-property-card .description,
    .property-card-description {
        font-size: 12px !important;
        -webkit-line-clamp: 2; /* Show only 2 lines on mobile */
    }
    
    .property-trust-badges {
        padding: 12px;
    }
    
    .property-trust-badges li {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .property-enquiry-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}