/* --- Locations Section Styles --- */

/* 白いアウトラインテキスト */
.stroke-text-white {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
    color: transparent;
}

/* マップビューの重なり管理：絶対配置で完全に重ねる */
.map-view {
    transition: none; /* JSで制御するためオフ */
    will-change: opacity, transform;
}

/* タブボタン */
.map-tab-btn {
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}
.map-tab-btn.active {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* マップピン全体の反応範囲（ここが大きすぎると隣と重なる） */
.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 50;
    /* 密集地ではここを小さくする（デフォルト44pxから30pxから20pxへ） */
    width: 20px; 
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ピンのドット（見た目の大きさ） */
.pin-dot {
    width: 5px;  /* ここを書き換えるとドットの大きさが変わる */
    height: 5px; /* ここを書き換えるとドットの大きさが変わる */
    background-color: white;
    border-radius: 50%;
    position: relative;
    z-index: 5;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 密集地用の極小サイズクラスを追加 */
.pin-mini .pin-dot {
    width: 6px;
    height: 6px;
}
.pin-mini .pin-pulse {
    width: 16px;
    height: 16px;
}


.pin-pulse {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    z-index: 1;
    animation: pin-ripple 2.5s infinite;
}

@keyframes pin-ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}

/* --- ラベルの基本設定 --- */
.pin-label {
    position: absolute;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
    pointer-events: none; /* ラベル自体はクリックを邪魔しない */
}

/* デフォルトはピンの下 */
.map-pin .pin-label {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
}

/* --- ★追加：密集地用の位置調整クラス --- */

/* ラベルを右に配置（例：日本） */
.label-right .pin-label {
    top: 50%;
    left: 110%;
    transform: translateY(-50%);
    margin-top: 0;
}

/* ラベルを左に配置（例：上海） */
.label-left .pin-label {
    top: 50%;
    right: 110%;
    left: auto;
    transform: translateY(-50%);
    margin-top: 0;
    text-align: right;
}

/* ラベルを左下に配置（例：香港） */
.label-left-bottom .pin-label {
    top: 110%;
    right: 50%;
    left: auto;
    transform: none;
    text-align: right;
}

/* ラベルを右下に配置（例：台湾） */
.label-right-bottom .pin-label {
    top: 110%;
    left: 50%;
    transform: none;
    text-align: left;
}

/* ホバー・アクティブ時の演出 */
.map-pin:hover .pin-dot, 
.active-pin .pin-dot {
    background-color: #3b82f6;
    transform: scale(1.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

.map-pin:hover .pin-label, 
.active-pin .pin-label {
    color: white;
    font-size: 11px;
    opacity: 1;
    z-index: 100;
}


