/**
 * event-card-map.css
 * イベントカード 地図・路線図・ピン操作用スタイル (第9段階)
 */

/* 帰属表示 (Attribution) */
.event-card-map-attribution {
    position: absolute;
    right: 8px;
    bottom: 6px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.75);
    color: #444444;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 3px;
    pointer-events: none;
    user-select: none;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ピン要素のインタラクション (指示書 54: 編集モード時のみ有効) */
.event-card-pin {
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.event-card-pin.is-draggable {
    cursor: grab;
    touch-action: none;
}

.event-card-pin.is-draggable:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.event-card-pin.is-dragging {
    cursor: grabbing !important;
    transform: translate(-50%, -50%) scale(1.15) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45) !important;
    z-index: 20 !important;
    opacity: 0.95;
}

/* 編集パネル内の地図・ピン調整セクション */
.event-card-map-controls {
    margin-top: 0;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.event-card-map-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.event-card-map-controls-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.event-card-map-controls-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-card-reset-pins-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.event-card-reset-pins-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}


/* 通常地図の縮尺・中心調整UI */
.event-card-normal-map-controls {
    margin-top: 0;
}

.event-card-map-pan-grid {
    display: grid;
    grid-template-columns: repeat(3, 68px);
    justify-content: center;
    gap: 6px;
    margin: 8px auto 0 auto;
}

.event-card-builder-dialog .event-card-map-pan-grid .btn {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-card-map-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.event-card-builder-dialog .event-card-map-zoom-row .event-card-map-zoom-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 位置調整Picker (第10段階 指置 45) */
.event-card-location-picker {
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-card-location-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.event-card-location-picker-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.event-card-location-picker-map {
    height: 220px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.event-card-location-picker-hint {
    margin: 8px 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.event-card-location-picker-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* 手動イベント詳細編集の位置情報セクション (第10段階 指示書 40〜43) */
.event-card-editor-location-section {
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

.event-card-editor-location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.event-card-editor-location-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.event-card-editor-location-info {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 6px;
}

.event-card-editor-location-confidence {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    margin-left: 6px;
}

.event-card-editor-location-confidence.is-high {
    background: #dcfce7;
    color: #166534;
}

.event-card-editor-location-confidence.is-medium {
    background: #fef9c3;
    color: #854d0e;
}

.event-card-editor-location-confidence.is-low {
    background: #fee2e2;
    color: #991b1b;
}

.event-card-editor-location-confidence.is-manual {
    background: #e0f2fe;
    color: #0369a1;
}

.event-card-editor-location-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
