.rfw-widget-wrapper {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-bottom: 40px;
    width: 100%;
}

.rfw-widget-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rfw-widget-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #e2e8f0;
    margin-left: 15px;
}

.rfw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

/* Card General */
.rfw-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: #1e293b !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    outline: none;
}

.rfw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Listings Card specific */
.rfw-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
}

.rfw-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rfw-card:hover .rfw-card-image {
    transform: scale(1.05);
}

.rfw-badge-pro {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(245, 124, 0, 0.3);
    z-index: 2;
}

.rfw-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rfw-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rfw-meta-tag {
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.rfw-meta-location {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.rfw-card-title-text {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.rfw-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Price Badge / Pill styling */
.rfw-price-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 13px;
}

.rfw-price-pill.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.rfw-price-lbl {
    font-size: 11px;
    font-weight: 500;
    margin-right: 2px;
}

.rfw-price-val {
    font-size: 16px;
    font-weight: 800;
}

.rfw-price-per {
    font-size: 11px;
    opacity: 0.8;
}

/* Request Card specific */
.rfw-request-card {
    padding: 20px;
}

.rfw-request-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.rfw-request-avatar-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #eff6ff;
    flex-shrink: 0;
    background: #dbeafe;
}

.rfw-request-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rfw-request-user-info {
    display: flex;
    flex-direction: column;
}

.rfw-request-user-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.rfw-request-meta-small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.rfw-request-dot {
    font-size: 8px;
    color: #94a3b8;
}

.rfw-request-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 15px;
}

.rfw-request-location {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.rfw-request-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 63px;
}

.rfw-request-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.rfw-no-results {
    color: #64748b;
    font-size: 15px;
    font-style: italic;
    text-align: center;
    padding: 30px 0;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}

/* Responsive Grid styling */
@media (max-width: 991px) {
    .rfw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .rfw-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rfw-widget-title {
        font-size: 18px;
    }
}

.rfw-card-availability {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Luxurious Featured Card Styling for Homepage Widgets */
.rfw-card.rfw-listing-card.is-featured {
    border-color: #fbbf24;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf4 100%);
}

.rfw-card.rfw-listing-card.is-featured:hover {
    box-shadow: 0 20px 30px rgba(251, 191, 36, 0.15), 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #f59e0b;
}

.rfw-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.4);
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}
