/* ============================================
   WooRent Elementor Widget Styles
   ============================================ */

/* --- Grid Layout --- */
.woorent-el-wrapper {
    display: block;
}

.woorent-el-grid {
    display: grid !important;
    gap: 20px;
}

.woorent-el-cols-1 { grid-template-columns: repeat(1, 1fr) !important; }
.woorent-el-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.woorent-el-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.woorent-el-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
.woorent-el-cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
.woorent-el-cols-6 { grid-template-columns: repeat(6, 1fr) !important; }

/* --- List Layout --- */
.woorent-el-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
}

.woorent-el-list .woorent-el-card .woorent-el-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px;
}

.woorent-el-list .woorent-el-thumb {
    width: 240px;
    min-height: 160px;
    flex-shrink: 0 !important;
}

.woorent-el-list .woorent-el-body {
    flex: 1 !important;
    padding: 0;
}

/* --- Card --- */
.woorent-el-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    float: none !important;
    clear: none !important;
}

.woorent-el-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.woorent-el-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

/* --- Thumbnail --- */
.woorent-el-thumb {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 16 / 10;
}

.woorent-el-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Badges --- */
.woorent-el-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.woorent-el-badge-rent {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #dbeafe;
    color: #1e40af;
}

.woorent-el-badge-buy {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #dcfce7;
    color: #166534;
}

.woorent-el-care-type {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    background: #f3e8ff;
    color: #7c3aed;
}

/* --- Body --- */
.woorent-el-body {
    padding: 14px;
}

.woorent-el-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* --- Pricing --- */
.woorent-el-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.woorent-el-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.woorent-el-period {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.woorent-el-sale {
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
}

/* --- Location --- */
.woorent-el-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.woorent-el-location svg {
    flex-shrink: 0;
    color: #9ca3af;
}

/* --- Carousel --- */
.woorent-el-carousel {
    position: relative;
    overflow: hidden;
}

.woorent-el-carousel {
    position: relative;
    overflow: hidden;
}

.woorent-el-carousel .woorent-el-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
}

.woorent-el-carousel .woorent-el-slide {
    flex: 0 0 auto;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.woorent-el-carousel .woorent-el-slide .woorent-el-card {
    height: 100%;
}

.woorent-el-carousel .woorent-el-slide .woorent-el-card .woorent-el-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Arrows */
.woorent-el-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.woorent-el-carousel-arrow:hover {
    background: #f9fafb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.woorent-el-carousel-arrow.woorent-el-arrow-disabled {
    opacity: 0.3;
    cursor: default;
}

.woorent-el-carousel-arrow-prev {
    left: 0;
}

.woorent-el-carousel-arrow-next {
    right: 0;
}

.woorent-el-carousel-arrow svg {
    width: 18px;
    height: 18px;
    color: #374151;
}

/* Dots */
.woorent-el-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.woorent-el-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s;
}

.woorent-el-carousel-dot.active {
    background: #059669;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .woorent-el-cols-4,
    .woorent-el-cols-5,
    .woorent-el-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .woorent-el-list .woorent-el-thumb {
        width: 200px;
        min-height: 140px;
    }
}

@media (max-width: 768px) {
    .woorent-el-cols-3,
    .woorent-el-cols-4,
    .woorent-el-cols-5,
    .woorent-el-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    .woorent-el-list .woorent-el-link {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .woorent-el-list .woorent-el-thumb {
        width: 100%;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .woorent-el-cols-2,
    .woorent-el-cols-3,
    .woorent-el-cols-4,
    .woorent-el-cols-5,
    .woorent-el-cols-6 {
        grid-template-columns: 1fr;
    }
}
