/* 지도 미니맵 — 목록 카드 유료 광고 표시 (지도 마커 AD 뱃지와 별도) */
.store_card-ad-label {
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px 0 0;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #949494;
    background: #f5f5f5;
    border: 1px solid #e4e4e4;
}

.store_card-name .store_card-ad-label,
.store_card-designer .store_card-ad-label {
    position: relative;
    top: -1px;
}

.store_card--ad {
    /* 네이버식 — 테두리 강조는 최소, 광고 뱃지로 구분 */
}

/* 지도 마커 — 상호 라벨 앞 점 */
.custom-label-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #e74c3c;
    flex-shrink: 0;
}

.custom-label-dot--geo-ad {
    background: #7452f6;
}

.custom-label-dot--selected {
    background: #fff;
}

/* 핀+상호 한 덩어리 (CustomOverlay 단일 스택) */
.map-marker-pin-label-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 0;
    cursor: pointer;
    touch-action: manipulation;
}

.map-marker-pin-img {
    display: block;
    width: 20px;
    height: auto;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
}

/* 지도 상호 — 핀 아래 1줄 라벨 */
.map-marker-label-wrap {
    display: block;
    min-width: 1px;
    min-height: 1px;
    padding-top: 10px;
    line-height: 0;
    text-align: center;
    pointer-events: none;
}

.map-marker-label-wrap--stacked {
    padding-top: 2px;
}

.map-marker-label-wrap .custom-label {
    pointer-events: auto;
}

.custom-label.custom-label--map-name {
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.03em;
    color: #222;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* 유료 상호 — 흰 박스 + 은은한 보라 테두리 (z-index는 CustomOverlay에서 제어) */
.custom-label.custom-label--geo-ad.custom-label--map-name {
    position: relative;
    background: rgba(252, 251, 255, 0.96);
    border-color: rgba(116, 82, 246, 0.2);
    box-shadow: 0 1px 4px rgba(116, 82, 246, 0.1);
}

/* 미니맵 — 검색 결과 매장 이벤트 슬라이드 (주변 전문 디자이너 ↔ 실시간 랭킹 사이) */
.mm-ad-event-wrap {
    margin: 12px 12px 8px;
    padding: 0;
}

.mm-ad-event-layout {
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-areas:
        "aside heading"
        "aside carousel";
    column-gap: 10px;
    row-gap: 10px;
    align-items: start;
    margin-top: 20px;
}

.mm-ad-event-aside {
    grid-area: aside;
    grid-row: 1 / 3;
    flex: 0 0 64px;
    width: 64px;
    line-height: 0;
    align-self: start;
}

.mm-ad-event-aside-img {
    display: block;
    width: 64px;
    height: auto;
    object-fit: contain;
}

.mm-ad-event-heading {
    grid-area: heading;
    margin: 0;
    padding: 0;
    align-self: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #171b2e;
    text-align: left;
}

.mm-ad-event-carousel {
    grid-area: carousel;
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    width: 100%;
    min-width: 0;
}

@media (max-width: 600px) {
    .mm-ad-event-wrap {
        margin-left: 12px;
        margin-right: 12px;
    }

    .mm-ad-event-layout {
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "aside heading"
            "carousel carousel";
        row-gap: 12px;
    }

    .mm-ad-event-aside {
        grid-row: auto;
        align-self: center;
    }

    .mm-ad-event-heading {
        font-size: 18px;
        align-self: center;
    }

    .mm-ad-event-carousel {
        width: 100%;
    }
}

.mm-ad-event-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
}

.mm-ad-event-track {
    display: flex;
    gap: 10px;
    align-items: stretch;
    min-height: 96px;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding-right: 2px;
}

.mm-ad-event-card {
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    gap: 0;
    padding: 0;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    min-height: 96px;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.mm-ad-event-card--link:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .06);
}

.mm-ad-event-thumb {
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    aspect-ratio: 1;
    min-width: 96px;
    max-width: 120px;
    border-radius: 15px 0 0 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

.mm-ad-event-thumb--empty {
    background: linear-gradient(135deg, #f9fafb 0%, #eef2ff 100%);
}

.mm-ad-event-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mm-ad-event-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 1;
}

.mm-ad-event-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 14px 12px 12px;
}

.mm-ad-event-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;    
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    text-align: left;
}

.mm-ad-event-shop {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #6b7280;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-ad-event-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.mm-ad-event-carousel:hover .mm-ad-event-nav:not(.is-hidden) {
    opacity: 1;
    pointer-events: auto;
}

.mm-ad-event-nav-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.mm-ad-event-nav-layer .mm-ad-event-nav {
    pointer-events: none;
}

.mm-ad-event-carousel:hover .mm-ad-event-nav-layer .mm-ad-event-nav:not(.is-hidden) {
    pointer-events: auto;
}

.mm-ad-event-prev {
    left: 2%;
}

.mm-ad-event-next {
    right: 2%;
}

.mm-ad-event-nav.is-hidden {
    display: none !important;
}

@media (hover: none) {
    .mm-ad-event-carousel .mm-ad-event-nav:not(.is-hidden) {
        opacity: 1;
        pointer-events: auto;
    }
}
