.mjy-map-apt-card {
    position: relative;
    isolation: isolate;
    width: min(320px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid #dce3ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 40px rgba(23, 32, 51, 0.22);
    color: #172033;
    font-family: 'Noto Sans KR', sans-serif;
    box-sizing: border-box;
    cursor: default;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.mjy-map-apt-card * {
    box-sizing: border-box;
}

.mjy-map-apt-close {
    position: absolute;
    z-index: 10;
    top: 2px;
    right: 2px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #506078;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mjy-map-apt-close::before {
    content: '×';
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f4f8;
    color: inherit;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mjy-map-apt-close:hover::before,
.mjy-map-apt-close:focus-visible::before {
    background: #e4eaf2;
    color: #172033;
    transform: scale(1.04);
}

.mjy-map-apt-close:focus-visible {
    outline: 2px solid #1769e0;
    outline-offset: -4px;
}

.mjy-map-apt-header {
    padding-right: 46px;
}

.mjy-map-apt-label {
    display: inline-block;
    margin-bottom: 5px;
    color: #1769e0;
    font-size: 12px;
    font-weight: 700;
}

.mjy-map-apt-header h3 {
    margin: 0;
    color: #172033;
    font-size: 19px;
    line-height: 1.35;
    word-break: keep-all;
}

.mjy-map-apt-header p {
    margin: 6px 0 0;
    color: #69778d;
    font-size: 13px;
    line-height: 1.45;
    word-break: keep-all;
}

.mjy-map-apt-price {
    margin-top: 15px;
    padding: 14px;
    border-radius: 12px;
    background: #f3f7fd;
}

.mjy-map-apt-price > span,
.mjy-map-apt-price > small {
    display: block;
}

.mjy-map-apt-price > span {
    color: #65738a;
    font-size: 12px;
    font-weight: 600;
}

.mjy-map-apt-price > strong {
    display: block;
    margin-top: 2px;
    color: #0f5fc5;
    font-size: 23px;
    line-height: 1.35;
}

.mjy-map-apt-price > small {
    margin-top: 4px;
    color: #66758b;
    font-size: 12px;
}

.mjy-map-apt-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0 0;
}

.mjy-map-apt-summary > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #fff;
}

.mjy-map-apt-summary dt {
    color: #758197;
    font-size: 11px;
}

.mjy-map-apt-summary dd {
    margin: 2px 0 0;
    color: #29364a;
    font-size: 14px;
    font-weight: 700;
    word-break: keep-all;
}

.mjy-map-apt-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-top: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #1769e0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mjy-map-apt-detail:hover,
.mjy-map-apt-detail:focus-visible {
    background: #0f57bf;
    outline: 2px solid #0f57bf;
    outline-offset: 2px;
}

.mjy-map-apt-loading,
.mjy-map-apt-error {
    display: flex;
    min-height: 105px;
    padding-right: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.mjy-map-apt-loading strong,
.mjy-map-apt-error strong {
    color: #172033;
    font-size: 17px;
}

.mjy-map-apt-loading span,
.mjy-map-apt-error span {
    color: #69778d;
    font-size: 13px;
}

.mjy-map-apt-error a {
    color: #1769e0;
    font-size: 13px;
    font-weight: 700;
}

.mjy-map-apt-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-right: 1px solid #dce3ee;
    border-bottom: 1px solid #dce3ee;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 640px) {
    .mjy-map-apt-card {
        width: min(300px, calc(100vw - 24px));
        padding: 15px;
        border-radius: 14px;
    }

    .mjy-map-apt-close {
        top: 0;
        right: 0;
        width: 50px;
        height: 50px;
    }

    .mjy-map-apt-header h3 {
        font-size: 17px;
    }

    .mjy-map-apt-price {
        margin-top: 12px;
        padding: 12px;
    }

    .mjy-map-apt-price > strong {
        font-size: 20px;
    }

    .mjy-map-apt-summary dd {
        font-size: 13px;
    }
}
