/* =====================================================
   Easier Management — Location Grid (v2)
   Premium overlay cards with hover arrow
   ===================================================== */

.elg-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.elg-section {
    margin-bottom: 60px;
}

.elg-section:last-child {
    margin-bottom: 0;
}

/* --- Heading --- */
.elg-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    letter-spacing: -0.2px;
}

/* --- Divider --- */
.elg-divider {
    margin-bottom: 28px;
}
.elg-divider span {
    display: block;
    width: 48px;
    height: 3px;
    background: #417B5A;
    border-radius: 2px;
}

/* --- Grid --- */
.elg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Card --- */
.elg-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.elg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(65, 123, 90, 0.22);
}

/* --- Card Image --- */
.elg-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.5s ease;
}

.elg-card:hover .elg-card-img {
    transform: scale(1.06);
}

.elg-card-img--empty {
    background: linear-gradient(135deg, #d4ddd7, #a8b8ad);
}

/* --- Gradient overlay --- */
.elg-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 20px 18px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}

/* --- Stretched link (only text is <a>, whole card is clickable) --- */
.elg-card-link {
    text-decoration: none !important;
    flex: 1;
}

.elg-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --- Title (on image) --- */
.elg-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
    transition: color 0.25s ease;
}

.elg-card:hover .elg-card-title {
    color: #a8dbbf;
}

/* Arrow sits above the stretched link */
.elg-card-arrow {
    position: relative;
    z-index: 2;
}

/* --- Arrow icon --- */
.elg-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.elg-card:hover .elg-card-arrow {
    opacity: 1;
    transform: translateX(0);
    background: #417B5A;
    color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .elg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .elg-heading {
        font-size: 22px;
    }
}

@media (max-width: 540px) {
    .elg-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .elg-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .elg-card-overlay {
        padding: 40px 16px 14px 16px;
    }

    .elg-card-arrow {
        opacity: 1;
        transform: translateX(0);
        background: #417B5A;
    }
}
