/* ============================================================
   Luxury Properties Grid Widget — Frontend Styles
   ============================================================ */

/* --- Wrapper --- */
.lgw-grid-wrapper {
    width: 100%;
    background: #151515;
    box-sizing: border-box;
}

/* --- Grid --- */
.lgw-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

/* --- Card --- */
.lgw-card {
    position: relative;
    overflow: hidden;
    height: 370px;
    background: #1a1a1a;
    box-sizing: border-box;
    cursor: pointer;
}

/* --- Card Link (fills entire card) --- */
.lgw-card-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

/* --- Background image layer --- */
.lgw-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform, filter;
    transition: transform 500ms ease, filter 500ms ease;
}

/* --- Overlay (per-item or hover tint) --- */
.lgw-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 500ms ease;
    z-index: 1;
}

/* --- Gradient layer (always present) --- */
.lgw-card-gradient {
    --grad-start: rgba(0, 0, 0, 0);
    --grad-end:   rgba(0, 0, 0, 0.75);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, var(--grad-start), var(--grad-end));
    z-index: 2;
    pointer-events: none;
}

/* --- Content --- */
.lgw-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    z-index: 3;
    box-sizing: border-box;
}

/* --- Tag --- */
.lgw-tag {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4a844;
    margin-bottom: 5px;
    line-height: 1.2;
}

/* --- Title --- */
.lgw-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
    padding: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* --- Subtitle --- */
.lgw-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    padding: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* ============================================================
   HOVER EFFECTS
   ============================================================ */

/* Zoom */
.lgw-hover-zoom .lgw-card:hover .lgw-card-bg {
    transform: scale(1.07);
}

/* Brighten */
.lgw-hover-brighten .lgw-card:hover .lgw-card-bg {
    filter: brightness(1.15);
}

/* Darken */
.lgw-hover-darken .lgw-card:hover .lgw-card-overlay {
    background: rgba(0, 0, 0, 0.35) !important;
}

/* ============================================================
   ARROW BUTTON
   ============================================================ */

.lgw-arrow-btn {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #d4a844;
    border-radius: 50%;
    border: 0px solid transparent;
    cursor: pointer;
    pointer-events: auto;
    box-sizing: border-box;
    /* Hidden by default — shown on card hover */
    opacity: 0;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        background 0.25s ease;
}

.lgw-arrow-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    fill: none;
    display: block;
    flex-shrink: 0;
    transition: stroke 0.25s ease;
}

/* ---- Entrance animations (initial / hidden state) ---- */

/* Slide up */
.lgw-arrow-slide-up {
    transform: translateY(12px);
}
/* Fade */
.lgw-arrow-fade {
    transform: none;
}
/* Scale */
.lgw-arrow-scale {
    transform: scale(0.6);
}
/* Slide from right */
.lgw-arrow-slide-left {
    transform: translateX(14px);
}

/* ---- Shown on card hover ---- */
.lgw-card:hover .lgw-arrow-btn {
    opacity: 1;
}

/* slide-up: rise into place */
.lgw-card:hover .lgw-arrow-slide-up {
    transform: translateY(0);
}
/* scale: pop into place */
.lgw-card:hover .lgw-arrow-scale {
    transform: scale(1);
}
/* slide-left: slide into place */
.lgw-card:hover .lgw-arrow-slide-left {
    transform: translateX(0);
}
/* fade: already transform:none */
.lgw-card:hover .lgw-arrow-fade {
    opacity: 1;
}

/* ---- Arrow button self-hover (micro-interaction) ---- */
.lgw-arrow-btn:hover {
    background: #ffffff;
}
.lgw-arrow-btn:hover svg {
    stroke: #d4a844;
}

/* ---- Naked style — no background ---- */
.lgw-arrow-btn[style*="border-radius:0"] {
    background: transparent !important;
    box-shadow: none !important;
}

/* ============================================================
   ELEMENTOR EDITOR — keep things readable while editing
   ============================================================ */
.elementor-editor-active .lgw-card {
    min-height: 180px;
}

/* ============================================================
   RESPONSIVE FALLBACKS (Elementor overrides these via JS 
   but these act as safe defaults)
   ============================================================ */
@media (max-width: 1024px) {
    .lgw-card {
        height: 300px;
    }
    .lgw-title {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .lgw-card {
        height: 260px;
    }
    .lgw-title {
        font-size: 16px;
    }
    .lgw-tag {
        font-size: 9px;
    }
}
