/* Rental Categories Widget for Elementor */

.rcw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rcw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
}

.rcw-card-link {
    color: inherit;
}

.rcw-card-link:hover,
.rcw-card-link:focus {
    text-decoration: none;
}

/* Background image layer */
.rcw-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transition: transform 0.6s ease;
}

.rcw-zoom .rcw-card:hover .rcw-card-bg {
    transform: scale(1.07);
}

/* Dark gradient overlay (colors controlled from the widget Style tab) */
.rcw-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.rcw-card-content {
    padding: 28px 24px;
}

.rcw-subtitle {
    color: #d4af37;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rcw-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px 0;
}

.rcw-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.rcw-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.rcw-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.rcw-card:hover .rcw-arrow {
    transform: translateX(5px);
}

/* Responsive fallbacks (Elementor responsive controls override these) */
@media (max-width: 1024px) {
    .rcw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .rcw-grid {
        grid-template-columns: 1fr;
    }

    .rcw-card {
        min-height: 320px;
    }
}
