/* ─────────────────────────────────────────────────────────
   Lazy Map / Lazy Embed — Styles
   ───────────────────────────────────────────────────────── */

/* Wrapper iframe đang chờ load */
.lazy-embed {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skeleton shimmer khi đang chờ */
.lazy-embed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #f1f5f9 25%,
        #e2e8f0 50%,
        #f1f5f9 75%
    );
    background-size: 200% 100%;
    animation: lazy-shimmer 1.5s infinite;
}

.lazy-embed--loaded::before {
    display: none;
}

@keyframes lazy-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Click-to-load Map ─── */
.lazy-map {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: #e2e8f0;
    cursor: pointer;
}

.lazy-map__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(2px) brightness(0.85);
    transition: filter 0.3s;
}

.lazy-map:hover .lazy-map__thumb {
    filter: blur(1px) brightness(0.8);
}

.lazy-map__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.lazy-map__icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.lazy-map__icon svg {
    width: 26px;
    height: 26px;
    color: #ea4335;
}

.lazy-map__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lazy-map__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}

.lazy-map__label {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
