/* Custom CSS for Featured Listings UI Improvements */

/* Global Section Spacing */
section {
    padding: 3rem 0; /* Reduced from typical py-5 (4.5rem) */
}
section.section-padding {
    padding: 3rem 0;
}

/* 1. Align Image (Standardize height) */
.listing-top-item img.img-fluid {
    height: 220px; /* Slightly reduced for better proportion */
    width: 100%;
    object-fit: cover;
}

/* 2. Vertical Rhythm & Typography */
/* Title */
.listing-middle-item .listingTitle {
    min-height: 40px; /* Tighter */
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.listing-middle-item .listingTitle a.titleLink {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2D3748;
    text-decoration: none;
    line-height: 1.3;
}

/* Description / Meta */
.listing-middle-item p {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.5;
    min-height: 48px; /* Tighter constraints */
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines for cleanliness */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. Icons & Alignment */
.listing-info-details .d-flex {
    align-items: center !important; 
    gap: 12px;
}
.address-truncate {
    max-width: 150px;
    vertical-align: middle;
}
.list-calls, .list-distance {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    align-items: center;
}
.list-calls i, .list-distance i {
    font-size: 1rem;
    color: #9b26b6; /* Brand color */
    margin-right: 6px !important;
    position: relative;
    top: -1px; /* Optical alignment */
}

/* 4. Badges */
.badge-featured-custom {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: linear-gradient(45deg, #FFD700, #FDB931);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px; /* Less rounded for modern look */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.top-left-badges {
    top: 10px !important;
    left: 10px !important;
    gap: 6px;
}
.badge {
    padding: 5px 8px;
    font-weight: 600;
    border-radius: 4px;
}

/* 5. Heart Icon */
.listing-top-item .bookmarkList {
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #e53e3e;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.listing-top-item .bookmarkList:hover {
    background: #e53e3e;
    color: #fff;
    transform: scale(1.1);
}
.listing-top-item .position-absolute.end-0.bottom-0 {
    bottom: 10px !important;
    right: 10px !important;
}

/* 6. Card Visual Hierarchy */
.singlelisting-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px; /* Smoother corners */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.singlelisting-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #b794f4; /* Subtle highlight */
}

.listing-middle-item {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.listing-avatar {
    margin-top: -40px; /* Pull avatar up into image */
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.listing-avatar img {
    border: 3px solid #fff;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-footer-item {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f7fafc;
    background: #fcfcfc;
}

/* 7. Category & Ratings */
.catIcon i {
    color: #9b26b6;
    font-size: 1rem;
}
.catTitle {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}
.ratingAvarage {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.ratingAvarage.excellent { background-color: #48bb78; color: white; }
.ratingAvarage.good { background-color: #4299e1; color: white; }
.ratingAvarage.midium { background-color: #ecc94b; color: white; }

.overallrates {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* 8. Separators & Rhythm */
.secHeading-wrap {
    margin-bottom: 1.5rem;
}
.sectionHeading {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}
/* Subtle underline for headings */
.sectionHeading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #9b26b6;
    margin: 8px auto 0;
    border-radius: 2px;
}
.secHeading-wrap p {
    font-size: 1.05rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Optional: Subtle background for contrast between sections if they are white */
section:nth-child(even) {
    background-color: #fcfdfe; /* Very subtle tint */
}

/* 9. Refined Badges (Open/Close) */
.listOpen {
    background-color: #48bb78 !important; /* Green */
    color: #fff !important;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}
.listClose {
    background-color: #e53e3e !important; /* Red */
    color: #fff !important;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 10. Soften Hero Search Shadow */
.heroSearch.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* 11. Normalize Section Titles */
.sectionHeading {
    font-family: 'Inter', sans-serif; /* Ensure clear font if available, or fallback */
    letter-spacing: -0.02em;
}
